Commit 2f131579 by 胡悦

修复

1 parent 4aec1030
......@@ -34,7 +34,6 @@ Page({
productList: [],
isReset: false,
hasPhoneNumber: false,
userInfo: {},
lastFormData: {
sales: 100,
flow: 100,
......@@ -189,14 +188,11 @@ Page({
*/
onLoad(options) {
this.submit()
this.setData({
userInfo: Util.getUserInfo()
})
this.showCase()
},
showCase() {
console.log(this.data.userInfo)
if (this.data.userInfo && this.data.userInfo.phone) {
console.log(Util.getUserInfo())
if (Util.getUserInfo() && Util.getUserInfo().phone) {
this.setData({
hasPhoneNumber: true,
productList: this.data.tabList[this.data.tabActive].productList,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!