Browse Source

back中存储放到destroy中

htc 10 months ago
parent
commit
96716d2cbf
1 changed files with 4 additions and 5 deletions
  1. 4 5
      pagesHouse/Verification/checkApp.vue

+ 4 - 5
pagesHouse/Verification/checkApp.vue

@@ -104,6 +104,10 @@
 			handle(val, type) {
 				return tuomin(val, type);
 			}
+		},
+		destroyed() {
+			this.keyName = this.orderInfo.playDate + this.orderInfo.playTime + this.boatNo;
+			uni.setStorageSync(this.keyName, JSON.stringify(this.data));
 		},
 		methods: {
 			initSDK() {
@@ -122,11 +126,6 @@
 					}
 				})
 			},
-			back() {
-				this.keyName = this.orderInfo.playDate + this.orderInfo.playTime + this.boatNo;
-				uni.setStorageSync(this.keyName, JSON.stringify(this.data));
-				//decodeURIComponent
-			},
 			getOrderInfo() {
 				this.$api.post('/scenic/api/order/queryStartOrderInfo', {
 					merchantId: this.merchantId,