Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d1cc9f49
authored
Jun 24, 2026
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'saas+v5.8.3' of
http://192.168.3.233:8090/glsx/gl_tape
into saas+v5.8.3
2 parents
fcb60ece
ce7a67bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
149 additions
and
66 deletions
api/module/common.js
components/HomeFrame/components/ActivityTime/index.vue
components/HomeFrame/index.vue
api/module/common.js
View file @
d1cc9f4
...
...
@@ -725,7 +725,7 @@ module.exports = {
getPrelernHomePopupAPI
(
data
=
{})
{
return
http
.
post
({
method
:
'dj.api.pad.prelearn.home.popup'
,
projectName
:
'
boutique
'
,
projectName
:
'
pad
'
,
...
data
})
},
...
...
@@ -735,7 +735,7 @@ module.exports = {
deductSkipCountAPI
(
data
=
{})
{
return
http
.
post
({
method
:
'dj.api.pad.prelearn.deduct.skip'
,
projectName
:
'
boutique
'
,
projectName
:
'
pad
'
,
...
data
})
},
...
...
components/HomeFrame/components/ActivityTime/index.vue
View file @
d1cc9f4
...
...
@@ -34,12 +34,12 @@
<view
class=
"goods-img-wrap"
>
<image
class=
"goods-img"
:src=
"
require('@/assets/images/common/bg-activity-time.png')
"
:src=
"
mainImageUrl
"
mode=
"aspectFill"
/>
<view
class=
"tiem-tag"
>
<image
class=
"tiem-tag-img"
:src=
"require('@/assets/images/common/icon-activity-date.png')"
mode=
"aspectFit"
></image>
<text
class=
"tiem-tag-text"
>
活动时间:
2026-11-01至2026-11-10
</text>
<text
class=
"tiem-tag-text"
>
活动时间:
{{
startTime
}}
至
{{
endTime
}}
</text>
</view>
</view>
...
...
@@ -51,14 +51,14 @@
:class=
"['goods-item',
{ active: goodsIndex === index }]"
@click="handleGoodsClick(item, index)"
>
<view
v-if=
"item.isMain"
class=
"goods-item-badge"
>
主推
</view>
<view
v-if=
"item.isMain
Push
"
class=
"goods-item-badge"
>
主推
</view>
<view
v-else
class=
"goods-item-badge badge02"
>
次推
</view>
<view
class=
"goods-item-img-wrap"
>
<image
class=
"goods-item-img"
:src=
"item.
cover
"
mode=
"aspectFill"
/>
<image
class=
"goods-item-img"
:src=
"item.
thumbImageUrl
"
mode=
"aspectFill"
/>
</view>
<view
class=
"goods-item-content"
>
<text
class=
"goods-item-name"
>
{{
item
.
name
}}
</text>
<
text
class=
"goods-item-desc"
>
{{
item
.
description
}}
</text
>
<
view
class=
"goods-item-desc text-two-line"
>
{{
item
.
description
}}
</view
>
<view
class=
"goods-item-price-wrap"
>
<text
class=
"goods-item-price"
>
¥
{{
item
.
price
}}
</text>
<text
v-if=
"item.originalPrice"
class=
"goods-item-original-price"
>
¥
{{
item
.
originalPrice
}}
</text>
...
...
@@ -159,6 +159,18 @@ export default {
?
this
.
carSeriesList
.
flatMap
(
series
=>
series
.
productList
??
[])
:
(
this
.
selectedCarTab
?.
productList
??
[])
return
productList
.
map
(
product
=>
this
.
mapProductItem
(
product
))
},
selectedGoods
()
{
return
this
.
goodsList
[
this
.
goodsIndex
]
||
{}
},
mainImageUrl
()
{
return
this
.
selectedGoods
.
mainImageUrl
},
startTime
()
{
return
this
.
selectedGoods
.
startTime
||
''
},
endTime
()
{
return
this
.
selectedGoods
.
endTime
||
''
}
},
watch
:
{
...
...
@@ -200,7 +212,11 @@ export default {
description
:
product
.
tabDescription
||
''
,
price
:
this
.
formatPrice
(
hasValidDiscount
?
discountPrice
:
currentPrice
),
originalPrice
:
hasValidDiscount
?
this
.
formatPrice
(
currentPrice
)
:
''
,
isMain
:
product
.
isMainPush
===
1
,
isMainPush
:
product
.
isMainPush
===
1
,
mainImageUrl
:
product
.
mainImageUrl
,
startTime
:
product
.
startTime
,
endTime
:
product
.
endTime
,
thumbImageUrl
:
product
.
thumbImageUrl
,
cover
:
GOODS_COVER
}
},
...
...
@@ -456,12 +472,9 @@ export default {
font-size
:
13px
;
line-height
:
16px
;
color
:
#999EA8
;
overflow
:
hidden
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
line-clamp
:
2
;
height
:
32px
;
white-space
:
normal
;
word-break
:
break-all
;
overflow-wrap
:
break-word
;
}
.goods-item-price-wrap
{
...
...
components/HomeFrame/index.vue
View file @
d1cc9f4
...
...
@@ -393,7 +393,7 @@ export default {
uni
.
$off
(
'pageBack'
)
},
async
mounted
()
{
console
.
log
(
'sessionId
'
,
this
.
sessionId
)
console
.
log
(
'sessionId
**'
,
uni
.
$storage
.
get
(
'sessionId'
)
)
this
.
_syncShowFloatLog
()
this
.
_unsubFloatLog
=
FloatLogConfig
.
subscribe
(()
=>
{
this
.
_syncShowFloatLog
()
...
...
@@ -490,6 +490,8 @@ export default {
this
.
getStoreBaseSceneCodeList
()
this
.
getStrategyStatus
()
this
.
getPrelearnHome
()
},
methods
:
{
handleHomeContentTabClick
(
index
)
{
...
...
@@ -707,14 +709,14 @@ export default {
* 查询策略首页数据状态(营销活动和客户列表是否有数据)
*/
async
getStrategyStatus
()
{
const
res
=
await
uni
.
$api
.
activityApi
.
getActivityStatusAPI
()
// const res = {
// marketingActivityHasData: true,
// customerListHasData: true
// }
// const res = await uni.$api.activityApi.getActivityStatusAPI()
// console.log('查询策略首页数据状态(营销活动和客户列表是否有数据):', res)
const
res
=
{
marketingActivityHasData
:
true
,
customerListHasData
:
true
}
if
(
!
res
)
return
console
.
log
(
'查询策略首页数据状态(营销活动和客户列表是否有数据):'
,
res
)
this
.
marketingActivityHasData
=
!!
res
.
marketingActivityHasData
this
.
customerListHasData
=
!!
res
.
customerListHasData
this
.
homeContentTabIndex
=
0
...
...
@@ -724,55 +726,123 @@ export default {
this
.
getActivityProductList
()
}
},
/**
* 查询当前进行中的营销活动商品列表
*/
async
getActivityProductList
()
{
// const res = await uni.$api.activityApi.getActivityProductListAPI()
const
res
=
[
{
marketingStage
:
0
,
carSeriesList
:[
{
carSeriesId
:
'0001'
,
carSeriesName
:
'问界M5'
,
productList
:[
{
tabName
:
'这是活动商品/套餐限时保养套餐限时保养套餐'
,
detailImageUrl
:
'免排队·省时·省钱,包含机油更换、机滤、空调滤全套服务。'
,
tabDescription
:
1999
,
discountPrice
:
''
,
endTime
:
'2026-11-10'
,
startTime
:
'2026-11-01'
,
isMainPush
:
0
,
productType
:
0
,
currentPrice
:
9999
,
thumbImageUrl
:
''
,
productId
:
''
,
mainImageUrl
:
''
},
{
tabName
:
'这是活动商品/套餐限时保养套餐限时保养套餐'
,
detailImageUrl
:
'免排队·省时·省钱,包含机油更换、机滤、空调滤全套服务。'
,
tabDescription
:
1999
,
discountPrice
:
''
,
endTime
:
'2026-11-10'
,
startTime
:
'2026-11-01'
,
isMainPush
:
0
,
productType
:
0
,
currentPrice
:
9999
,
thumbImageUrl
:
''
,
productId
:
''
,
mainImageUrl
:
''
},
{
tabName
:
'这是活动商品/套餐限时保养套餐限时保养套餐'
,
detailImageUrl
:
'免排队·省时·省钱,包含机油更换、机滤、空调滤全套服务。'
,
tabDescription
:
1999
,
discountPrice
:
''
,
endTime
:
'2026-11-10'
,
startTime
:
'2026-11-01'
,
isMainPush
:
0
,
productType
:
0
,
currentPrice
:
9999
,
thumbImageUrl
:
''
,
productId
:
''
,
mainImageUrl
:
''
}
]
},
{
carSeriesId
:
'0002'
,
carSeriesName
:
'问界M9'
,
productList
:[
{
tabName
:
'618大促精品套餐'
,
detailImageUrl
:
''
,
tabDescription
:
'免排队·省时·省钱,包含机油更换、机滤、空调滤全套服务。'
,
discountPrice
:
1990
,
endTime
:
'2026-11-10'
,
startTime
:
'2026-11-01'
,
isMainPush
:
0
,
productType
:
0
,
currentPrice
:
1999
,
thumbImageUrl
:
''
,
productId
:
''
,
mainImageUrl
:
''
},
{
tabName
:
'618大促精品套餐'
,
detailImageUrl
:
''
,
tabDescription
:
'免排队·省时·省钱,包含机油更换、机滤、空调滤全套服务。'
,
discountPrice
:
1990
,
endTime
:
'2026-11-10'
,
startTime
:
'2026-11-01'
,
isMainPush
:
0
,
productType
:
0
,
currentPrice
:
1999
,
thumbImageUrl
:
''
,
productId
:
''
,
mainImageUrl
:
''
},
{
tabName
:
'618大促精品套餐'
,
detailImageUrl
:
''
,
tabDescription
:
'免排队·省时·省钱,包含机油更换、机滤、空调滤全套服务。'
,
discountPrice
:
1990
,
endTime
:
'2026-11-10'
,
startTime
:
'2026-11-01'
,
isMainPush
:
0
,
productType
:
0
,
currentPrice
:
1999
,
thumbImageUrl
:
''
,
productId
:
''
,
mainImageUrl
:
''
}
]
}
]
},
{
marketingStage
:
1
,
carSeriesList
:[
{
carSeriesId
:
'1001'
,
carSeriesName
:
'问界M5'
,
productList
:[
{
tabName
:
'618大促精品套餐'
,
detailImageUrl
:
''
,
tabDescription
:
''
,
discountPrice
:
'这是选项卡描述-包含机油更换、机滤、空调滤、空气滤全套服务,活动期间享受8折优惠,先到先得。'
,
discountPrice
:
1990
,
endTime
:
'2026-11-10'
,
startTime
:
'2026-11-01'
,
isMainPush
:
0
,
productType
:
0
,
currentPrice
:
2200
,
thumbImageUrl
:
''
,
productId
:
''
,
mainImageUrl
:
''
}
]
},
{
carSeriesId
:
'1002'
,
carSeriesName
:
'问界M7'
,
productList
:[
{
tabName
:
'这是活动商品/套餐限时保养套餐限时保养套餐'
,
detailImageUrl
:
''
,
tabDescription
:
'这是选项卡描述-包含机油更换、机滤、空调滤、空气滤全套服务,活动期间享受8折优惠,先到先得。'
,
discountPrice
:
1899
,
endTime
:
'2026-11-10'
,
startTime
:
'2026-11-01'
,
isMainPush
:
0
,
productType
:
0
,
currentPrice
:
2100
,
thumbImageUrl
:
''
,
productId
:
''
,
mainImageUrl
:
''
}
]
}
]
}
]
const
{
merchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
console
.
log
(
'**&&merchantId**'
,
merchantId
)
// const res = await uni.$api.activityApi.getActivityProductListAPI({merchantId: 44211227})
// console.log('查询当前进行中的营销活动商品列表:', res)
const
res
=
[{
"marketingStage"
:
0
,
"carSeriesList"
:
[{
"carSeriesId"
:
-
1
,
"carSeriesName"
:
"通用"
,
"productList"
:
[{
"productId"
:
11
,
"productType"
:
0
,
"tabName"
:
"tttttttt"
,
"tabDescription"
:
"ttttttttttttttttttttt22222"
,
"isMainPush"
:
1
,
"currentPrice"
:
1680
,
"discountPrice"
:
2334
,
"mainImageUrl"
:
"https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/png/1782268203073_9522/主图.png"
,
"thumbImageUrl"
:
"https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/png/1782268229667_7133/小图.png"
,
"detailImageUrl"
:
"https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/png/1782268222766_6445/详情图.png"
,
"startTime"
:
"06-01"
,
"endTime"
:
"06-30"
},
{
"productId"
:
3
,
"productType"
:
1
,
"tabName"
:
"tttttttt"
,
"tabDescription"
:
"ttttttttttttttttttttt22222"
,
"isMainPush"
:
1
,
"currentPrice"
:
1680
,
"discountPrice"
:
2334
,
"mainImageUrl"
:
""
,
"thumbImageUrl"
:
""
,
"detailImageUrl"
:
""
,
"startTime"
:
"06-01"
,
"endTime"
:
"06-30"
}
]
}]
},
{
"marketingStage"
:
1
,
"carSeriesList"
:
[{
"carSeriesId"
:
2001
,
"carSeriesName"
:
"奔驰C级"
,
"productList"
:
[{
"productId"
:
13
,
"productType"
:
0
,
"tabName"
:
"tttttttt"
,
"tabDescription"
:
"ttttttttttttttttttttt22222"
,
"isMainPush"
:
1
,
"currentPrice"
:
3000
,
"discountPrice"
:
60
,
"mainImageUrl"
:
null
,
"thumbImageUrl"
:
null
,
"detailImageUrl"
:
null
,
"startTime"
:
"06-01"
,
"endTime"
:
"07-31"
},
{
"productId"
:
14
,
"productType"
:
0
,
"tabName"
:
"tttttttt"
,
"tabDescription"
:
"ttttttttttttttttttttt22222"
,
"isMainPush"
:
1
,
"currentPrice"
:
3000
,
"discountPrice"
:
60
,
"mainImageUrl"
:
null
,
"thumbImageUrl"
:
null
,
"detailImageUrl"
:
null
,
"startTime"
:
"06-01"
,
"endTime"
:
"07-31"
},
{
"productId"
:
12
,
"productType"
:
0
,
"tabName"
:
"tttttttt"
,
"tabDescription"
:
"套餐 MPG2026051713284619631"
,
"isMainPush"
:
0
,
"currentPrice"
:
3000
,
"discountPrice"
:
60
,
"mainImageUrl"
:
null
,
"thumbImageUrl"
:
null
,
"detailImageUrl"
:
null
,
"startTime"
:
"06-01"
,
"endTime"
:
"07-31"
}
]
}]
}
]
this
.
activityProductList
=
res
// console.log('查询当前进行中的营销活动商品列表:', res)
},
/**
* 查询预学习首页弹框信息
*/
async
getPrelearnHome
()
{
const
res
=
await
uni
.
$api
.
commonApi
.
getPrelernHomePopupAPI
()
// const res = {
// "activityId": null,
// "activityName": null,
// "packages": null,
// "remainingSkipCount": null,
// "shouldPopup": false,
// "muteReason": null,
// "remainingActivityCount": null
// }
console
.
log
(
'查询预学习首页弹框信息:'
,
res
)
if
(
res
)
{
this
.
showPreStudyPopup
=
res
.
shouldPopup
}
},
handleFooter
(
val
)
{
this
.
footerBox
=
val
},
...
...
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