فهرست منبع

客户结账问题

shish 3 سال پیش
والد
کامیت
b133f4d24a
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      hdApp/src/pagesPurchase/gatherPay.vue

+ 2 - 0
hdApp/src/pagesPurchase/gatherPay.vue

@@ -73,10 +73,12 @@ export default {
         that.weixinPay()
         that.weixinPay()
       }else{
       }else{
         //没有miniOpenId补miniOpenId
         //没有miniOpenId补miniOpenId
+        uni.showLoading({mask:true})
         uni.login({
         uni.login({
           provider: 'weixin',
           provider: 'weixin',
           success: res => {
           success: res => {
             postWxCode({ code: res.code }).then(subRes => {
             postWxCode({ code: res.code }).then(subRes => {
+              uni.hideLoading()
               if(subRes.data.currentMiniOpenId){
               if(subRes.data.currentMiniOpenId){
                 let thisMiniOpenId = subRes.data.currentMiniOpenId
                 let thisMiniOpenId = subRes.data.currentMiniOpenId
                 uni.setStorageSync('currentMiniOpenId',thisMiniOpenId)
                 uni.setStorageSync('currentMiniOpenId',thisMiniOpenId)