From 3cdbee5070d465ad56d106c5b65e96df41070e43 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Mon, 7 Oct 2024 17:35:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.js | 11 +- pages/index/cart.vue | 3 + pages_order/auth/wxLogin.vue | 4 +- .../components/product/submitUnitSelect.vue | 147 ++++++++++++++++----- pages_order/mine/address.vue | 15 ++- 5 files changed, 142 insertions(+), 38 deletions(-) diff --git a/api/api.js b/api/api.js index 7df253e..871475a 100644 --- a/api/api.js +++ b/api/api.js @@ -21,7 +21,6 @@ const config = { limit : 500, showLoading : true, }, - // 修改个人信息接口 updateInfo: { url: '/info/updateInfo', @@ -30,6 +29,16 @@ const config = { limit : 500, showLoading : true, }, + //隐私政策 + getPrivacyPolicy: { + url: '/login/getPrivacyPolicy', + method: 'GET', + }, + //用户协议 + getUserAgreement: { + url: '/login/getUserAgreement', + method: 'GET', + }, } diff --git a/pages/index/cart.vue b/pages/index/cart.vue index 7641341..4c9a7c2 100644 --- a/pages/index/cart.vue +++ b/pages/index/cart.vue @@ -142,6 +142,9 @@ diff --git a/pages_order/mine/address.vue b/pages_order/mine/address.vue index d76d7e1..65f82d7 100644 --- a/pages_order/mine/address.vue +++ b/pages_order/mine/address.vue @@ -39,7 +39,15 @@ }, data() { return { - title: '新增地址' + title: '新增地址', + type : '', + } + }, + onLoad(args) { + this.type = args.type + + if(this.type == 'back'){ + this.addBtn() } }, onShow() { @@ -83,6 +91,11 @@ if (res.code == 200) { this.$refs.addressPopup.close() this.getAddressList() + + if(this.type == 'back'){ + uni.navigateBack(-1) + } + uni.showToast({ title: '操作成功', icon: 'none'