dengjie :解决点赞、收藏、客服电话等问题
This commit is contained in:
@@ -7,7 +7,10 @@
|
||||
<myAvatar ref="myavatar"></myAvatar>
|
||||
<view class="table">
|
||||
<u-cell-group>
|
||||
<u-cell size="large" title="绑定公司" icon="/static/my/wo_icon_bd.png" :isLink="true" value="未绑定公司"
|
||||
<u-cell v-if="is_bind" size="large" title="绑定公司" icon="/static/my/wo_icon_bd.png" :isLink="true"
|
||||
value="已绑定公司">
|
||||
</u-cell>
|
||||
<u-cell v-else size="large" title="绑定公司" icon="/static/my/wo_icon_bd.png" :isLink="true" value="未绑定公司"
|
||||
@click="bindCompany()">
|
||||
</u-cell>
|
||||
<u-cell size="large" title="会员中心" icon="/static/my/wo_icon_hyzx.png" :isLink="true"
|
||||
@@ -23,9 +26,9 @@
|
||||
</u-cell>
|
||||
</u-cell-group>
|
||||
<u-modal :show="showM" showCancelButton closeOnClickOverlay="false" confirmText="是" cancelText="否"
|
||||
@confirm="confirm" @cancel="cancel" @close="close">
|
||||
@confirm="confirm" @cancel="cancel">
|
||||
<view>
|
||||
<view>{{phone}}</view>
|
||||
<view>{{mobile}}</view>
|
||||
<text>是否拨打客服电话</text>
|
||||
</view>
|
||||
</u-modal>
|
||||
@@ -46,8 +49,9 @@
|
||||
data() {
|
||||
return {
|
||||
showM: false,
|
||||
phone: '138 1222 222',
|
||||
mobile: '',
|
||||
isLoad: true,
|
||||
is_bind: false
|
||||
}
|
||||
},
|
||||
onTabItemTap() {
|
||||
@@ -58,7 +62,19 @@
|
||||
}
|
||||
this.isLoad = true
|
||||
},
|
||||
onLoad() {
|
||||
if (uni.getStorageSync('com_mobile')) {
|
||||
this.is_bind = true
|
||||
}
|
||||
this.getCsTel()
|
||||
},
|
||||
methods: {
|
||||
//获取客服电话
|
||||
getCsTel() {
|
||||
this.$apiServe.getCsTel().then(res => {
|
||||
this.mobile = res.data.data.cs_tel
|
||||
}).finally(_ => {})
|
||||
},
|
||||
//跳转到绑定公司页面
|
||||
bindCompany() {
|
||||
uni.navigateTo({
|
||||
@@ -95,7 +111,7 @@
|
||||
},
|
||||
confirm() {
|
||||
this.showM = false
|
||||
let phone = '1381222222'
|
||||
let phone = ''
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone,
|
||||
success: function() {
|
||||
@@ -109,9 +125,6 @@
|
||||
cancel() {
|
||||
this.showM = false
|
||||
},
|
||||
close() {
|
||||
this.showM = false
|
||||
},
|
||||
reOnLoad() {
|
||||
if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
|
||||
this.$toast.warn('登录失败请重试')
|
||||
|
||||
Reference in New Issue
Block a user