解决了已知问题

This commit is contained in:
Ling53666
2025-05-11 15:12:01 +08:00
parent 36cc2fe7ba
commit bb84973913
41 changed files with 2980 additions and 801 deletions

View File

@ -5,6 +5,17 @@ Page({
* 页面的初始数据
*/
data: {
picture:[{
image:'/image/20250407154233.jpg'
},
{
image:'/image/20250407154300.png'
},
{
image:'/image/20250407154310.png'
}
],
items: [null, null],
messageshop: [
{ name: '红枣夹核桃 500g 坚果大礼包', image: '/image/logo.png', price: 65, oldPrice: 99 },
{ name: '新疆大枣 1000g 优选原产地', image: '/image/logo.png', price: 48, oldPrice: 78 },
@ -17,6 +28,11 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
goumai(){
wx.navigateTo({
url: '/pages/findxiangqing/findxiangqing',
})
},
onLoad(options) {
},

View File

@ -0,0 +1,70 @@
<view class="flex-col page">
<swiper class="swiper" autoplay circular indicator-dots>
<swiper-item wx:for="{{picture}}" wx:key="index">
<image class="imagesize" src="{{item.image}}" mode="aspectFill" />
</swiper-item>
</swiper>
<view class="mt-16 flex-row justify-evenly group">
<view class="flex-col justify-start items-center text-wrapper"><text class="font text">全部</text></view>
<view class="flex-col justify-start items-center text-wrapper_2"><text class="font text_2">公考笔试</text></view>
<view class="flex-col justify-start text-wrapper_3"><text class="font text_3">事业单位</text></view>
<view class="flex-col justify-start text-wrapper_3"><text class="font text_4">教师资格证</text></view>
</view>
<view class="mt-16 flex-col list">
<view
class="flex-col relative mt-20 list-item"
wx:for="{{items}}"
wx:for-item="item"
wx:for-index="index"
wx:key="index"
>
<text class="self-start font_2 text_5">【早晚课】最全面公考资料</text>
<text class="self-start font_3 text_6">2025.5.10开课至2025.10.10日 早7晚10 每周休一天</text>
<view class="flex-row self-stretch group_2">
<view class="flex-col justify-start text-wrapper_4"><text class="font_4 text_7">一周六天</text></view>
<view class="ml-26 flex-col justify-start text-wrapper_4"><text class="font_4 text_8">名师授课</text></view>
</view>
<view class="flex-row justify-between items-end self-stretch group_3">
<view class="flex-row">
<view class="flex-col">
<view class="flex-row">
<image
class="image_2"
src="https://ide.code.fun/api/image?token=68199c7e4ae84d00122ebbb9&name=f14ebd9d7d107dcdcc3502578c9804ac.png"
/>
<image
class="ml-20 image_3"
src="https://ide.code.fun/api/image?token=68199c7e4ae84d00122ebbb9&name=32000e6a12c1fe3deb6acc69b8aefa04.png"
/>
</view>
<view class="mt-10 flex-row group_4">
<text class="font_8">教师1</text>
<text class="ml-34 font_8">教师2</text>
</view>
</view>
<view class="ml-24 flex-col items-center">
<image
class="image_2"
src="https://ide.code.fun/api/image?token=68199c7e4ae84d00122ebbb9&name=f14ebd9d7d107dcdcc3502578c9804ac.png"
/>
<text class="mt-10 font_8">教师3</text>
</view>
</view>
<view class="flex-col">
<view class="flex-row">
<view class="flex-col justify-start items-center shrink-0 text-wrapper_5" bind:tap="goumai">
<text class="font_2 text_9">购买</text>
</view>
<text class="ml-18 self-start font_5 text_10">¥1000</text>
</view>
<view class="flex-row mt-13">
<view class="flex-col justify-start items-center shrink-0 text-wrapper_6" bind:tap="goumai">
<text class="font_6 text_11">试听</text>
</view>
<text class="ml-20 self-start font_7 text_12 text_13">50积分</text>
</view>
</view>
</view>
</view>
</view>
</view>

View File

@ -1,74 +1,199 @@
/* pages/find/find.wxss */.show {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 20rpx;
box-sizing: border-box;
.mt-13 {
margin-top: 25rpx;
}
.shopping {
width: 45%;
margin: 10rpx;
.page {
padding-bottom: 313.46rpx;
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;
overflow-y: auto;
overflow-x: hidden;
}
.imagesize {
.image {
width: 100vw;
height: 48.7179vw;
}
.group {
padding: 0 13.46rpx;
}
.text-wrapper {
padding: 7.69rpx 0;
background-color: #ff8d1a;
border-radius: 19.23rpx;
width: 111.54rpx;
height: 46.15rpx;
}
.font {
font-size: 26.92rpx;
font-family: SourceHanSansCN;
line-height: 23.35rpx;
color: #000000;
}
.text {
color: #ffffff;
line-height: 25.02rpx;
}
.text-wrapper_2 {
padding: 7.69rpx 0;
background-color: #ffffff;
border-radius: 19.23rpx;
width: 184.62rpx;
height: 48.08rpx;
border-left: solid 1.92rpx #e5e5e5;
border-right: solid 1.92rpx #e5e5e5;
border-top: solid 1.92rpx #e5e5e5;
border-bottom: solid 1.92rpx #e5e5e5;
}
.text_2 {
line-height: 24.83rpx;
}
.text-wrapper_3 {
padding: 7.69rpx 0;
background-color: #ffffff;
border-radius: 19.23rpx;
height: 48.08rpx;
border-left: solid 1.92rpx #e5e5e5;
border-right: solid 1.92rpx #e5e5e5;
border-top: solid 1.92rpx #e5e5e5;
border-bottom: solid 1.92rpx #e5e5e5;
}
.text_3 {
margin-left: 11.54rpx;
line-height: 25.04rpx;
}
.text_4 {
margin: 0 15.38rpx;
line-height: 24.88rpx;
}
.list {
padding: 0 25rpx;
}
.list-item {
padding: 26.92rpx 15.38rpx 53.85rpx 23.08rpx;
background-color: #ffffff;
border-radius: 19.23rpx;
box-shadow: 0rpx 3.85rpx 7.69rpx #00000040;
}
.list-item:first-child {
margin-top: 0;
}
.font_2 {
font-size: 30.77rpx;
font-family: SourceHanSansCN;
line-height: 28.83rpx;
color: #000000;
}
.text_5 {
margin-left: 7.69rpx;
}
.font_3 {
font-size: 26.92rpx;
font-family: SourceHanSansCN;
line-height: 30.77rpx;
color: #808080;
}
.text_6 {
margin-left: 7.69rpx;
margin-top: 23.08rpx;
font-size: 25rpx;
text-align: center;
width: 444.23rpx;
}
.group_2 {
margin-top: 23.08rpx;
padding: 0 5.77rpx;
}
.font_4 {
font-size: 15.38rpx;
font-family: SourceHanSansCN;
line-height: 14.17rpx;
color: #e33c64;
}
.text_7 {
margin: 0 7.69rpx;
}
.text-wrapper_4 {
padding: 3.85rpx 0;
background-color: #fc7e0961;
height: 23.08rpx;
}
.text_8 {
margin: 0 7.69rpx;
line-height: 14.21rpx;
}
.group_3 {
margin-top: 34.62rpx;
}
.image_2 {
border-radius: 288.46rpx;
width: 76.92rpx;
height: 76.92rpx;
}
.image_3 {
border-radius: 288.46rpx;
width: 69.23rpx;
height: 76.92rpx;
}
.group_4 {
padding-left: 11.54rpx;
}
.font_8 {
font-size: 21.15rpx;
font-family: SourceHanSansCN;
line-height: 19.52rpx;
color: #000000;
}
.text-wrapper_5 {
padding: 26.92rpx 0 11.54rpx;
background-color: #a5d63fcc;
border-radius: 19.23rpx;
width: 111.54rpx;
height: 65.38rpx;
}
.text_9 {
line-height: 19.37rpx;
}
.font_5 {
font-size: 30.77rpx;
font-family: SourceHanSansCN;
line-height: 23.35rpx;
color: #d43030;
}
.text_10 {
margin-top: 26.92rpx;
}
.text-wrapper_6 {
padding: 15.38rpx 0 23.08rpx;
background-color: #ff8d1a;
border-radius: 19.23rpx;
width: 111.54rpx;
height: 65.38rpx;
}
.font_6 {
font-size: 30.77rpx;
font-family: SourceHanSansCN;
line-height: 28.83rpx;
color: #ffffff;
}
.text_11 {
line-height: 35.1rpx;
}
.font_7 {
font-size: 30.77rpx;
font-family: SourceHanSansCN;
line-height: 28.83rpx;
color: #d43030;
}
.text_12 {
line-height: 28.12rpx;
}
.text_13 {
margin-top: 11.54rpx;
}
.swiper{
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;
height:400rpx;
}
.imagesize{
width: 100%;
height: 100%;
}