Commit 8fcc317f by 胡悦

fix(studyCenter): 在切换标签时调用对应统计方法

修复在myCourse和myExam页面切换标签时未调用统计方法的问题,确保数据及时更新
同时更新manifest.json版本号至2.19.0
1 parent 2afa8e4f
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "展业助手", "name" : "展业助手",
"appid" : "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description" : "", "description" : "",
"versionName" : "2.18.1", "versionName" : "2.19.0",
"versionCode" : 2181, "versionCode" : 2190,
"transformPx" : false, "transformPx" : false,
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
/* 5+App特有相关 */ /* 5+App特有相关 */
......
...@@ -80,6 +80,7 @@ export default { ...@@ -80,6 +80,7 @@ export default {
}, },
switchTab(index) { switchTab(index) {
this.currentTab = index this.currentTab = index
this.getMyCourseTabCount()
}, },
// tab 页面数量 // tab 页面数量
async getMyCourseTabCount() { async getMyCourseTabCount() {
......
...@@ -75,6 +75,7 @@ export default { ...@@ -75,6 +75,7 @@ export default {
}, },
switchTab(index) { switchTab(index) {
this.currentTab = index this.currentTab = index
this.getExamStatistics()
}, },
async getExamStatistics() { async getExamStatistics() {
const res = await uni.$api.commonApi.getExamStatistics({ const res = await uni.$api.commonApi.getExamStatistics({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!