diff --git a/template/uni-app/pages/goods_cate/goods_cate.vue b/template/uni-app/pages/goods_cate/goods_cate.vue
index 4215d07ae..356aa5d63 100644
--- a/template/uni-app/pages/goods_cate/goods_cate.vue
+++ b/template/uni-app/pages/goods_cate/goods_cate.vue
@@ -49,10 +49,12 @@
getCategoryVersion().then(res => {
if (!uni.getStorageSync('CAT_VERSION') || res.data.version != uni.getStorageSync(
'CAT_VERSION')) {
- this.isNew = true
+ this.isNew = !this.isNew
+ console.log('变了')
uni.setStorageSync('CAT_VERSION', res.data.version)
- } else {
- this.isNew = false
+ } else {
+ console.log('没变')
+ // this.isNew = false
}
this.classStyle();
})
diff --git a/template/uni-app/pages/goods_cate/goods_cate1.vue b/template/uni-app/pages/goods_cate/goods_cate1.vue
index 69a89d410..b8b005a4c 100644
--- a/template/uni-app/pages/goods_cate/goods_cate1.vue
+++ b/template/uni-app/pages/goods_cate/goods_cate1.vue
@@ -128,9 +128,8 @@
},
watch: {
isNew(newVal) {
- if (newVal) {
- this.getAllCategory();
- }
+
+ this.getAllCategory(1);
}
},
methods: {
@@ -184,11 +183,12 @@
this.navActive = index;
this.$set(this, 'lock', true);
},
- getAllCategory: function() {
+ getAllCategory: function(type) {
let that = this;
- if (this.isNew || !uni.getStorageSync('CAT1_DATA')) {
+ if (type || !uni.getStorageSync('CAT1_DATA')) {
getCategoryList().then(res => {
- uni.setStorageSync('CAT1_DATA', res.data)
+ uni.setStorageSync('CAT1_DATA', res.data)
+ console.log('调了')
that.productList = res.data;
that.$nextTick(res => {
that.infoScroll();
diff --git a/template/uni-app/pages/goods_cate/goods_cate2.vue b/template/uni-app/pages/goods_cate/goods_cate2.vue
index 73903dc27..a7180c621 100644
--- a/template/uni-app/pages/goods_cate/goods_cate2.vue
+++ b/template/uni-app/pages/goods_cate/goods_cate2.vue
@@ -117,9 +117,7 @@
},
watch: {
isNew(newVal) {
- if (newVal) {
- this.getAllCategory();
- }
+ this.getAllCategory(1);
}
},
computed: mapGetters(['isLogin', 'uid']),
@@ -168,15 +166,7 @@
storeInfo: {}
}
},
- // onShow(){
- // if(this.isLogin){
- // this.getCartNum();
- // this.getCartList(1);
- // }
- // this.getAllCategory();
- // },
mounted() {
- // this.getAllCategory();
let that = this;
// 获取设备宽度
uni.getSystemInfo({
@@ -642,9 +632,9 @@
closeTap() {
this.iSlong = true
},
- getAllCategory: function() {
+ getAllCategory: function(type) {
let that = this;
- if (this.isNew || !uni.getStorageSync('CAT2_DATA')) {
+ if (type|| !uni.getStorageSync('CAT2_DATA')) {
getCategoryList().then(res => {
uni.setStorageSync('CAT2_DATA', res.data)
let data = res.data;
diff --git a/template/uni-app/pages/goods_cate/goods_cate3.vue b/template/uni-app/pages/goods_cate/goods_cate3.vue
index 63d7386ba..a4a1264da 100644
--- a/template/uni-app/pages/goods_cate/goods_cate3.vue
+++ b/template/uni-app/pages/goods_cate/goods_cate3.vue
@@ -121,9 +121,7 @@
},
watch: {
isNew(newVal) {
- if (newVal) {
- this.getAllCategory();
- }
+ this.getAllCategory(1);
}
},
data() {
@@ -678,9 +676,9 @@
closeTap() {
this.iSlong = true
},
- getAllCategory: function() {
+ getAllCategory: function(type) {
let that = this;
- if (this.isNew || !uni.getStorageSync('CAT3_DATA')) {
+ if (type || !uni.getStorageSync('CAT3_DATA')) {
getCategoryList().then(res => {
let data = res.data;
uni.setStorageSync('CAT3_DATA', data)
diff --git a/template/uni-app/pages/users/user_integral/index.vue b/template/uni-app/pages/users/user_integral/index.vue
index da020006f..fbec564bf 100644
--- a/template/uni-app/pages/users/user_integral/index.vue
+++ b/template/uni-app/pages/users/user_integral/index.vue
@@ -1,423 +1,427 @@
-
-
-
-
-
-
- {{item.name}}
-
-
- {{$t(`提示:积分数值的高低会直接影响您的会员等级`)}}
- {{$t(`提示:你有`)}}{{userInfo.clear_integral}}{{$t(`积分在`)}}{{ userInfo.clear_time | dateFormat }}{{$t(`过期,请尽快使用`)}}
-
-
-
- {{$t(item.title)}}
- {{item.add_time}}
-
- +{{item.number}}
- -{{item.number}}
-
-
- {{loadTitle}}
-
-
-
-
-
-
-
-
-
-
- {{$t(`购买商品可获得积分奖励`)}}
- {{$t(`赚积分`)}}
-
-
-
-
-
- {{$t(`每日签到可获得积分奖励`)}}
- {{$t(`赚积分`)}}
-
-
-
-
-
-
-
-
-
-
-
-
-