diff --git a/api/login.js b/api/login.js index af9a1a0..9b062fa 100644 --- a/api/login.js +++ b/api/login.js @@ -14,6 +14,17 @@ export function resetByMobile(params) { }); } +/** + * 绑定手机号码 + * @param mobile + */ +export function bindMobile(params) { + return http.request({ + url: `/passport/member/bindMobile`, + method: "POST", + params, + }); +} //获取自动发券 export function getAutoCoup(){ diff --git a/pages.json b/pages.json index eca83d4..bbce918 100644 --- a/pages.json +++ b/pages.json @@ -275,6 +275,16 @@ } } }, + + { + "path": "set/securityCenter/bindMobile", + "style": { + "navigationBarTitleText": "绑定手机号", + "app-plus": { + + } + } + }, { "path": "im/list", diff --git a/pages/mine/set/personMsg.vue b/pages/mine/set/personMsg.vue index e9c477e..fbe56b3 100644 --- a/pages/mine/set/personMsg.vue +++ b/pages/mine/set/personMsg.vue @@ -22,6 +22,15 @@
{{ form.___path || '请选择城市' }}
+ + + + {{form.mobile}} + + + 绑定手机号码 + +
@@ -32,7 +41,7 @@ +