From dee4ddcd6a6e1f4884101ec86b68d262f405c548 Mon Sep 17 00:00:00 2001 From: zq <136432190602163.com> Date: Thu, 30 Oct 2025 15:38:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=B6=E6=AC=BE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/addPay.vue | 15 +++- src/router/index.js | 17 ++-- src/views/HomeView.vue | 21 ++++- src/views/HosInformation.vue | 43 +++------ src/views/paymentMethod.vue | 209 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 260 insertions(+), 45 deletions(-) create mode 100644 src/views/paymentMethod.vue diff --git a/src/components/addPay.vue b/src/components/addPay.vue index d04ea1b..105df28 100644 --- a/src/components/addPay.vue +++ b/src/components/addPay.vue @@ -145,7 +145,7 @@ export default { // 拼多多授权url pddAuthUrl: { type: String, - default: '' + default: '' }, // 京东授权url jdAuthUrl: { @@ -165,6 +165,9 @@ export default { type: String, default: '' }, + checkAliPay:{ + type: Object, + } }, components: { @@ -234,7 +237,6 @@ export default { { required: true, message: '请输入支付宝账号', trigger: 'blur' } ], } - // localSiteInfo: { ...this.siteInfo } } }, @@ -399,7 +401,8 @@ export default { }) } }, - },watch: { + }, + watch: { visible(newVal) { this.addPayDialogVisible = newVal; }, @@ -408,6 +411,12 @@ export default { this.updateDialogByPayType(); this.resetForm(); // 切换支付方式时重置表单 }, + checkAliPay(newVal){ + if(newVal){ + this.alipayInfo = {...newVal} + console.log(this.alipayInfo,'newVal=====newVal'); + } + } } } diff --git a/src/router/index.js b/src/router/index.js index e6161f5..09bd999 100755 --- a/src/router/index.js +++ b/src/router/index.js @@ -78,16 +78,13 @@ const routes = [ } }, { - path: '/super/ranking', - component: () => import( /* webpackChunkName: "Ranking" */ '../views/super/Ranking/Ranking.vue'), - children: [ - { - path: 'checkProfit', - name: '产品毛利润排行', - component: () => import( /* webpackChunkName: "Ranking" */ '../views/super/Ranking/RankBatchList.vue'), - props: {pageTitle:'产品 - 毛利润排行', rank_type: 1, type: 'check_type'} - }, - ] + path: '/paymentMethod', + component: () => import( /* webpackChunkName: "paymentMethod" */ '../views/paymentMethod.vue'), + name: '收款方式', + meta: { + title: '收款管理', + hideBreadcrumb: true // 首页不显示面包屑 + } }, ] diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 8d9eebe..bfb231a 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -88,6 +88,9 @@ + + + @@ -102,6 +105,7 @@ import GuipButton from '@/components/GuipButton.vue'; import GuipSwitch from '@/components/GuipSwitch.vue'; import GuipInput from '@/components/GuipInput.vue'; import { mapState } from 'vuex'; +import PaymentMethod from '@/views/paymentMethod.vue'; export default { data() { @@ -138,7 +142,8 @@ export default { isIndeterminate: false, doctorList: false, allChecked: false, - pageShow:false + pageShow:false, + payList:[] } }, components: { @@ -148,6 +153,8 @@ export default { GuipButton, GuipSwitch, GuipTable, + PaymentMethod + // CustomDropdown }, created() { @@ -163,6 +170,7 @@ export default { store.commit('SET_CUSTOMIZE', false); store.commit('SET_SLIDER_MENU', 'menuData'); this.getInitData() + this.getBindpayList() }, computed: { ...mapState(['menuData']) // 从Vuex映射showSidebar状态到组件的计算属性中 @@ -189,6 +197,17 @@ export default { console.error(error, 'error') }) }, + async getBindpayList() { + await this.$http('POST', '/api/admin/get_pay_list', { + doctor_id: 3, + depart_id: 4 + }).then(response => { + this.payList.push(...response.data[2],...response.data[3]) + console.log(this.payList,response,'this.payList====00000'); + }).catch(error => { + console.error(error, 'error') + }) + }, inputBlur(val) { console.log(val, ''); this.getInitData() diff --git a/src/views/HosInformation.vue b/src/views/HosInformation.vue index c3c639a..4ecafd5 100644 --- a/src/views/HosInformation.vue +++ b/src/views/HosInformation.vue @@ -184,8 +184,8 @@

需在微信商户平台-产品中心开通Native支付

- - 前往绑定 + + 前往添加
@@ -231,8 +231,8 @@

需在支付宝商户平台-产品中心开通Native支付

- - 前往绑定 + + 前往添加
@@ -496,8 +496,7 @@ - + + \ No newline at end of file