From b8b4fd6c5469d7a4bf2ee078b8d25ce706bbe430 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 10 Jan 2023 21:27:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=B3=A8=E5=86=8C=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/common/commonApi.js | 29 ++++++++++++++++++++ constant/url.js | 3 ++- pages.json | 9 +++++++ pages/login/register.vue | 46 +++++++++++++++++++++++++++----- pages/login/registerProtocol.vue | 37 +++++++++++++++++++++++++ 5 files changed, 117 insertions(+), 7 deletions(-) create mode 100644 pages/login/registerProtocol.vue diff --git a/api/common/commonApi.js b/api/common/commonApi.js index 25d549e..c5a47cd 100755 --- a/api/common/commonApi.js +++ b/api/common/commonApi.js @@ -100,3 +100,32 @@ export function uploadImageAsync(_objData,_that) { }); }) } + +/** + * 刷新用户 + * @param {Object} _objData + */ +export function getRegisterProtocol(){ + return new Promise((resolve, reject) => { + requestNoAuth({ + url: url.listRegisterProtocol, + method: "GET", + data: { + page:1, + row:1 + }, //动态数据 + success: function(res) { + if (res.data.code == 0) { + resolve(res.data.data); + return; + } + reject(); + }, + fail: function(e) { + reject(); + } + }); + }) +} + + diff --git a/constant/url.js b/constant/url.js index 1c2c2d8..8396b88 100755 --- a/constant/url.js +++ b/constant/url.js @@ -185,7 +185,8 @@ export default { listReserveGoodsOrderTime:baseUrl+"app/reserveOrder.listMyReserveGoodsOrderTime", // 查询预约订单 deleteReserveGoodsPerson:baseUrl+"app/reserveOrder.deleteReserveGoodsPerson", // 查询预约订单 listProductSeckill: baseUrl + "app/productSeckill.listProductSeckill", - listProductGroup: baseUrl + "app/productGroup.listProductGroup", + listProductGroup: baseUrl + "app/productGroup.listProductGroup", + listRegisterProtocol: baseUrl + "app/system.listRegisterProtocol", NEED_NOT_LOGIN_PAGE: [ diff --git a/pages.json b/pages.json index 099885d..cc39dac 100755 --- a/pages.json +++ b/pages.json @@ -703,6 +703,15 @@ } } + ,{ + "path" : "pages/login/registerProtocol", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } ], "tabBar": { "color": "#272636", diff --git a/pages/login/register.vue b/pages/login/register.vue index 79980c4..9ec1704 100755 --- a/pages/login/register.vue +++ b/pages/login/register.vue @@ -18,9 +18,15 @@ - + + + + + + 我已阅读 + 《用户须知》 + + @@ -30,7 +36,7 @@ + +