update:问卷icon修改
This commit is contained in:
2
components.d.ts
vendored
2
components.d.ts
vendored
@@ -2,7 +2,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
// Generated by unplugin-vue-components
|
// Generated by unplugin-vue-components
|
||||||
// Read more: https://github.com/vuejs/core/pull/3399
|
// Read more: https://github.com/vuejs/core/pull/3399
|
||||||
export {}
|
export {};
|
||||||
|
|
||||||
/* prettier-ignore */
|
/* prettier-ignore */
|
||||||
declare module 'vue' {
|
declare module 'vue' {
|
||||||
|
|||||||
BIN
src/assets/img/publish/baoming.png
Normal file
BIN
src/assets/img/publish/baoming.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 567 B |
BIN
src/assets/img/publish/phone.png
Normal file
BIN
src/assets/img/publish/phone.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 556 B |
BIN
src/assets/img/publish/time.png
Normal file
BIN
src/assets/img/publish/time.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 596 B |
@@ -18,16 +18,21 @@
|
|||||||
<p class="survey_con_num">{{ survey.answer_num }}份</p>
|
<p class="survey_con_num">{{ survey.answer_num }}份</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="survey_con_label flex">
|
<div class="survey_con_label flex">
|
||||||
<div class="flex">
|
<div class="flex align-center">
|
||||||
<img src="" alt="" />
|
<img src="../../../../assets/img/publish/baoming.png" alt="" />
|
||||||
{{ survey.scene_name }} |
|
{{ survey.scene_name }} |
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex align-center">
|
||||||
<img src="" alt="" />
|
<img
|
||||||
|
v-if="survey.source === 1"
|
||||||
|
src="../../../../assets/img/publish/phone.png"
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
|
<img v-else src="../../../../assets/img/publish/phone.png" alt="" />
|
||||||
{{ survey.source === 1 ? '移动端' : 'PC端' }} |
|
{{ survey.source === 1 ? '移动端' : 'PC端' }} |
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex align-center">
|
||||||
<img src="" alt="" />
|
<img src="../../../../assets/img/publish/time.png" alt="" />
|
||||||
{{ survey.created_at }}
|
{{ survey.created_at }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,6 +60,17 @@ const fetchSurveys = async () => {
|
|||||||
const res = await getSurveysPage(params);
|
const res = await getSurveysPage(params);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
survey.value = res.data.data[0];
|
survey.value = res.data.data[0];
|
||||||
|
|
||||||
|
const sceneName = JSON.parse(JSON.stringify(survey.value.scene_name));
|
||||||
|
const nameList = sceneName.split('-');
|
||||||
|
if (nameList.length > 0) {
|
||||||
|
survey.value.scene_name = nameList[1] ? nameList[1] : nameList[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
const timeList = survey.value.created_at.split(' ');
|
||||||
|
if (nameList.length) {
|
||||||
|
survey.value.created_at = timeList[0];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Toast()
|
// Toast()
|
||||||
}
|
}
|
||||||
@@ -95,6 +111,10 @@ onMounted(() => {
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
img {
|
||||||
|
height: 12px;
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
.survey_con_title {
|
.survey_con_title {
|
||||||
//border: 1px solid red;
|
//border: 1px solid red;
|
||||||
|
|||||||
@@ -19,18 +19,19 @@
|
|||||||
<div class="survey_item_info_status">
|
<div class="survey_item_info_status">
|
||||||
<el-space spacer="|">
|
<el-space spacer="|">
|
||||||
<!--报名签到-->
|
<!--报名签到-->
|
||||||
<div>
|
<div class="flex align-center">
|
||||||
<span><img src="" alt="" /></span>
|
<img src="../../assets/img/publish/baoming.png" alt="" />
|
||||||
<el-text size="small">{{ item.scene_name }}</el-text>
|
<el-text size="small">{{ item.scene_name }}</el-text>
|
||||||
</div>
|
</div>
|
||||||
<!-- 问卷来源 -->
|
<!-- 问卷来源 -->
|
||||||
<div>
|
<div class="flex align-center">
|
||||||
<span><img src="" alt="" /></span>
|
<img v-if="item.source === 1" src="../../assets/img/publish/phone.png" alt="" />
|
||||||
|
<img v-else src="../../assets/img/publish/phone.png" alt="" />
|
||||||
<el-text size="small">{{ item.source === 1 ? '移动端' : 'PC端' }}</el-text>
|
<el-text size="small">{{ item.source === 1 ? '移动端' : 'PC端' }}</el-text>
|
||||||
</div>
|
</div>
|
||||||
<!-- 问卷时间 -->
|
<!-- 问卷时间 -->
|
||||||
<div>
|
<div class="flex align-center">
|
||||||
<span><img src="" alt="" /></span>
|
<img src="../../assets/img/publish/time.png" alt="" />
|
||||||
<el-text size="small">{{ item.created_at }}</el-text>
|
<el-text size="small">{{ item.created_at }}</el-text>
|
||||||
</div>
|
</div>
|
||||||
</el-space>
|
</el-space>
|
||||||
@@ -259,6 +260,11 @@ onMounted(() => {
|
|||||||
.survey_item_info {
|
.survey_item_info {
|
||||||
.survey_item_info_status {
|
.survey_item_info_status {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
|
display: flex;
|
||||||
|
img {
|
||||||
|
height: 12px;
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.survey_item_status {
|
.survey_item_status {
|
||||||
|
|||||||
@@ -24,8 +24,13 @@
|
|||||||
<div v-if="status === 0 || status === 2" class="pulish-container">
|
<div v-if="status === 0 || status === 2" class="pulish-container">
|
||||||
<img class="not-publish-icon" src="@/assets/img/publish/not_pulish.png" alt="" />
|
<img class="not-publish-icon" src="@/assets/img/publish/not_pulish.png" alt="" />
|
||||||
<div class="text">点击"启用"按钮后,问卷才可以开始回收数据</div>
|
<div class="text">点击"启用"按钮后,问卷才可以开始回收数据</div>
|
||||||
<van-button type="primary" style="margin-top: 20px" class="publish-btn" color="#70b936"
|
<van-button
|
||||||
@click="openPublishModal">
|
type="primary"
|
||||||
|
style="margin-top: 20px"
|
||||||
|
class="publish-btn"
|
||||||
|
color="#70b936"
|
||||||
|
@click="openPublishModal"
|
||||||
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<i class="mobilefont icon-fabu3" style="margin-right: 6px"></i>
|
<i class="mobilefont icon-fabu3" style="margin-right: 6px"></i>
|
||||||
</template>
|
</template>
|
||||||
@@ -103,7 +108,7 @@ const operateBtn = (item: OperateItem) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 复制链接
|
// 复制链接
|
||||||
function copyLink () {
|
function copyLink() {
|
||||||
const input = document.createElement('input');
|
const input = document.createElement('input');
|
||||||
input.value = publishInfo.value.url;
|
input.value = publishInfo.value.url;
|
||||||
document.body.appendChild(input);
|
document.body.appendChild(input);
|
||||||
@@ -113,7 +118,7 @@ function copyLink () {
|
|||||||
showToast('复制成功');
|
showToast('复制成功');
|
||||||
}
|
}
|
||||||
// 分享链接
|
// 分享链接
|
||||||
function shareLink () {
|
function shareLink() {
|
||||||
const params = {
|
const params = {
|
||||||
type: 'shareToWx',
|
type: 'shareToWx',
|
||||||
title: publishInfo.value.download_url.title,
|
title: publishInfo.value.download_url.title,
|
||||||
@@ -130,7 +135,7 @@ function shareLink () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 下载二维码
|
// 下载二维码
|
||||||
function downLoadImg () {
|
function downLoadImg() {
|
||||||
const { title, url } = publishInfo.value.download_url;
|
const { title, url } = publishInfo.value.download_url;
|
||||||
if (utils.getSessionStorage('xToken')) {
|
if (utils.getSessionStorage('xToken')) {
|
||||||
appBridge.save2Album(url, () => {
|
appBridge.save2Album(url, () => {
|
||||||
@@ -145,7 +150,7 @@ function downLoadImg () {
|
|||||||
document.body.removeChild(link);
|
document.body.removeChild(link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function openPublishModal () {
|
async function openPublishModal() {
|
||||||
const res = await canPlanetPublish(route.query.sn as string, publishType.value);
|
const res = await canPlanetPublish(route.query.sn as string, publishType.value);
|
||||||
if (res) {
|
if (res) {
|
||||||
await publishSurvey({
|
await publishSurvey({
|
||||||
@@ -161,7 +166,7 @@ async function openPublishModal () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCode () {
|
function getCode() {
|
||||||
getQrcode(sn)
|
getQrcode(sn)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
@@ -172,7 +177,7 @@ function getCode () {
|
|||||||
showFailToast(error.data?.message || error.message || '服务器错误');
|
showFailToast(error.data?.message || error.message || '服务器错误');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function fetchInfo () {
|
function fetchInfo() {
|
||||||
getSurveyInfo(sn)
|
getSurveyInfo(sn)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
status.value = Number(res.data.data.status);
|
status.value = Number(res.data.data.status);
|
||||||
|
|||||||
Reference in New Issue
Block a user