添加组件及页面

This commit is contained in:
zhengw
2026-01-21 17:05:30 +08:00
parent a89e69c381
commit 7ff1a911dd
54 changed files with 1078 additions and 1009 deletions

View File

@@ -1,38 +1,32 @@
<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>
<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>
<page-plugin isAuth="{{true}}" loading="{{loading}}" is-login="{{isLogin}}"
bind:handleLogin="handleLogin" hasTabBar="1">
<view class="block-box">
<block wx:for="{{block}}" wx:key="index">
<view class="block-item-box" style="background: {{BGColors[index]}};">
<view class="block-item-name">{{item.name}}</view>
<view class="block-item-value">
<text>{{item.value}}</text>
<text>{{item.unit}}</text>
</view>
</block>
</view>
</block>
</view>
<block wx:for="{{ menuList }}" wx:key="index" wx:for-item="item">
<view class="menu-box">
<view class="menu-title">
<t-icon name="{{ item.icon }}"
style="color: {{item.iconColor}};font-size: 1.2em;margin-right: 8rpx;" />
<text style="font-weight: bold;font-size: 1.1em;">{{ item.title }}</text>
</view>
<view class="menu-children-box">
<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>
</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>
<tab-bar-plugin active="index" />