shish 3 سال پیش
والد
کامیت
82a2a593a6
2فایلهای تغییر یافته به همراه26 افزوده شده و 7 حذف شده
  1. 25 6
      hdApp/src/pagesPurchase/gatherPay.vue
  2. 1 1
      hdApp/src/pagesPurchase/gatherResult.vue

+ 25 - 6
hdApp/src/pagesPurchase/gatherPay.vue

@@ -20,7 +20,7 @@
         </block>
         <block>
           <div class="call-one-btn">
-            <button class="button-com green pay-wx" v-if="orderTime>0" @click="_wxPay" >微信支付</button>
+            <button class="button-com green pay-wx" v-if="orderTime>0" @click="wxPayFn" >微信支付</button>
             <button class="button-com disable pay-wx" v-else>微信支付</button>
           </div>
         </block>
@@ -69,7 +69,7 @@ export default {
 					this.orderTimeFun();
 				},1000)
 			},
-    _wxPay () {
+    wxPayFn () {
       let currentMiniOpenId = uni.getStorageSync('currentMiniOpenId')
       let that = this
       if(!this.$util.isEmpty(currentMiniOpenId)){
@@ -99,10 +99,29 @@ export default {
       }).catch(err => { console.log(err) })
     },
     getSuccess () {
-      this.pageTo({
-        url: '/pagesPurchase/gatherResult',
-        type: 2
-      })
+      let that = this
+      // #ifdef APP-PLUS
+      that.pageTo({ url: '/pagesPurchase/gatherResult', type: 2 })
+      // #endif
+      // #ifdef MP-WEIXIN
+      if(this.getDictionariesInfo && this.getDictionariesInfo.subscribeMessage && this.getDictionariesInfo.subscribeMessage == 1 && this.getDictionariesInfo.hdMiniMessage && this.getDictionariesInfo.hdMiniMessage.cgSuccess && this.getDictionariesInfo.hdMiniMessage.remindHdClear && this.getDictionariesInfo.hdMiniMessage.giveCoupon){
+        uni.requestSubscribeMessage({
+          tmplIds: [this.getDictionariesInfo.hdMiniMessage.cgSuccess.msgId,this.getDictionariesInfo.hdMiniMessage.giveCoupon.msgId,this.getDictionariesInfo.hdMiniMessage.remindHdClear.msgId],
+          success(res) {
+            console.log(res)
+            that.pageTo({ url: '/pagesPurchase/gatherResult', type: 2 })
+          },
+          fail(err) {
+            console.log(err)
+          },
+          complete() {
+
+          }
+        })
+      }else{
+        that.pageTo({ url: '/pagesPurchase/gatherResult', type: 2 })
+      }
+      // #endif
     },
     getError () {
     },

+ 1 - 1
hdApp/src/pagesPurchase/gatherResult.vue

@@ -6,7 +6,7 @@
         <view :class="['iconfont', 'iconchenggong']"></view>
         <view class="result-title">支付成功</view>
         <button class="admin-button-com big" @click="goClose()">返回首页</button>
-        <view style="margin-top:60upx;font-size:28upx;" @click="goClearRemind()">如何查看待结订单还有几个?</view>
+        <view style="margin-top:60upx;font-size:32upx;" @click="goClearRemind()">如何查看还有几个待结订单?</view>
       </view>
     </view>
   </view>