Compare commits

..

No commits in common. '452e65a86b8a1472fa9da651ee50c4001bba0002' and 'c3a47639d41d2d14a7b681f254e66abd01ffa3c1' have entirely different histories.

  1. 23
      src/patient/pages/liveDetail/index.ts
  2. 24
      src/patient/pages/qol/index.ts

23
src/patient/pages/liveDetail/index.ts

@ -38,23 +38,16 @@ Page({ @@ -38,23 +38,16 @@ 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,
@ -111,6 +104,16 @@ Page({ @@ -111,6 +104,16 @@ 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() {

24
src/patient/pages/qol/index.ts

@ -3,17 +3,19 @@ const app = getApp<IAppOption>() @@ -3,17 +3,19 @@ const app = getApp<IAppOption>()
Page({
data: {},
onLoad(options) {
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(() => {})
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,
})
}
})
},
handleAdd() {
wx.navigateTo({

Loading…
Cancel
Save