From 65b9d9b3c39f3cc1b178c1d21a8612fbe7a4f0cd Mon Sep 17 00:00:00 2001
From: aihe <961836564@qq.com>
Date: Fri, 19 Jul 2024 01:39:28 +0800
Subject: [PATCH] uu
---
common/api/order.js | 9 +++
common/api/url.js | 2 +
pages.json | 6 --
pages/user/certification.vue | 2 +-
pages/user/monthCardEdit.vue | 141 -----------------------------------
pages/user/monthCardList.vue | 63 ++++++++++++++--
6 files changed, 69 insertions(+), 154 deletions(-)
delete mode 100644 pages/user/monthCardEdit.vue
diff --git a/common/api/order.js b/common/api/order.js
index 6ce2f5e..0097291 100644
--- a/common/api/order.js
+++ b/common/api/order.js
@@ -101,6 +101,15 @@ export const cancelOrder = (data = {})=> {
return coreRequest(url.cancelOrder, data, {})
}
+// 绑月结卡-发送邮件验证码
+export const sendBindMonthPayCode = (data = {})=> {
+ return coreRequest(url.sendBindMonthPayCode, data, {}, "get")
+}
+
+// 确认绑定月结卡
+export const verifyBindMonthPayCode = (data = {})=> {
+ return coreRequest(url.verifyBindMonthPayCode, data, {}, "get")
+}
// 扫描
export const scanRecord = (data = {})=> {
diff --git a/common/api/url.js b/common/api/url.js
index 7513016..23e48ce 100644
--- a/common/api/url.js
+++ b/common/api/url.js
@@ -39,6 +39,8 @@ export default {
getOrderList: `/oms2c/emisWaybill/listSimple`, // 订单列表 -- DONE
getOrderDetail: `/oms2c/emisWaybill/getWaybillDetail`, // 订单详情 -- DONE
cancelOrder: `/emis/emisWaybill/cancelOrder`, // 取消订单 -- DONE
+ sendBindMonthPayCode: `/oms2c/emisWaybill/bindMonthPayCode`, // 绑月结卡-发送邮件验证码 -- DONE
+ verifyBindMonthPayCode: `/oms2c/emisWaybill/verifyBindMonthPayCode`, // 确认绑定月结卡 -- DONE
scanRecord: `/oms2c/emisTmsScanRecord/scan`, // 扫描- 揽收
getRealGetWaybillPrintData: `/oms2c/emisWaybill/realGetPrintList`, // 运单 打印数据
queryPrintListSimple: `/oms2c/emisWaybill/queryPrintListSimple`, // 运单 打印数据-列表
diff --git a/pages.json b/pages.json
index d6ad19f..de881fb 100644
--- a/pages.json
+++ b/pages.json
@@ -153,12 +153,6 @@
"navigationBarTitleText": "月结卡列表"
}
},
- {
- "path": "pages/user/monthCardEdit",
- "style": {
- "navigationBarTitleText": "月结卡编辑"
- }
- },
{
"path": "pages/user/exclusiveCourier",
"style": {
diff --git a/pages/user/certification.vue b/pages/user/certification.vue
index 714dcd7..6fcd481 100644
--- a/pages/user/certification.vue
+++ b/pages/user/certification.vue
@@ -9,7 +9,7 @@
-
diff --git a/pages/user/monthCardEdit.vue b/pages/user/monthCardEdit.vue
deleted file mode 100644
index 76591e3..0000000
--- a/pages/user/monthCardEdit.vue
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- 智能识别
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确定
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/user/monthCardList.vue b/pages/user/monthCardList.vue
index d7fb85b..afe4f27 100644
--- a/pages/user/monthCardList.vue
+++ b/pages/user/monthCardList.vue
@@ -60,8 +60,44 @@
-
+
+
+
+
+
+
+
+
+
+ 申请绑定
+
+
+
+
+
+ {{ bindModal.data._msg }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确认
+
+
+
+
+
@@ -71,9 +107,6 @@
export default {
props: {
- // hasLeftWin: {
- // type: Boolean
- // }
},
computed: {
@@ -85,6 +118,10 @@
},
resData: { list: [] },
queryOption: {},
+ bindModal: {
+ show: false,
+ data: {}
+ }
}
},
onLoad(queryOption) {
@@ -97,9 +134,23 @@
getListFun: apiService.getMonthpayAccountList,
initData(){
},
- handleEditItem(item={}) {
- this.goto(`user/monthCardEdit?id=${item.id}`)
+ triggerListReload(){
+ this?.$refs?.listRef?.getDataList?.(true) // 重置到第一页数据
},
+ handleEditItem(item={}) {
+ this.bindModal.show = true
+ this.bindModal.data = {}
+ },
+
+ async handleSendCode(){
+ let res = await apiService.sendBindMonthPayCode({ ...this.bindModal.data, _loading: true })
+ this.bindModal.data._msg = res.msg
+ },
+ async handleConfirmBind(){
+ let res = await apiService.verifyBindMonthPayCode({ ...this.bindModal.data, _loading: true })
+ this.showToast('绑定成功')
+ this.triggerListReload()
+ }
}
}