@@ -14,6 +14,9 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
+ wx.showLoading({
+ title: '',
+ })
this.setData({
openid: app.globalData.openid
})
@@ -27,7 +30,7 @@ Page({
},
method:'GET',
success:res=>{
- console.log(res.data)
+ wx.hideLoading()
let data=res.data.data
for(let i=0;i<data.length;i++){
data[i].subject_item_1 = data[i].subject_item.split('|')
@@ -23,6 +23,9 @@ Page({
onLoad: function () {
this.getData()
@@ -76,7 +79,7 @@ Page({
url: host +'/api/wx/index',
data:res.data.data
@@ -12,6 +12,9 @@ Page({
list:[]
wx.request({
url: host + '/api/wx/sujectitem',
@@ -65,6 +68,7 @@ Page({
data: parm,
list:res.data.data