Browse Source

直播问卷修改

master
kola-web 2 months ago
parent
commit
de37862174
  1. BIN
      src/images/bg21.png
  2. 2
      src/patient/pages/liveDetail/index.scss
  3. 6
      src/patient/pages/liveDetail/index.ts
  4. 2
      src/patient/pages/liveDetail/index.wxml

BIN
src/images/bg21.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 KiB

After

Width:  |  Height:  |  Size: 175 KiB

2
src/patient/pages/liveDetail/index.scss

@ -140,7 +140,7 @@ @@ -140,7 +140,7 @@
.a-img {
display: block;
width: 100%;
height: 230rpx;
height: 178rpx;
}
}
.lightspot {

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

@ -27,11 +27,14 @@ Page({ @@ -27,11 +27,14 @@ Page({
popupParams: {
close: true,
} as any,
answer: false,
},
videoContext: {} as WechatMiniprogram.VideoContext,
onLoad(options) {
this.setData({
id: options.id,
answer: options.answer === '1',
})
if (options.scene) {
const optionsScene: any = parseScene(options.scene)
@ -152,6 +155,9 @@ Page({ @@ -152,6 +155,9 @@ Page({
},
currentVideoSrc: res.ReplayVideoUrl,
})
if (this.data.answer && res.QuestionnaireUrl) {
this.handleAnswer()
}
})
},
handleLightVideo(e) {

2
src/patient/pages/liveDetail/index.wxml

@ -63,7 +63,7 @@ @@ -63,7 +63,7 @@
</view>
</block>
</view>
<view class="answer" wx:if="{{detail.Status==3 && detail.QuestionnaireUrl}}" bind:tap="handleAnswer">
<view class="answer" wx:if="{{detail.QuestionnaireUrl}}" bind:tap="handleAnswer">
<image class="a-img" src="{{imageUrl}}bg21.png?t={{Timestamp}}"></image>
</view>
<view class="screen" wx:elif="{{detail.SignUpRecord.length}}">

Loading…
Cancel
Save