initial commit

This commit is contained in:
Ling53666
2025-04-28 15:59:21 +08:00
commit 36cc2fe7ba
55 changed files with 2627 additions and 0 deletions

72
pages/find/find.js Normal file
View File

@ -0,0 +1,72 @@
// pages/find/find.js
Page({
/**
* 页面的初始数据
*/
data: {
messageshop: [
{ name: '红枣夹核桃 500g 坚果大礼包', image: '/image/logo.png', price: 65, oldPrice: 99 },
{ name: '新疆大枣 1000g 优选原产地', image: '/image/logo.png', price: 48, oldPrice: 78 },
{ name: '每日坚果混合果仁干果套餐', image: '/image/logo.png', price: 88, oldPrice: 129 },
{ name: '每日坚果混合果仁干果套餐', image: '/image/logo.png', price: 88, oldPrice: 129 },
// 继续添加...
]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

3
pages/find/find.json Normal file
View File

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

0
pages/find/find.wxml Normal file
View File

74
pages/find/find.wxss Normal file
View File

@ -0,0 +1,74 @@
/* pages/find/find.wxss */.show {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 20rpx;
box-sizing: border-box;
}
.shopping {
width: 45%;
margin: 10rpx;
background-color: #ffffff;
border-radius: 20rpx;
box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.08);
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.2s ease;
}
.shopping:active {
transform: scale(0.97);
}
.imagebox {
width: 100%;
aspect-ratio: 1;
background-color: #f6f6f6;
overflow: hidden;
}
.imagesize {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.tetxt {
padding: 16rpx;
display: flex;
flex-direction: column;
gap: 10rpx;
}
.wraptext {
font-size: 26rpx;
color: #333;
line-height: 1.4;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2; /* 最多显示2行 */
-webkit-box-orient: vertical;
text-overflow: ellipsis;
}
.price-row {
display: flex;
justify-content: space-between;
align-items: center;
}
.price-now {
color: #fc7e09;
font-size: 28rpx;
font-weight: bold;
}
.price-old {
color: #aaa;
font-size: 24rpx;
text-decoration: line-through;
}