diff --git a/common/api/common.js b/common/api/common.js index c79e6d5..970d115 100644 --- a/common/api/common.js +++ b/common/api/common.js @@ -54,5 +54,8 @@ export const getLatestNotices = (data = {})=> { return coreRequest(url.getLatestNotices, data, {}, "GET") } - +// 获取下单隐私协议 +export const getAgreementTxt = (data = {})=> { + return coreRequest(url.getAgreementTxt, data, {}, "GET") +} diff --git a/common/api/url.js b/common/api/url.js index 6579bf2..0b09450 100644 --- a/common/api/url.js +++ b/common/api/url.js @@ -49,6 +49,7 @@ export default { getPreStationList: `/oms2c/emisTmsScanRecord/getPreStationList`, // 获取-扫描上一网点 preCalcWaybillFee: `/oms2c/emisWaybill/preCalcWaybillFee`, // 报价试算 -- DONE calcProductFee: `/oms2c/emisWaybill/calcProductFee`, // 下单-报价试算 -- DONE + getAgreementTxt: `/oms2c/commonTools/getAgreementTxt`, // 获取下单隐私协议 -- DONE deleteBindSalemen: `/oms2c/emisWaybill/deleteBindSalemen`, // 删除绑定快递员 -- DONE setDefaultBindSalesmen: `/oms2c/emisWaybill/setDefaultBindSalesmen`, // 设置默认快递员 -- DONE diff --git a/components/buns-post-edit-templates/bpe-checkagree-tmp.vue b/components/buns-post-edit-templates/bpe-checkagree-tmp.vue index ec9a133..fe37cc7 100644 --- a/components/buns-post-edit-templates/bpe-checkagree-tmp.vue +++ b/components/buns-post-edit-templates/bpe-checkagree-tmp.vue @@ -54,6 +54,7 @@ } }, created() { + this.initData() }, onHide() { @@ -63,6 +64,10 @@ }, methods: { + async initData(){ + let res = await apiService.getAgreementTxt() + debugger + }, handleAgree() { this.modelInfo._agreePrivacy = !this.modelInfo._agreePrivacy },