diff --git a/src/layouts/utils.js b/src/layouts/utils.js
index b56ec84..9636992 100644
--- a/src/layouts/utils.js
+++ b/src/layouts/utils.js
@@ -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) {}
}
});
diff --git a/src/views/Survey/views/Publish/Index.vue b/src/views/Survey/views/Publish/Index.vue
index 018bac0..d6809a3 100644
--- a/src/views/Survey/views/Publish/Index.vue
+++ b/src/views/Survey/views/Publish/Index.vue
@@ -9,7 +9,7 @@
-
{{ publishInfo?.download_url?.title || '' }}
+
{{ surveyTitle || '' }}
扫码填写问卷
@@ -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(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;