From eca5172b028340b8d644205cad19d434c4dec037 Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Wed, 15 Jan 2025 18:14:39 +0800 Subject: [PATCH 1/2] finish tid1819 --- src/pages.json | 6 + src/subpackage/wallet/js/api.js | 3 + .../wallet/pages/douyin_withdraw/index.vue | 15 ++- src/subpackage/wallet/pages/index/index.vue | 72 ++++++++++- .../wallet/pages/index/modules/recharge_modal.vue | 82 ++++++++++++ .../wallet/pages/index/modules/wallet_info.vue | 6 +- .../wallet/pages/index/recharge_record.vue | 141 +++++++++++++++++++++ 7 files changed, 313 insertions(+), 12 deletions(-) create mode 100644 src/subpackage/wallet/pages/index/modules/recharge_modal.vue create mode 100644 src/subpackage/wallet/pages/index/recharge_record.vue diff --git a/src/pages.json b/src/pages.json index 807b35a..267b780 100644 --- a/src/pages.json +++ b/src/pages.json @@ -759,6 +759,12 @@ } }, { + "path": "pages/index/recharge_record", + "style" : { + "navigationBarTitleText": "充值记录" + } + }, + { "path": "pages/douyin_withdraw/index", "style" : { "navigationBarTitleText": "平台提现" diff --git a/src/subpackage/wallet/js/api.js b/src/subpackage/wallet/js/api.js index 4ff0fc2..654bb3a 100644 --- a/src/subpackage/wallet/js/api.js +++ b/src/subpackage/wallet/js/api.js @@ -8,6 +8,9 @@ export const WALLET_API = { // 宝付 getPayAssureConfigs:`${ORIGIN}/admin/pay/assure/getPayAssureConfigs`, // 查看可选择的支付账户列表 baofuV2Gateway:`${ORIGIN}/admin/pay/assure/baofuV2/gateway`, // 宝付v2获取金额信息 + // tid1819 + wxpayinfo:`${ORIGIN}/admin/assistant/merchantwallet/wxpayinfo`, // 这个是充值 + rechargeList:`${ORIGIN}/admin/merchantwallet/recharge/list`, // 这是充值记录 } export default WALLET_API; \ No newline at end of file diff --git a/src/subpackage/wallet/pages/douyin_withdraw/index.vue b/src/subpackage/wallet/pages/douyin_withdraw/index.vue index 9c3665a..2264b47 100644 --- a/src/subpackage/wallet/pages/douyin_withdraw/index.vue +++ b/src/subpackage/wallet/pages/douyin_withdraw/index.vue @@ -5,14 +5,14 @@ title="微信平台可提现资金" :balance="formatMoney(balanceInfo.total_amount_of_wechat)" type="wx" - @click:extract="applyBtn(1)" + @click:extract="applyBtn(1, balanceInfo.total_amount_of_wechat)" > @@ -26,7 +26,7 @@ diff --git a/src/subpackage/wallet/pages/index/modules/recharge_modal.vue b/src/subpackage/wallet/pages/index/modules/recharge_modal.vue new file mode 100644 index 0000000..784cc5b --- /dev/null +++ b/src/subpackage/wallet/pages/index/modules/recharge_modal.vue @@ -0,0 +1,82 @@ + + + + + \ No newline at end of file diff --git a/src/subpackage/wallet/pages/index/modules/wallet_info.vue b/src/subpackage/wallet/pages/index/modules/wallet_info.vue index f450eb1..7826478 100644 --- a/src/subpackage/wallet/pages/index/modules/wallet_info.vue +++ b/src/subpackage/wallet/pages/index/modules/wallet_info.vue @@ -7,10 +7,10 @@ (用于购买服务使用) @@ -18,7 +18,7 @@ ¥ {{ balance }} - + 充值 diff --git a/src/subpackage/wallet/pages/index/recharge_record.vue b/src/subpackage/wallet/pages/index/recharge_record.vue new file mode 100644 index 0000000..6d5cbb9 --- /dev/null +++ b/src/subpackage/wallet/pages/index/recharge_record.vue @@ -0,0 +1,141 @@ + + + + + \ No newline at end of file From 95de40fc33f656b0a278e7db38caf23cc24ce6f5 Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Tue, 21 Jan 2025 18:29:23 +0800 Subject: [PATCH 2/2] fixed tid1819 --- src/subpackage/wallet/pages/douyin_withdraw/index.vue | 16 ++++++++++------ src/subpackage/wallet/pages/index/index.vue | 6 ++++-- src/subpackage/wallet/pages/index/recharge_record.vue | 10 +++------- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/subpackage/wallet/pages/douyin_withdraw/index.vue b/src/subpackage/wallet/pages/douyin_withdraw/index.vue index 2264b47..f11b299 100644 --- a/src/subpackage/wallet/pages/douyin_withdraw/index.vue +++ b/src/subpackage/wallet/pages/douyin_withdraw/index.vue @@ -5,14 +5,14 @@ title="微信平台可提现资金" :balance="formatMoney(balanceInfo.total_amount_of_wechat)" type="wx" - @click:extract="applyBtn(1, balanceInfo.total_amount_of_wechat)" + @click:extract="applyBtn(1)" > @@ -35,6 +35,7 @@ export default { }, data(){ return { + balance: '', brand_id: '', balanceInfo: { /** @@ -46,7 +47,9 @@ export default { } }, onLoad(options){ - this.brand_id = options.brand_id || ''; + this.brand_id = options?.brand_id || ''; + this.balance = options?.balance ?? ''; + }, onShow(){ this.getDouyinWalletBalance(this.brand_id); @@ -58,9 +61,10 @@ export default { }, // 申请提现 // md【241024】 241113新增 0抖音;1微信 - applyBtn(source, balance){ - if(!isNaN(balance) && balance < 0)return showModal({ - content: '系统检测到您在欧轩有未支付的账单,请先完成支付后再提现。点击“前往”跳转钱包页面', + applyBtn(source){ + let { balance } = this; + if(!isNaN(balance) && Number(balance) < 0)return showModal({ + content: '系统检测到您在欧轩有未支付的账单,请先完成支付后再提现。', confirmText: '前往', success: res=>{ if(res.confirm)routeTo(); diff --git a/src/subpackage/wallet/pages/index/index.vue b/src/subpackage/wallet/pages/index/index.vue index 04beb4d..0cc02a3 100644 --- a/src/subpackage/wallet/pages/index/index.vue +++ b/src/subpackage/wallet/pages/index/index.vue @@ -20,7 +20,7 @@ - + @@ -112,7 +112,9 @@ export default { }) }, dyBtnClick(){ - routeTo(`/subpackage/wallet/pages/douyin_withdraw/index?brand_id=${this.brand_id ?? ''}`, 'nT'); + let { brand_id, balance } = this; + let _qryStr = `brand_id=${brand_id ?? ''}&balance=${balance ?? 0}`; + routeTo(`/subpackage/wallet/pages/douyin_withdraw/index?${_qryStr}`, 'nT'); }, bfBtnClick(){ routeTo(`/subpackage/wallet/pages/baofu_withdraw/index?brand_id=${this.brand_id ?? ''}`, 'nT'); diff --git a/src/subpackage/wallet/pages/index/recharge_record.vue b/src/subpackage/wallet/pages/index/recharge_record.vue index 6d5cbb9..d557240 100644 --- a/src/subpackage/wallet/pages/index/recharge_record.vue +++ b/src/subpackage/wallet/pages/index/recharge_record.vue @@ -13,16 +13,12 @@ {{ e.pay_time || '-' }} {{ e.pay_type || '-' }} {{ e.trans_no || '-' }} - {{ e.optsourse || '-' }} + + {{ e.optsourse || '-' }} ({{ e.optname }}) + -