30 lines
1.7 KiB
Plaintext
30 lines
1.7 KiB
Plaintext
<view class="history">
|
|
<van-tabs color="#ffd23c" active="{{ active }}" bind:change="onChange" animated swipeable>
|
|
<van-tab title="{{ item.title }}" wx:for="{{ historyArr }}" wx:key="thing_type">
|
|
<view wx:if="{{ item.content.length != 0 }}">
|
|
<van-card
|
|
wx:for="{{ item.content }}"
|
|
wx:for-item="v"
|
|
wx:for-index="i"
|
|
wx:key="thing_img"
|
|
tag="{{ v.thing_type == 1 ? v.thing_status == 1 ? '已认领' : '未认领' : v.thing_status == 1 ? '已寻回' : '未寻回' }}"
|
|
bind:tap="enterInfo"
|
|
data-id="{{ v.thing_id }}"
|
|
title="{{ v.thing_title }}"
|
|
thumb="{{ v.thing_img }}">
|
|
<view slot="desc" class="van-multi-ellipsis--l2">{{ v.thing_introduce }}</view>
|
|
<view slot="footer">
|
|
<van-button data-item="{{ v }}" catchtap="changeItemStatus" wx:if="{{ v.thing_type == 1 && v.thing_status == 0 }}" type="primary" plain size="small">确认被认领</van-button>
|
|
<van-button data-item="{{ v }}" catchtap="changeItemStatus" wx:if="{{ v.thing_type == 2 && v.thing_status == 0 }}" type="info" plain size="small">确认已寻回</van-button>
|
|
</view>
|
|
</van-card>
|
|
</view>
|
|
|
|
<view wx:else class="ondata">
|
|
<image src="../../images/img/noLogin.png"></image>
|
|
<view class="tips">无数据</view>
|
|
</view>
|
|
|
|
</van-tab>
|
|
</van-tabs>
|
|
</view> |