From e954472f26f028af52edb681e1fc3e0298df743a Mon Sep 17 00:00:00 2001 From: "geng.tang@qq.com" Date: Wed, 10 Jan 2024 13:45:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=91=E5=AE=9A=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/order.js | 2 +- api/shop/profitLog.js | 2 +- common/enum/order/DeliveryStatus.js | 2 +- common/enum/order/ReceiptStatus.js | 1 - package-lock.json | 12 + package.json | 2 + pages.json | 16 +- pages/order/index.vue | 18 +- pages/user/user.vue | 4 +- pages/withdraw/log/log.vue | 325 +++++++++++++++++++++ pages/withdraw/withdraw.vue | 421 ++++++++++++++++++++++++++++ websoft/api/merchant.js | 9 +- 12 files changed, 795 insertions(+), 19 deletions(-) create mode 100644 pages/withdraw/log/log.vue create mode 100644 pages/withdraw/withdraw.vue diff --git a/api/order.js b/api/order.js index 4431fc2..151fe80 100755 --- a/api/order.js +++ b/api/order.js @@ -8,7 +8,7 @@ const api = { express: 'order/express', cancel: 'order/cancel', extractQrcode: 'order/extractQrcode', - receipt: 'order/receipt', + receipt: '/open/equipment/receipt', pay: 'order/pay' } diff --git a/api/shop/profitLog.js b/api/shop/profitLog.js index dbb2b74..877f9d6 100644 --- a/api/shop/profitLog.js +++ b/api/shop/profitLog.js @@ -4,7 +4,7 @@ const api = { list: '/shop/profit-log/page', } -// 商品评价列表 +// 收益列表 export const list = (params, option) => { return http.get(api.list, {params}, option) } diff --git a/common/enum/order/DeliveryStatus.js b/common/enum/order/DeliveryStatus.js index 3a24f0e..6a86918 100755 --- a/common/enum/order/DeliveryStatus.js +++ b/common/enum/order/DeliveryStatus.js @@ -7,5 +7,5 @@ import Enum from '../enum' export default new Enum([ { key: 'NOT_DELIVERED', name: '未发货', value: 10 }, { key: 'DELIVERED', name: '已发货', value: 20 }, - { key: 'ACCEPT', name: '已绑定', value: 20 } + { key: 'ACCEPT', name: '已绑定', value: 40 } ]) diff --git a/common/enum/order/ReceiptStatus.js b/common/enum/order/ReceiptStatus.js index a775b8f..ebef82d 100755 --- a/common/enum/order/ReceiptStatus.js +++ b/common/enum/order/ReceiptStatus.js @@ -7,5 +7,4 @@ import Enum from '../enum' export default new Enum([ { key: 'NOT_RECEIVED', name: '未收货', value: 10 }, { key: 'RECEIVED', name: '已收货', value: 20 }, - { key: 'BINDED', name: '已绑定', value: 40 }, ]) diff --git a/package-lock.json b/package-lock.json index f388079..95a7bf5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,8 @@ "packages": { "": { "dependencies": { + "@dcloudio/uni-ui": "^1.4.28", + "async-validator": "^4.2.5", "dayjs": "^1.11.10", "luch-request": "^3.0.8" }, @@ -18,6 +20,16 @@ "resolved": "https://registry.npmjs.org/@dcloudio/types/-/types-2.6.12.tgz", "integrity": "sha512-mrCMwcINy1IFjU9VUqLeWBkj404yWs5paLDttBcA+eqUjanuUQbBcTVPqlrGgkyzLXDcV2oDDZRSNxNpXi4kMQ==" }, + "node_modules/@dcloudio/uni-ui": { + "version": "1.4.28", + "resolved": "https://registry.npmmirror.com/@dcloudio/uni-ui/-/uni-ui-1.4.28.tgz", + "integrity": "sha512-e/lSbvR79KH9+d3D4ueNbvD6szigjO/5IyjBNmiTqaj0PTS324fBV3L6f3s1qpkYonM4rdOl000hVOcAg6Gh/A==" + }, + "node_modules/async-validator": { + "version": "4.2.5", + "resolved": "https://registry.npmmirror.com/async-validator/-/async-validator-4.2.5.tgz", + "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==" + }, "node_modules/commander": { "version": "1.1.1", "resolved": "https://registry.npmmirror.com/commander/-/commander-1.1.1.tgz", diff --git a/package.json b/package.json index cb97860..5cfe781 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,7 @@ { "dependencies": { + "@dcloudio/uni-ui": "^1.4.28", + "async-validator": "^4.2.5", "dayjs": "^1.11.10", "luch-request": "^3.0.8" }, diff --git a/pages.json b/pages.json index 45bdc27..d49ac3c 100755 --- a/pages.json +++ b/pages.json @@ -69,7 +69,7 @@ "path": "pages/merchant/merchant", "style": { "navigationBarTitleText": "附近站点推荐", - "enablePullDownRefresh": false + "enablePullDownRefresh": true } }, @@ -369,11 +369,23 @@ } }, { - "path": "pages/dealer/poster", + "path": "pages/withdraw/withdraw", "style": { "navigationBarTitleText": "" } }, + { + "path": "pages/withdraw/log/log", + "style": { + "navigationBarTitleText": "提现记录", + "enablePullDownRefresh": false, + "disableScroll":false, + "app-plus" : { + "bounce" : "none" // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') + }, + "mp-alipay":{"allowsBounceVertical":"NO"} // 取消支付宝和钉钉小程序的iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') + } + }, { "path": "pages/dealer/order", "style": { diff --git a/pages/order/index.vue b/pages/order/index.vue index 74f1146..cd43895 100755 --- a/pages/order/index.vue +++ b/pages/order/index.vue @@ -15,14 +15,12 @@ 待支付 已完成 - - 待绑定 - 待收货 - - 已绑定 - - - 进行中 + 待绑定 + 待收货 + + 已绑定 + + 进行中 @@ -100,13 +98,13 @@ 去支付 - + 确认收货 - + 绑定设备 diff --git a/pages/user/user.vue b/pages/user/user.vue index dcffa22..b3f9e20 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -366,9 +366,9 @@ if(!this.isLogin){ return false; } - this.$navTo('package/dealer/withdraw/apply') + // this.$navTo('pages/dealer/withdraw/apply') + this.$navTo('pages/withdraw/withdraw') } - } } diff --git a/pages/withdraw/log/log.vue b/pages/withdraw/log/log.vue new file mode 100644 index 0000000..896cbf8 --- /dev/null +++ b/pages/withdraw/log/log.vue @@ -0,0 +1,325 @@ + + + + + diff --git a/pages/withdraw/withdraw.vue b/pages/withdraw/withdraw.vue new file mode 100644 index 0000000..c887f23 --- /dev/null +++ b/pages/withdraw/withdraw.vue @@ -0,0 +1,421 @@ + + + + + \ No newline at end of file diff --git a/websoft/api/merchant.js b/websoft/api/merchant.js index 3966b3b..2bf2bee 100644 --- a/websoft/api/merchant.js +++ b/websoft/api/merchant.js @@ -9,8 +9,15 @@ export const listMerchant = (params) => http.get('/shop/merchant', {params}) // 获取商户详情 export const getMerchant = (merchantId) => http.get('/shop/merchant/page', {merchantId}) +// 申请退款 +export const addWithdraw = (data) => http.post('/shop/merchant-withdraw/apply', data) + +export const withdrawPage = (params) => http.get('/shop/merchant-withdraw/page/app', {params}) + export default { pageMerchant, listMerchant, - getMerchant + getMerchant, + addWithdraw, + withdrawPage }