feat: 电子药箱小程序 - 4Tab药品管理
- 电子药箱: 药品库存管理 + 手动录入 + 今日用药打卡 - 药品百科: 搜索 + 分类筛选 + 20种药品静态数据 - 惠教中心: 4条药品使用指南课程 - 我的: 家庭成员信息管理 - 自定义TabBar + navigation-bar组件 - SVG药品分类插图
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
"use strict";Component({properties:{type:{type:String,value:""},visible:{type:Boolean,value:!1},title:{type:String,value:""},list:{type:Array,value:[]},selected:{type:String,value:"auto"}},observers:{},data:{},methods:{valueChange:function(e){var t,a=((null==e||null===(t=e.currentTarget)||void 0===t?void 0:t.dataset)||{}).item;a.key!==this.data.selected&&this.triggerEvent("valueChange",{item:a,type:this.data.type})}}});
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{}}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<view class="content-wrapper content-wrapper-{{type}}">
|
||||
<view class="content-list">
|
||||
<view
|
||||
class="{{'content-list-item ' + (selected === item.key ? 'content-list-item-selected' : '')}}"
|
||||
wx:for="{{ list }}"
|
||||
wx:for-index="index"
|
||||
wx:for-item="item"
|
||||
wx:key="key"
|
||||
data-item="{{item}}"
|
||||
bindtap="valueChange"
|
||||
>
|
||||
<text>{{ item.value }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
+1
@@ -0,0 +1 @@
|
||||
.content-wrapper{display:flex;flex-direction:column;width:100%;box-sizing:border-box;background:#202124;padding:24rpx 0 20rpx}.content-list{align-items:center;box-sizing:border-box;color:#fff;display:flex;flex-direction:column;padding:0 24rpx;width:100%}.content-list-item{align-items:center;border-radius:8rpx;box-sizing:border-box;display:flex;font-size:calc(30rpx + .5 * (1rem - 16px));font-weight:500;height:calc(112rpx + .5 * (1rem - 16px));justify-content:center;line-height:calc(42rpx + .5 * (1rem - 16px));margin:0 auto;width:100%;max-width:100%}.content-list-item-selected{background-color:rgba(255,255,255,.18);color:#fff}
|
||||
Reference in New Issue
Block a user