Ver código fonte

协销机构列表增加拨打电话功能

zhengjinyi 1 ano atrás
pai
commit
f96d28524d

+ 10 - 1
pages/seller/club/list.vue

@@ -147,7 +147,9 @@
                                 </view>
                                 <view class="list-ntel" v-if="tabSmallCurrentIndex !== 1">
                                     <text class="list-link">{{ club.linkMan ? club.linkMan : '' }}</text>
-                                    <text class="list-texl">{{ club.contractMobile ? club.contractMobile : '' }}</text>
+                                    <text class="list-texl" @click="handlePhone(club.contractMobile)">
+									{{ club.contractMobile ? club.contractMobile : '' }}
+									</text>
                                 </view>
                                 <view class="list-ntel" v-if="listQuery.type === 6">
                                     <text class="list-link">分配时间:{{ club.providerTime | dateConversion }}</text>
@@ -544,6 +546,12 @@ export default {
                 this.$api.navigateTo(`/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0`)
             }
         },
+		// 拨打电话
+		handlePhone(phoneNumber){
+			uni.makePhoneCall({
+				phoneNumber: phoneNumber //拨打电话
+			});
+		},
         onShowClose() {
             //输入框失去焦点时触发
             if (this.listQuery.name != '') {
@@ -874,6 +882,7 @@ page,
                     .list-texl {
                         display: inline-block;
                         float: left;
+						text-decoration: underline;
                     }
                 }
             }

+ 3 - 1
pages/seller/order/components/details/cm-order-temp.vue

@@ -80,11 +80,13 @@ export default {
 			const data = shopOrderId + ''
 			thorui.getClipboardData(data, res => {
 				if (res) {
+					uni.hideToast()
 					this.$util.msg('复制成功', 2000, true, 'success')
 				} else {
+					uni.hideToast()
 					this.$util.msg('复制失败', 2000, true, 'none')
 				}
-			})
+			}) 
 		}
 	}
 }