@@ -22,12 +22,6 @@ Page({
appuserheadimg: '',
from: '' // 从哪个页面进入的页面
},
-
- onShow () {
- this.getGoodsList()
- this.getAccountNmberFn()
- },
/**
* 生命周期函数--监听页面显示
*/
@@ -39,8 +33,12 @@ Page({
appusername: userName.length > 8 ? userName.substring(0,4) : userName,
appuserheadimg: headImg
})
+ this.initPage()
+ },
+ initPage () {
+ this.getGoodsList()
+ this.getAccountNmberFn()
// 获取套餐次数
getAccountNmberFn () {
var that = this