Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
android
uniapp_vedio
Commits
1ab1282c
Commit
1ab1282c
authored
Aug 22, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
6401c10b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
179 additions
and
172 deletions
+179
-172
recommend-pop.vue
...page-subs/sub_A/book-content/components/recommend-pop.vue
+169
-163
book-long-content.vue
...o/page-subs/sub_A/book-long-content/book-long-content.vue
+2
-4
detail-content.vue
...ubs/sub_A/book-long-content/components/detail-content.vue
+5
-4
recommend-pop.vue
...subs/sub_A/book-long-content/components/recommend-pop.vue
+3
-1
No files found.
vedio/page-subs/sub_A/book-content/components/recommend-pop.vue
View file @
1ab1282c
...
@@ -6,10 +6,12 @@
...
@@ -6,10 +6,12 @@
99%读过这本书的人还在读
99%读过这本书的人还在读
</view>
</view>
<view
class=
"book-list-item"
v-for=
'(item, index) in dataList'
:key=
'index'
:item=
'item'
@
click=
"tapItem(item)"
>
<view
class=
"book-list-item"
v-for=
'(item, index) in dataList'
:key=
'index'
:item=
'item'
@
click=
"tapItem(item)"
>
<view
class=
"cover-box item"
>
<view
class=
"cover-box item"
>
<image
v-if=
"item.avatar===''"
class=
"cover"
src=
"/static/images/logo.png"
mode=
"aspectFill"
></image>
<image
v-if=
"item.avatar===''"
class=
"cover"
src=
"/static/images/logo.png"
mode=
"aspectFill"
>
<image
v-else
class=
"cover"
:src=
"item.avatar"
mode=
"aspectFill"
></image>
</image>
<image
v-else
class=
"cover"
:src=
"item.avatar"
mode=
"aspectFill"
></image>
</view>
</view>
<view
class=
"c-flex_column"
>
<view
class=
"c-flex_column"
>
<view
class=
"c-flex_row c-justify_between row"
>
<view
class=
"c-flex_row c-justify_between row"
>
...
@@ -26,7 +28,8 @@
...
@@ -26,7 +28,8 @@
</view>
</view>
<view
class=
"c-flex_row c-align_center label-box row"
>
<view
class=
"c-flex_row c-align_center label-box row"
>
<slot
name=
"footer"
>
<slot
name=
"footer"
>
<view
class=
"label label-color-1"
v-if=
"item.categoryName!=null&&item.categoryName!=''"
>
<view
class=
"label label-color-1"
v-if=
"item.categoryName!=null&&item.categoryName!=''"
>
{{
item
.
categoryName
}}
{{
item
.
categoryName
}}
</view>
</view>
<view
class=
"label label-color-2"
v-for=
'(label, labelIndex) in item.tagList'
<view
class=
"label label-color-2"
v-for=
'(label, labelIndex) in item.tagList'
...
@@ -39,7 +42,7 @@
...
@@ -39,7 +42,7 @@
</view>
</view>
</view>
</view>
<view
style=
"display: flex;margin: auto;width: 200rpx;"
>
<view
style=
"display: flex;margin: auto;width: 200rpx;"
>
<button
class=
"btn2"
>
去阅读
</button>
<button
class=
"btn2"
>
去阅读
</button>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -100,8 +103,7 @@
...
@@ -100,8 +103,7 @@
}
}
}
}
},
},
onUnload
()
{
onUnload
()
{},
},
mounted
()
{
mounted
()
{
this
.
requestPackData
();
this
.
requestPackData
();
},
},
...
@@ -117,7 +119,7 @@
...
@@ -117,7 +119,7 @@
this
.
showPop
=
false
;
this
.
showPop
=
false
;
},
},
requestPackData
()
{
requestPackData
()
{
getBookRecommendData
(
this
.
bookId
,(
success
,
data
)
=>
{
getBookRecommendData
(
this
.
bookId
,
(
success
,
data
)
=>
{
if
(
success
)
{
if
(
success
)
{
this
.
dataList
=
data
.
records
;
this
.
dataList
=
data
.
records
;
}
}
...
@@ -128,7 +130,9 @@
...
@@ -128,7 +130,9 @@
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
2
delta
:
2
});
});
gotoBookContentPage
(
item
.
id
);
setTimeout
(()
=>
{
gotoBookContentPage
(
item
.
id
,
item
.
shortis
);
},
1000
)
}
}
}
}
}
}
...
@@ -232,11 +236,13 @@
...
@@ -232,11 +236,13 @@
}
}
}
}
}
}
.book-list-item
{
.book-list-item
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
padding-top
:
14rpx
;
padding-top
:
14rpx
;
padding-bottom
:
14rpx
;
padding-bottom
:
14rpx
;
.row
{
.row
{
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
}
}
...
...
vedio/page-subs/sub_A/book-long-content/book-long-content.vue
View file @
1ab1282c
...
@@ -190,9 +190,7 @@
...
@@ -190,9 +190,7 @@
this
.
$set
(
this
.
bookData
,
"isUnlock"
,
1
);
this
.
$set
(
this
.
bookData
,
"isUnlock"
,
1
);
this
.
$set
(
this
.
bookData
,
"freeNum"
,
this
.
bookData
.
articleChapterList
.
length
);
this
.
$set
(
this
.
bookData
,
"freeNum"
,
this
.
bookData
.
articleChapterList
.
length
);
this
.
$nextTick
(()
=>
{
this
.
$refs
.
content
.
reloadChapterinfoData
()
this
.
$refs
.
content
.
reloadChapterinfoData
()
})
},
},
// 文章数据刷新
// 文章数据刷新
refreshBookData
(
bookId
)
{
refreshBookData
(
bookId
)
{
...
...
vedio/page-subs/sub_A/book-long-content/components/detail-content.vue
View file @
1ab1282c
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<view
class=
"html-content"
:style=
"
{'background-color':background}">
<view
class=
"html-content"
:style=
"
{'background-color':background}">
<view
class=
"loading"
v-if=
"size
<1
"
:style=
"
{'font-size':fontSize+'px'}"> 正在加载中...
</view>
<view
class=
"loading"
v-if=
"size
<1
"
:style=
"
{'font-size':fontSize+'px'}"> 正在加载中...
</view>
<swiper
class=
"center"
:current=
"step"
:disable-programmatic-animation=
'true'
:circular=
'
fals
e'
<swiper
class=
"center"
:current=
"step"
:disable-programmatic-animation=
'true'
:circular=
'
tru
e'
:indicator-dots=
"false"
:autoplay=
"false"
:interval=
"3000"
:duration=
"500"
@
change=
"handleChange"
>
:indicator-dots=
"false"
:autoplay=
"false"
:interval=
"3000"
:duration=
"500"
@
change=
"handleChange"
>
<swiper-item
v-for=
"(item,index) in size"
:key=
'index'
>
<swiper-item
v-for=
"(item,index) in size"
:key=
'index'
>
<view
class=
"article"
v-if=
"catalogue
<
=
detail
.
freeNum
"
<view
class=
"article"
v-if=
"catalogue
<
=
detail
.
freeNum
"
...
@@ -414,7 +414,7 @@
...
@@ -414,7 +414,7 @@
left
:
0
;
left
:
0
;
bottom
:
0
;
bottom
:
0
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
40rpx
;
//
padding: 0 40rpx;
.loading
{
.loading
{
position
:
absolute
;
position
:
absolute
;
...
@@ -432,6 +432,7 @@
...
@@ -432,6 +432,7 @@
overflow-y
:
hidden
;
overflow-y
:
hidden
;
.article
{
.article
{
margin
:
0
40rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
font-weight
:
400
;
font-weight
:
400
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
"PingFang SC"
,
"Hiragino Sans GB"
,
"Microsoft YaHei"
,
SimSun
,
sans-serif
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
"PingFang SC"
,
"Hiragino Sans GB"
,
"Microsoft YaHei"
,
SimSun
,
sans-serif
;
...
...
vedio/page-subs/sub_A/book-long-content/components/recommend-pop.vue
View file @
1ab1282c
...
@@ -128,7 +128,9 @@
...
@@ -128,7 +128,9 @@
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
2
delta
:
2
});
});
setTimeout
(()
=>
{
gotoBookContentPage
(
item
.
id
,
item
.
shortis
);
gotoBookContentPage
(
item
.
id
,
item
.
shortis
);
},
1000
)
}
}
}
}
}
}
...
...
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