fix:投放
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user