Commit a5e09b10 by chenwq

chore: 调整样式,优化常量与空状态展示,修复月报状态颜色

- 更新月报已提交状态的文字颜色为绿色
- 调整搜索栏背景色为透明,优化占位符颜色与单元格样式
- 将团队列表的硬编码图片地址替换为常量配置,并添加自定义空状态图片
- 格式化登录逻辑代码的缩进与注释
1 parent e8280493
...@@ -54,14 +54,18 @@ export default { ...@@ -54,14 +54,18 @@ export default {
padding: 8px 12px; padding: 8px 12px;
} }
:deep(.van-search__content) { :deep(.van-search__content) {
background-color: #f2f3f7; // background-color: #f2f3f7;
background-color: transparent;
border: 1px solid #dcdde1; border: 1px solid #dcdde1;
} }
:deep(.van-field__control::placeholder) {
color: var(--placeholder-color, #00000066);
}
:deep(.van-cell) { :deep(.van-cell) {
box-sizing: border-box;
height: 40px; height: 40px;
font-size: 16px; font-size: 16px;
color: #00000066; padding: 10px 12px 10px 0;
padding: 8px 12px 8px 0;
} }
:deep(.van-field__left-icon) { :deep(.van-field__left-icon) {
margin-left: 8px; margin-left: 8px;
......
...@@ -47,23 +47,23 @@ const actions = { ...@@ -47,23 +47,23 @@ const actions = {
const [item] = data.loginList const [item] = data.loginList
if (item.loginList && item.loginList.length) { if (item.loginList && item.loginList.length) {
const [userInfo] = item.loginList const [userInfo] = item.loginList
const { phone } = userInfo // const { phone } = userInfo
if (paramsPhone == phone) { // if (paramsPhone == phone) {
// const res = await ssoApi.loginByPhone({ // const res = await ssoApi.loginByPhone({
// phone, // phone,
// }) // })
// if (res) { // if (res) {
let route = state.lastPath || '' let route = state.lastPath || ''
const [jumpUrl] = window.location.href.split('/#/') const [jumpUrl] = window.location.href.split('/#/')
route = route.replace('.', '/') route = route.replace('.', '/')
util.setLocalStorage('ww_userInfo', userInfo) util.setLocalStorage('ww_userInfo', userInfo)
// util.setSessionId(res.sessionId) // util.setSessionId(res.sessionId)
// dispatch('registerHttp', res.sessionId) // dispatch('registerHttp', res.sessionId)
state.showWindow = true state.showWindow = true
console.log(jumpUrl) console.log(jumpUrl)
window.location.replace(`${jumpUrl}/#/${route}`) window.location.replace(`${jumpUrl}/#/${route}`)
// } else throw '' // } else throw ''
} else throw '手机号不一致' // } else throw '手机号不一致'
} else throw '' } else throw ''
} else throw '' } else throw ''
} else throw message } else throw message
......
...@@ -42,7 +42,7 @@ export const DAILY_STATUS_MAP = { ...@@ -42,7 +42,7 @@ export const DAILY_STATUS_MAP = {
// 月报状态映射 // 月报状态映射
export const MONTH_STATUS_MAP = { export const MONTH_STATUS_MAP = {
0: { text: '未提交', color: '#F24724', fontSize: '14px' }, 0: { text: '未提交', color: '#F24724', fontSize: '14px' },
1: { text: '已提交', color: '#000000E5', fontSize: '14px' } 1: { text: '已提交', color: '#35C376', fontSize: '14px' }
} }
// 任务状态映射 (兼容其他可能用到的状态) // 任务状态映射 (兼容其他可能用到的状态)
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</div> </div>
</div> </div>
</van-list> </van-list>
<van-empty v-if="list.length === 0 && !loading && !refreshing" description="暂无数据" /> <van-empty v-if="list.length === 0 && !loading && !refreshing" image-size="100" :image="IMG_URL + 'icon-empty.png'" description="暂无数据" />
</van-pull-refresh> </van-pull-refresh>
</div> </div>
</div> </div>
...@@ -89,8 +89,6 @@ import SearchBar from '@/components/searchBar/index.vue' ...@@ -89,8 +89,6 @@ import SearchBar from '@/components/searchBar/index.vue'
import StaticInfo from '@/components/staticInfo/index.vue' import StaticInfo from '@/components/staticInfo/index.vue'
import constantData from './constantData.js' import constantData from './constantData.js'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/'
export default { export default {
name: 'TeamList', name: 'TeamList',
components: { components: {
...@@ -100,7 +98,7 @@ export default { ...@@ -100,7 +98,7 @@ export default {
}, },
data() { data() {
return { return {
IMG_URL, IMG_URL: constantData.BASE_IMG_URL,
isSticky: false, isSticky: false,
userInfo: {}, userInfo: {},
staticData: {}, staticData: {},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!