You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.0 KiB
92 lines
2.0 KiB
<template>
|
|
<view class="content">
|
|
<view class="lf-row-between item">
|
|
<view class="lf-color-gray">在线客服</view>
|
|
<button class="btn" open-type="contact">在线联系</button>
|
|
</view>
|
|
<view class="lf-row-between item">
|
|
<view class="lf-color-gray">服务时间</view>
|
|
<view>{{ info.service_period || '-' }}</view>
|
|
</view>
|
|
<view class="lf-row-between item" @click="makePhoneCall">
|
|
<view class="lf-color-gray">客服电话</view>
|
|
<view style="color: #1E89FF!important;">{{ info.phone || '-' }}</view>
|
|
</view>
|
|
<view class="lf-row-between item">
|
|
<view class="lf-color-gray">联系地址</view>
|
|
<view style="max-width: 500rpx;">{{ info.address || '-' }}</view>
|
|
</view>
|
|
<view class="lf-row-between item">
|
|
<view class="lf-color-gray">客服微信</view>
|
|
<view v-if="info.wechat">
|
|
<text>{{ info.wechat }}</text>
|
|
<text class="lf-m-l-20 lf-color-primary" @click="copy">复制</text>
|
|
</view>
|
|
<view v-else>-</view>
|
|
</view>
|
|
<view class="lf-row-between item">
|
|
<view class="lf-color-gray">当前版本</view>
|
|
<view>{{ version }}</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data(){
|
|
return {
|
|
version: '',
|
|
info: {}
|
|
}
|
|
},
|
|
onLoad(){
|
|
this.version = this.API.VERSION;
|
|
this.getInfo();
|
|
},
|
|
methods: {
|
|
// 获取信息
|
|
getInfo(){
|
|
this.$http(this.API.API_CONTACT).then(res => {
|
|
this.info = res.data || {};
|
|
})
|
|
},
|
|
// 拨打电话
|
|
makePhoneCall(){
|
|
if(!this.info?.phone) return;
|
|
uni.makePhoneCall({
|
|
phoneNumber: this.info.phone
|
|
})
|
|
},
|
|
// 复制
|
|
copy(){
|
|
uni.setClipboardData({
|
|
data: this.info.wechat
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped="scoped">
|
|
.content{
|
|
width: 750rpx;
|
|
height: auto;
|
|
padding: 0 32rpx;
|
|
box-sizing: border-box;
|
|
.item{
|
|
width: 100%;
|
|
height: 104rpx;
|
|
border-bottom: 1rpx solid #EEEEEE;
|
|
.btn{
|
|
margin: 0;
|
|
width: 176rpx;
|
|
height: 60rpx;
|
|
background: #FE9903;
|
|
border-radius: 30rpx;
|
|
color: #FFFFFF;
|
|
font-size: 28rpx;
|
|
line-height: 60rpx;
|
|
}
|
|
}
|
|
}
|
|
</style>
|