Commit 3aa24a6f by 李伟康

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

2 parents 2424e337 16d10142
...@@ -129,13 +129,13 @@ export default { ...@@ -129,13 +129,13 @@ export default {
} }
} }
}, },
created () { // created () {
// 监听自定义事件 // // 监听自定义事件
uni.$on('backStudyCenter', () => { // uni.$on('backStudyCenter', () => {
console.log('backStudyCenter') // console.log('backStudyCenter')
this.getCourseTaskPage(this.tabIndex) // this.getCourseTaskPage(this.tabIndex)
}) // })
}, // },
mounted() { mounted() {
this.getCourseTaskPage(this.tabIndex) this.getCourseTaskPage(this.tabIndex)
}, },
......
...@@ -55,6 +55,7 @@ export default { ...@@ -55,6 +55,7 @@ export default {
}, },
mounted() { mounted() {
this.getCourseTaskPage() this.getCourseTaskPage()
this.asyncfindBeiSenSSOToken()
}, },
methods: { methods: {
// 获取我的任务接口, completeStatus: 完成状态 0=待完成 1=已完成, courseType: 课程类型 1=短课程 2=长课程 // 获取我的任务接口, completeStatus: 完成状态 0=待完成 1=已完成, courseType: 课程类型 1=短课程 2=长课程
...@@ -102,7 +103,11 @@ export default { ...@@ -102,7 +103,11 @@ export default {
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/studyDetail/detail?type=recommendation&index=${index}&recommendCourseList=${encodeURIComponent(JSON.stringify(this.recommendCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}` url: `/pages/common/studyDetail/detail?type=recommendation&index=${index}&recommendCourseList=${encodeURIComponent(JSON.stringify(this.recommendCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}`
}) })
} },
async asyncfindBeiSenSSOToken () {
const res = await uni.$api.commonApi.findBeiSenSSOToken({})
uni.$storage.set('beisenToken', res.data)
},
} }
} }
</script> </script>
......
...@@ -74,6 +74,14 @@ export default { ...@@ -74,6 +74,14 @@ export default {
isYb: false, // 当前驻店人员所关联的门店是否是延保业务 isYb: false, // 当前驻店人员所关联的门店是否是延保业务
} }
}, },
created () {
// 监听自定义事件
uni.$on('backStudyCenter', () => {
console.log('backStudyCenter')
this.$refs.myTask.getCourseTaskPage(this.tabIndex)
this.getStudyBoard()
})
},
mounted() { mounted() {
const beisenToken = uni.$storage.get('beisenToken') const beisenToken = uni.$storage.get('beisenToken')
const studyCenterPermission = uni.$storage.get('studyCenterPermission') const studyCenterPermission = uni.$storage.get('studyCenterPermission')
......
...@@ -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!