This commit is contained in:
parent
0c4f73bb85
commit
50dc1510fa
|
@ -231,7 +231,17 @@
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
const token = uni.getStorageSync('token');
|
||||||
|
// const Authorization = uni.getStorageSync('Authorization');
|
||||||
|
if(token){
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
|
}else{
|
||||||
|
this.getSwpper()
|
||||||
|
}
|
||||||
|
wx.showShareMenu({
|
||||||
|
withShareTicket: true,
|
||||||
|
menus: ['shareAppMessage', 'shareTimeline']
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//用户信息
|
//用户信息
|
||||||
|
@ -252,6 +262,7 @@
|
||||||
uni.setStorageSync('isWlAdmin', res.data.isWlAdmin)
|
uni.setStorageSync('isWlAdmin', res.data.isWlAdmin)
|
||||||
uni.setStorageSync('isBusiness', res.data.isBusiness)
|
uni.setStorageSync('isBusiness', res.data.isBusiness)
|
||||||
this.getSwpper()
|
this.getSwpper()
|
||||||
|
this.getTalkList()
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -366,8 +377,6 @@
|
||||||
this.http.request('/indexImage/sybjt', {}, "GET").then(res => {
|
this.http.request('/indexImage/sybjt', {}, "GET").then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.background = res.data[0].imagePath
|
this.background = res.data[0].imagePath
|
||||||
this.getTalkList()
|
|
||||||
this.getUnshList()
|
|
||||||
this.load = false
|
this.load = false
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
|
@ -389,6 +398,7 @@
|
||||||
if (item.unread > 0) _this.isUnread = true;
|
if (item.unread > 0) _this.isUnread = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
this.getUnshList()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
config: {
|
config: {
|
||||||
// baseUrl: "http://192.168.2.48:8080/h5/api", //俞燕红-小程序不能配跨域
|
// baseUrl: "http://192.168.2.67:8080/h5/api", //俞燕红-小程序不能配跨域
|
||||||
// baseUrl: "/pre", //俞燕红-跨域
|
// baseUrl: "/pre", //俞燕红-跨域
|
||||||
baseUrl: "https://yxx.ydool.net/h5/api", //线上
|
baseUrl: "https://yxx.ydool.net/h5/api", //线上
|
||||||
// baseUrl: "/h5/api", //h5
|
// baseUrl: "/h5/api", //h5
|
||||||
|
|
Loading…
Reference in New Issue