update:问卷icon修改

This commit is contained in:
du.meimei
2025-03-18 10:15:52 +08:00
parent 3bf9519747
commit b15d1301ac
7 changed files with 52 additions and 21 deletions

2
components.d.ts vendored
View File

@@ -2,7 +2,7 @@
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}
export {};
/* prettier-ignore */
declare module 'vue' {

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 596 B

View File

@@ -18,16 +18,21 @@
<p class="survey_con_num">{{ survey.answer_num }}</p>
</div>
<div class="survey_con_label flex">
<div class="flex">
<img src="" alt="" />
<div class="flex align-center">
<img src="../../../../assets/img/publish/baoming.png" alt="" />
{{ survey.scene_name }} |
</div>
<div class="flex">
<img src="" alt="" />
<div class="flex align-center">
<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端' }} |
</div>
<div class="flex">
<img src="" alt="" />
<div class="flex align-center">
<img src="../../../../assets/img/publish/time.png" alt="" />
{{ survey.created_at }}
</div>
</div>
@@ -55,6 +60,17 @@ const fetchSurveys = async () => {
const res = await getSurveysPage(params);
if (res.data.code === 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 {
// Toast()
}
@@ -95,6 +111,10 @@ onMounted(() => {
border-radius: 10px;
background: #fff;
color: #000;
img {
height: 12px;
margin-right: 3px;
}
.survey_con_title {
//border: 1px solid red;

View File

@@ -19,18 +19,19 @@
<div class="survey_item_info_status">
<el-space spacer="|">
<!--报名签到-->
<div>
<span><img src="" alt="" /></span>
<div class="flex align-center">
<img src="../../assets/img/publish/baoming.png" alt="" />
<el-text size="small">{{ item.scene_name }}</el-text>
</div>
<!-- 问卷来源 -->
<div>
<span><img src="" alt="" /></span>
<div class="flex align-center">
<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>
</div>
<!-- 问卷时间 -->
<div>
<span><img src="" alt="" /></span>
<div class="flex align-center">
<img src="../../assets/img/publish/time.png" alt="" />
<el-text size="small">{{ item.created_at }}</el-text>
</div>
</el-space>
@@ -259,6 +260,11 @@ onMounted(() => {
.survey_item_info {
.survey_item_info_status {
margin-bottom: 15px;
display: flex;
img {
height: 12px;
margin-right: 3px;
}
}
.survey_item_status {

View File

@@ -24,8 +24,13 @@
<div v-if="status === 0 || status === 2" class="pulish-container">
<img class="not-publish-icon" src="@/assets/img/publish/not_pulish.png" alt="" />
<div class="text">点击"启用"按钮后问卷才可以开始回收数据</div>
<van-button type="primary" style="margin-top: 20px" class="publish-btn" color="#70b936"
@click="openPublishModal">
<van-button
type="primary"
style="margin-top: 20px"
class="publish-btn"
color="#70b936"
@click="openPublishModal"
>
<template #icon>
<i class="mobilefont icon-fabu3" style="margin-right: 6px"></i>
</template>