xuqiang 4 年之前
父節點
當前提交
41b66a3972
共有 3 個文件被更改,包括 18 次插入7 次删除
  1. 3 2
      src/pages/home.vue
  2. 3 3
      src/pages/login.vue
  3. 12 2
      src/pages/walletdetails.vue

+ 3 - 2
src/pages/home.vue

@@ -18,7 +18,7 @@
                         <div>
                             <div class="money1">
                                 <img class="money-img" src="../native/icon_jiage@3x (1).png" alt="" />
-                                <div class="money2">{{ list.moeny || 0 }}</div>
+                                <div class="money2">{{ list.balance || 0 }}</div>
                             </div>
                             <div class="text1">总预存金额</div>
                         </div>
@@ -131,7 +131,8 @@ export default {
             return '';
         }
     },
-    mounted() {
+    // mounted() {},
+    onShow() {
         this.$http.get('/api/mp/getRoomInfo').then(res => {
             this.list = res;
             // console.log(this.list);

+ 3 - 3
src/pages/login.vue

@@ -273,9 +273,9 @@ export default {
                 });
         },
         sendCode() {
-            if (this.sending) {
-                return;
-            }
+            // if (this.sending) {
+            //     return;
+            // }
             if (!/^1[3-9]\d{9}$/.test(this.phone)) {
                 wx.showToast({
                     icon: 'none',

+ 12 - 2
src/pages/walletdetails.vue

@@ -18,7 +18,8 @@
                 <div class="money">
                     <div class="box-left">
                         <img slot="left-icon" src="../native/tabbar/icon_jiage@3x.png" alt="" />
-                        <van-field
+                        <div class="money2">{{ money }}</div>
+                        <!-- <van-field
                             :border="false"
                             type="digit"
                             size="large"
@@ -26,7 +27,7 @@
                             @input="form.amount = $event.detail"
                             placeholder="请输入金额"
                         >
-                        </van-field>
+                        </van-field> -->
                     </div>
                     <div class="box-right" @click="seeFn">查看明细</div>
                 </div>
@@ -238,6 +239,15 @@ export default {
                         height: 15px;
                     }
                 }
+                .money2 {
+                    height: 40px;
+                    font-size: 36px;
+                    font-family: OSP-DIN, OSP;
+                    font-weight: normal;
+                    color: #000000;
+                    line-height: 40px;
+                    margin: 0 0 6px 2px;
+                }
                 .box-right {
                     width: 92px;
                     height: 36px;