分包医生
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { API } from '../../../../utils/network/api'
|
||||
let api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
|
||||
data: {
|
||||
navbarData: {
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '医师认证', //导航栏 中间的标题
|
||||
},
|
||||
height: app.globalData.height,
|
||||
license_cert: [],
|
||||
qualification_cert: [],
|
||||
work_cert: [],
|
||||
},
|
||||
onLoad(){
|
||||
api.getDoctorCret().then(response => {
|
||||
console.log(response);
|
||||
this.setData({
|
||||
license_cert: response.data.license_cert,
|
||||
qualification_cert: response.data.qualification_cert,
|
||||
work_cert: response.data.work_cert,
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
previewImage(e){
|
||||
let name = e.currentTarget.dataset.name;
|
||||
let name_date = this.data[name]
|
||||
|
||||
wx.previewImage({
|
||||
current: name_date[0], // 当前显示图片的http链接
|
||||
urls: name_date // 需要预览的图片http链接列表
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "../../../../commpents/te_navbar/index",
|
||||
"t-image": "tdesign-miniprogram/image/image"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<!-- 执业认证结果页面 -->
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="imgbox_list">
|
||||
<view class="imgbox_item">
|
||||
<view class="imgbox_title">医师执业证</view>
|
||||
<view class="imgbox">
|
||||
<t-image id="loading-img"
|
||||
shape="round"
|
||||
src="{{item}}"
|
||||
mode="heightFix"
|
||||
style="margin: 0 50rpx 0 20rpx;"
|
||||
width="220rpx" height="220rpx"
|
||||
aria-label="img" wx:for="{{license_cert}}"
|
||||
data-name="license_cert"
|
||||
bindtap="previewImage" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="imgbox_item">
|
||||
<view class="imgbox_title">医师资格证</view>
|
||||
<view class="imgbox">
|
||||
<t-image
|
||||
id="loading-img"
|
||||
shape="round"
|
||||
src="{{item}}"
|
||||
mode="heightFix"
|
||||
style="margin: 0 50rpx 0 20rpx;"
|
||||
width="220rpx" height="220rpx"
|
||||
aria-label="img" wx:for="{{qualification_cert}}"
|
||||
data-name="qualification_cert"
|
||||
bindtap="previewImage"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="imgbox_item">
|
||||
<view class="imgbox_title">职称证</view>
|
||||
<view class="imgbox">
|
||||
<t-image
|
||||
id="loading-img"
|
||||
shape="round" src="{{item}}"
|
||||
mode="heightFix"
|
||||
style="margin: 0 50rpx 20rpx 20rpx;"
|
||||
width="220rpx" height="220rpx"
|
||||
aria-label="img" wx:for="{{work_cert}}"
|
||||
data-name="work_cert"
|
||||
bindtap="previewImage"/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1,33 @@
|
||||
.container{
|
||||
height: 100vh;
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.imgbox_list{
|
||||
margin-top: 20rpx;
|
||||
background-color: #fff;
|
||||
padding-left: 4vw;
|
||||
height: 100%;
|
||||
}
|
||||
.imgbox{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.imgbox_title{
|
||||
padding: 20rpx;
|
||||
font-size: 20px;
|
||||
}
|
||||
.imgbox_item{
|
||||
position: relative;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
.imgbox_item::after {
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
content: ' ';
|
||||
pointer-events: none;
|
||||
right: 20rpx;
|
||||
left: 20rpx;
|
||||
bottom: 0;
|
||||
border-bottom: 1px solid var(--td-cell-border-color, var(--td-gray-color-3, #E3E4E5));
|
||||
transform: scaleY(0.5);
|
||||
}
|
||||
Reference in New Issue
Block a user