Selaa lähdekoodia

fix: 修复钱包字段绑定

liangan 1 kuukausi sitten
vanhempi
sitoutus
10604d4cb6

+ 0 - 1
src/locale/bn.json

@@ -213,7 +213,6 @@
   "wallet.balance": "ওয়ালেট ব্যালেন্স",
   "wallet.frozenBalance": "ওয়ালেট হিমায়িত ব্যালেন্স",
   "wallet.recharge": "রিচার্জ",
-  "wallet.discount": "সর্বোচ্চ ছাড় ৫%",
   "wallet.withdrawNow": "এখনই উত্তোলন করুন",
   "wallet.record": "ওয়ালেট রেকর্ড",
   "wallet.filter.all": "সব",

+ 0 - 1
src/locale/en.json

@@ -214,7 +214,6 @@
   "wallet.balance": "Wallet Balance",
   "wallet.frozenBalance": "Wallet Frozen Balance",
   "wallet.recharge": "Recharge",
-  "wallet.discount": "Highest Discount 5%",
   "wallet.withdrawNow": "Withdraw Now",
   "wallet.record": "Wallet Record",
   "wallet.filter.all": "All",

+ 0 - 1
src/locale/zh-Hans.json

@@ -213,7 +213,6 @@
   "wallet.balance": "钱包余额",
   "wallet.frozenBalance": "钱包冻结余额",
   "wallet.recharge": "充值",
-  "wallet.discount": "最高优惠5%",
   "wallet.withdrawNow": "立即提现",
   "wallet.record": "钱包记录",
   "wallet.filter.all": "全部",

+ 1 - 1
src/pages/mine/mine.vue

@@ -110,7 +110,7 @@ async function getWalletInfo() {
   // 获取钱包信息-查询余额
   const res = await getWalletAccountInfo()
   console.log(res)
-  walletInfo.value = res?.data?.balance
+  walletInfo.value = res?.data
 }
 onShow(() => {
   getWalletInfo()

+ 1 - 4
src/pages/wallet/myWallet.vue

@@ -28,7 +28,7 @@ async function getWalletInfo() {
   // 获取钱包信息-查询余额
   const res = await getWalletAccountInfo()
   console.log(res)
-  walletInfo.value = res?.data?.balance
+  walletInfo.value = res?.data
 }
 const dataList = ref<any[]>([])
 async function getWalletFlowList(pageNo: number, pageSize: number) {
@@ -78,9 +78,6 @@ onShow(() => {
           <wd-button size="small" @click="toPage('/pages/wallet/recharge')">
             {{ $t('wallet.recharge') }}
           </wd-button>
-          <view class="mt-10rpx text-20rpx text-#595959">
-            {{ $t('wallet.discount') }}
-          </view>
         </view>
       </view>
       <view class="mb-20rpx flex justify-center">

+ 5 - 3
src/pages/wallet/withdraw.vue

@@ -20,6 +20,8 @@ defineOptions({
   name: 'Withdraw', // 提现
 })
 const userInfo = computed(() => {
+  console.log(getUserInfoHook().bank)
+
   return getUserInfoHook()
 })
 const queryParams = ref<any>({})
@@ -109,21 +111,21 @@ onLoad((options) => {
             :placeholder="t('wallet.withdraw.form.bankName')"
             no-border
             custom-class="bandhu-auth-input-field"
-            :disabled="userInfo.bank"
+            :disabled="Boolean(userInfo.bank)"
           />
           <wd-input
             v-model="formData.bankAccountName"
             :placeholder="t('wallet.withdraw.form.bankAccountName')"
             no-border
             custom-class="bandhu-auth-input-field"
-            :disabled="userInfo.bankAccountName"
+            :disabled="Boolean(userInfo.bankAccountName)"
           />
           <wd-input
             v-model="formData.bankAccount"
             :placeholder="t('wallet.withdraw.form.bankAccountNo')"
             no-border
             custom-class="bandhu-auth-input-field"
-            :disabled="userInfo.bankAccountName"
+            :disabled="Boolean(userInfo.bankAccountName)"
           />
           <view class="flex items-center gap-20rpx">
             <wd-input