fix:投放

This commit is contained in:
liu.huiying@ebiz-digits.com
2025-03-17 17:36:06 +08:00
parent d9b7ac271f
commit c902b018b0
2 changed files with 12 additions and 10 deletions

View File

@@ -57,7 +57,7 @@ const canPlanetPublishPSM = function (data) {
incompleteQuestionList.push(s); incompleteQuestionList.push(s);
} }
}); });
if (isFb === true && data.questions.length > 1) { if (isFb === true && data.questions.length > 0) {
return true; return true;
} else { } else {
const titleStr = incompleteQuestionList.map((item) => item.title).join('、') || ''; const titleStr = incompleteQuestionList.map((item) => item.title).join('、') || '';
@@ -121,6 +121,8 @@ const canPlanetPublishMxdAndHotArea = function (data) {
* @returns * @returns
*/ */
const canPlanetPublish3D = function (data) { const canPlanetPublish3D = function (data) {
console.log(56, data);
{ {
let canFB = true; let canFB = true;
let message = ''; let message = '';
@@ -134,9 +136,7 @@ const canPlanetPublish3D = function (data) {
canFB = false; canFB = false;
qSteams.push(`(${s.title})`); qSteams.push(`(${s.title})`);
} }
} catch (error) { } catch (error) {}
// eslint-disable-next-line no-eval
}
} }
}); });

View File

@@ -9,7 +9,7 @@
<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-weight: 600;font-size: 14px;">扫码填写问卷</div> <div style="font-weight: 600;font-size: 14px;">扫码填写问卷</div>
</div> </div>
</div> </div>
@@ -58,6 +58,7 @@ import downloadIcon from '@/assets/img/publish/download_icon.png';
const route = useRoute(); const route = useRoute();
const sn = route.query.sn; const sn = route.query.sn;
const surveyTitle = ref('');
// `0`: 编辑中 `1`: 投放中 `2`: 已结束 // `0`: 编辑中 `1`: 投放中 `2`: 已结束
const status = ref<number>(0); const status = ref<number>(0);
const publishType = ref(0); const publishType = ref(0);
@@ -68,7 +69,7 @@ const operateList = reactive([
icon: copyIcon icon: copyIcon
}, },
{ {
title: '转发微信', title: '转发微信',
type: 'shareLink', type: 'shareLink',
icon: shareIcon icon: shareIcon
}, },
@@ -181,7 +182,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; surveyTitle.value = res?.data?.data?.project_name || '';
}) })
.catch((error) => { .catch((error) => {
showFailToast(error.data?.message || error.message || '服务器错误'); showFailToast(error.data?.message || error.message || '服务器错误');
@@ -243,7 +244,7 @@ onMounted(async() => {
.tip { .tip {
margin: 18px 24px; margin: 18px 24px;
color: #7f7f7f; color: #7f7f7f;
font-size: 12px; font-size: 13px;
} }
} }
@@ -251,8 +252,9 @@ onMounted(async() => {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
margin: 0 24px; margin: 25px 24px 0 24px;
color: #7f7f7f;
font-size: 13px;
span { span {
display: flex; display: flex;
flex-direction: column; flex-direction: column;