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 @@
.a-img { .a-img {
display: block; display: block;
width: 100%; width: 100%;
height: 230rpx; height: 178rpx;
} }
} }
.lightspot { .lightspot {

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

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

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

@ -63,7 +63,7 @@
</view> </view>
</block> </block>
</view> </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> <image class="a-img" src="{{imageUrl}}bg21.png?t={{Timestamp}}"></image>
</view> </view>
<view class="screen" wx:elif="{{detail.SignUpRecord.length}}"> <view class="screen" wx:elif="{{detail.SignUpRecord.length}}">

Loading…
Cancel
Save