Commit 16d10142 by 胡悦

chore: 更新版本号并优化组件逻辑

- 将应用版本号更新至 2.12.0。
- 在 AccountList.vue 中添加了对获取学习中心权限的响应日志。
- 在 serviceDetail/index.vue 中新增 onShow 生命周期钩子以获取消息摘要。
- 在 longCourse.vue 中优化了 SSO 令牌的获取逻辑,移除了冗余调用。
1 parent 46cf69b5
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "展业助手", "name" : "展业助手",
"appid" : "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description" : "", "description" : "",
"versionName" : "2.11.0", "versionName" : "2.12.0",
"versionCode" : "2110", "versionCode" : "2120",
"transformPx" : false, "transformPx" : false,
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
/* 5+App特有相关 */ /* 5+App特有相关 */
......
...@@ -75,6 +75,7 @@ export default { ...@@ -75,6 +75,7 @@ export default {
// uni.$storage.set('studyCenterPermission', _res) // uni.$storage.set('studyCenterPermission', _res)
uni.$api.commonApi.getStudyCenterPermission({yqMerchantIdList}).then(res => { uni.$api.commonApi.getStudyCenterPermission({yqMerchantIdList}).then(res => {
uni.$storage.set('studyCenterPermission', res) uni.$storage.set('studyCenterPermission', res)
console.log(res,'res')
}) })
if (autoLogin) this.chooseAccount(loginUserInfoList[0]) if (autoLogin) this.chooseAccount(loginUserInfoList[0])
} else uni.showToast({ } else uni.showToast({
......
...@@ -147,6 +147,9 @@ export default { ...@@ -147,6 +147,9 @@ export default {
this.getTopInfo() this.getTopInfo()
this.moduleType = Number(options.moduleType) this.moduleType = Number(options.moduleType)
}, },
onShow() {
this.getMessageSummary(this.userInfo.sceneType)
},
methods: { methods: {
formatTime(time, formatStr) { formatTime(time, formatStr) {
return dayjs(time).format(formatStr); return dayjs(time).format(formatStr);
......
...@@ -129,7 +129,6 @@ export default { ...@@ -129,7 +129,6 @@ export default {
this.completeStatus = options.completeStatus this.completeStatus = options.completeStatus
this.punishType = options.punishType this.punishType = options.punishType
this.getLongCourseDetail(rowData.id) this.getLongCourseDetail(rowData.id)
this.findBeiSenSSOToken()
if (this.completeStatus == 0) { if (this.completeStatus == 0) {
this.initCountdown() this.initCountdown()
} }
...@@ -205,7 +204,7 @@ export default { ...@@ -205,7 +204,7 @@ export default {
this.timer = setInterval(updateCountdown, 1000) this.timer = setInterval(updateCountdown, 1000)
}, },
startStudy(index, item) { startStudy(index, item) {
const beisenToken = uni.$storage.get('beisenToken') const beisenToken = this.findBeiSenSSOToken()
if (beisenToken) { if (beisenToken) {
uni.$track.add({eventCode: 'app_long_course', businessId: item.id, pagePath: '/pages/common/studyDetail/longCourse'}) uni.$track.add({eventCode: 'app_long_course', businessId: item.id, pagePath: '/pages/common/studyDetail/longCourse'})
uni.navigateTo({ uni.navigateTo({
...@@ -222,6 +221,7 @@ export default { ...@@ -222,6 +221,7 @@ export default {
return new Promise(resolve => { return new Promise(resolve => {
uni.$api.commonApi.findBeiSenSSOToken({}).then(res => { uni.$api.commonApi.findBeiSenSSOToken({}).then(res => {
uni.$storage.set('beisenToken', res.data) uni.$storage.set('beisenToken', res.data)
resolve(res.data)
}) })
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!