Răsfoiți Sursa

客户结账问题

shish 3 ani în urmă
părinte
comite
b133f4d24a
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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)