From dcd225028c395fac6e3078c2eaba6e2b298b3dfe Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Mon, 6 May 2024 11:51:21 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/user.js | 10 ++++
components/bindPhone.vue | 53 ++++++++++++++++++
pages/login/login.vue | 54 +++++++++++++------
pagesOrder/order/component/good.vue | 2 +-
pagesOrder/order/order.vue | 3 +-
store/user.js | 16 +++---
.../dist/dev/mp-weixin/pages/login/login.js | 53 ++++++++++++++++--
.../dist/dev/mp-weixin/pages/login/login.json | 3 +-
.../dist/dev/mp-weixin/pages/login/login.wxml | 2 +-
.../pagesOrder/order/component/good.js | 50 ++++++++---------
.../pagesOrder/order/component/good.wxml | 2 +-
.../dev/mp-weixin/pagesOrder/order/order.js | 5 +-
unpackage/dist/dev/mp-weixin/store/user.js | 8 ---
13 files changed, 194 insertions(+), 67 deletions(-)
create mode 100644 components/bindPhone.vue
diff --git a/api/user.js b/api/user.js
index bc7e670..bf1e4b7 100644
--- a/api/user.js
+++ b/api/user.js
@@ -10,6 +10,16 @@ export const userLoginWeixinApi = (data)=>{
return request.post('/login/mnpLogin', data);
}
+// 微信获取手机号
+export const getMobileByMnpApi = (data)=>{
+ return request.post('/user/User/getMobileByMnp', data);
+}
+
+// 更新信息
+export const loginUpdateUserApi = (data)=>{
+ return request.post('/login/updateUser', data);
+}
+
// 添加地址
export const addressCreateApi = (data)=>{
return request.post('/user/address/create', data);
diff --git a/components/bindPhone.vue b/components/bindPhone.vue
new file mode 100644
index 0000000..835b91a
--- /dev/null
+++ b/components/bindPhone.vue
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 868721e..3200376 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -16,8 +16,6 @@
微信快捷登录
-
使用短信验证登录
@@ -62,16 +60,33 @@
+