|
@@ -1,7 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="ezy-xuexi-page">
|
|
<view class="ezy-xuexi-page">
|
|
|
<view class="icon-title-navBar-box">
|
|
<view class="icon-title-navBar-box">
|
|
|
- <view @click="handleBack" class="nav-bar-icon"></view>
|
|
|
|
|
<text class="nav-bar-title">学习</text>
|
|
<text class="nav-bar-title">学习</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="ezy-page-body xuexi-page-body">
|
|
<view class="ezy-page-body xuexi-page-body">
|
|
@@ -102,9 +101,10 @@
|
|
|
danyuanInfoVue
|
|
danyuanInfoVue
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
- console.log('学习页面显示,使用缓存数据')
|
|
|
|
|
|
|
+
|
|
|
console.log('this.needRefresh',this.needRefresh)
|
|
console.log('this.needRefresh',this.needRefresh)
|
|
|
console.log('this.hasCache',this.hasCache)
|
|
console.log('this.hasCache',this.hasCache)
|
|
|
|
|
+ console.log('学习页面显示,使用缓存数据')
|
|
|
this.currentTabIndex = 1
|
|
this.currentTabIndex = 1
|
|
|
// 如果从其他页面返回需要刷新数据
|
|
// 如果从其他页面返回需要刷新数据
|
|
|
if (this.needRefresh) {
|
|
if (this.needRefresh) {
|
|
@@ -137,7 +137,6 @@
|
|
|
this.hasCache = false;
|
|
this.hasCache = false;
|
|
|
const cacheDataAuth = cacheManager.get('auth');
|
|
const cacheDataAuth = cacheManager.get('auth');
|
|
|
this.initFromOptions(cacheDataAuth);
|
|
this.initFromOptions(cacheDataAuth);
|
|
|
- this.loadDataFromApi();
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 返回处理
|
|
// 返回处理
|
|
@@ -195,10 +194,12 @@
|
|
|
|
|
|
|
|
// 从参数初始化方法
|
|
// 从参数初始化方法
|
|
|
initFromOptions(options) {
|
|
initFromOptions(options) {
|
|
|
|
|
+ console.log('options',options);
|
|
|
this.chanpinId = options.chanpinId;
|
|
this.chanpinId = options.chanpinId;
|
|
|
this.danyuanId = options.danyuanId;
|
|
this.danyuanId = options.danyuanId;
|
|
|
this.banbenId = options.banbenId;
|
|
this.banbenId = options.banbenId;
|
|
|
this.dengjiId = options.dengjiId;
|
|
this.dengjiId = options.dengjiId;
|
|
|
|
|
+ this.loadDataFromApi();
|
|
|
},
|
|
},
|
|
|
// 从缓存更新数据方法
|
|
// 从缓存更新数据方法
|
|
|
updateFromCache() {
|
|
updateFromCache() {
|