Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_uniapp
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
intel_promotion_uniapp
Commits
1eed2b8f
Commit
1eed2b8f
authored
Jan 09, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改页面样式
parent
cd520015
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
pages.json
pages.json
+2
-1
index.vue
pages/shop/index.vue
+19
-10
No files found.
pages.json
View file @
1eed2b8f
...
...
@@ -14,7 +14,8 @@
"pages"
:
[{
"path"
:
"pages/shop/index"
,
"style"
:
{
"onReachBottomDistance"
:
80
//开启触底加载
"onReachBottomDistance"
:
80
,
//开启触底加载
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/shop/search"
,
...
...
pages/shop/index.vue
View file @
1eed2b8f
...
...
@@ -6,10 +6,15 @@
:list=
"topicList"
circular
indicator
height=
"
38
0"
height=
"
50
0"
indicatorMode=
"line"
@
click=
"navigateToPage"
></u-swiper>
<div
class=
"center-text"
>
<span
style=
"color: #ffffff;font-size: 18px;padding-left: 55rpx"
>
鸿泽云智能推广系统
</span>
<u-line
color=
"#ffffff"
></u-line>
<span
style=
"font-size: 10px;color: white"
>
Hongze Cloud Intelligent Promotion System
</span>
</div>
</u-col>
</u-row>
<view
style=
"padding-bottom: 30rpx;"
>
...
...
@@ -19,8 +24,8 @@
<span>
推荐
</span>
</view>
<view
style=
"width:55%; margin-top: 25rpx; display: flex;justify-content: space-between;"
>
<button
style=
"width:
170rpx;height: 80rpx
;font-size: 15px"
@
click=
"onButtonClicked(0)"
:class=
"
{ active: curNow === 0 }">文章
</button>
<button
style=
"width:
170rpx;height: 80rpx
;font-size: 15px"
@
click=
"onButtonClicked(1)"
:class=
"
{ active: curNow === 1 }">视频
</button>
<button
style=
"width:
45%;height: 10%
;font-size: 15px"
@
click=
"onButtonClicked(0)"
:class=
"
{ active: curNow === 0 }">文章
</button>
<button
style=
"width:
45%;height: 10%
;font-size: 15px"
@
click=
"onButtonClicked(1)"
:class=
"
{ active: curNow === 1 }">视频
</button>
</view>
</view>
<view
v-if=
"curNow === 0 && hotList.length > 0"
>
...
...
@@ -29,7 +34,7 @@
<view
class=
"cardtitle"
@
click=
"toDetail(item.businessId)"
>
<view
class=
"cardtitle1"
>
{{
item
.
title
}}
</view>
<view
class=
"cardtitle2"
>
{{
item
.
details
.
replace
(
/<
[^
>
]
*>/g
,
''
)
}}
</view>
<view
style=
"color: rgb(191, 191, 191)"
>
推广量:
{{
item
.
readNum
||
'-'
}}
</view>
<view
style=
"color: rgb(191, 191, 191)"
>
推广量:
{{
formatReadNum
(
item
)
}}
</view>
</view>
</view>
<u-loadmore
:status=
"articleStatus"
/>
...
...
@@ -42,7 +47,7 @@
<image
:src=
"item.defaultUrl"
class=
"cardimage"
@
click=
"toDetail(item.businessId)"
></image>
<view
class=
"cardtitle"
@
click=
"toDetail(item.businessId)"
>
<view
class=
"cardtitle1"
>
{{
item
.
videoTitle
}}
</view>
<view
style=
"color: rgb(191, 191, 191);padding-top: 80rpx"
>
推广量:
{{
item
.
readNum
||
'-'
}}
</view>
<view
style=
"color: rgb(191, 191, 191);padding-top: 80rpx"
>
推广量:
{{
formatReadNum
(
item
)
}}
</view>
</view>
</view>
<u-loadmore
:status=
"videoStatus"
/>
...
...
@@ -73,9 +78,6 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
hotList
:
[],
topicItemList
:
[],
topicList
:
[
// 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
// 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
// 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
],
curNow
:
0
,
infoShow
:
0
,
...
...
@@ -368,4 +370,11 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
/
deep
/
.u-item-bg
{
width
:
50%
!important
;
}
.center-text
{
position
:
absolute
;
margin-top
:
-35%
;
margin-left
:
20%
;
z-index
:
10
;
font-weight
:
bold
;
/* 可选:使文字加粗 */
}
</
style
>
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