|
|
@@ -51,7 +51,8 @@ Component({
|
|
|
url: '/pages/tabbar-pages/user/index'
|
|
|
}
|
|
|
],
|
|
|
- show: false
|
|
|
+ show: false,
|
|
|
+ phoneNumber: '',
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
@@ -60,6 +61,9 @@ Component({
|
|
|
methods: {
|
|
|
/* tabbar */
|
|
|
onChange(event) {
|
|
|
+ if (this.data.phoneNumber == '') this.setData({
|
|
|
+ phoneNumber: getApp().globalData.servicehotline
|
|
|
+ });
|
|
|
if (event.target.dataset.index == 1) return this.setData({
|
|
|
show: true
|
|
|
})
|
|
|
@@ -80,8 +84,7 @@ Component({
|
|
|
CallOut() {
|
|
|
wx.makePhoneCall({
|
|
|
phoneNumber: getApp().globalData.servicehotline
|
|
|
- }).catch((e) => {
|
|
|
- })
|
|
|
+ }).catch((e) => {})
|
|
|
},
|
|
|
onClose() {
|
|
|
this.setData({
|