This commit is contained in:
shijingjing
2022-05-26 15:27:17 +08:00
parent 249fdcf4ff
commit 56911c18e6
2 changed files with 19 additions and 20 deletions

View File

@@ -3,7 +3,7 @@
<div class="detail-header"> <div class="detail-header">
<div class="name"> <div class="name">
<h2>张三<span>返乡人员</span></h2> <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>
<div class="idNumber"> <div class="idNumber">
<span>身份证号</span> <span>身份证号</span>
@@ -59,17 +59,16 @@
data () { data () {
return { return {
info: {}, info: {},
pageShow: false,
checked: true, checked: true,
} }
}, },
// onLoad (query) { onLoad (query) {
// this.$loading() this.$dict.load(['epidemicTouchInFourteen', 'epidemicRecentHealth', 'epidemicRecentTestResult', 'epidemicHealthCode', 'epidemicVaccineTime']).then(() => {
// this.$dict.load(['epidemicTouchInFourteen', 'epidemicRecentHealth', 'epidemicRecentTestResult', 'epidemicHealthCode', 'epidemicVaccineTime']).then(() => { this.getInfo(query.id)
// this.getInfo(query.id) })
// }) this.getInfo(query.id)
// }, },
methods: { methods: {
preview (url) { preview (url) {
@@ -84,6 +83,12 @@
this.checked = !this.checked this.checked = !this.checked
}, },
call(phone) {
uni.makePhoneCall({
phoneNumber: phone
})
},
getInfo (id) { getInfo (id) {
this.$instance.post(`/app/appepidemichealthreport/queryDetailById?id=${id}`).then(res => { this.$instance.post(`/app/appepidemichealthreport/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) { if (res.code === 0) {
@@ -98,13 +103,7 @@
healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v) healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v)
}) })
this.info.healthName = healthName this.info.healthName = healthName
this.$nextTick(() => {
this.pageShow = true
})
} }
this.$hideLoading()
}) })
}, },

View File

@@ -3,16 +3,16 @@
<div class="detail-header"> <div class="detail-header">
<div class="user"> <div class="user">
<div class="header"> <div class="header">
<h3>张三</h3> <h3>{{ info.name }}</h3>
<div style="color: #4181FF;" @click="call('110')"><u-icon name="phone" color="#4181FF" size="28"></u-icon>拨打电话</div> <div style="color: #4181FF;" @click="call(info.phone)"><u-icon name="phone" color="#4181FF" size="28"></u-icon>拨打电话</div>
</div> </div>
<div class="idNumber"> <div class="idNumber">
<span>身份证号</span> <span>身份证号</span>
<span>220102200303078610</span> <span>{{ info.idNumber }}</span>
</div> </div>
<div class="phone"> <div class="phone">
<span>手机号码</span> <span>手机号码</span>
<span>13827263092</span> <span>{{ info.phone }}</span>
</div> </div>
<div class="picture"> <div class="picture">
<div class="healthPic"> <div class="healthPic">
@@ -80,7 +80,7 @@
<label>目的地</label> <label>目的地</label>
</div> </div>
<div class="right"> <div class="right">
<span>{{ info.startAddress }}</span> <span>{{ info.arriveAreaName }}</span>
</div> </div>
</div> </div>
@@ -89,7 +89,7 @@
<label>居住地点</label> <label>居住地点</label>
</div> </div>
<div class="right"> <div class="right">
<span>{{ info.startAddress }}</span> <span>{{ info.startAreaName }}</span>
</div> </div>
</div> </div>