feat: 电子药箱小程序 - 4Tab药品管理
- 电子药箱: 药品库存管理 + 手动录入 + 今日用药打卡 - 药品百科: 搜索 + 分类筛选 + 20种药品静态数据 - 惠教中心: 4条药品使用指南课程 - 我的: 家庭成员信息管理 - 自定义TabBar + navigation-bar组件 - SVG药品分类插图
This commit is contained in:
@@ -0,0 +1 @@
|
||||
"use strict";Component({options:{addGlobalClass:!0,multipleSlots:!0,styleIsolation:"apply-shared"},properties:{visible:{type:Boolean,value:!1},showMask:{type:Boolean,value:!0},maskClosable:{type:Boolean,value:!0},zIndex:{type:Number,value:1e3},maskStyle:{type:String,value:""},containerClass:{type:String,value:""},containerStyle:{type:String,value:""}},methods:{onMaskTap:function(){this.triggerEvent("masktap"),this.data.maskClosable&&this.triggerEvent("close")},onContainerTap:function(){},onTouchMove:function(){}}});
|
||||
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{}}
|
||||
@@ -0,0 +1,21 @@
|
||||
<view
|
||||
wx:if="{{visible}}"
|
||||
class="mp-dialog-root"
|
||||
style="z-index: {{zIndex}};"
|
||||
catchtouchmove="onTouchMove"
|
||||
>
|
||||
<view
|
||||
class="mp-dialog-mask {{showMask ? '' : 'mp-dialog-mask--transparent'}}"
|
||||
style="{{maskStyle}}"
|
||||
bindtap="onMaskTap"
|
||||
></view>
|
||||
<view
|
||||
class="mp-dialog-container {{containerClass}}"
|
||||
style="{{containerStyle}}"
|
||||
catchtap="onContainerTap"
|
||||
>
|
||||
<slot name="header"></slot>
|
||||
<slot></slot>
|
||||
<slot name="footer"></slot>
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1 @@
|
||||
.mp-dialog-root{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.mp-dialog-mask{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.35)}.mp-dialog-mask--transparent{background:0 0}.mp-dialog-container{position:relative;z-index:1;width:86vw;max-width:640rpx;background:#fff;border-radius:16rpx;box-sizing:border-box;overflow:hidden}
|
||||
Reference in New Issue
Block a user