DaMowang пре 2 година
родитељ
комит
f29e5704eb
3 измењених фајлова са 9 додато и 18 уклоњено
  1. 1 1
      src/pages/cash/index.vue
  2. 3 3
      src/pages/sign/index.vue
  3. 5 14
      src/pages/top-up/index.vue

+ 1 - 1
src/pages/cash/index.vue

@@ -7,7 +7,7 @@
             <view class="option flex_r flex_ac flex_jb">
                 <view class="balance flex_r flex_ac">
                     <span>账户{{ islocal?'余额':'云宝' }}:{{ user_money }}</span>
-                    <span>可提:{{ available_money }}</span>
+                    <span v-if="islocal">可提:{{ available_money }}</span>
                 </view>
                 <view class="option_text" @tap="getListPage">提现记录</view>
             </view>

+ 3 - 3
src/pages/sign/index.vue

@@ -16,12 +16,12 @@
             <view class="sign_info flex_c">
                 <view class="info flex_r flex_ac flex_jb">
                     <view class="info_today flex_c flex_ac">
-                        <view class="today_text g_color">{{ todaySign }}</view>
+                        <view class="today_text g_color">{{ todaySign || 0 }}</view>
                         <view class="info_text">今日签到</view>
                     </view>
                     <view class="info_today flex_c flex_ac">
-                        <view class="today_text">{{ totalSign }}</view>
-                        <view class="info_text">累计签到({{ totalSign || 0 }}次)</view>
+                        <view class="today_text">{{ totalSign || 0 }}</view>
+                        <view class="info_text">累计签到</view>
                     </view>
                     <view class="info_con">
                         <image class="info_img" :src="nextSign > 0 ? '/static/sgin/p_back2.png' : '/static/sgin/p_back.png'" mode="" />

+ 5 - 14
src/pages/top-up/index.vue

@@ -66,6 +66,7 @@ export default {
     },
     methods: {
         confimTopUp() {
+            let that = this
             if (!this.price) {
                 appEv.errTips("充值不能为0");
                 return;
@@ -73,19 +74,9 @@ export default {
                 appEv.errTips("请阅读并同意相关协议");
                 return;
             } else {
-                let type = "H5";
-                // #ifdef  H5
-                type = "H5";
-                // #endif
-                // #ifdef  APP
-                type = "app";
-                // #endif
-                // #ifdef  MP-WEIXIN
-                type = "jsapi";
-                // #endif
                 let data = {
                     type: this.type == "local" ? 2 : 1,
-                    trade_type: type,
+                    trade_type: "jsapi",
                     amount: this.price,
                 };
 
@@ -94,9 +85,9 @@ export default {
                         if (!rea) {
                             // 支付成功
                             appEv.errTips("支付成功");
-                            this.price = undefined;
-                            if(this.type == "local") this.getLU();
-                            else this.getuserInfo();
+                            that.$set(that,"price","");
+                            if(that.type == "local") that.getLU();
+                            else that.getuserInfo();
                         } else {
                             // 支付失败
                             appEv.errTips("支付已取消");