Browse Source

Merge branch 'master' of http://47.92.161.104:10080/zkx/jp-xqjy into master

zhupeng 3 years ago
parent
commit
42c8c8ab3d
1 changed files with 8 additions and 2 deletions
  1. 8 2
      pages/user/index.vue

+ 8 - 2
pages/user/index.vue

@@ -69,8 +69,8 @@
 					<u-icon custom-prefix="custom-icon" name="customer-service-fill" color="#FF695B" size="40"></u-icon>
 					<h4>联系客服</h4>
 				</view>
-				<view class="user-cell-r">
-					<span>0716-8123456</span>
+				<view class="user-cell-r" @click="callPhone()">
+					<span v-text="tel"></span>
 					<u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
 				</view>
 			</view>
@@ -118,6 +118,7 @@
 	export default {
 		data() {
 			return {
+				tel:"0716-81234567",
 				phone:'13623239823',
 				checked: false,
 				//publicNot:false,
@@ -136,6 +137,11 @@
 		},
 		 
 		methods:{
+			callPhone(){
+				uni.makePhoneCall({
+				    phoneNumber:this.tel //仅为示例
+				});
+			},
 			change(status) {
 				console.log(status);
 			},