43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
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: [],
|
|
license_cert_visible: false
|
|
},
|
|
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);})
|
|
},
|
|
show_license_cert(){
|
|
console.log("show_license_cert")
|
|
this.setData({
|
|
license_cert_visible: true
|
|
})
|
|
},
|
|
close_license_cert(e) {
|
|
const {
|
|
detail: { trigger },
|
|
} = e;
|
|
console.log("trigger: ", trigger);
|
|
console.log("close_license_cert")
|
|
this.setData({
|
|
license_cert_visible: false,
|
|
});
|
|
},
|
|
}) |