|
|
@@ -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' })
|