Commit 72e05250 authored by 俞嘉婷's avatar 俞嘉婷

feat: 埋点接口也要在免登接口之后

parent f5d28e71
...@@ -37,6 +37,7 @@ ComponentWithStore({ ...@@ -37,6 +37,7 @@ ComponentWithStore({
console.log(res.code) console.log(res.code)
// 发送 res.code 到后台换取 openId, sessionKey, unionId // 发送 res.code 到后台换取 openId, sessionKey, unionId
await dbLogin({code: res.code}); await dbLogin({code: res.code});
store.doLog(507, 10)
await this.updateHomeInfo(); await this.updateHomeInfo();
const {channel, city} = this.options || {}; const {channel, city} = this.options || {};
store.paramsObj = {channel, city}; store.paramsObj = {channel, city};
...@@ -46,8 +47,10 @@ ComponentWithStore({ ...@@ -46,8 +47,10 @@ ComponentWithStore({
}, },
methods: { methods: {
async onShow() { async onShow() {
store.doLog(507, 10) if (!this.data.isFirstIndex) {
if (!this.data.isFirstIndex) await this.updateHomeInfo(); store.doLog(507, 10)
await this.updateHomeInfo();
}
}, },
getPhoneNumber(e: any) { getPhoneNumber(e: any) {
console.log(e.detail) console.log(e.detail)
......
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