feat: 电子药箱小程序 - 4Tab药品管理
- 电子药箱: 药品库存管理 + 手动录入 + 今日用药打卡 - 药品百科: 搜索 + 分类筛选 + 20种药品静态数据 - 惠教中心: 4条药品使用指南课程 - 我的: 家庭成员信息管理 - 自定义TabBar + navigation-bar组件 - SVG药品分类插图
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
"use strict";Component({options:{styleIsolation:"shared"},properties:{sdkInstance:{type:Object,value:null},animationAwardId:{type:Number,value:null},AwardThemeUrl:{type:String,value:null}},data:{},lifetimes:{detached:function(){}},observers:{sdkInstance:function(e){}},methods:{}});
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"mp-loading":"weui-miniprogram/loading/loading","mp-icon":"weui-miniprogram/icon/icon","mp-dialog":"weui-miniprogram/dialog/dialog"}}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
<wxs module="m1">
|
||||
var LotteryAttendIconMap = {
|
||||
lotteryBox: 'https://p1-live.byteimg.com/tos-cn-i-gjr78lqtd0/d0886daf61274e689f22bfd8d3a10999~tplv-gjr78lqtd0-z75.image',
|
||||
slotMachine: 'https://p1-live.byteimg.com/tos-cn-i-gjr78lqtd0/157f2d4469f3475d9fa3db104eb75ea0~tplv-gjr78lqtd0-z75.image',
|
||||
};
|
||||
var getImage = function(AwardThemeUrl, IsUseDarkTheme) {
|
||||
return LotteryAttendIconMap[AwardThemeUrl] || 'https://p1-live.byteimg.com/tos-cn-i-gjr78lqtd0/ca5dd7c55b844699bee908bbdf3cc943~tplv-gjr78lqtd0-z75.image';
|
||||
}
|
||||
module.exports.getImage = getImage;
|
||||
</wxs>
|
||||
<mp-dialog
|
||||
show="{{animationAwardId}}"
|
||||
mask="{{true}}"
|
||||
mask-closable="{{false}}"
|
||||
ext-class="lottery-animation-dialog"
|
||||
>
|
||||
<image src="{{m1.getImage(AwardThemeUrl)}}" />
|
||||
</mp-dialog>
|
||||
+1
@@ -0,0 +1 @@
|
||||
.lottery-animation-dialog .weui-dialog{background:0 0}.lottery-animation-dialog .weui-dialog__hd{padding:0}.lottery-animation-dialog .weui-dialog__bd{padding:0;margin-bottom:0}.lottery-animation-dialog image{width:300px;height:300px}
|
||||
Reference in New Issue
Block a user