Browse Source

[优化] 联系客服页面

new
邓平艺 4 years ago
parent
commit
c32bc0c011
  1. 12
      pages/contactService/index.vue

12
pages/contactService/index.vue

@ -6,22 +6,23 @@
</view> </view>
<view class="lf-row-between item"> <view class="lf-row-between item">
<view class="lf-color-gray">服务时间</view> <view class="lf-color-gray">服务时间</view>
<view>{{ info.service_period }}</view>
<view>{{ info.service_period || '-' }}</view>
</view> </view>
<view class="lf-row-between item" @click="makePhoneCall"> <view class="lf-row-between item" @click="makePhoneCall">
<view class="lf-color-gray">客服电话</view> <view class="lf-color-gray">客服电话</view>
<view style="color: #1E89FF!important;">{{ info.phone }}</view>
<view style="color: #1E89FF!important;">{{ info.phone || '-' }}</view>
</view> </view>
<view class="lf-row-between item"> <view class="lf-row-between item">
<view class="lf-color-gray">联系地址</view> <view class="lf-color-gray">联系地址</view>
<view style="max-width: 500rpx;">{{ info.address }}</view>
<view style="max-width: 500rpx;">{{ info.address || '-' }}</view>
</view> </view>
<view class="lf-row-between item"> <view class="lf-row-between item">
<view class="lf-color-gray">客服微信</view> <view class="lf-color-gray">客服微信</view>
<view>
<view v-if="info.wechat">
<text>{{ info.wechat }}</text> <text>{{ info.wechat }}</text>
<text class="lf-m-l-20 lf-color-primary" @click="copy">复制</text> <text class="lf-m-l-20 lf-color-primary" @click="copy">复制</text>
</view> </view>
<view v-else>-</view>
</view> </view>
<view class="lf-row-between item"> <view class="lf-row-between item">
<view class="lf-color-gray">当前版本</view> <view class="lf-color-gray">当前版本</view>
@ -46,11 +47,12 @@
// //
getInfo(){ getInfo(){
this.$http(this.API.API_CONTACT).then(res => { this.$http(this.API.API_CONTACT).then(res => {
this.info = res.data;
this.info = res.data || {};
}) })
}, },
// //
makePhoneCall(){ makePhoneCall(){
if(!this.info?.phone) return;
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: this.info.phone phoneNumber: this.info.phone
}) })

Loading…
Cancel
Save