Browse Source

如果设置的送钱,则充值成功之后会显示一个红包,把它隐藏掉

shizhongqi 4 months ago
parent
commit
b232f25b4b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      mallApp/src/pages/member/rechargeResult.vue

+ 3 - 1
mallApp/src/pages/member/rechargeResult.vue

@@ -20,7 +20,7 @@
           </view>
 
           <view class="confirm-btn-wrap">
-            <button class="confirm-btn btn-primary" @click="myHb">我的红包</button>
+            <button v-if="moneyType == 'hb'" class="confirm-btn btn-primary" @click="myHb">我的红包</button>
             <button class="confirm-btn" @click="goBack">返回</button>
           </view>
         </view>
@@ -43,6 +43,7 @@ export default {
     return {
       actionType:0,//0充值 1结账
       hdInfo:{},
+      moneyType:'',
       form:{
         name:''
       },
@@ -64,6 +65,7 @@ export default {
           this.hdInfo = res.data.hd ? res.data.hd : {}
           let balance = this.hdInfo.balance ? this.hdInfo.balance : 0
           this.actionType = Number(balance)>0 ? 0 : 1
+          this.moneyType = res.data.moneyType ? res.data.moneyType : ''
         }
       })
       this.getUserInfo()