feat: 搭建微信小程序展示端
- 初始化小程序工程配置与类型声明 - 增加首页、律所、律师列表、详情与历史页面 - 补充公共组件、运行时配置与示例素材
This commit is contained in:
22
frontend_miniprogram/miniprogram/pages/history/index.wxml
Normal file
22
frontend_miniprogram/miniprogram/pages/history/index.wxml
Normal file
@@ -0,0 +1,22 @@
|
||||
<view class="container-page history-page">
|
||||
<app-header title="名片查看记录" back="{{true}}" background="#f6f7fa"></app-header>
|
||||
|
||||
<scroll-view class="page-content" scroll-y="true" type="list">
|
||||
<block wx:if="{{items.length}}">
|
||||
<view class="actions">
|
||||
<button class="clear-btn" bindtap="clearHistory">清空记录</button>
|
||||
</view>
|
||||
|
||||
<view class="history-list">
|
||||
<view class="history-item" wx:for="{{items}}" wx:key="viewedAt" wx:for-item="item">
|
||||
<lawyer-card lawyer="{{item.lawyer}}" bind:select="handleLawyerSelect"></lawyer-card>
|
||||
<text class="history-time">查看时间:{{item.timeText}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block wx:else>
|
||||
<empty-state text="还没有名片浏览记录"></empty-state>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user