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

View File

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