Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
e071ff68
Commit
e071ff68
authored
Jun 10, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
66666
parent
142df6e6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
530 additions
and
384 deletions
+530
-384
integral.js
api/integral.js
+11
-0
TabBarConLibrary.vue
components/TabBarConLibrary.vue
+1
-1
ContentLibrary.vue
pages/library/ContentLibrary.vue
+490
-367
Integral.vue
views/Integral.vue
+28
-16
No files found.
api/integral.js
0 → 100644
View file @
e071ff68
import
requestModule
from
'./request.js'
;
const
{
api
}
=
requestModule
;
/**
* 获取积分信息
* @returns
*/
export
const
fetchIntegralJSON
=
()
=>
api
.
get
(
'/c/front/content'
,{
type
:
'integral'
});
\ No newline at end of file
components/TabBarConLibrary.vue
View file @
e071ff68
...
...
@@ -9,7 +9,7 @@
>
<image
class=
"tab-bg"
:src=
"$baseUrl + (activeIndex === index ? 'contentLibrary/1001/tab-bg-cl0.png' : '
/static/
contentLibrary/1001/tab-bg-cl1.png')"
:src=
"$baseUrl + (activeIndex === index ? 'contentLibrary/1001/tab-bg-cl0.png' : 'contentLibrary/1001/tab-bg-cl1.png')"
mode=
"aspectFit"
/>
<text
...
...
pages/library/ContentLibrary.vue
View file @
e071ff68
This diff is collapsed.
Click to expand it.
views/Integral.vue
View file @
e071ff68
...
...
@@ -16,7 +16,7 @@
class=
"banner-img"
:src=
"$baseUrl + `integral/1001/$
{item?.bannerImg}`"
mode="aspectFill"
@click="bannerHandler(i
ndex
)"
@click="bannerHandler(i
tem?.url
)"
/>
</swiper-item>
</swiper>
...
...
@@ -301,15 +301,16 @@
// 轮播图数据可在此定义(当前使用静态路径)
// "rgba(255,255,255,0.5)"
import
{
ref
,
onMounted
,
onBeforeMount
}
from
'vue'
;
import
{
ref
,
onMounted
,
onBeforeMount
,
computed
}
from
'vue'
;
import
{
jump
,
JumpType
}
from
'@/utils/index.js'
import
{
useUserStore
}
from
"@/stores/user"
;
import
{
fetchIntegralJSON
}
from
'../api/integral'
;
const
integralData
=
{
const
integralData
=
ref
(
{
swiper
:
[
{
bannerImg
:
"integralBannerBg0.png"
,
url
:
"
https://www.baidu.com
"
,
url
:
"
subPackages/shopMainList/topicNew/index?id=1000916
"
,
type
:
0
}
,
{
...
...
@@ -491,7 +492,9 @@
// 其他分类数据...
]
}
}
;
}
);
// const integralData = ref(
{
}
);
const
swiperData
=
ref
([]);
//banner图片
const
vipLvIcons
=
ref
([]);
//会员等级图标
...
...
@@ -597,8 +600,14 @@
const
nickName
=
ref
(
''
);
//banner点击事件
const
bannerHandler
=
(
index
)
=>
{
const
url
=
swiperData
.
value
[
index
].
url
;
const
bannerHandler
=
(
url
)
=>
{
// const url = swiperData.value[index].url;
if
(
url
!=
""
){
jump
({
type
:
JumpType
.
MINI
,
url
:
url
}
)
}
console
.
log
(
'bannerHandler='
,
url
);
}
...
...
@@ -694,19 +703,22 @@
}
onBeforeMount
(
async
()
=>
{
console
.
log
(
'onBeforeMount'
);
const
{
data
}
=
await
fetchIntegralJSON
();
integralData
.
value
=
{...
data
}
;
}
)
onMounted
(
async
()
=>
{
swiperData
.
value
=
integralData
.
swiper
;
vipLvIcons
.
value
=
integralData
.
viplv
.
imgs
;
vipIntegral
.
value
=
integralData
.
vipIntegral
;
vipActive
.
value
=
integralData
.
vipActive
;
tabInfo
.
value
=
integralData
.
goodsListData
.
tabInfo
;
goodsData
.
value
=
integralData
.
goodsListData
.
goodsData
;
imgInfos
.
value
=
integralData
.
qunyiInfo
.
imgInfos
;
swiperData
.
value
=
integralData
.
value
.
swiper
;
vipLvIcons
.
value
=
integralData
.
v
alue
.
v
iplv
.
imgs
;
vipIntegral
.
value
=
integralData
.
v
alue
.
v
ipIntegral
;
vipActive
.
value
=
integralData
.
v
alue
.
v
ipActive
;
tabInfo
.
value
=
integralData
.
value
.
goodsListData
.
tabInfo
;
goodsData
.
value
=
integralData
.
value
.
goodsListData
.
goodsData
;
imgInfos
.
value
=
integralData
.
value
.
qunyiInfo
.
imgInfos
;
vipQuanyiData
.
value
=
[];
////??????
vipQuanyiData
.
value
=
integralData
.
qunyiInfo
.
vipLvsQuanyi
;
vipQuanyiData
.
value
=
integralData
.
value
.
qunyiInfo
.
vipLvsQuanyi
;
quanyiListIcon
.
value
=
[];
/////????
imgInfos
.
value
.
forEach
((
element
,
index
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment