师傅详情增加拨号

This commit is contained in:
TOP糯米 2023-03-30 15:44:23 +08:00
parent ccb4538499
commit 82d71131e4
3 changed files with 26 additions and 0 deletions

View File

@ -296,6 +296,12 @@ function getUrlParams(url) {
return params
}
function callPhone(phoneNumber) {
uni.makePhoneCall({
phoneNumber: phoneNumber
});
}
export default {
time,
datetime,
@ -312,4 +318,5 @@ export default {
chooseImage,
isType,
getUrlParams,
callPhone,
}

View File

@ -35,6 +35,7 @@ export default {
name: response.data.worker.name,
type: response.data.worker.status,
avatar: response.data.worker.avatar,
mobile: response.data.worker.mobile,
}
}
return resolve(worker);

View File

@ -12,6 +12,9 @@
<view class="type" :style="{ color: typeTextColor }">
<text>{{ typeText }}</text>
</view>
<view class="contact" @click="utils.callPhone(info.worker.mobile)">
<text class="mobile">TEL{{ info.worker.mobile }}</text>
</view>
</view>
</view>
<view class="service-info">
@ -50,6 +53,7 @@ export default {
name: "worker-detail",
data() {
return {
utils: this.$utils,
models: this.$models,
typeText: "",
typeTextColor: "",
@ -63,6 +67,7 @@ export default {
name: "",
type: 0,
avatar: "",
mobile: "",
},
},
currentAppraiseCate: {},
@ -167,6 +172,7 @@ export default {
width: 100%;
display: flex;
.head {
flex-shrink: 0;
line-height: 0;
margin-right: 28rpx;
.cover {
@ -177,6 +183,8 @@ export default {
}
}
.desc {
position: relative;
width: 100%;
display: flex;
justify-content: space-around;
flex-direction: column;
@ -190,6 +198,16 @@ export default {
font-size: 24rpx;
font-weight: bold;
}
.contact {
position: absolute;
right: 0;
top: 0;
height: 100%;
display: flex;
align-items: center;
font-size: 28rpx;
color: #8b9aed;
}
}
}
.service-info {