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