add file
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// Pages/index/index.js
|
||||
Page({
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
tabBarShow:false, //true/false
|
||||
})
|
||||
}
|
||||
},
|
||||
toGo(e){
|
||||
console.log(e.currentTarget.dataset.url)
|
||||
wx.switchTab({
|
||||
url: e.currentTarget.dataset.url
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-image": "tdesign-miniprogram/image/image"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<view class="title">请选择您的身份</view>
|
||||
<view>
|
||||
<view class="item">
|
||||
<t-image
|
||||
bindtap="toGo" data-url="/Pages/yaoshi/home/home"
|
||||
class="item_img"
|
||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yi.png"
|
||||
mode="heightFix"
|
||||
height="220rpx"
|
||||
aria-label="医师端"
|
||||
loading="slot"
|
||||
>
|
||||
<t-loading slot="loading" theme="circular" size="40rpx" loading />
|
||||
</t-image>
|
||||
</view>
|
||||
<view class="item">
|
||||
<t-image
|
||||
bindtap="toGo" data-url="/Pages/yaoshi/my/my"
|
||||
class="item_img"
|
||||
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yao.png"
|
||||
mode="heightFix"
|
||||
height="220rpx"
|
||||
aria-label="药师端"
|
||||
loading="slot">
|
||||
<t-loading slot="loading" theme="circular" size="40rpx" loading />
|
||||
</t-image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
.title{
|
||||
margin-top: 250rpx ;
|
||||
margin-left: 50rpx;
|
||||
margin-bottom: 100rpx;
|
||||
font-size: 50rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
.item{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-bottom: 100rpx;
|
||||
justify-content: center;
|
||||
align-content: center;
|
||||
}
|
||||
.item_img{
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
Reference in New Issue
Block a user