Commit b49e5905 by 杨明

Merge branch 'SAAS+V4.52.1' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.52.1

2 parents 1c4c58ac cf58a97f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="left-side"> <view class="left-side">
<view class="user-box"> <view class="user-box">
<view class="user-info flex" @click="jumpPersonCenter"> <view class="user-info flex" @click="jumpPersonCenter">
<view class="user-avatar sprite-icon icon-avatar"></view> <view :class="['user-avatar', 'sprite-icon', 'icon-avatar', tabIndex == 99 ? 'user-active': '']"></view>
<view class="user-name">{{ userInfo.name }} <view class="user-name">{{ userInfo.name }}
<view v-if="hasPerson" class="sprite-icon icon-arrow-next"></view> <view v-if="hasPerson" class="sprite-icon icon-arrow-next"></view>
</view> </view>
...@@ -159,7 +159,6 @@ export default { ...@@ -159,7 +159,6 @@ export default {
}, },
jumpPersonCenter() { jumpPersonCenter() {
if(this.hasPerson) { if(this.hasPerson) {
console.log('跳转个人个人中心')
this.$emit('update:tabIndex', 99) this.$emit('update:tabIndex', 99)
} }
} }
...@@ -285,6 +284,9 @@ export default { ...@@ -285,6 +284,9 @@ export default {
border: toRpx(2) solid #ffffff; border: toRpx(2) solid #ffffff;
box-shadow: 0 toRpx(4) toRpx(8) 0 #0000001a; box-shadow: 0 toRpx(4) toRpx(8) 0 #0000001a;
border-radius: 100%; border-radius: 100%;
&.user-active {
border: toRpx(2) solid rgb(55, 115, 248);
}
} }
.user-name { .user-name {
......
...@@ -117,27 +117,27 @@ export default { ...@@ -117,27 +117,27 @@ export default {
console.log(this.countFlag) console.log(this.countFlag)
let scriptId = null let scriptId = null
if (this.countFlag) { if (this.countFlag) {
try { let idList
this.isProcessing = true;
let idList
idList = [this.messageInfo.id]; idList = [this.messageInfo.id];
scriptId = [this.messageInfo.scriptId] scriptId = [this.messageInfo.scriptId]
try {
this.isProcessing = true;
// this.back(idList) // this.back(idList)
// 接口调用 // 接口调用
const res = await uni.$api.commonApi.updateMessageStatus({ const res = await uni.$api.commonApi.updateMessageStatus({
idList idList
}) })
// if (res) { // if (res) {
this.backPage(scriptId, idList) // this.backPage(scriptId, idList)
// } else { // } else {
// console.log('接口返回结果为空,可能存在问题') // console.log('接口返回结果为空,可能存在问题')
// } // }
} catch (error) { } catch (error) {
this.backPage() // this.backPage(scriptId, idList)
console.error('更新消息状态时出现错误:', error) console.error('更新消息状态时出现错误:', error)
} finally { } finally {
this.isProcessing = false; // 处理完成,将标志位设为 false this.isProcessing = false; // 处理完成,将标志位设为 false
this.backPage(scriptId, idList)
} }
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!