first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1 @@
66e6454d-95df-41ad-9644-21fc66a9a615

View File

@@ -0,0 +1 @@
6c3b7a9b-2449-4f40-9d09-9103202846bf

View File

@@ -0,0 +1,38 @@
// component/item/item.js
Component({
/**
* 组件的属性列表
*/
properties: {
searchList: {
type: Array,
value: []
},
showDesc: {
type: Boolean,
value: true
}
},
options: {
addGlobalClass: true
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
enterInfo(e) {
wx.navigateTo({
url: `/pages/info/info?id=${e.currentTarget.dataset.id}`
})
}
}
})

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1,29 @@
<view class="list_wrap content" wx:if="{{ searchList.length != 0 }}">
<view class="list_item" wx:for="{{searchList}}" wx:key="thing_id" data-id="{{ item.thing_id }}" bindtap="enterInfo">
<view class="img">
<image src="{{ item.thing_img }}"></image>
<view class="{{ item.thing_status == 1 ? 'over' : '' }}">
{{
item.thing_type == 1
? item.thing_status == 1 ? '已认领' : ''
: item.thing_status == 1 ? '已寻回' : ''
}}
</view>
</view>
<view class="title">{{ item.thing_title }}</view>
<view wx:if="{{showDesc}}" class="desc van-ellipsis">{{ item.thing_introduce }}</view>
<block wx:else></block>
<view class="user">
<image src="{{ item.user_portrait }}"></image>
<view class="name">{{ item.user_name }}</view>
</view>
</view>
</view>
<view wx:else class="ondata">
<image src="../../images/img/noLogin.png"></image>
<view class="tips">无数据</view>
</view>

View File

@@ -0,0 +1,71 @@
.list_wrap {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
background: #fff;
padding-bottom: 80rpx;
padding-top: 40rpx;
}
.list_item {
width: 48.5%;
margin-bottom: 40rpx;
}
.list_wrap .img {
width: 100%;
height: 370rpx;
position: relative;
}
.list_wrap .img image {
width: 100%;
height: 100%;
border-radius: 20rpx;
}
.list_wrap .img .over {
position: absolute;
color: #fff;
background: #abababcf;
left: 0;
top: 0;
width: 100%;
height: 100%;
border-radius: 30rpx;
font-size: 31rpx;
letter-spacing: 4px;
font-weight: 900;
display: flex;
align-items: center;
justify-content: center;
}
.list_wrap .title {
font-size: 32rpx;
margin-top: 20rpx;
margin-bottom: 18rpx;
font-weight: 400;
}
.list_wrap .desc {
font-size: 27rpx;
}
.list_wrap .user {
display: flex;
align-items: center;
margin-top: 20rpx;
}
.list_wrap .user image {
width: 49rpx;
height: 49rpx;
border-radius: 100%;
}
.list_wrap .user .name {
font-size: 26rpx;
color: #999;
margin-left: 18rpx;
}