ui库更新

This commit is contained in:
gyq
2024-07-25 10:50:02 +08:00
parent 62d4806435
commit 86a0b83dd0
43 changed files with 1568 additions and 121 deletions

View File

@@ -40,7 +40,8 @@
</template>
<script>
import { wxlogin } from '@/api/index.js';
import { wxlogin, subQrCode } from '@/api/index.js';
import { log } from 'util';
export default {
data() {
return {
@@ -74,6 +75,7 @@ export default {
}
},
methods: {
// 登录
async loginHandle() {
try {
const res = await wxlogin({
@@ -86,7 +88,30 @@ export default {
}
},
// 订阅消息通知
messageHandle() {
async messageHandle() {
try {
uni.showLoading({
title: '加载中...'
});
const { data } = await subQrCode();
uni.hideLoading();
uni.showModal({
title: '注意',
content: '即将打开二维码图片,请长按识别并关注公众号订阅通知',
showCancel: false,
confirmText: '知道了',
success: (res) => {
if (res.confirm) {
uni.previewImage({
urls: [data]
});
}
}
});
} catch (e) {
console.log(e);
}
return;
let msgId = 'IZ-l9p9yBgcvhRR0uN6cBQPkWJ5i05zyWMkfeCPaAmY';
uni.getSetting({
withSubscriptions: true,
@@ -230,4 +255,9 @@ export default {
}
}
}
.code-wrap {
.img {
width: 100%;
}
}
</style>