diff --git a/src/layouts/index.vue b/src/layouts/index.vue index eca71d9..f9f3e98 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -53,7 +53,7 @@ const table = [ icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/%E9%A6%96%E9%A1%B5_1/u24.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6' } ]; -function tabPath (path) { +function tabPath(path) { router.push({ path }); diff --git a/src/views/Survey/views/Publish/Index.vue b/src/views/Survey/views/Publish/Index.vue index 0bd0134..b2075c8 100644 --- a/src/views/Survey/views/Publish/Index.vue +++ b/src/views/Survey/views/Publish/Index.vue @@ -5,9 +5,11 @@
- + alt="" + />
@@ -108,7 +110,7 @@ type OperateItem = (typeof operateList)[0]; // } // } -function getCode () { +function getCode() { publishInfo.value.img_url = 'https://test-cxp-pubcos.yili.com/uat-yls//survey-api/publish/202503130938138261340.png'; publishInfo.value.url = `${configUrl.proxyDomain}/publish?sn=${sn && sn !== undefined ? sn : ''}`; @@ -140,27 +142,27 @@ watch(status, (val) => { getCode(); } }); -onMounted(async () => { +onMounted(async() => { // fetchInfo(); getCode(); }); const operateBtn = (item: OperateItem) => { switch (item.type) { - case 'shareLink': - shareLink(); - break; - case 'copyLink': - copyLink(); - break; - case 'qrCode': - downLoadImg(); - break; - default: - break; + case 'shareLink': + shareLink(); + break; + case 'copyLink': + copyLink(); + break; + case 'qrCode': + downLoadImg(); + break; + default: + break; } }; // 复制链接 -function copyLink () { +function copyLink() { const input = document.createElement('input'); input.value = publishInfo.value.url; document.body.appendChild(input); @@ -170,7 +172,7 @@ function copyLink () { showToast('复制成功'); } // 分享链接 -function shareLink () { +function shareLink() { const params = { type: 'shareToWx', title: publishInfo.value.download_url.title, @@ -184,7 +186,7 @@ function shareLink () { } // 下载二维码 -function downLoadImg () { +function downLoadImg() { const { title, url } = publishInfo.value.download_url; if (utils.getSessionStorage('xToken')) { appBridge.save2Album(url, () => {