li.shaoyi %!s(int64=3) %!d(string=hai) anos
pai
achega
32c8ec7b1a

+ 13 - 0
src/packages/mobile/views/bank/wallet/components/withdraw/index.less

@@ -0,0 +1,13 @@
+.bank-wallet-withdraw {
+    .form-field {
+        .van-field__control {
+            display       : flex;
+            flex-direction: column;
+            align-items   : flex-start;
+        }
+
+        &__tips {
+            font-size: .24rem;
+        }
+    }
+}

+ 8 - 4
src/packages/mobile/views/bank/wallet/components/withdraw/index.vue

@@ -1,11 +1,11 @@
 <template>
-    <app-view class="g-form">
+    <app-view class="g-form bank-wallet-withdraw">
         <Form ref="formRef" class="g-form__container" @submit="formSubmit">
             <CellGroup inset>
-                <Field label="提现金额" v-model="formData.Amount" :rules="formRules.Amount" >
+                <Field class="form-field" label="提现金额" v-model="formData.Amount" :rules="formRules.Amount">
                     <template #input>
                         <input v-model="formData.Amount" placeholder="请填写提现金额" />
-                        <span>可出金额:{{ fund.AvailableOutMoney }}</span>
+                        <span class="form-field__tips">可出金额:{{ fund.AvailableOutMoney }}</span>
                     </template>
                 </Field>
                 <Field label="开户银行">
@@ -77,4 +77,8 @@ const formSubmit = () => {
         })
     })
 }
-</script>
+</script>
+
+<style lang="less">
+@import './index.less';
+</style>

+ 5 - 9
src/packages/mobile/views/home/components/mine/index.vue

@@ -41,8 +41,8 @@
           </div>
         </div>
         <div class="button">
-          <Button size="small" @click="doInOutMoney" round>提现</Button>
-          <Button type="primary" size="small" color="#00577C" @click="doInOutMoney" round>充值</Button>
+          <Button size="small" @click="doInOutMoney('1')" round>提现</Button>
+          <Button type="primary" size="small" color="#00577C" @click="doInOutMoney('0')" round>充值</Button>
         </div>
       </div>
     </div>
@@ -141,20 +141,16 @@ const onReady = (el: HTMLDivElement) => {
 }
 
 /// 进行出入金操作判断
-const doInOutMoney = (active: number) => {
+const doInOutMoney = (tab: string) => {
 
   console.log('xxxx', dataList.value)
   /// 当前未签约
-  if (dataList.value.length === 0 || dataList.value[0].signstatus === 1 ) {
+  if (dataList.value.length === 0 || dataList.value[0].signstatus === 1) {
     dialog('当前未签约,请先进行账户签约才进行出入金操作')
     return
   }
 
-  if (active == 0) {
-    router.push({ name: 'bank-wallet', query: { tab: '0' } })
-  } else {
-    router.push({ name: 'bank-wallet', query: { tab: '1' } })
-  }
+  router.push({ name: 'bank-wallet', query: { tab } })
 }
 
 // 检查是否已实名认证