|
@@ -14,12 +14,22 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
+ wx.showLoading({
|
|
|
+ title: '',
|
|
|
+ })
|
|
|
+ this.setData({
|
|
|
+ openid: app.globalData.openid
|
|
|
+ })
|
|
|
this.getData()
|
|
|
},
|
|
|
getData:function(){
|
|
|
wx.request({
|
|
|
url: host+'/api/wx/notice',
|
|
|
+ header: {
|
|
|
+ openid: this.data.openid
|
|
|
+ },
|
|
|
success:res=>{
|
|
|
+ wx.hideLoading()
|
|
|
if (res.statusCode == 403) {
|
|
|
this.save()
|
|
|
} else {
|