shish 6 лет назад
Родитель
Сommit
1473ea214b
2 измененных файлов с 3 добавлено и 6 удалено
  1. 2 2
      store/src/admin/official/index.vue
  2. 1 4
      store/src/admin/official/pay.vue

+ 2 - 2
store/src/admin/official/index.vue

@@ -147,9 +147,9 @@ export default {
       // 续费
       if (this.option.pay == 1) {
         this.status = 3;
-        sessionStorage.setItem("renewOption", JSON.stringify(this.option));
+        uni.setStorageSync("renewOption", JSON.stringify(this.option));
       } else {
-        sessionStorage.removeItem("renewOption");
+        uni.clearStorageSync("renewOption");
       }
 
       //花店分享的页面有邀人,打开页面保存邀请人

+ 1 - 4
store/src/admin/official/pay.vue

@@ -82,14 +82,11 @@ export default {
       this.$util.getCheckLogin().then(res => {
         if (res) {
           this._getMealDet();
-
           // 续费
-          // #ifdef H5
-          let renewOption = sessionStorage.getItem("renewOption");
+          let renewOption = uni.getStorageSync("renewOption");
           if (renewOption) {
             this.renewOption = JSON.parse(renewOption);
           }
-          // #endif
         }
       });
     },