diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 9b0d791..4ccd172 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -13,7 +13,7 @@ "type" : "uniCloud" }, { - "playground" : "standard", + "playground" : "custom", "type" : "uni-app:app-android" } ] diff --git a/pages/realName/index/pages/personDetail.vue b/pages/realName/index/pages/personDetail.vue index d177089..12353a4 100644 --- a/pages/realName/index/pages/personDetail.vue +++ b/pages/realName/index/pages/personDetail.vue @@ -1,251 +1,393 @@ @@ -254,183 +396,181 @@ import config from '@/config' export default { data() { return { - idNumber:'', - detailData:{}, - faceImgUrl:'', - showPopup1:false,//信息 - showPopup2:false,//培训考试 - contractData:{},//合同 - contractImgUrl:"", - showPopup3:false,//合同 - listCertificate:{},//持证 - showPopup4:false,//持证 + idNumber: '', + detailData: {}, + faceImgUrl: '', + showPopup1: false, //信息 + showPopup2: false, //培训考试 + contractData: {}, //合同 + contractImgUrl: '', + showPopup3: false, //合同 + listCertificate: {}, //持证 + showPopup4: false //持证 } }, onLoad(option) { - console.log(option) - this.idNumber=option.idNumber||""; - if(this.idNumber!=""){ - this.selectPersonQualificationsContent() - this.$forceUpdate() - } - }, - onShow() { - }, - methods: { - // 获取详情 - selectPersonQualificationsContent(){ - let param={ - idNumber:this.idNumber, - } - uni.request({ - url: config.realAppUrl+'/BasePerson/selectPersonQualificationsContent', - method: 'post', - data: param, - header: { - 'Content-Type': 'application/json;charset=UTF-8;', - Authorization: uni.getStorageSync('realNameToken') - }, - success: res => { - console.log(res) - res = res.data; - if(res.code==200){ - this.detailData=res.data; - this.faceImgUrl=config.realBaseUrl+res.data.facePhoto; - }else{ - uni.showToast({ - title: res.msg, - icon: 'none' - }) - } - }, - fail: err => { - console.log(err) - } - }) - }, - openInfo(){ - this.showPopup1=true; - }, - closePopup1(){ - this.showPopup1=false; - }, - openTrain(){ - this.showPopup2=true; - }, - closePopup2(){ - this.showPopup2=false; - }, - openContract(){ - this.contractData = this.detailData.listContract[0] - this.contractImgUrl=config.realBaseUrl+this.contractData.witnessPath; - this.showPopup3=true; - }, - closePopup3(){ - this.showPopup3=false; - }, - openListCertificate(){ - this.listCertificate = this.detailData.listCertificate[0] - this.showPopup4=true; - }, - closePopup4(){ - this.showPopup4=false; - }, - openPdf(){ - console.log("附件打开") - uni.navigateTo({ - url: `/pages/realName/workbench/qualifications/listCertificatePdf?pdfUrl=${this.listCertificate.certificateTypeFile}` - }) - }, - leftClick() { - console.log('返回') - uni.navigateBack({ - delta: 1 // 返回 - }); + console.log(option) + this.idNumber = option.idNumber || '' + if (this.idNumber != '') { + this.selectPersonQualificationsContent() + this.$forceUpdate() } }, - + onShow() {}, + methods: { + // 获取详情 + selectPersonQualificationsContent() { + let param = { + idNumber: this.idNumber + } + uni.request({ + url: config.realAppUrl + '/BasePerson/selectPersonQualificationsContent', + method: 'post', + data: param, + header: { + 'Content-Type': 'application/json;charset=UTF-8;', + Authorization: uni.getStorageSync('realNameToken') + }, + success: res => { + console.log(res) + res = res.data + if (res.code == 200) { + this.detailData = res.data + this.faceImgUrl = config.realBaseUrl + res.data.facePhoto + } else { + uni.showToast({ + title: res.msg, + icon: 'none' + }) + } + }, + fail: err => { + console.log(err) + } + }) + }, + openInfo() { + this.showPopup1 = true + }, + closePopup1() { + this.showPopup1 = false + }, + openTrain() { + this.showPopup2 = true + }, + closePopup2() { + this.showPopup2 = false + }, + openContract() { + this.contractData = this.detailData.listContract[0] + this.contractImgUrl = config.realBaseUrl + this.contractData.witnessPath + this.showPopup3 = true + }, + closePopup3() { + this.showPopup3 = false + }, + openListCertificate() { + this.listCertificate = this.detailData.listCertificate[0] + this.showPopup4 = true + }, + closePopup4() { + this.showPopup4 = false + }, + openPdf() { + console.log('附件打开') + uni.navigateTo({ + url: `/pages/realName/workbench/qualifications/listCertificatePdf?pdfUrl=${this.listCertificate.certificateTypeFile}` + }) + }, + leftClick() { + console.log('返回') + uni.navigateBack({ + delta: 1 // 返回 + }) + } + } } diff --git a/pages/workPlan/workPlan-details/index.vue b/pages/workPlan/workPlan-details/index.vue index c8ed0b7..e6e90cb 100644 --- a/pages/workPlan/workPlan-details/index.vue +++ b/pages/workPlan/workPlan-details/index.vue @@ -102,7 +102,7 @@