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
d083c50c
Commit
d083c50c
authored
Aug 13, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新版本号,优化样式
parent
6383f35a
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
93 additions
and
92 deletions
+93
-92
banner.vue
vedio/components/banner/banner.vue
+11
-5
book-list-item.vue
vedio/components/book-list-item/book-list-item.vue
+3
-3
book-search-box.vue
vedio/components/book-search-box/book-search-box.vue
+2
-2
bookcity.vue
vedio/components/bookcity/bookcity.vue
+3
-8
bookshelf.vue
vedio/components/bookshelf/bookshelf.vue
+14
-11
bookshelf-list.vue
vedio/components/bookshelf/components/bookshelf-list.vue
+8
-5
my.vue
vedio/components/home/my.vue
+2
-2
read-time-count-row.vue
vedio/components/read-time-count-row/read-time-count-row.vue
+11
-8
recommend-list.vue
vedio/components/recommend-list/recommend-list.vue
+6
-5
warehouse.vue
vedio/components/warehouse/warehouse.vue
+5
-5
book-content.vue
vedio/page-subs/sub_A/book-content/book-content.vue
+12
-24
home.vue
vedio/pages/home.vue
+14
-12
readerRecord.vue
vedio/pagesD/readerRecord/readerRecord.vue
+1
-1
logo.png
vedio/static/images/logo.png
+0
-0
utils.js
vedio/utils/utils.js
+1
-1
No files found.
vedio/components/banner/banner.vue
View file @
d083c50c
<
template
>
<view
class=
"banneritem"
>
<swiper
:autoplay=
"true"
:interval=
"2000"
:duration=
"500"
>
<swiper-item
@
click=
"handleBanner"
v-for=
'(item, index) in bannerList'
:key=
'index'
>
<swiper-item
@
click=
"handleBanner
(item)
"
v-for=
'(item, index) in bannerList'
:key=
'index'
>
<image
class=
"banner-img"
:src=
"item.carouselUrl"
mode=
"scaleToFill"
></image>
</swiper-item>
</swiper>
...
...
@@ -9,6 +9,9 @@
</
template
>
<
script
>
import
{
gotoBookContentPage
}
from
'../../common/services/page-route.js'
;
import
{
getRecommendV1
}
from
"../../common/services/index.js"
...
...
@@ -49,7 +52,9 @@
}
},
this
)
},
handleBanner
()
{},
handleBanner
(
e
)
{
gotoBookContentPage
(
e
.
id
,
e
.
shortis
)
},
hide
()
{
},
...
...
@@ -75,10 +80,11 @@
<
style
lang=
"scss"
>
.banneritem
{
margin
:
20rpx
20rpx
0
2
0rpx
;
height
:
310rpx
;
margin
:
30rpx
30rpx
0
3
0rpx
;
height
:
310rpx
;
.banner-img
{
.banner-img
{
border-radius
:
20rpx
;
height
:
310rpx
;
}
}
...
...
vedio/components/book-list-item/book-list-item.vue
View file @
d083c50c
...
...
@@ -5,7 +5,7 @@
<image
class=
"cover"
:src=
"item.avatar"
mode=
"aspectFill"
></image>
</view>
<view
class=
"c-flex_column"
>
<view
class=
"c-flex_row row"
style=
"justify-content: space-between;
padding-left:20rpx;
"
>
<view
class=
"c-flex_row row"
style=
"justify-content: space-between;"
>
<view
class=
"c-flex_column c-justify_center item"
>
<view
class=
"title"
>
{{
item
.
title
?
item
.
title
:
''
}}
...
...
@@ -17,7 +17,7 @@
</view>
</view>
<view
class=
"c-flex_row row"
>
<view
class=
"c-flex_column c-justify_between c
ontent c
-flex_1 item"
>
<view
class=
"c-flex_column c-justify_between c-flex_1 item"
>
<view
class=
"desc row"
>
{{
item
.
summary
?
item
.
summary
:
''
}}
</view>
...
...
@@ -154,7 +154,7 @@
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-
webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
3
;
-webkit-box-orient
:
vertical
;
font-size
:
26rpx
;
...
...
vedio/components/book-search-box/book-search-box.vue
View file @
d083c50c
...
...
@@ -39,10 +39,10 @@
<
style
lang=
"scss"
scoped
>
.search-box
{
background
:
transparent
;
padding
:
10rpx
2
0rpx
;
padding
:
10rpx
3
0rpx
;
.search-zone
{
width
:
100%
;
//
width: 100%;
border
:
solid
1rpx
#FFE2E2
;
border-radius
:
35rpx
;
background
:
#fff
;
...
...
vedio/components/bookcity/bookcity.vue
View file @
d083c50c
<
template
>
<scroll-view
scroll-y
style=
"height: 100%;"
>
<book-search-box
id=
'search'
></book-search-box>
<Banner
ref=
'banner'
></Banner>
<Banner
ref=
'banner'
></Banner>
<RecommendList
ref=
'recommendList1'
:listType=
"1"
></RecommendList>
<RecommendList
ref=
'recommendList2'
:listType=
"2"
></RecommendList>
<view
style=
"height: 20rpx;"
></view>
...
...
@@ -45,12 +45,7 @@
},
methods
:
{
show
()
{
// 监听用户变动
watchUserInfoChange
((
info
)
=>
{
if
(
info
.
userInfo
)
{
this
.
initData
();
}
},
this
)
},
hide
()
{
...
...
@@ -63,7 +58,7 @@
let
ref2
=
this
.
$refs
.
recommendList1
;
if
(
ref2
)
{
ref2
.
refreshList
();
}
}
let
banner
=
this
.
$refs
.
banner
;
if
(
banner
)
{
banner
.
refreshList
();
...
...
vedio/components/bookshelf/bookshelf.vue
View file @
d083c50c
...
...
@@ -51,19 +51,22 @@
removeUserInfoChangeWatch
(
this
);
removeCollectionChangeWatch
(
this
);
},
onReady
()
{
// this.initHeight();
// 监听用户变动
watchUserInfoChange
((
info
)
=>
{
if
(
info
.
userInfo
)
{
this
.
initData
();
}
},
this
)
// 监听收藏变动
watchCollectionChange
(()
=>
{
this
.
refreshList
();
},
this
);
},
methods
:
{
show
()
{
// this.initHeight();
// 监听用户变动
watchUserInfoChange
((
info
)
=>
{
if
(
info
.
userInfo
)
{
this
.
initData
();
}
},
this
)
// 监听收藏变动
watchCollectionChange
(()
=>
{
this
.
refreshList
();
},
this
);
},
hide
()
{
...
...
vedio/components/bookshelf/components/bookshelf-list.vue
View file @
d083c50c
...
...
@@ -61,8 +61,10 @@
this
.
dataList
=
e
.
records
.
map
(
item
=>
{
return
new
BookshelfBookItem
(
item
)
})
this
.
dataList
.
push
(
new
BookshelfBookItem
({}))
if
(
this
.
dataList
.
length
>
0
)
{
this
.
dataList
.
push
(
new
BookshelfBookItem
({}))
}
},
tapItem
(
e
,
index
)
{
if
(
index
>=
this
.
dataList
.
length
-
1
)
{
...
...
@@ -100,7 +102,8 @@
display
:
flex
;
flex-direction
:
column
;
border-radius
:
20rpx
;
background-color
:
white
;
background-color
:
white
;
box-shadow
:
0px
0px
4px
rgba
(
0
,
0
,
0
,
0
.1
);
margin
:
30rpx
;
.bookitem
{
...
...
@@ -116,8 +119,8 @@
}
.item
:last-child
{
margin-bottom
:
0
;
margin-right
:
0
;
//
margin-bottom: 0;
//
margin-right: 0;
}
}
}
...
...
vedio/components/home/my.vue
View file @
d083c50c
...
...
@@ -27,8 +27,7 @@
</view>
<view
class=
"vip-label"
>
<image
style=
"width: 100%;position: absolute;z-index: 1;"
mode=
"widthFix"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_my.png"
></image>
<image
style=
"width: 100%;position: absolute;z-index: 1;"
mode=
"widthFix"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_my.png"
></image>
<view
class=
"flex-v"
style=
"z-index: 10;margin-left: 180rpx;"
>
<view
style=
"font-size: 34rpx;color: #FFE5BA;"
>
{{
isVip
()
?
'开通VIP会员'
:
'VIP会员'
}}
...
...
@@ -242,6 +241,7 @@
}
.wrap-bg
{
box-shadow
:
0px
0px
4px
rgba
(
0
,
0
,
0
,
0
.1
);
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
...
...
vedio/components/read-time-count-row/read-time-count-row.vue
View file @
d083c50c
...
...
@@ -8,15 +8,15 @@
<view
class=
"value"
>
<view
class=
"count"
>
<view
class=
"count-value"
>
{{
count
.
hour
?
count
.
hour
:
'00'
}}
</view>
<view
class=
"count-unit"
>
h
</view>
<view
class=
"count-unit"
>
小时
</view>
</view>
<view
class=
"count"
>
<view
class=
"count-value"
>
{{
count
.
minute
?
count
.
minute
:
'00'
}}
</view>
<view
class=
"count-unit"
>
m
</view>
<view
class=
"count-unit"
>
分
</view>
</view>
<view
class=
"count"
>
<view
class=
"count-value"
>
{{
count
.
second
?
count
.
second
:
'00'
}}
</view>
<view
class=
"count-unit"
>
s
</view>
<view
class=
"count-unit"
>
秒
</view>
</view>
</view>
<!--
<view
class=
"value"
v-else
>
...
...
@@ -77,8 +77,9 @@
.title
{
width
:
80rpx
;
font-size
:
30rpx
;
font-weight
:
600
;
color
:
#000000
;
margin-right
:
15rpx
;
margin-right
:
15rpx
;
letter-spacing
:
6rpx
;
}
...
...
@@ -98,7 +99,7 @@
.count-value
{
position
:
absolute
;
top
:
4
6
%
;
top
:
4
2
%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
color
:
#000000
;
...
...
@@ -106,10 +107,12 @@
font-weight
:
700
;
}
.count-unit
{
.count-unit
{
font-size
:
20rpx
;
position
:
absolute
;
right
:
8rpx
;
bottom
:
8rpx
;
left
:
50%
;
transform
:
translate
(
-50%
);
bottom
:
4rpx
;
}
}
}
...
...
vedio/components/recommend-list/recommend-list.vue
View file @
d083c50c
...
...
@@ -13,7 +13,7 @@
</book-list-item2>
</view>
<view
class=
"columnitem"
v-else-if=
"listType==1"
>
<book-list-item
:item=
'dataList[0]'
:showClose=
'false'
>
<book-list-item
:item=
'dataList[0]'
:showClose=
'false'
@
tapItem=
'tapItem($event, index)'
>
</book-list-item>
<view
class=
"rowitem"
>
<book-list-item2
class=
"item"
:item=
'item'
v-if=
"index!=0"
v-for=
'(item, index) in dataList'
...
...
@@ -119,7 +119,8 @@
.recommendlist
{
display
:
flex
;
flex-direction
:
column
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
box-shadow
:
0px
0px
4px
rgba
(
0
,
0
,
0
,
0
.1
);
background-color
:
white
;
margin
:
30rpx
;
margin-bottom
:
0
;
...
...
@@ -138,13 +139,13 @@
color
:
#383B3D
;
}
.img
{
.img
{
margin-right
:
10rpx
;
width
:
30rpx
;
height
:
26rpx
;
}
.change
{
.change
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#A5A5AD
;
...
...
@@ -169,7 +170,7 @@
}
.item
:last-child
{
margin-bottom
:
0
;
//
margin-bottom: 0;
margin-right
:
0
;
}
}
...
...
vedio/components/warehouse/warehouse.vue
View file @
d083c50c
...
...
@@ -12,8 +12,8 @@
<WarehouseList
:ref=
"`bookList$
{index}`" :category='item' :height='listHeight'>
</WarehouseList>
</swiper-item>
</swiper>
</view>
<view
style=
"height: 20rpx;"
></view>
</view>
<view
style=
"height: 20rpx;"
></view>
</scroll-view>
</
template
>
...
...
@@ -74,9 +74,9 @@
watch
:
{
categroyChange
:
{
handler
:
function
(
n
,
o
)
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
`bookList
${
n
.
currentIndex
}
`
][
0
].
initRefresh
();
}
,
500
)
})
// this.$nextTick(() => {
// // this.$refs[`bookList${n.currentIndex}`][0].initRefresh();
// let ref = this.$refs.bookList;
...
...
@@ -89,7 +89,7 @@
}
},
methods
:
{
show
()
{
show
()
{
this
.
getFirstShowData
();
this
.
getCategoryData
();
if
(
wx
.
setVisualEffectOnCapture
)
{
...
...
vedio/page-subs/sub_A/book-content/book-content.vue
View file @
d083c50c
...
...
@@ -134,17 +134,11 @@
if
(
this
.
isVip
()
&&
this
.
bookData
)
{
this
.
unlockBook
()
}
// this.showVipOpen = data.openVips
// // 用户变动,需要刷新数据
// this.$nextTick(() => {
// uni.startPullDownRefresh({})
// })
// 用户变动,需要刷新数据
this
.
$nextTick
(()
=>
{
this
.
refreshBookData
(
this
.
bookId
)
})
},
this
)
// 用户变动,需要刷新数据
this
.
$nextTick
(()
=>
{
uni
.
startPullDownRefresh
({})
})
// 绑定分享参数
// #ifdef MP-WEIXIN
...
...
@@ -176,9 +170,7 @@
wx
.
offCopyUrl
()
// #endif
},
onPullDownRefresh
()
{
this
.
refreshBookData
(
this
.
bookId
)
},
onPullDownRefresh
()
{},
// 文章分享
onShareAppMessage
()
{
let
result
=
{
...
...
@@ -254,18 +246,14 @@
},
// 文章数据刷新
refreshBookData
(
bookId
)
{
// getOpens((success, data) => {
// // this.showBeanOpen = data.openBeans
// this.showVipOpen = data.openVips
// })
getBookDetailData
(
bookId
,
(
success
,
data
)
=>
{
setTimeout
(()
=>
{
uni
.
stopPullDownRefresh
();
if
(
success
)
{
this
.
bookData
=
new
BookDetail
(
data
);
// console.log('bookData=' + JSON.stringify(this.bookData));
}
},
10
00
)
//
setTimeout(() => {
//
uni.stopPullDownRefresh();
if
(
success
)
{
this
.
bookData
=
new
BookDetail
(
data
);
// console.log('bookData=' + JSON.stringify(this.bookData));
}
// }, 1
00)
})
},
paySuccess
()
{
...
...
vedio/pages/home.vue
View file @
d083c50c
<
template
>
<view
v-if=
"localActiviteFlag==1"
class=
"body"
>
<view
style=
"height: 92%;"
>
<bookshelf
v-show=
"currentPage==0"
ref=
"index"
/>
<bookshelf
v-show=
"
currentPage==0"
ref=
"index"
/>
<bookcity
v-show=
"currentPage==1"
ref=
"city"
/>
<warehouse
v-show=
"currentPage==2"
ref=
"recommend"
/>
<userPage
v-show=
"currentPage==3"
ref=
"user"
/>
</view>
<view
class=
"tabs-bar"
style=
"z-index: 999;
"
>
<view
class=
"tabs-bar"
:style=
"'z-index: 999;height: 8%;padding-bottom:' + bottomSafeHeight + 'px'
"
>
<view
:class=
"currentPage==0?'tab active': 'tab'"
@
click=
"tabChange(0)"
>
<view
style=
"margin: 16rpx 0 11rpx;
"
>
<view
class=
"tab-home
"
>
<image
v-if=
"currentPage==0"
class=
"tabs-image"
src=
"/static/tab/bookshelf_s.png"
mode=
"heightFix"
>
</image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/bookshelf.png"
mode=
"heightFix"
></image>
...
...
@@ -16,7 +16,7 @@
书架
</view>
<view
:class=
"currentPage == 1?'tab active': 'tab'"
@
click=
"tabChange(1)"
>
<view
style=
"margin: 16rpx 0 11rpx;
"
>
<view
class=
"tab-home
"
>
<image
v-if=
"currentPage==1"
class=
"tabs-image"
src=
"/static/tab/bookcity_s.png"
mode=
"heightFix"
>
</image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/bookcity.png"
mode=
"heightFix"
></image>
...
...
@@ -24,7 +24,7 @@
书城
</view>
<view
:class=
"currentPage == 2?'tab active': 'tab'"
@
click=
"tabChange(2)"
>
<view
style=
"margin: 16rpx 0 11rpx;
"
>
<view
class=
"tab-home
"
>
<image
v-if=
"currentPage==2"
class=
"tabs-image"
src=
"/static/tab/bookstore_s.png"
mode=
"heightFix"
>
</image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/bookstore.png"
mode=
"heightFix"
></image>
...
...
@@ -32,7 +32,7 @@
书库
</view>
<view
:class=
"currentPage == 3?'tab active': 'tab'"
@
click=
"tabChange(3)"
>
<view
style=
"margin: 16rpx 0 11rpx;
"
>
<view
class=
"tab-home
"
>
<image
v-if=
"currentPage==3"
class=
"tabs-image"
src=
"/static/tab/my_s.png"
mode=
"heightFix"
>
</image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/my.png"
mode=
"heightFix"
></image>
...
...
@@ -54,7 +54,7 @@
</view>
<view
style=
"height: 92%;"
>
<warehouse
v-show=
"currentPage==1"
ref=
"recommend
"
/>
<warehouse
ref=
"recommend2
"
/>
</view>
</view>
</
template
>
...
...
@@ -84,13 +84,13 @@
data
()
{
return
{
currentPage
:
1
,
localActiviteFlag
:
1
,
localActiviteFlag
:
0
,
localIdcode
:
0
,
}
},
onLoad
(
options
)
{
let
index
=
options
.
index
??
''
// this.localActiviteFlag = options.activiteFlag;
this
.
localActiviteFlag
=
options
.
activiteFlag
;
this
.
localIdcode
=
options
.
idcode
;
if
(
index
!=
''
&&
index
!=
undefined
)
{
this
.
currentPage
=
index
...
...
@@ -144,9 +144,7 @@
this
.
$refs
.
user
.
show
();
}
}
else
{
if
(
this
.
currentPage
==
1
)
{
this
.
$refs
.
city
.
show
();
}
this
.
$refs
.
recommend2
.
show
();
}
}
}
...
...
@@ -167,4 +165,8 @@
overflow
:
hidden
;
//box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
}
.tab-home
{
padding-top
:
16rpx
;
}
</
style
>
\ No newline at end of file
vedio/pagesD/readerRecord/readerRecord.vue
View file @
d083c50c
...
...
@@ -5,7 +5,7 @@
<view
style=
"font-size: 30rpx;font-weight: 777;margin-left: 12rpx;margin-top: 10rpx;"
>
最近阅读
</view>
<view
v-for=
"(item, i) in dataList"
:key=
"i"
>
<view
style=
"display: flex;flex-direction: row;background-color:white;border-radius:10rpx;justify-content:space-between;margin: 20rpx;padding-bottom: 20rpx;"
>
style=
"display: flex;flex-direction: row;background-color:white;border-radius:10rpx;justify-content:space-between;margin: 20rpx;padding-bottom: 20rpx;
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
"
>
<view
style=
"display: flex;align-items: center;"
@
click=
"handleInfo(item)"
>
<view
style=
"display: flex;flex-direction: column;margin-left: 20rpx;margin-top: 20rpx;"
>
<view
style=
"font-size: 30rpx;color: black;"
>
{{
item
.
title
}}
</view>
...
...
vedio/static/images/logo.png
View replaced file @
6383f35a
View file @
d083c50c
19.4 KB
|
W:
|
H:
13.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
vedio/utils/utils.js
View file @
d083c50c
export
const
PAKEAGE_NAME
=
'com.mingce.wxhelibook'
export
const
VERSION_CODE
=
'1.0.
4
'
export
const
VERSION_CODE
=
'1.0.
5
'
// export const PAKEAGE_NAME = 'com.test.test'
export
function
trim
(
str
)
{
...
...
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