优化
This commit is contained in:
@@ -155,8 +155,24 @@ Page({
|
||||
this.setData({
|
||||
swiperList: []
|
||||
})
|
||||
wx.offCopyUrl(this.Copylistener) // 需传入与监听时同一个的函数对象
|
||||
},
|
||||
Copylistener(res){
|
||||
setTimeout(()=>{
|
||||
wx.setClipboardData({
|
||||
data: '暂不支持分享',
|
||||
success (res) {
|
||||
|
||||
},
|
||||
complete(){
|
||||
wx.hideToast()
|
||||
}
|
||||
})
|
||||
},1000)
|
||||
return
|
||||
},
|
||||
onShow: function () {
|
||||
wx.onCopyUrl(this.Copylistener);
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
active: 0, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
@@ -175,12 +191,11 @@ Page({
|
||||
"info.avg_response_time": response.data.info.avg_response_time,
|
||||
"info.number_of_fans": response.data.info.number_of_fans,
|
||||
})
|
||||
if(avatar && (avatar.indexOf("http") == -1)){
|
||||
avatar = api.getStaticHost() + avatar;
|
||||
if(avatar){
|
||||
this.setData({
|
||||
"info.avatar": avatar
|
||||
})
|
||||
}
|
||||
this.setData({
|
||||
"info.avatar": avatar
|
||||
})
|
||||
|
||||
//实名认证
|
||||
let idcard_status = response.data.info.idcard_status;
|
||||
|
||||
Reference in New Issue
Block a user