|
|
@ -93,14 +93,14 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
goDetail() { |
|
|
goDetail() { |
|
|
// 不能直接使用hook.js文件中的loginGo2,nvue编译生成的store !== this.$store |
|
|
|
|
|
const token = this.$store.state.qnToken |
|
|
|
|
|
if (token) { |
|
|
|
|
|
go2('client-detail', { id: this.info.enterpriseId }, false) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$store.commit('setNextPage', { name: 'client-detail', data:{ id: this.info.enterpriseId }}) |
|
|
|
|
|
go2('login') |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 不能直接使用hook.js文件中的loginGo2,nvue编译生成的store !== this.$store |
|
|
|
|
|
const token = this.$store.state.qnToken |
|
|
|
|
|
if (token) { |
|
|
|
|
|
go2('client-detail', { id: this.info.enterpriseId }, false) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$store.commit('setNextPage', { name: 'client-detail', data: { id: this.info.enterpriseId } }) |
|
|
|
|
|
go2('login') |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
transformBusiness(business) { |
|
|
transformBusiness(business) { |
|
|
let text = business?.trim() || '未知' |
|
|
let text = business?.trim() || '未知' |
|
|
@ -237,8 +237,10 @@ export default { |
|
|
.text { |
|
|
.text { |
|
|
font-size: 24rpx; |
|
|
font-size: 24rpx; |
|
|
color: #555555; |
|
|
color: #555555; |
|
|
lines: 1; |
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
|
|
|
// text-overflow: ellipsis; |
|
|
|
|
|
// word-break: none; |
|
|
|
|
|
// overflow: hidden; |
|
|
|
|
|
// white-space: nowrap; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|