Browse Source

医生端登录页增加切换患者端入口

dev
kola-web 4 weeks ago
parent
commit
9a6911ff77
  1. 30
      src/pages/login/index.scss
  2. 5
      src/pages/login/index.ts
  3. 12
      src/pages/login/index.wxml

30
src/pages/login/index.scss

@ -50,21 +50,25 @@ page {
color: rgba(173, 172, 178, 1); color: rgba(173, 172, 178, 1);
} }
} }
.tel-btn { .other {
margin: 20rpx auto 0;
padding: 4rpx 0;
width: 266rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; .tel-btn {
gap: 12rpx; margin: 20rpx auto 0;
background: #fff; padding: 4rpx 0;
border-radius: 24rpx; width: 266rpx;
font-size: 24rpx; display: flex;
color: rgba(173, 172, 178, 1); align-items: center;
.icon { justify-content: center;
width: 40rpx; gap: 12rpx;
height: 40rpx; background: #fff;
border-radius: 24rpx;
font-size: 24rpx;
color: rgba(173, 172, 178, 1);
.icon {
width: 40rpx;
height: 40rpx;
}
} }
} }
.form { .form {

5
src/pages/login/index.ts

@ -162,6 +162,11 @@ Page({
} }
}); });
}, },
handlePatient() {
wx.reLaunch({
url: '/patient/pages/login/index',
});
},
handleShowPopup() { handleShowPopup() {
this.setData({ this.setData({
popupShow: true, popupShow: true,

12
src/pages/login/index.wxml

@ -21,9 +21,15 @@
<view class="divider"> <view class="divider">
<van-divider class="van-divider" contentPosition="center">或者</van-divider> <van-divider class="van-divider" contentPosition="center">或者</van-divider>
</view> </view>
<view class="tel-btn" bind:tap="handleShowTel"> <view class="other">
<image class="icon" src="{{imageUrl}}icon1.png?t={{Timestamp}}"></image> <view class="tel-btn" bind:tap="handleShowTel">
手机号验证码 <image class="icon" src="{{imageUrl}}icon1.png?t={{Timestamp}}"></image>
手机号验证码
</view>
<view class="tel-btn" bind:tap="handlePatient">
<image class="icon" src="{{imageUrl}}icon1.png?t={{Timestamp}}"></image>
我是患者
</view>
</view> </view>
<view class="form" wx:if="{{showTel}}"> <view class="form" wx:if="{{showTel}}">
<view class="form-row"> <view class="form-row">

Loading…
Cancel
Save