Эх сурвалжийг харах

feat:参与活动后删除技师端和店长端的缓存

zhanghui 2 сар өмнө
parent
commit
2120f00270

+ 14 - 0
orderPages/activityDetail/activityDetail.vue

@@ -424,6 +424,12 @@ export default {
           title: '支付成功!'
         });
         this.isActivityCheck = true
+
+        //清除技师端缓存的参数
+        uni.removeStorageSync('promotionParam');
+        //清除技店长端缓存的参数
+        uni.removeStorageSync('storeParam');
+
         setTimeout(() => {
           uni.reLaunch({
             url: '/myPages/myActivity/myActivity'
@@ -533,6 +539,10 @@ export default {
               duration: 2000,
               title: '活动参与成功!'
             });
+            //清除技师端缓存的参数
+            uni.removeStorageSync('promotionParam');
+            //清除技店长端缓存的参数
+            uni.removeStorageSync('storeParam');
             this.isActivityCheck = true
           }
         } else {
@@ -543,6 +553,10 @@ export default {
               duration: 2000,
               title: '活动参与成功!'
             });
+            //清除技师端缓存的参数
+            uni.removeStorageSync('promotionParam');
+            //清除技店长端缓存的参数
+            uni.removeStorageSync('storeParam');
             this.isActivityCheck = true
           }
         }