wechat_jiaxuan/pages/index/index.js
@@ -1,4 +1,4 @@ import { getDictData } from '../../api/index' import { getDictData, getMemberInfo } from '../../api/index' Page({ /** @@ -9,6 +9,7 @@ topHeadStyle: 1, showWhiteHead: true, topHeadBorder: false, member: {}, bannerList: [ {imgurl: ''}, @@ -31,6 +32,11 @@ }, toSearch() {}, onShow() { getMemberInfo().then(res => { this.setData({member: res.data}) }) }, onLoad(options) { this.initData() }, @@ -118,13 +124,6 @@ * 生命周期函数--监听页面初次渲染完成 */ onReady() { }, /** * 生命周期函数--监听页面显示 */ onShow() { },