tapd相关修改更新
This commit is contained in:
@@ -19,8 +19,8 @@ import { reactive, ref, onMounted } from 'vue';
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||
import infoBox from '@/commons/utils/infoBox.js'
|
||||
import qrCode from '@/commons/utils/qrCode.js'
|
||||
import { getSubQrCode } from '@/http/yskApi/pageNotification.js'
|
||||
import { saveHeadImgFile } from '@/commons/utils/saveImg.js'
|
||||
import { getShopMsgPushCode } from '@/http/api/index.js'
|
||||
|
||||
const vdata = reactive({
|
||||
size: 20,
|
||||
QrcodeUrl: "",
|
||||
@@ -31,14 +31,12 @@ onLoad((options) => {
|
||||
|
||||
})
|
||||
|
||||
|
||||
onShow(() => {
|
||||
getSubQrCode().then((res) => {
|
||||
getShopMsgPushCode().then((res) => {
|
||||
vdata.QrcodeUrl = res;
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
const saveImage = () => {
|
||||
uni.downloadFile({
|
||||
url: vdata.QrcodeUrl,
|
||||
@@ -63,10 +61,8 @@ const saveImage = () => {
|
||||
infoBox.showErrorToast('保存失败')
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.page-wrapper {
|
||||
|
||||
Reference in New Issue
Block a user