Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
points-mall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 37398911
authored
Aug 27, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
d58f9c17
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
32 deletions
packageIndex/pages/SpecialSale/SpecialSale.scss
pages/tab/index/index.js
pages/tab/index/index.scss
pages/tab/index/index.wxml
packageIndex/pages/SpecialSale/SpecialSale.scss
View file @
3739891
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
width
:
100%
;
width
:
100%
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin-top
:
-66rpx
;
margin-top
:
-66rpx
;
background-image
:
linear-gradient
(
180deg
,
#ffffff
b3
0%
,
#FFFFFF
9%
);
background-image
:
linear-gradient
(
180deg
,
#ffffff
b3
0%
,
#FFFFFF
100rpx
);
border-radius
:
24rpx
24rpx
0
0
;
border-radius
:
24rpx
24rpx
0
0
;
padding
:
20rpx
0
;
padding
:
20rpx
0
;
border
:
2rpx
solid
#FFFFFF
;
border
:
2rpx
solid
#FFFFFF
;
...
...
pages/tab/index/index.js
View file @
3739891
...
@@ -220,7 +220,8 @@ Page({
...
@@ -220,7 +220,8 @@ Page({
// 商品搜素
// 商品搜素
handleSearch
(
e
)
{
handleSearch
(
e
)
{
this
.
setData
({
this
.
setData
({
goodsSkuName
:
e
.
detail
goodsSkuName
:
e
.
detail
,
pageNum
:
1
},
()
=>
{
},
()
=>
{
this
.
getGoodsList
()
this
.
getGoodsList
()
})
})
...
@@ -230,7 +231,8 @@ Page({
...
@@ -230,7 +231,8 @@ Page({
changeTab
(
e
)
{
changeTab
(
e
)
{
this
.
setData
({
this
.
setData
({
activeTab
:
e
.
detail
.
activeTab
,
activeTab
:
e
.
detail
.
activeTab
,
frontendCategoryId
:
e
.
detail
?.
activeSubTab
frontendCategoryId
:
e
.
detail
?.
activeSubTab
,
pageNum
:
1
},
()
=>
{
},
()
=>
{
this
.
getGoodsList
()
this
.
getGoodsList
()
})
})
...
...
pages/tab/index/index.scss
View file @
3739891
/* pages/tab/index/pages/index/index.wxss */
/* pages/tab/index/pages/index/index.wxss */
page
{
background-color
:
#F8F9FC
;
}
.page-title
{
.page-title
{
text-align
:
center
;
text-align
:
center
;
font-size
:
34rpx
;
font-size
:
34rpx
;
...
@@ -18,7 +14,6 @@ page {
...
@@ -18,7 +14,6 @@ page {
top
:
0
;
top
:
0
;
z-index
:
-1
;
z-index
:
-1
;
}
}
.container-box
{
.container-box
{
height
:
100vh
;
height
:
100vh
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -29,7 +24,7 @@ page {
...
@@ -29,7 +24,7 @@ page {
position
:
relative
;
position
:
relative
;
overflow
:
auto
;
overflow
:
auto
;
.points-box
{
.points-box
{
margin
:
20
rpx
20rpx
0
0
;
margin
:
8
rpx
20rpx
0
0
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
...
@@ -62,12 +57,12 @@ page {
...
@@ -62,12 +57,12 @@ page {
width
:
100%
;
width
:
100%
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin-top
:
148rpx
;
margin-top
:
148rpx
;
background-image
:
linear-gradient
(
180deg
,
#ffffff
b3
0%
,
#FFFFFF
9%
);
background-image
:
linear-gradient
(
180deg
,
#ffffff
b3
0%
,
#FFFFFF
100rpx
);
border-radius
:
24rpx
24rpx
0
0
;
border-radius
:
24rpx
24rpx
0
0
;
padding
:
20rpx
0
;
padding
:
20rpx
0
;
border
:
2rpx
solid
#FFFFFF
;
border
:
2rpx
solid
#FFFFFF
;
border-bottom
:
0
;
border-bottom
:
0
;
backdrop-filter
:
blur
(
20rpx
);
backdrop-filter
:
blur
(
20
00
rpx
);
.notic-box
{
.notic-box
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin
:
0
20rpx
16rpx
20rpx
;
margin
:
0
20rpx
16rpx
20rpx
;
...
@@ -117,32 +112,34 @@ page {
...
@@ -117,32 +112,34 @@ page {
width
:
100%
;
width
:
100%
;
height
:
340rpx
;
height
:
340rpx
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
border-radius
:
16
rpx
;
border-radius
:
24
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
position
:
relative
;
position
:
relative
;
.item-name
{
.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
;
position
:
absolute
;
left
:
0
;
top
:
0
;
top
:
0
;
display
:
inline-block
;
left
:
0
;
font-size
:
24rpx
;
font-weight
:
bold
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
background-image
:
linear-gradient
(
134deg
,
#FFB14E
11%
,
#FB8A32
96%
);
font-weight
:
bold
;
border-top-left-radius
:
24rpx
;
/* 左上角圆角 */
font-size
:
24rpx
;
border-bottom-right-radius
:
24px
;
/* 右下角圆角 */
display
:
flex
;
border-top-right-radius
:
0
;
/* 右上角无圆角 */
.item-name-left
{
border-bottom-left-radius
:
0
;
/* 左下角无圆角 */
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
{
&
:last-child
{
margin-bottom
:
0
;
margin-bottom
:
0
;
...
...
pages/tab/index/index.wxml
View file @
3739891
...
@@ -37,7 +37,11 @@
...
@@ -37,7 +37,11 @@
<view class="special-sale-box">
<view class="special-sale-box">
<view class="item" wx:for="{{specialSaleArr}}" wx:key="index" bindtap="handleSpecialSale" data-target="{{item}}">
<view class="item" wx:for="{{specialSaleArr}}" wx:key="index" bindtap="handleSpecialSale" data-target="{{item}}">
<image src="{{item.entryImage}}"></image>
<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>
</view>
</view>
<!-- 商品 -->
<!-- 商品 -->
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment