Merge branch 'feature/feature-20250430-h5' of https://e.coding.yili.com/yldc/ylst/ylst-survey-h5 into feature/feature-20250430-h5

This commit is contained in:
Huangzhe
2025-05-18 17:53:02 +08:00
6 changed files with 57 additions and 20 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

View File

@@ -8,7 +8,8 @@
@search="handleSearchActino" @search="handleSearchActino"
> >
</van-search> </van-search>
<el-text @click="handleSearchActino">搜索</el-text> <p class="search" @click="handleSearchActino">搜索</p>
<!-- <el-text>搜索</el-text>-->
</section> </section>
</template> </template>
@@ -45,22 +46,39 @@ function handleSearchActino() {
.search-container { .search-container {
:deep(.van-search) { :deep(.van-search) {
padding: 0; padding: 0;
margin: 0 -10px; //margin: 0 10px;
border-radius: 0; border-radius: 0;
background-color: #f5f5f5; background-color: #fff;
} }
:deep(.el-text) { .search {
margin: 0 10px; margin: 0 10px;
font-size: 14px;
color: #999;
cursor: pointer; cursor: pointer;
display: flex;
justify-self: center; justify-self: center;
align-items: center;
font-weight: 500;
font-size: 12px;
color: var(--primary-color);
&::after {
content: '|';
position: absolute;
right: 11vh;
top: 1vh;
//transform: translateY(-50%);
font-weight: bold;
color: #e7dedf; // 竖线颜色与搜索文字一致
pointer-events: none; // 确保不影响点击事件
}
}
:deep(.van-search__content) {
background-color: #fff;
} }
border-radius: 18px; border-radius: 18px;
border: solid 2px #70b937; border: solid 1px var(--primary-color);
background-color: #f5f5f5; background-color: #fff;
//width: 100vw; //width: 100vw;
display: grid; display: grid;

View File

@@ -37,7 +37,7 @@ const router = createRouter({
path: '/survey', path: '/survey',
name: 'survey', name: 'survey',
meta: { meta: {
title: '最新问卷' title: '我的'
}, },
component: () => import('../views/Survey/Index.vue') component: () => import('../views/Survey/Index.vue')
}, },

View File

@@ -79,8 +79,8 @@ onMounted(() => {
.new-survey_item { .new-survey_item {
margin: 0 10px 10px; margin: 0 10px 10px;
padding: 10px 0 8px 7px; padding: 15px;
border-radius: 8px; border-radius: 16px;
background-color: white; background-color: white;
} }

View File

@@ -10,10 +10,16 @@
<template #description> <template #description>
<el-text> - 更多任务期待您的创建 - </el-text> <el-text> - 更多任务期待您的创建 - </el-text>
</template> </template>
<el-button type="primary" color="#5cca07">新建问卷</el-button> <el-button type="primary" class="btn" >+ 新建问卷</el-button>
</el-empty> </el-empty>
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">
.btn{
</style> color: #fff;
background-color: var(--primary-color);
border: solid 1px var(--primary-color);
font-weight: 400;
border-radius: 8px;
}
</style>

View File

@@ -157,7 +157,7 @@ function copyItem(item: SurveyItem) {
<!--报名签到--> <!--报名签到-->
<div class="flex align-center"> <div class="flex align-center">
<img <img
:src="setImg(survey.scene_code_info as number)" src="@/assets/img/publish/user.png"
alt="Content Icon" alt="Content Icon"
style="width: 15px; height: 15px" style="width: 15px; height: 15px"
/> />
@@ -251,6 +251,7 @@ function copyItem(item: SurveyItem) {
.survey_item_info_status { .survey_item_info_status {
display: flex; display: flex;
margin-bottom: 15px; margin-bottom: 15px;
color: #666;
img { img {
height: 12px; height: 12px;
@@ -276,16 +277,28 @@ function copyItem(item: SurveyItem) {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
font-weight: 500;
font-size: 14px;
color: #000;
} }
} }
.wrap { .wrap {
margin-left: 5px; margin-left: 5px;
padding: 1px 3px; padding: 1px 3px;
border: 2px solid #f5f5f5; border: 0.5px solid rgba(192,192,192,0.35);
border-radius: 6px; border-radius: 6px;
font-size: 12px; font-size: 12px;
text-wrap: nowrap; text-wrap: nowrap;
color: #333333;
}
& > :nth-child(3) {
padding: 0 4px;
border-radius: 6px;
font-size: 12px;
color: #333333;
margin-left: 7px;
border: 0.5px solid rgba(192,192,192,0.35);
} }
} }
@@ -298,11 +311,10 @@ function copyItem(item: SurveyItem) {
background-color: #f6f7f8; background-color: #f6f7f8;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
padding: 10px 15px; padding: 14px 30px;
box-sizing: border-box; box-sizing: border-box;
margin: 0 10px 10px 5px;
color: #828282; color: #828282;
font-weight: 400; //font-weight: 400;
font-size: 12px; font-size: 12px;
section { section {
@@ -325,7 +337,8 @@ function copyItem(item: SurveyItem) {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 5px; padding: 5px;
border-top: 1px dashed #f5f5f5; margin-top: 10px;
font-weight: 400;
.el-button { .el-button {
width: 18vw; width: 18vw;