Commit 0cb03f7b authored by 俞嘉婷's avatar 俞嘉婷

feat: 首页弹窗进入后只谈一次

parent 6817d30e
......@@ -30,8 +30,8 @@ ComponentWithStore({
canIUseNicknameComp: wx.canIUse('input.type.nickname'),
},
methods: {
onShow() {
this.updateHomeInfo();
async onShow() {
await this.updateHomeInfo();
const {channel, city} = this.options || {};
store.paramsObj = {channel, city};
},
......@@ -67,8 +67,8 @@ ComponentWithStore({
});
} else {
this.setData({
showGetPanel: channel && first,
showAlGetPanel: channel && !first,
showGetPanel: channel && first && !store.paramsObj.channel,
showAlGetPanel: channel && !first && !store.paramsObj.channel,
showPhoneBtn: false,
userInfo: {
avatarUrl: store.homeInfo.avatar || defaultInfo.avatar,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment