diff --git a/project.config.json b/project.config.json index 625d498..1d8faf4 100644 --- a/project.config.json +++ b/project.config.json @@ -71,5 +71,5 @@ } ] }, - "appid": "wxf9ce8010f1ad24aa" + "appid": "wx71ac9c27c3c3e3f4" } \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index 7d94f51..01445c8 100644 --- a/src/app.ts +++ b/src/app.ts @@ -16,15 +16,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 4425af5..e2a1908 100644 --- a/src/patient/pages/liveDetail/index.ts +++ b/src/patient/pages/liveDetail/index.ts @@ -29,6 +29,7 @@ Page({ } as any, answer: false, + isAnswer: false, }, videoContext: {} as WechatMiniprogram.VideoContext, onLoad(options) { @@ -155,7 +156,10 @@ Page({ }, currentVideoSrc: res.ReplayVideoUrl, }) - if (this.data.answer && res.QuestionnaireUrl) { + if (this.data.answer && res.QuestionnaireUrl && !this.data.isAnswer) { + this.setData({ + isAnswer: true, + }) this.handleAnswer() } })