Commit 6e729272 by 李伟康

修改登录样式&增加非服务商拦截

1 parent be9d0268
/* login/index/components/Agree/Agree.wxss */ /* login/index/components/Agree/Agree.wxss */
.agree { .agree {
margin-top: 274rpx; position: fixed;
left: 0;
bottom: 100rpx;
width: 100%;
text { text {
color: #5092FF; color: #5092FF;
} }
......
/* login/index/components/LoginBox.wxss */ /* login/index/components/LoginBox.wxss */
.box { .box {
height: 800rpx; // height: 800rpx;
height: 750rpx;
.opacity-view { .opacity-view {
animation: opacity-view .5s forwards; animation: opacity-view .5s forwards;
...@@ -11,12 +12,14 @@ ...@@ -11,12 +12,14 @@
height: 458rpx; height: 458rpx;
position: absolute; position: absolute;
left: 151rpx; left: 151rpx;
top: 264rpx; // top: 264rpx;
top: 214rpx;
} }
.input-box { .input-box {
width: 540rpx; width: 540rpx;
padding-top: 352rpx; // padding-top: 352rpx;
padding-top: 302rpx;
margin: 0 auto; margin: 0 auto;
.title { .title {
......
/* login/index/components/TypeList.wxss */ /* login/index/components/TypeList.wxss */
.tips { .tips {
padding-top: 120rpx; padding-top: 100rpx;
text-align: center; text-align: center;
margin-bottom: 40rpx; margin-bottom: 40rpx;
} }
......
...@@ -28,6 +28,10 @@ const selectAccountLogin = ({ id, sessionId }) => { ...@@ -28,6 +28,10 @@ const selectAccountLogin = ({ id, sessionId }) => {
} }
/**设置登录信息 */ /**设置登录信息 */
const setLoginInfo = (userInfo, sessionId) => { const setLoginInfo = (userInfo, sessionId) => {
if(!userInfo) {
wx.$api.showToast('仅支持服务商类型账户登录')
return
}
setUserInfo(userInfo) setUserInfo(userInfo)
setSessionId(sessionId) setSessionId(sessionId)
loginSuccess() loginSuccess()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!