fx
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<div class="detail-header">
|
||||
<div class="name">
|
||||
<h2>张三<span>返乡人员</span></h2>
|
||||
<p><u-icon name="phone" color="#4181FF" size="28"></u-icon>拨打电话</p>
|
||||
<p @click="call(info.phone)"><u-icon name="phone" color="#4181FF" size="28"></u-icon>拨打电话</p>
|
||||
</div>
|
||||
<div class="idNumber">
|
||||
<span>身份证号:</span>
|
||||
@@ -59,17 +59,16 @@
|
||||
data () {
|
||||
return {
|
||||
info: {},
|
||||
pageShow: false,
|
||||
checked: true,
|
||||
}
|
||||
},
|
||||
|
||||
// onLoad (query) {
|
||||
// this.$loading()
|
||||
// this.$dict.load(['epidemicTouchInFourteen', 'epidemicRecentHealth', 'epidemicRecentTestResult', 'epidemicHealthCode', 'epidemicVaccineTime']).then(() => {
|
||||
// this.getInfo(query.id)
|
||||
// })
|
||||
// },
|
||||
onLoad (query) {
|
||||
this.$dict.load(['epidemicTouchInFourteen', 'epidemicRecentHealth', 'epidemicRecentTestResult', 'epidemicHealthCode', 'epidemicVaccineTime']).then(() => {
|
||||
this.getInfo(query.id)
|
||||
})
|
||||
this.getInfo(query.id)
|
||||
},
|
||||
|
||||
methods: {
|
||||
preview (url) {
|
||||
@@ -84,6 +83,12 @@
|
||||
this.checked = !this.checked
|
||||
},
|
||||
|
||||
call(phone) {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone
|
||||
})
|
||||
},
|
||||
|
||||
getInfo (id) {
|
||||
this.$instance.post(`/app/appepidemichealthreport/queryDetailById?id=${id}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
@@ -98,13 +103,7 @@
|
||||
healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v)
|
||||
})
|
||||
this.info.healthName = healthName
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.pageShow = true
|
||||
})
|
||||
}
|
||||
|
||||
this.$hideLoading()
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user