Browse Source

充值按钮在app不显示

xiaomei 4 months ago
parent
commit
6f19ff7919
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/mine/share.vue

+ 6 - 2
src/views/mine/share.vue

@@ -58,8 +58,8 @@
             <div class="total">
               <span>{{ Math.floor(balance * 100) / 100 || 0 }}</span>
             </div>
-            <div class="buy_box f-sb">
-              <div class="buy" @click="navigation('recharge')">
+            <div class="buy_box f-sa">
+              <div class="buy" @click="navigation('recharge')" v-if="h5">
                 <van-button class="buy_btn" type="primary">{{ $t('lang138') }}</van-button>
               </div>
               <div class="buy" @click="navigation('sendChaBao')">
@@ -243,6 +243,7 @@ export default {
       frozen: 0, // 标记茶宝资产
       teac_angel: 0, // teac天使资产
       coin_type: '',
+      h5: 1, //是否是h5端 0否 1是
     };
   },
   mounted() {
@@ -250,6 +251,9 @@ export default {
     // this.actionGet();
     this.assets();
     this.coinList();
+    if(localStorage.getItem('website')){
+      this.h5 = 0
+    }
   },
   methods: {
     //返回上一页