Commit 37398911 by zhangxw

修改

1 parent d58f9c17
......@@ -15,7 +15,7 @@
width: 100%;
box-sizing: border-box;
margin-top: -66rpx;
background-image: linear-gradient(180deg, #ffffffb3 0%, #FFFFFF 9%);
background-image: linear-gradient(180deg, #ffffffb3 0%, #FFFFFF 100rpx);
border-radius: 24rpx 24rpx 0 0;
padding: 20rpx 0;
border: 2rpx solid #FFFFFF;
......
......@@ -220,7 +220,8 @@ Page({
// 商品搜素
handleSearch(e) {
this.setData({
goodsSkuName: e.detail
goodsSkuName: e.detail,
pageNum: 1
}, () => {
this.getGoodsList()
})
......@@ -230,7 +231,8 @@ Page({
changeTab(e) {
this.setData({
activeTab: e.detail.activeTab,
frontendCategoryId: e.detail?.activeSubTab
frontendCategoryId: e.detail?.activeSubTab,
pageNum: 1
}, () => {
this.getGoodsList()
})
......
/* pages/tab/index/pages/index/index.wxss */
page {
background-color: #F8F9FC;
}
.page-title {
text-align: center;
font-size: 34rpx;
......@@ -18,7 +14,6 @@ page {
top: 0;
z-index: -1;
}
.container-box {
height: 100vh;
overflow: hidden;
......@@ -29,7 +24,7 @@ page {
position: relative;
overflow: auto;
.points-box {
margin: 20rpx 20rpx 0 0;
margin: 8rpx 20rpx 0 0;
display: flex;
align-items: center;
justify-content: flex-end;
......@@ -62,12 +57,12 @@ page {
width: 100%;
box-sizing: border-box;
margin-top: 148rpx;
background-image: linear-gradient(180deg, #ffffffb3 0%, #FFFFFF 9%);
background-image: linear-gradient(180deg, #ffffffb3 0%, #FFFFFF 100rpx);
border-radius: 24rpx 24rpx 0 0;
padding: 20rpx 0;
border: 2rpx solid #FFFFFF;
border-bottom: 0;
backdrop-filter: blur(20rpx);
backdrop-filter: blur(2000rpx);
.notic-box {
box-sizing: border-box;
margin: 0 20rpx 16rpx 20rpx;
......@@ -117,32 +112,34 @@ page {
width: 100%;
height: 340rpx;
margin-bottom: 20rpx;
border-radius: 16rpx;
border-radius: 24rpx;
overflow: hidden;
position: relative;
.item-name {
// width: auto;
// height: 78rpx;
// position: absolute;
// padding: 10rpx 20rpx;
// left: 0;
// top: 0;
// background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/index/special-sale.png') no-repeat;
// background-size: auto 78rpx;
// color: #FFFFFF;
padding: 10rpx 20rpx;
position: absolute;
left: 0;
top: 0;
display: inline-block;
font-size: 24rpx;
font-weight: bold;
left: 0;
color: #FFFFFF;
background-image: linear-gradient(134deg, #FFB14E 11%, #FB8A32 96%);
border-top-left-radius: 24rpx; /* 左上角圆角 */
border-bottom-right-radius: 24px; /* 右下角圆角 */
border-top-right-radius: 0; /* 右上角无圆角 */
border-bottom-left-radius: 0; /* 左下角无圆角 */
font-weight: bold;
font-size: 24rpx;
display: flex;
.item-name-left{
width: 24rpx ;
height: 60rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/index/special-sale-left.png') no-repeat;
background-size: 100% 100%;
}
.item-name-middle {
background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/index/special-sale-middle.png') no-repeat;
background-size: 100% 100%;
padding: 6rpx 0;
}
.item-name-right{
width: 48rpx;
height: 60rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/index/special-sale-right.png') no-repeat;
background-size: 100% 100%;
}
}
&:last-child {
margin-bottom: 0;
......
......@@ -37,7 +37,11 @@
<view class="special-sale-box">
<view class="item" wx:for="{{specialSaleArr}}" wx:key="index" bindtap="handleSpecialSale" data-target="{{item}}">
<image src="{{item.entryImage}}"></image>
<view class="item-name">{{item.eventName}}</view>
<view class="item-name">
<view class="item-name-left"></view>
<view class="item-name-middle">{{item.eventName}}</view>
<view class="item-name-right"></view>
</view>
</view>
</view>
<!-- 商品 -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!