Commit a5e09b10 by chenwq

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

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