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 @@ - + + + + + + + + @@ -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() + } } }