This commit is contained in:
haomingming
2023-03-06 17:57:39 +08:00
parent 3794faceae
commit 1066e37c96
4230 changed files with 193453 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
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);})
}
})
+7
View File
@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"t-image": "tdesign-miniprogram/image/image"
}
}
+43
View File
@@ -0,0 +1,43 @@
<!-- 执业认证结果页面 -->
<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}}" />
</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}}" />
</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="{{work_cert}}" />
</view>
</view>
</view>
</view>
+32
View File
@@ -0,0 +1,32 @@
.container{
height: 100vh;
background-color: #F6F6F6;
}
.imgbox_list{
margin-top: 20rpx;
background-color: #fff;
padding-left: 4vw;
height: 100%;
}
.imgbox{
display: flex;
}
.imgbox_title{
padding: 20rpx;
font-size: 30rpx;
}
.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);
}