Commit 2f131579 by 胡悦

修复

1 parent 4aec1030
...@@ -34,7 +34,6 @@ Page({ ...@@ -34,7 +34,6 @@ Page({
productList: [], productList: [],
isReset: false, isReset: false,
hasPhoneNumber: false, hasPhoneNumber: false,
userInfo: {},
lastFormData: { lastFormData: {
sales: 100, sales: 100,
flow: 100, flow: 100,
...@@ -189,14 +188,11 @@ Page({ ...@@ -189,14 +188,11 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
this.submit() this.submit()
this.setData({
userInfo: Util.getUserInfo()
})
this.showCase() this.showCase()
}, },
showCase() { showCase() {
console.log(this.data.userInfo) console.log(Util.getUserInfo())
if (this.data.userInfo && this.data.userInfo.phone) { if (Util.getUserInfo() && Util.getUserInfo().phone) {
this.setData({ this.setData({
hasPhoneNumber: true, hasPhoneNumber: true,
productList: this.data.tabList[this.data.tabActive].productList, 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!