diff --git a/api/model/login.js b/api/model/login.js index 42c5d5f..c818a04 100644 --- a/api/model/login.js +++ b/api/model/login.js @@ -10,6 +10,12 @@ const api = { limit : 500, showLoading : true, }, + // 获取绑定手机号码 + bindPhone: { + url: '/login_common/bindPhone', + method: 'GET', + auth: true, + }, // 修改个人信息接口 updateInfo: { url: '/info_common/updateInfo', diff --git a/pages/index/index.vue b/pages/index/index.vue index 4fc8614..4618437 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -7,7 +7,11 @@ - --> + + diff --git a/pages/index/member.vue b/pages/index/member.vue index 3c45927..05ff505 100644 --- a/pages/index/member.vue +++ b/pages/index/member.vue @@ -336,7 +336,7 @@ .middlex-minBox { display: flex; flex-direction: column; - padding: 60rpx 0rpx 0rpx 40rpx; + padding: 60rpx 0rpx 30rpx 40rpx; font-size: 24rpx; color: #474747; diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue index 73d06f4..038c1d6 100644 --- a/pages_order/auth/wxLogin.vue +++ b/pages_order/auth/wxLogin.vue @@ -6,6 +6,9 @@ 欢迎使用{{ configList.logo_name }} + + + @@ -15,9 +18,25 @@ 微信授权登录 - + + + + + 取消登录 + @@ -58,22 +77,29 @@ } }, methods: { - - wxLogin(){ + getPhoneNumber(e){ + console.log(e, e.detail.code); + this.wxLogin(phoneCode) + }, + wxLogin(phoneCode){ if(!this.checkboxValue.length){ return uni.showToast({ title: '请先同意隐私协议', icon:'none' }) } - this.$store.commit('login') + this.$store.commit('login', phoneCode) }, //打开应用配置 openConfigDetail(key){ this.$refs.popup.open(key) - } - + }, + qux(){ + uni.reLaunch({ + url: '/pages/index/index' + }) + }, } } @@ -112,6 +138,7 @@ } } .btn{ + all: unset; width: 80%; height: 100rpx; background-color: $uni-color; @@ -121,6 +148,10 @@ align-items: center; margin: 20rpx 0; border-radius: 20rpx; + border: none; + &::after{ + + } .icon{ margin-right: 10rpx; image{ diff --git a/pages_order/auth/wxUserInfo.vue b/pages_order/auth/wxUserInfo.vue index 24fa41d..738bc6d 100644 --- a/pages_order/auth/wxUserInfo.vue +++ b/pages_order/auth/wxUserInfo.vue @@ -1,5 +1,8 @@