feat: 电子药箱小程序 - 4Tab药品管理
- 电子药箱: 药品库存管理 + 手动录入 + 今日用药打卡 - 药品百科: 搜索 + 分类筛选 + 20种药品静态数据 - 惠教中心: 4条药品使用指南课程 - 我的: 家庭成员信息管理 - 自定义TabBar + navigation-bar组件 - SVG药品分类插图
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<!--pages/video/video.wxml-->
|
||||
<navigation-bar title="" back="{{true}}" bind:handleBack="handleBack" color="black" background="#FFF" />
|
||||
|
||||
<view style="display: flex; align-items: center; justify-content: space-between; padding: 0 20rpx; height: 80rpx; background: #FFF7E6;">
|
||||
<view style="font-size: 22rpx; color: #999;">本视频仅用于科普,无任何恶意引导行为</view>
|
||||
<view style="display: flex; align-items: center; gap: 16rpx;">
|
||||
<!-- <button open-type="feedback" class="error">微信举报</button> -->
|
||||
<view class="error" bind:tap="handleCustomReport">举报</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<scroll-view class="scrollarea" scroll-y type="list">
|
||||
<my-video src="{{dataList.url}}" backgroundUrl="{{dataList.background}}"></my-video>
|
||||
|
||||
<block wx:if="{{dataList.tipUrl}}">
|
||||
<image alt="提示" mode="widthFix" src="{{dataList.tipUrl}}" style="width: 100%" />
|
||||
</block>
|
||||
|
||||
<van-tabs active="{{ active }}" bind:change="onChange" animated class="tabs" id="tabs">
|
||||
<van-tab wx:if="{{dataList.questions.length != 0}}" title="答题">
|
||||
<!-- 答题有多选单选 -->
|
||||
<form bindsubmit="handleSubmit" form-id="quizForm">
|
||||
<my-quiz id="quizComponent" questions="{{dataList.questions}}" answerList="{{dataList.answerList}}" bind:change="onAnswerChange" />
|
||||
<button wx:if="{{active === 0}}" class="btn" form-type="submit" style="bottom:{{safeBottom===0?24:safeBottom}}rpx">
|
||||
{{canSubmit ? '提交答案领取红包' : '请观看完视频再前往答题'}}
|
||||
</button>
|
||||
</form>
|
||||
</van-tab>
|
||||
<van-tab title="介绍{{dataList.cusId ? '(' + dataList.cusId + ')' : ''}}">
|
||||
<scroll-view class="scrollarea-inner" scroll-y type="list">
|
||||
<view class="scrollarea-inner-text">
|
||||
<rich-text nodes="{{nodes}}"></rich-text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</van-tab>
|
||||
<view class="history" bind:tap="handleViewHitory">
|
||||
<image class="icon" src="./assets/1.png" />
|
||||
</view>
|
||||
</van-tabs>
|
||||
</scroll-view>
|
||||
Reference in New Issue
Block a user