Quellcode durchsuchen

调整了联系客服

vaecebyZ vor 9 Monaten
Ursprung
Commit
ff2c2259ec
1 geänderte Dateien mit 25 neuen und 7 gelöschten Zeilen
  1. 25 7
      trip/index/index.vue

+ 25 - 7
trip/index/index.vue

@@ -79,12 +79,12 @@
 								<view class="driver-car">秋香代驾</view>
 								<view class="driver-car">秋香代驾</view>
 							</view>
 							</view>
 							<view class="driver-option">
 							<view class="driver-option">
-								<view class="customer">
+								<view class="customer" @click="customer">
 									<image
 									<image
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8090@2x.png/1.png"
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8090@2x.png/1.png"
 										mode=""></image>
 										mode=""></image>
 								</view>
 								</view>
-								<view class="call">
+								<view class="call" @click='callPhone'>
 									<image
 									<image
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8089@2x.png/1.png"
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8089@2x.png/1.png"
 										mode=""></image>
 										mode=""></image>
@@ -130,12 +130,12 @@
 								<view class="driver-car">秋香代驾</view>
 								<view class="driver-car">秋香代驾</view>
 							</view>
 							</view>
 							<view class="driver-option">
 							<view class="driver-option">
-								<view class="customer">
+								<view class="customer" @click="customer">
 									<image
 									<image
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8090@2x.png/1.png"
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8090@2x.png/1.png"
 										mode=""></image>
 										mode=""></image>
 								</view>
 								</view>
-								<view class="call">
+								<view class="call" @click='callPhone'>
 									<image
 									<image
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8089@2x.png/1.png"
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8089@2x.png/1.png"
 										mode=""></image>
 										mode=""></image>
@@ -176,12 +176,12 @@
 								<view class="driver-car">秋香代驾</view>
 								<view class="driver-car">秋香代驾</view>
 							</view>
 							</view>
 							<view class="driver-option">
 							<view class="driver-option">
-								<view class="customer">
+								<view class="customer" @click="customer">
 									<image
 									<image
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8090@2x.png/1.png"
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8090@2x.png/1.png"
 										mode=""></image>
 										mode=""></image>
 								</view>
 								</view>
-								<view class="call">
+								<view class="call" @click='callPhone'>
 									<image
 									<image
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8089@2x.png/1.png"
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8089@2x.png/1.png"
 										mode=""></image>
 										mode=""></image>
@@ -221,7 +221,7 @@
 								<view class="driver-car">秋香代驾</view>
 								<view class="driver-car">秋香代驾</view>
 							</view>
 							</view>
 							<view class="driver-option">
 							<view class="driver-option">
-								<view class="customer">
+								<view class="customer" @click="customer">
 									<image
 									<image
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8090@2x.png/1.png"
 										src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe8e5874d67a7dbd842c5a/ext/GOODS_INFO/组 8090@2x.png/1.png"
 										mode=""></image>
 										mode=""></image>
@@ -681,6 +681,24 @@ export default {
 					console.log(res);
 					console.log(res);
 				}
 				}
 			});
 			});
+		},
+		callPhone(){
+			uni.makePhoneCall({
+				phoneNumber: this.driver.driverPhone
+			})
+		},
+		customer(){
+			uni.showModal({
+				title: '提示',
+				content: '是否拨打客服电话0851-86889969',
+				success: function (res) {
+					if (res.confirm) {
+						uni.makePhoneCall({
+							phoneNumber: '0851-86889969'
+						})
+					}
+				}
+			})
 		}
 		}
 	},
 	},
 	computed: {
 	computed: {