diff --git a/pages/venue/detail.vue b/pages/venue/detail.vue
index e06aa19..e99c828 100644
--- a/pages/venue/detail.vue
+++ b/pages/venue/detail.vue
@@ -20,6 +20,17 @@
+
+
+
+
+ 商户电话
+
+
+ {{ store.servicePhone }}
+
+
+
@@ -73,6 +84,11 @@ export default {
}
},
methods: {
+ // xuchao: 点击商户电话唤起拨号
+ callPhone() {
+ if (!this.store || !this.store.servicePhone) return
+ uni.makePhoneCall({ phoneNumber: String(this.store.servicePhone) })
+ },
loadDetail(shopId) {
const loc = uni.getStorageSync('lng') && uni.getStorageSync('lat')
? { lng: uni.getStorageSync('lng'), lat: uni.getStorageSync('lat') }
@@ -222,6 +238,11 @@ export default {
line-height: 1.6;
}
+/* xuchao: 可点击拨号的电话样式 */
+.phone-link {
+ color: #0088ff;
+}
+
/* 返回按钮 */
.back-btn {
position: fixed;