shish 5 лет назад
Родитель
Сommit
dab9b19d44

+ 0 - 5
hdApp/src/pagesClient/official/result.vue

@@ -24,15 +24,10 @@ export default {
     },
     methods:{
       close() {
-        // this.pageTo({url: '/admin/home/workbench', type: 4})
-        // uni.setStorageSync('HOME_REFRESH', '1')
-        // uni.removeStorageSync('HOME_STATUS_STROAGE_SHOW')
-
         uni.removeStorageSync('OPEN_SHOP_ID')
         uni.removeStorageSync('HOME_STATUS_STROAGE_SHOW')
         this.$store.commit("setLoginInfo", {})
         this.pageTo({url: "/admin/home/workbench",type: 3})
-
       }
     }
 };

+ 22 - 5
hdApp/src/pagesPurchase/particulars.vue

@@ -6,10 +6,10 @@
         <view :class="['iconfont', 'iconchenggong']"></view>
         <view class="result-title">支付成功</view>
 
-        <button v-if="loginInfo.admin.subscribe == 0" class="admin-button-com blue big" @click="pageTo({url:'/pagesClient/official/warn'})">开启动态提醒</button>
+        <button v-if="loginInfo.admin.subscribe == 0" class="admin-button-com blue big" @click="openMind">开启动态提醒</button>
 
-        <button v-if="loginInfo.admin.subscribe == 0" class="admin-button-com big" @click="go_detail">订单详情</button>
-        <button v-if="loginInfo.admin.subscribe == 1" class="admin-button-com blue big" @click="go_detail">订单详情</button>
+        <button v-if="loginInfo.admin.subscribe == 0" class="admin-button-com big" @click="goDetail">订单详情</button>
+        <button v-if="loginInfo.admin.subscribe == 1" class="admin-button-com blue big" @click="goDetail">订单详情</button>
         <button class="admin-button-com big" @click="goClose">返回首页</button>
       </view>
     </view>
@@ -19,11 +19,28 @@
 <script>
 export default {
   name: "AppResult",
+  data() {
+    return {
+      hasInit:false
+    }
+  },
+  onLoad () {
+    this.hasInit = true
+  },
+  onShow () {
+    if(this.hasInit == false){
+      this.$store.commit("setLoginInfo", {})
+    }
+  },
   methods: {
+    openMind(){
+      this.hasInit = false
+      this.pageTo({ url: "/pagesClient/official/warn"})
+    },
     goClose () {
-      this.pageTo({ url: "/admin/home/workbench", type: 3 });
+      this.pageTo({ url: "/admin/home/workbench", type: 3 })
     },
-    go_detail() {
+    goDetail() {
       this.pageTo({url: '/pagesPurchase/purDetails?status=2&id=' + this.option.id, type: 2})
     }
   },

+ 0 - 6
hdApp/src/store/modules/login.js

@@ -30,10 +30,4 @@ export default {
 			state.myShopInfo = payload
 		},
 	}
-	// ,
-	// actions: {
-	// 	setLoginInfo ({ commit }, payload) {
-	// 		commit('setLoginInfo', payload)
-	// 	}
-	// }
 }