shish 1 год назад
Родитель
Сommit
3fe0b078b1

+ 21 - 3
hdApp/src/admin/home/workbench.vue

@@ -211,7 +211,7 @@
             <view class="tag_2" @click="pageTo({ url: '/admin/ghs/debtChange?ghsId='+ghsInfo.id})"> <text>欠款变动记录</text> </view>
             <view class="tag_2" @click="pageTo({ url: '/admin/clear/list?ghsId='+ghsInfo.id})"> <text>结账记录</text> </view>
             <view class="tag_2" @click="pageTo({url:'/pagesPurchase/shopping'})"> <text>买花记录</text> </view>
-            <view class="tag_2" @click.stop="callUp(ghsInfo.telephone)" style="color:green;font-weight:bold;"> <text>联系我们</text> </view>
+            <view class="tag_2" @click.stop="callUp(ghsInfo)" style="color:green;font-weight:bold;"> <text>联系我们</text> </view>
           </view>
           <view class="box_6 flex-row" @click="settleAccounts(ghsInfo)" v-if="Number(ghsInfo.debtAmount)>0">
             <view class="show_clear_area flex-row justify-between">
@@ -406,8 +406,26 @@ export default {
 			this.currentGhs = info
 			this.$refs.toShowMore.open('top')
     },
-    callUp (mobile) {
-      uni.makePhoneCall({ phoneNumber: mobile })
+    callUp (ghs) {
+      let mobileList = []
+      if (!this.$util.isEmpty(ghs.telephone)){
+        mobileList.push(ghs.telephone)
+      }
+      if (!this.$util.isEmpty(ghs.telephone2)){
+        mobileList.push(ghs.telephone2)
+      }
+      if(this.$util.isEmpty(mobileList)){
+        this.$msg('没有联系电话')
+        return false
+      }
+			uni.showActionSheet({
+				itemList: mobileList,
+				success: function (respond) {
+					let currentIndex = respond.tapIndex
+					let mobile = mobileList[currentIndex]
+          uni.makePhoneCall({ phoneNumber: mobile })
+				}
+			})
     },
     toPhone(){
 			uni.makePhoneCall({ phoneNumber:'15280215347' })

+ 21 - 3
hdApp/src/pagesPurchase/order.vue

@@ -68,7 +68,7 @@
                 <view class="tag_2" @click="pageTo({ url: '/admin/ghs/debtChange?ghsId='+ghsInfo.id})"> <text>欠款变动记录</text> </view>
                 <view class="tag_2" @click="pageTo({ url: '/admin/clear/list?ghsId='+ghsInfo.id})"> <text>结账记录</text> </view>
                 <view class="tag_2" @click="pageTo({url:'/pagesPurchase/shopping'})"> <text>买花记录</text> </view>
-                <view class="tag_2" @click.stop="callUp(ghsInfo.telephone)" style="color:green;font-weight:bold;"> <text>联系我们</text> </view>
+                <view class="tag_2" @click.stop="callUp(ghsInfo)" style="color:green;font-weight:bold;"> <text>联系我们</text> </view>
               </view>
               <view class="box_6 flex-row" @click.stop="settleAccounts(ghsInfo)" v-if="Number(ghsInfo.debtAmount)>0">
                 <view class="show_clear_area flex-row justify-between">
@@ -168,8 +168,26 @@ export default {
 			this.currentGhs = info
 			this.$refs.toShowMore.open('top')
     },
-    callUp (mobile) {
-      uni.makePhoneCall({ phoneNumber: mobile })
+    callUp (ghs) {
+      let mobileList = []
+      if (!this.$util.isEmpty(ghs.telephone)){
+        mobileList.push(ghs.telephone)
+      }
+      if (!this.$util.isEmpty(ghs.telephone2)){
+        mobileList.push(ghs.telephone2)
+      }
+      if(this.$util.isEmpty(mobileList)){
+        this.$msg('没有联系电话')
+        return false
+      }
+			uni.showActionSheet({
+				itemList: mobileList,
+				success: function (respond) {
+					let currentIndex = respond.tapIndex
+					let mobile = mobileList[currentIndex]
+          uni.makePhoneCall({ phoneNumber: mobile })
+				}
+			})
     },
     toPhone(){
 			uni.makePhoneCall({ phoneNumber:'15280215347' })

+ 5 - 1
hdApp/src/pagesPurchase/purDetails.vue

@@ -8,6 +8,10 @@
         <view>
           <view> {{ detailInfo.ghsName }} {{ detailInfo.ghsMobile||'' }} </view>
           <view>{{ detailInfo.ghsFullAddress}}</view>
+          <view v-if="detailInfo.ghsMobile2!=''" style="margin-top:20upx;font-size:32upx;" @click.stop="callUp(detailInfo.ghsMobile2)">
+            联系电话2 {{ detailInfo.ghsMobile2 }}
+            <i @click.stop="callUp(detailInfo.ghsMobile2)" class="iconfont icondianhua1" style="margin-left:30upx;font-size:52upx;color: #3385ff;"></i>
+          </view>
         </view>
         <view>
           <i @click.stop="callUp(detailInfo.ghsMobile)" class="iconfont icondianhua1" style="margin-right:25upx;"></i>
@@ -575,7 +579,7 @@ export default {
     & > view:nth-child(2) {
       display: flex;
       & .icondianhua1 {
-        font-size: 50upx;
+        font-size: 54upx;
         color: #3385ff;
         margin-left: 0upx;
       }