Files
ClassContent/项目合集/校园失物招领/min-tpl/pages/info/info.wxml
2024-09-27 02:06:13 +08:00

51 lines
2.1 KiB
Plaintext

<view class="info content">
<view class="user_info">
<image src="{{ listInfo.user_portrait }}"></image>
<view class="user_text">
<view class="name">{{ listInfo.user_name }}</view>
<view class="school">
{{ listInfo.user_school.length == 0 ? '用户未填写学校信息': listInfo.user_school }}
</view>
</view>
<view bindtap="iWant" class="status {{ listInfo.thing_status == 0 ? 'no' : 'yes' }}">
{{
listInfo.thing_type == 1
? listInfo.thing_status == 0 ? '我要认领' : '已认领'
: listInfo.thing_status == 0 ? '我要归还' : '已寻回'
}}
</view>
</view>
<view class="goods">
<view class="title">
<view class="left_text">
{{ listInfo.thing_title }}
<view class="time">{{ listInfo.thing_createdtime }}</view>
</view>
<van-tag class="right_type" color="#ffd23c" round size="medium" plain type="primary">
{{ listInfo.thing_category == 1
? '证件'
: listInfo.thing_category == 2
? '服装'
: listInfo.thing_category == 3
? '数码'
: listInfo.thing_category == 4
? '日用品'
: '其他'
}}
</van-tag>
</view>
<view class="desc">{{ listInfo.thing_introduce }}</view>
<image src="{{ listInfo.thing_img }}" mode="widthFix" bindtap="showGallery"></image>
</view>
<van-popup show="{{ isShow }}" closeable round bind:close="onClose">
<view class="popup">
<view class="top">
<image src="{{ listInfo.user_portrait }}"></image>
<!-- <view class="popup_text">{{ listInfo.user_name }}</view> -->
<view class="tell" bindtap="tellPhone">电话联系我</view>
</view>
<view class="security">请勿轻易相信他人,线下见面请注意个人安全</view>
</view>
</van-popup>
</view>