Files
ruo-shan-cloud-pharmacy/miniprogram/package-live/volc-mini-sdk/components/image-text-float/award/award-detail/award-detail.wxml
T
陈誉午 994b267f5c feat: 电子药箱小程序 - 4Tab药品管理
- 电子药箱: 药品库存管理 + 手动录入 + 今日用药打卡
- 药品百科: 搜索 + 分类筛选 + 20种药品静态数据
- 惠教中心: 4条药品使用指南课程
- 我的: 家庭成员信息管理
- 自定义TabBar + navigation-bar组件
- SVG药品分类插图
2026-07-29 11:20:52 +08:00

45 lines
3.2 KiB
Plaintext

<wxs module="m1">
var LotteryAttendIconMap = {
lotteryBox: '../assets/lottery_detail_title_box.svg',
slotMachine: '../assets/lottery_detail_title_machine.svg',
};
var getImage = function(AwardThemeUrl, IsUseDarkTheme) {
return LotteryAttendIconMap[AwardThemeUrl] || (IsUseDarkTheme ? '../assets/lottery_detail_title_dark.svg' : '../assets/lottery_detail_title_default.svg');
}
module.exports.getImage = getImage;
</wxs>
<Drawer id='lottery-drawer' needCancel="{{false}}" bind:myCancel="myCancel">
<view wx:if="{{visible && type === 'detail' && data}}" class="lottery-detail{{regulation ? ' regulation' : ''}}{{IsUseDarkTheme ? ' lottery-detail-dark' : ''}}{{data.AwardThemeUrl === 'lotteryBox' ? ' lottery-detail-box' : ''}}{{data.AwardThemeUrl === 'slotMachine' ? ' lottery-detail-machine' : '' }}">
<image wx:if="{{!IsUseDarkTheme && data.AwardThemeUrl !== 'lotteryBox' && data.AwardThemeUrl !== 'slotMachine'}}" class="lottery-detail-bg" style="position: absolute" src="../assets/questionaireImage.png" />
<view class="lottery-detail-header {{data.showCountDown ? '' : 'lottery-detail-header-no-count-down'}}">
<view class="lottery-datail-icon" bindtap="openRegulation">
<!-- <mp-icon icon="help" color="#737a87" size="{{20}}" class="help" /> -->
</view>
<view class="lottery-detail-icon-close" bindtap="closeAwardDrawer">
<mp-icon icon="close" color="#737a87" size="{{20}}" class="close" />
</view>
<image src="{{m1.getImage(data.AwardThemeUrl, IsUseDarkTheme)}}" />
<view class="lottery-detail-title">即将开奖</view>
<count-down type="lottery" wx:if="{{data.showCountDown && data.SendTime && status === 0}}" sendTime="{{data.SendTime}}" deadLine="{{data.DeadLine}}" useDarkTheme="{{IsUseDarkTheme}}" bind:onCountDown="onCountDown" awardThemeUrl="{{data.AwardThemeUrl}}" deadLineSecond="{{data.DeadLineSecond}}" />
</view>
<view wx:if="{{regulation}}" class="regulation-content">
<view class="lottery-datail-icon" style="left: 8px" bindtap="closeRegulation">
<mp-icon icon="back" color="#737a87" size="{{20}}" class="lottery-header-icon-left" />
</view>
<view className="lottery-datail-iframe-container">
<web-view height="100%" width="100%" style="border: none" src="https://www.volcengine.com/docs/3019/67124" />
</view>
</view>
<view wx:else>
<award-card status="{{status}}" data="{{data}}" IsUseDarkTheme="{{IsUseDarkTheme}}" />
<condition-item wx:if="{{data.hasCondition}}" data="{{data}}" status="{{status}}" IsUseDarkTheme="{{IsUseDarkTheme}}" />
<button wx:if="{{status === 0}}" type="{{data.UndoAwardCondition ? 'default' : 'primary'}}" class="lottery-detail-button {{data.UndoAwardCondition ? 'lottery-detail-button-default' : 'lottery-detail-button-primary'}}" loading="{{isAttendLoading}}" bindtap="attendLottery">
{{data.UndoAwardCondition ? '完成全部任务即可参与' : '立即参与'}}
</button>
<button wx:else type="default" class="lottery-detail-button lottery-detail-button-default" bindtap="closeAwardDrawer">
{{status === 4 ? '抽奖已结束,您未参与': '等待开奖'}}
</button>
</view>
</view>
</Drawer>