fix:app嵌套h5返回键

This commit is contained in:
liu.huiying@ebiz-digits.com
2025-03-17 14:52:15 +08:00
parent c10f346c9e
commit cb93501e49

View File

@@ -9,8 +9,8 @@
<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" />
<div class="tit"> <div class="tit">
<div>{{ publishInfo?.download_url?.title || '' }}</div> <div>{{ surveyTitle }}</div>
<div style="font-size: 14px;font-weight: 600;">扫码填写问卷</div> <div>扫码填写问卷</div>
</div> </div>
</div> </div>
<div class="tip">移动端仅做数据回收问卷数据分析请前往PC端浏览</div> <div class="tip">移动端仅做数据回收问卷数据分析请前往PC端浏览</div>
@@ -52,9 +52,8 @@ import shareIcon from '@/assets/img/publish/share_icon.png';
import downloadIcon from '@/assets/img/publish/download_icon.png'; import downloadIcon from '@/assets/img/publish/download_icon.png';
const route = useRoute(); const route = useRoute();
const surveyTitle = route.meta.title as string;
appBridge.setTitle(surveyTitle);
const sn = route.query.sn; const sn = route.query.sn;
const surveyTitle = ref('');
const status = ref<number>(0); // `0`: 编辑中 `1`: 投放中 `2`: 已结束 const status = ref<number>(0); // `0`: 编辑中 `1`: 投放中 `2`: 已结束
const publishType = ref(0); const publishType = ref(0);
const operateList = reactive([ const operateList = reactive([
@@ -175,6 +174,7 @@ function fetchInfo () {
getSurveyInfo(sn) getSurveyInfo(sn)
.then((res) => { .then((res) => {
status.value = Number(res.data.data.status); status.value = Number(res.data.data.status);
surveyTitle.value = res.data.data.project_name;
}) })
.catch((error) => { .catch((error) => {
showFailToast(error.data?.message || error.message || '服务器错误'); showFailToast(error.data?.message || error.message || '服务器错误');
@@ -227,6 +227,8 @@ onMounted(async () => {
justify-content: center; justify-content: center;
margin: 0 10px; margin: 0 10px;
line-height: 20px; line-height: 20px;
font-size: 14px;
font-weight: 600;
} }
} }