panhui 3 лет назад
Родитель
Сommit
721cff4d93
3 измененных файлов с 6 добавлено и 4 удалено
  1. BIN
      src/native/.DS_Store
  2. 3 1
      src/pages/home.vue
  3. 3 3
      src/pages/walletdetails.vue

BIN
src/native/.DS_Store


+ 3 - 1
src/pages/home.vue

@@ -176,7 +176,7 @@ export default {
             padding-top: 54px;
         }
         .info {
-            width: 100px;
+            min-width: 100px;
             color: #ffffff;
             text-align: center;
             font-size: 13px;
@@ -185,6 +185,8 @@ export default {
             background: rgba(255, 255, 255, 0.16);
             border-radius: 8px;
             margin: 5px 0 20px 20px;
+            padding: 0 10px;
+            display: inline-block;
         }
         .background {
             position: relative;

+ 3 - 3
src/pages/walletdetails.vue

@@ -97,7 +97,7 @@ export default {
                 });
                 return;
             }
-            if (this.form.amount < 1) {
+            if (Number(this.money) < 1) {
                 wx.showToast({
                     icon: 'none',
                     title: '金额不能低于1元',
@@ -122,7 +122,7 @@ export default {
                         account: '',
                         method: 'WECHAT',
                         name: '',
-                        amount: this.form.amount
+                        amount: Number(this.money)
                     })
                     .then(res => {
                         // console.log(res);
@@ -149,7 +149,7 @@ export default {
                 this.$http
                     .post('/roomMoneyWithdrawApply/apply', {
                         roomId: this.roomInfo.roomId,
-                        amount: this.form.amount
+                        amount: Number(this.money)
                     })
                     .then(res => {
                         // console.log(res);