订单详情增加拨号
This commit is contained in:
parent
4c618d9814
commit
a0e78d2bd2
|
@ -256,6 +256,12 @@ function chooseImage(count) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function callPhone(phoneNumber) {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: phoneNumber
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
time,
|
time,
|
||||||
datetime,
|
datetime,
|
||||||
|
@ -270,4 +276,5 @@ export default {
|
||||||
toast,
|
toast,
|
||||||
formatNumber,
|
formatNumber,
|
||||||
chooseImage,
|
chooseImage,
|
||||||
|
callPhone,
|
||||||
}
|
}
|
||||||
|
|
|
@ -376,6 +376,9 @@ export default {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
line-height: 26rpx;
|
line-height: 26rpx;
|
||||||
margin-bottom: 16rpx;
|
margin-bottom: 16rpx;
|
||||||
|
.mobile {
|
||||||
|
margin: 0 10rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.detail {
|
.detail {
|
||||||
color: #2d2d2d;
|
color: #2d2d2d;
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
{{ order.address.name }}({{ order.address.sex == "男" ? "先生" : "女士" }})
|
{{ order.address.name }}({{ order.address.sex == "男" ? "先生" : "女士" }})
|
||||||
</text>
|
</text>
|
||||||
<text class="mobile">{{ order.address.mobile }}</text>
|
<text class="mobile">{{ order.address.mobile }}</text>
|
||||||
|
<text class="call" @click="utils.callPhone(order.address.mobile)">拨号</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="detail">
|
<view class="detail">
|
||||||
<text>{{ order.address.address }}{{ order.address.detail }}</text>
|
<text>{{ order.address.address }}{{ order.address.detail }}</text>
|
||||||
|
@ -383,6 +384,12 @@ export default {
|
||||||
.contact {
|
.contact {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
line-height: 26rpx;
|
line-height: 26rpx;
|
||||||
|
.mobile {
|
||||||
|
margin: 0 10rpx;
|
||||||
|
}
|
||||||
|
.call {
|
||||||
|
color: #8194f2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.detail {
|
.detail {
|
||||||
color: #2d2d2d;
|
color: #2d2d2d;
|
||||||
|
|
Loading…
Reference in New Issue