|
@@ -107,6 +107,7 @@
|
|
|
tools:[
|
|
|
// {name:'充值中心',url:'/center/recharge',ico:this.$commonConfig.staticUrl+'/img/tool-chongzhi.png'},
|
|
|
{name:'地址管理',url:'/center/addrlist',ico:this.$commonConfig.staticUrl+'/img/tool-map.png'},
|
|
|
+ {name:'客服电话',phone:'',ico:this.$commonConfig.staticUrl+'/img/tool-phone.png'},
|
|
|
]
|
|
|
}
|
|
|
},
|
|
@@ -129,7 +130,27 @@
|
|
|
})
|
|
|
},
|
|
|
toolsClick(item){
|
|
|
+ let that = this;
|
|
|
console.log('item',item);
|
|
|
+ if ('phone' in item) {
|
|
|
+ if(!that.memberInfo.customerMobile){
|
|
|
+ uni.showToast({
|
|
|
+ title:'电话号码为空',
|
|
|
+ icon:"none"
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: that.memberInfo.customerMobile,
|
|
|
+ success() {
|
|
|
+ console.log('success');
|
|
|
+ },
|
|
|
+ fail() {
|
|
|
+ console.log('fail');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
uni.$u.route(item.url);
|
|
|
},
|
|
|
orderClick(item,index){
|