feat: 添加组件配置文件并优化页面结构
- 新增 components.d.json 文件,包含所有组件的属性配置 - 添加 card-item-plugin 组件及其相关文件(json、ts、wxml、wxss) - 在 app.json 中添加新的生产流程管理页面路径 - 添加多个SVG图标文件用于菜单项 - 重构 popup-plugin 组件样式和关闭逻辑 - 更新 tab-bar-plugin 的激活状态逻辑 - 优化 search-popup 使用全局样式类 - 在首页添加菜单配置和页面跳转功能 - 调整组件样式细节和间距
This commit is contained in:
@@ -1,6 +1,38 @@
|
||||
<page-plugin>
|
||||
<page-plugin loading="{{true}}" isLogin="{{true}}" isAuth="{{true}}">
|
||||
<text>pages/index/index.wxml</text>
|
||||
<t-button bind:tap="change">change</t-button>
|
||||
<t-button bind:tap="navToMy">my</t-button>
|
||||
<t-icon name="user-vip" style="color: #0052D9" size="20px"></t-icon>
|
||||
</page-plugin>
|
||||
<pagination-plugin
|
||||
curr_page="{{params.curr_page}}"
|
||||
total="{{total}}"
|
||||
page_count="{{params.page_count}}"
|
||||
bind:change="changePage"
|
||||
/>
|
||||
<block wx:for="{{ menuList }}" wx:key="index" wx:for-item="item">
|
||||
<view style="display: flex;align-items: center;">
|
||||
<t-icon name="{{ item.icon }}" style="color: {{item.iconColor}};font-size: 1.2em;margin-right: 4px;" />
|
||||
<text style="font-weight: bold;font-size: 1.1em;">{{ item.title }}</text>
|
||||
</view>
|
||||
<view style="display: flex;align-items: center;flex-wrap: wrap;">
|
||||
<block wx:for="{{ item.children }}" wx:key="index" wx:for-item="child">
|
||||
<view class="menu-item" bindtap="nav" data-url="{{ child.url }}">
|
||||
<image class="nav-item-icon" src="/assets/icons/{{child.title}}.svg" mode="aspectFit" />
|
||||
<view>{{ child.title }}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
</page-plugin>
|
||||
<tab-bar-plugin active="index" />
|
||||
<select-plugin
|
||||
mode="single"
|
||||
value="{{current2}}"
|
||||
options="{{options}}"
|
||||
bind:change="changeSelect"
|
||||
>
|
||||
<view style="display: block;">下拉选择</view>
|
||||
</select-plugin>
|
||||
<search-popup>
|
||||
<view slot="content">1111</view>
|
||||
</search-popup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user