版本1.2.3

This commit is contained in:
xk_guohonglei
2020-10-14 11:40:08 +08:00
parent 80d2a48dec
commit 9320a99366
26 changed files with 2136 additions and 852 deletions

View File

@@ -14,21 +14,25 @@
<view class="pannel">
<view class="bg-white margin padding radius ">
<view class="cu-form-group radius " @tap="routerTo('/pages/login/posLogin/posLogin')">
<view class="title text-black">已有账号登录</view>
<view class="title mini-label text-black">已有账号登录</view>
<view class="cuIcon-right">
</view>
</view>
<view class="cu-form-group padding-top" @tap="routerTo('/pages/login/login')">
<view class="title text-black">首次认证登录</view>
<view class="title mini-label text-black">首次认证登录</view>
<view class="cuIcon-right">
</view>
</view>
</view>
</view>
<view class="margin text-center">
<view @tap="loginWeixin" class="cu-avatar xl bg-transparent">
<text class="cuIcon-weixin text-green "></text>
</view>
</view>
<view class="bottom-part">
<service-hotline />
</view>
@@ -62,7 +66,7 @@
provider: 'weixin',
success: loginRes => {
const code = loginRes.code
console.log(code)
console.log('启动页code', code)
loginApi.loginWeixin(code).then(res => {
if (res.code === 20000) {
uni.reLaunch({
@@ -93,13 +97,27 @@
uni.setStorageSync('userMenu', res.data.loginUser.procedureAuthList)
uni.setStorageSync('loginUser', {
id: res.data.loginUser.id,
name: res.data.loginUser.name
name: res.data.loginUser.name,
userPhone: res.data.loginUser.userPhone
})
} else if (res.code == 1002) {
uni.showModal({
title: '微信登录失败提醒',
content: `${res.msg}如有疑问,请联系客服处理`
})
} else {
console.log('res', res.code)
}
}).catch(err => {
uni.reLaunch({
url: '/pages/login/boforeLogin/boforeLogin',
fail: (err) => {
console.log(err)
}
})
})
},
fail: err => {
@@ -107,6 +125,8 @@
}
});
},
nextStep() {
if (this.oilSiteNo) {
cloudSiteApi.verifyOilSite({
@@ -230,6 +250,7 @@
.bottom-bg {
position: sticky;
bottom: 50upx;
}
</style>