师傅详情增加拨号
This commit is contained in:
parent
ccb4538499
commit
82d71131e4
|
@ -296,6 +296,12 @@ function getUrlParams(url) {
|
||||||
return params
|
return params
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function callPhone(phoneNumber) {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: phoneNumber
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
time,
|
time,
|
||||||
datetime,
|
datetime,
|
||||||
|
@ -312,4 +318,5 @@ export default {
|
||||||
chooseImage,
|
chooseImage,
|
||||||
isType,
|
isType,
|
||||||
getUrlParams,
|
getUrlParams,
|
||||||
|
callPhone,
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@ export default {
|
||||||
name: response.data.worker.name,
|
name: response.data.worker.name,
|
||||||
type: response.data.worker.status,
|
type: response.data.worker.status,
|
||||||
avatar: response.data.worker.avatar,
|
avatar: response.data.worker.avatar,
|
||||||
|
mobile: response.data.worker.mobile,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return resolve(worker);
|
return resolve(worker);
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
<view class="type" :style="{ color: typeTextColor }">
|
<view class="type" :style="{ color: typeTextColor }">
|
||||||
<text>{{ typeText }}</text>
|
<text>{{ typeText }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="contact" @click="utils.callPhone(info.worker.mobile)">
|
||||||
|
<text class="mobile">TEL:{{ info.worker.mobile }}</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="service-info">
|
<view class="service-info">
|
||||||
|
@ -50,6 +53,7 @@ export default {
|
||||||
name: "worker-detail",
|
name: "worker-detail",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
utils: this.$utils,
|
||||||
models: this.$models,
|
models: this.$models,
|
||||||
typeText: "",
|
typeText: "",
|
||||||
typeTextColor: "",
|
typeTextColor: "",
|
||||||
|
@ -63,6 +67,7 @@ export default {
|
||||||
name: "",
|
name: "",
|
||||||
type: 0,
|
type: 0,
|
||||||
avatar: "",
|
avatar: "",
|
||||||
|
mobile: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
currentAppraiseCate: {},
|
currentAppraiseCate: {},
|
||||||
|
@ -167,6 +172,7 @@ export default {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
.head {
|
.head {
|
||||||
|
flex-shrink: 0;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
margin-right: 28rpx;
|
margin-right: 28rpx;
|
||||||
.cover {
|
.cover {
|
||||||
|
@ -177,6 +183,8 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.desc {
|
.desc {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -190,6 +198,16 @@ export default {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
.contact {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #8b9aed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.service-info {
|
.service-info {
|
||||||
|
|
Loading…
Reference in New Issue