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

5
src/pages/login/index.ts

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

6
src/pages/login/index.wxml

@ -21,10 +21,16 @@ @@ -21,10 +21,16 @@
<view class="divider">
<van-divider class="van-divider" contentPosition="center">或者</van-divider>
</view>
<view class="other">
<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 class="form" wx:if="{{showTel}}">
<view class="form-row">
<input

Loading…
Cancel
Save