shish 3 лет назад
Родитель
Сommit
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()
       }else{
         //没有miniOpenId补miniOpenId
+        uni.showLoading({mask:true})
         uni.login({
           provider: 'weixin',
           success: res => {
             postWxCode({ code: res.code }).then(subRes => {
+              uni.hideLoading()
               if(subRes.data.currentMiniOpenId){
                 let thisMiniOpenId = subRes.data.currentMiniOpenId
                 uni.setStorageSync('currentMiniOpenId',thisMiniOpenId)