Browse Source

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

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

4
src/pages/login/index.scss

@ -50,6 +50,9 @@ page {
color: rgba(173, 172, 178, 1); color: rgba(173, 172, 178, 1);
} }
} }
.other {
display: flex;
align-items: center;
.tel-btn { .tel-btn {
margin: 20rpx auto 0; margin: 20rpx auto 0;
padding: 4rpx 0; padding: 4rpx 0;
@ -67,6 +70,7 @@ page {
height: 40rpx; height: 40rpx;
} }
} }
}
.form { .form {
margin-top: 50rpx; margin-top: 50rpx;
.form-row { .form-row {

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,

6
src/pages/login/index.wxml

@ -21,10 +21,16 @@
<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="other">
<view class="tel-btn" bind:tap="handleShowTel"> <view class="tel-btn" bind:tap="handleShowTel">
<image class="icon" src="{{imageUrl}}icon1.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon1.png?t={{Timestamp}}"></image>
手机号验证码 手机号验证码
</view> </view>
<view class="tel-btn" bind:tap="handlePatient">
<image class="icon" src="{{imageUrl}}icon1.png?t={{Timestamp}}"></image>
我是患者
</view>
</view>
<view class="form" wx:if="{{showTel}}"> <view class="form" wx:if="{{showTel}}">
<view class="form-row"> <view class="form-row">
<input <input

Loading…
Cancel
Save