Commit a0bef573 by 谢中龙

导购登录优化

parent 1edf109c
{
"navigationBarTitleText": "会员",
"navigationBarTitleText": "标签会员",
"usingComponents": {}
}
\ No newline at end of file
......@@ -18,7 +18,6 @@ wxService.page({
*/
onLoad: function (options) {
const currentEnv = wx.getStorageSync('_qyWeChat');
console.log(currentEnv)
if(!currentEnv){
wx.showToast({
title: '请在企业微信中使用导购!',
......@@ -105,12 +104,12 @@ wxService.page({
fail: err => {
console.log('获取企业微信信息失败,失败信息是----', err)
}
})
});
}
else{
//不是在企业微信内打开的 提示信息
wx.showToast({
title: '请在企业微信内打开!',
title: '请在企业微信内打开并登录!',
icon: 'none'
});
}
......@@ -131,7 +130,6 @@ wxService.page({
wxService.post('/member/qiyeweixin/minaLogin', param).then(r => {
wx.setStorageSync('guidInfo', userInfo);
wx.setStorageSync('token', r.data.data.token);
console.log('login token -----', r.data.data.token)
let qiyeLoginUserInfo = r.data.data;
wx.setStorageSync('guidBaseInfo', qiyeLoginUserInfo);
wx.hideLoading();
......@@ -139,7 +137,6 @@ wxService.page({
url: '/shoppingGuid/page/pages/home/home',
});
})
},
//进入商城
......
<!--shoppingGuid/page/pages/welcomGuider/welcomGuider.wxml-->
<view class='login'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/welcom.png' mode='widthFix'></image>
<view class='tips' wx:if="{{show}}">对不起,请在企业微信中使用导购功能!</view>
<button type='primary' bindtap='onTapGetEnterpriseUserInfo' disabled='{{btnIsDisabled}}'>立即进入</button>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_welcom_guide.jpg' mode='widthFix'></image>
<view class='tips-dark' wx:if="{{show}}">对不起,导购功能只能在企业微信中使用!</view>
<view class='tips'>使用微信快捷登录,可免去信息填写</view>
<button class='enter-guide' bindtap='onTapGetEnterpriseUserInfo'>确 认</button>
<button class='enter-mall' bindtap='onTapToMall'>进入商城</button>
</view>
......@@ -8,12 +8,12 @@
}
.login image{
width: 160rpx;
margin-bottom: 200rpx;
width: 300rpx;
margin-bottom: 120rpx;
}
.login button{
width: 300rpx;
width: 400rpx;
font-size: 28rpx;
}
......@@ -24,11 +24,36 @@
}
.tips{
font-size: 24rpx;
font-size: 28rpx;
color: #333333;
width: 100%;
height: auto;
margin-bottom: 10rpx;
display: flex;
justify-content: center;
}
.tips-dark{
font-size: 20rpx;
color: #999999;
width: 100%;
height: auto;
margin-bottom: 30rpx;
display: flex;
justify-content: center;
}
.enter-guide{
background: #0091FF !important;
margin-top: 20rpx;
appearance: none;
color: #ffffff !important;
}
.enter-guide:active{
opacity: 0.7;
}
.enter-guide::after{
border: none;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment