feat:app嵌套h5返回键
This commit is contained in:
@@ -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'
|
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({
|
router.push({
|
||||||
path
|
path
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,9 +5,11 @@
|
|||||||
<!-- <van-cell-group v-if="status === 1" inset style="padding-top: 15px"> -->
|
<!-- <van-cell-group v-if="status === 1" inset style="padding-top: 15px"> -->
|
||||||
<van-cell-group inset style="padding-top: 15px">
|
<van-cell-group inset style="padding-top: 15px">
|
||||||
<div>
|
<div>
|
||||||
<img width="100%"
|
<img
|
||||||
|
width="100%"
|
||||||
src="https://files.axshare.com/gsc/DR6075/44/1a/03/441a03a8b1004755a7a392b311acf97f/images/%E6%8A%95%E6%94%BE/u14.jpg?pageId=2f9ba10c-92b8-4c9b-b40b-04e65a0b4333"
|
src="https://files.axshare.com/gsc/DR6075/44/1a/03/441a03a8b1004755a7a392b311acf97f/images/%E6%8A%95%E6%94%BE/u14.jpg?pageId=2f9ba10c-92b8-4c9b-b40b-04e65a0b4333"
|
||||||
alt="" />
|
alt=""
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="qrcode">
|
<div class="qrcode">
|
||||||
<img :src="publishInfo.img_url" alt="" width="100px" height="100px" />
|
<img :src="publishInfo.img_url" alt="" width="100px" height="100px" />
|
||||||
@@ -108,7 +110,7 @@ type OperateItem = (typeof operateList)[0];
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
function getCode () {
|
function getCode() {
|
||||||
publishInfo.value.img_url
|
publishInfo.value.img_url
|
||||||
= 'https://test-cxp-pubcos.yili.com/uat-yls//survey-api/publish/202503130938138261340.png';
|
= 'https://test-cxp-pubcos.yili.com/uat-yls//survey-api/publish/202503130938138261340.png';
|
||||||
publishInfo.value.url = `${configUrl.proxyDomain}/publish?sn=${sn && sn !== undefined ? sn : ''}`;
|
publishInfo.value.url = `${configUrl.proxyDomain}/publish?sn=${sn && sn !== undefined ? sn : ''}`;
|
||||||
@@ -140,7 +142,7 @@ watch(status, (val) => {
|
|||||||
getCode();
|
getCode();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
onMounted(async () => {
|
onMounted(async() => {
|
||||||
// fetchInfo();
|
// fetchInfo();
|
||||||
getCode();
|
getCode();
|
||||||
});
|
});
|
||||||
@@ -160,7 +162,7 @@ const operateBtn = (item: OperateItem) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 复制链接
|
// 复制链接
|
||||||
function copyLink () {
|
function copyLink() {
|
||||||
const input = document.createElement('input');
|
const input = document.createElement('input');
|
||||||
input.value = publishInfo.value.url;
|
input.value = publishInfo.value.url;
|
||||||
document.body.appendChild(input);
|
document.body.appendChild(input);
|
||||||
@@ -170,7 +172,7 @@ function copyLink () {
|
|||||||
showToast('复制成功');
|
showToast('复制成功');
|
||||||
}
|
}
|
||||||
// 分享链接
|
// 分享链接
|
||||||
function shareLink () {
|
function shareLink() {
|
||||||
const params = {
|
const params = {
|
||||||
type: 'shareToWx',
|
type: 'shareToWx',
|
||||||
title: publishInfo.value.download_url.title,
|
title: publishInfo.value.download_url.title,
|
||||||
@@ -184,7 +186,7 @@ function shareLink () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 下载二维码
|
// 下载二维码
|
||||||
function downLoadImg () {
|
function downLoadImg() {
|
||||||
const { title, url } = publishInfo.value.download_url;
|
const { title, url } = publishInfo.value.download_url;
|
||||||
if (utils.getSessionStorage('xToken')) {
|
if (utils.getSessionStorage('xToken')) {
|
||||||
appBridge.save2Album(url, () => {
|
appBridge.save2Album(url, () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user