diff --git a/project.config.json b/project.config.json index 1d8faf4..625d498 100644 --- a/project.config.json +++ b/project.config.json @@ -71,5 +71,5 @@ } ] }, - "appid": "wx71ac9c27c3c3e3f4" + "appid": "wxf9ce8010f1ad24aa" } \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index d095bd7..cbd248d 100644 --- a/src/app.ts +++ b/src/app.ts @@ -18,15 +18,15 @@ App({ // 测试号 wx2b0bb13edf717c1d // dev // appid:wxf9ce8010f1ad24aa - // url: 'https://m.xd.hbraas.com', - // upFileUrl: 'https://m.xd.hbraas.com/', - // imageUrl: 'https://m.xd.hbraas.com/xd/', + url: 'https://m.xd.hbraas.com', + upFileUrl: 'https://m.xd.hbraas.com/', + imageUrl: 'https://m.xd.hbraas.com/xd/', // pro // appid:wx71ac9c27c3c3e3f4 - url: 'https://m.xd.hbsaas.com', - upFileUrl: 'https://m.xd.hbsaas.com/', - imageUrl: 'https://m.xd.hbsaas.com/api/xd/', + // url: 'https://m.xd.hbsaas.com', + // upFileUrl: 'https://m.xd.hbsaas.com/', + // imageUrl: 'https://m.xd.hbsaas.com/api/xd/', loginState: '', isLogin: 0, diff --git a/src/patient/pages/liveDetail/index.ts b/src/patient/pages/liveDetail/index.ts index bce8bfc..d134447 100644 --- a/src/patient/pages/liveDetail/index.ts +++ b/src/patient/pages/liveDetail/index.ts @@ -38,16 +38,23 @@ Page({ answer: false, isAnswer: false, - - pushId: '', }, videoContext: {} as WechatMiniprogram.VideoContext, onLoad(options) { this.setData({ id: options.id, answer: options.answer === '1', - pushId: options.pushId, }) + if (options.pushId) { + wx.ajax({ + method: 'POST', + url: '?r=xd/push-click/update-click-status', + data: { + pushId: options.pushId, + }, + showMsg: false, + }) + } if (options.jump == '1') { this.setData({ popupShow: true, @@ -104,16 +111,6 @@ Page({ app.getZdUserInfo(this, true, () => { this.getPosterParams() }) - if (this.data.pushId) { - wx.ajax({ - method: 'POST', - url: '?r=xd/push-click/update-click-status', - data: { - pushId: this.data.pushId, - }, - showMsg: false, - }) - } }) }, async getPopup() { diff --git a/src/patient/pages/qol/index.ts b/src/patient/pages/qol/index.ts index b296ef3..a0a10fd 100644 --- a/src/patient/pages/qol/index.ts +++ b/src/patient/pages/qol/index.ts @@ -3,19 +3,17 @@ const app = getApp() Page({ data: {}, onLoad(options) { - app.waitLogin({ type: [1] }).then(() => { - const pushId = options.pushId - if (pushId) { - wx.ajax({ - method: 'POST', - url: '?r=xd/push-click/update-click-status', - data: { - pushId, - }, - showMsg: false, - }) - } - }) + if (options.pushId) { + wx.ajax({ + method: 'POST', + url: '?r=xd/push-click/update-click-status', + data: { + pushId: options.pushId, + }, + showMsg: false, + }) + } + app.waitLogin({ type: [1] }).then(() => {}) }, handleAdd() { wx.navigateTo({