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
Show 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
>
<
template
>
<view
class=
"banneritem"
>
<view
class=
"banneritem"
>
<swiper
:autoplay=
"true"
:interval=
"2000"
:duration=
"500"
>
<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>
<image
class=
"banner-img"
:src=
"item.carouselUrl"
mode=
"scaleToFill"
></image>
</swiper-item>
</swiper-item>
</swiper>
</swiper>
...
@@ -9,6 +9,9 @@
...
@@ -9,6 +9,9 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
gotoBookContentPage
}
from
'../../common/services/page-route.js'
;
import
{
import
{
getRecommendV1
getRecommendV1
}
from
"../../common/services/index.js"
}
from
"../../common/services/index.js"
...
@@ -49,7 +52,9 @@
...
@@ -49,7 +52,9 @@
}
}
},
this
)
},
this
)
},
},
handleBanner
()
{},
handleBanner
(
e
)
{
gotoBookContentPage
(
e
.
id
,
e
.
shortis
)
},
hide
()
{
hide
()
{
},
},
...
@@ -75,10 +80,11 @@
...
@@ -75,10 +80,11 @@
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.banneritem
{
.banneritem
{
margin
:
20rpx
20rpx
0
2
0rpx
;
margin
:
30rpx
30rpx
0
3
0rpx
;
height
:
310rpx
;
height
:
310rpx
;
.banner-img
{
.banner-img
{
border-radius
:
20rpx
;
height
:
310rpx
;
height
:
310rpx
;
}
}
}
}
...
...
vedio/components/book-list-item/book-list-item.vue
View file @
d083c50c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<image
class=
"cover"
:src=
"item.avatar"
mode=
"aspectFill"
></image>
<image
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 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=
"c-flex_column c-justify_center item"
>
<view
class=
"title"
>
<view
class=
"title"
>
{{
item
.
title
?
item
.
title
:
''
}}
{{
item
.
title
?
item
.
title
:
''
}}
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</view>
</view>
</view>
</view>
<view
class=
"c-flex_row row"
>
<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"
>
<view
class=
"desc row"
>
{{
item
.
summary
?
item
.
summary
:
''
}}
{{
item
.
summary
?
item
.
summary
:
''
}}
</view>
</view>
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
display
:
-
webkit-box
;
display
:
-
webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
3
;
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
font-size
:
26rpx
;
font-size
:
26rpx
;
...
...
vedio/components/book-search-box/book-search-box.vue
View file @
d083c50c
...
@@ -39,10 +39,10 @@
...
@@ -39,10 +39,10 @@
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.search-box
{
.search-box
{
background
:
transparent
;
background
:
transparent
;
padding
:
10rpx
2
0rpx
;
padding
:
10rpx
3
0rpx
;
.search-zone
{
.search-zone
{
width
:
100%
;
//
width: 100%;
border
:
solid
1rpx
#FFE2E2
;
border
:
solid
1rpx
#FFE2E2
;
border-radius
:
35rpx
;
border-radius
:
35rpx
;
background
:
#fff
;
background
:
#fff
;
...
...
vedio/components/bookcity/bookcity.vue
View file @
d083c50c
<
template
>
<
template
>
<scroll-view
scroll-y
style=
"height: 100%;"
>
<scroll-view
scroll-y
style=
"height: 100%;"
>
<book-search-box
id=
'search'
></book-search-box>
<book-search-box
id=
'search'
></book-search-box>
<Banner
ref=
'banner'
></Banner>
<Banner
ref=
'banner'
></Banner>
<RecommendList
ref=
'recommendList1'
:listType=
"1"
></RecommendList>
<RecommendList
ref=
'recommendList1'
:listType=
"1"
></RecommendList>
<RecommendList
ref=
'recommendList2'
:listType=
"2"
></RecommendList>
<RecommendList
ref=
'recommendList2'
:listType=
"2"
></RecommendList>
<view
style=
"height: 20rpx;"
></view>
<view
style=
"height: 20rpx;"
></view>
...
@@ -45,12 +45,7 @@
...
@@ -45,12 +45,7 @@
},
},
methods
:
{
methods
:
{
show
()
{
show
()
{
// 监听用户变动
watchUserInfoChange
((
info
)
=>
{
if
(
info
.
userInfo
)
{
this
.
initData
();
}
},
this
)
},
},
hide
()
{
hide
()
{
...
...
vedio/components/bookshelf/bookshelf.vue
View file @
d083c50c
...
@@ -51,8 +51,7 @@
...
@@ -51,8 +51,7 @@
removeUserInfoChangeWatch
(
this
);
removeUserInfoChangeWatch
(
this
);
removeCollectionChangeWatch
(
this
);
removeCollectionChangeWatch
(
this
);
},
},
methods
:
{
onReady
()
{
show
()
{
// this.initHeight();
// this.initHeight();
// 监听用户变动
// 监听用户变动
watchUserInfoChange
((
info
)
=>
{
watchUserInfoChange
((
info
)
=>
{
...
@@ -64,6 +63,10 @@
...
@@ -64,6 +63,10 @@
watchCollectionChange
(()
=>
{
watchCollectionChange
(()
=>
{
this
.
refreshList
();
this
.
refreshList
();
},
this
);
},
this
);
},
methods
:
{
show
()
{
},
},
hide
()
{
hide
()
{
...
...
vedio/components/bookshelf/components/bookshelf-list.vue
View file @
d083c50c
...
@@ -61,8 +61,10 @@
...
@@ -61,8 +61,10 @@
this
.
dataList
=
e
.
records
.
map
(
item
=>
{
this
.
dataList
=
e
.
records
.
map
(
item
=>
{
return
new
BookshelfBookItem
(
item
)
return
new
BookshelfBookItem
(
item
)
})
})
if
(
this
.
dataList
.
length
>
0
)
{
this
.
dataList
.
push
(
this
.
dataList
.
push
(
new
BookshelfBookItem
({}))
new
BookshelfBookItem
({}))
}
},
},
tapItem
(
e
,
index
)
{
tapItem
(
e
,
index
)
{
if
(
index
>=
this
.
dataList
.
length
-
1
)
{
if
(
index
>=
this
.
dataList
.
length
-
1
)
{
...
@@ -101,6 +103,7 @@
...
@@ -101,6 +103,7 @@
flex-direction
:
column
;
flex-direction
:
column
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
background-color
:
white
;
background-color
:
white
;
box-shadow
:
0px
0px
4px
rgba
(
0
,
0
,
0
,
0
.1
);
margin
:
30rpx
;
margin
:
30rpx
;
.bookitem
{
.bookitem
{
...
@@ -116,8 +119,8 @@
...
@@ -116,8 +119,8 @@
}
}
.item
:last-child
{
.item
:last-child
{
margin-bottom
:
0
;
//
margin-bottom: 0;
margin-right
:
0
;
//
margin-right: 0;
}
}
}
}
}
}
...
...
vedio/components/home/my.vue
View file @
d083c50c
...
@@ -27,8 +27,7 @@
...
@@ -27,8 +27,7 @@
</view>
</view>
<view
class=
"vip-label"
>
<view
class=
"vip-label"
>
<image
style=
"width: 100%;position: absolute;z-index: 1;"
mode=
"widthFix"
<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>
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
class=
"flex-v"
style=
"z-index: 10;margin-left: 180rpx;"
>
<view
style=
"font-size: 34rpx;color: #FFE5BA;"
>
<view
style=
"font-size: 34rpx;color: #FFE5BA;"
>
{{
isVip
()
?
'开通VIP会员'
:
'VIP会员'
}}
{{
isVip
()
?
'开通VIP会员'
:
'VIP会员'
}}
...
@@ -242,6 +241,7 @@
...
@@ -242,6 +241,7 @@
}
}
.wrap-bg
{
.wrap-bg
{
box-shadow
:
0px
0px
4px
rgba
(
0
,
0
,
0
,
0
.1
);
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
...
...
vedio/components/read-time-count-row/read-time-count-row.vue
View file @
d083c50c
...
@@ -8,15 +8,15 @@
...
@@ -8,15 +8,15 @@
<view
class=
"value"
>
<view
class=
"value"
>
<view
class=
"count"
>
<view
class=
"count"
>
<view
class=
"count-value"
>
{{
count
.
hour
?
count
.
hour
:
'00'
}}
</view>
<view
class=
"count-value"
>
{{
count
.
hour
?
count
.
hour
:
'00'
}}
</view>
<view
class=
"count-unit"
>
h
</view>
<view
class=
"count-unit"
>
小时
</view>
</view>
</view>
<view
class=
"count"
>
<view
class=
"count"
>
<view
class=
"count-value"
>
{{
count
.
minute
?
count
.
minute
:
'00'
}}
</view>
<view
class=
"count-value"
>
{{
count
.
minute
?
count
.
minute
:
'00'
}}
</view>
<view
class=
"count-unit"
>
m
</view>
<view
class=
"count-unit"
>
分
</view>
</view>
</view>
<view
class=
"count"
>
<view
class=
"count"
>
<view
class=
"count-value"
>
{{
count
.
second
?
count
.
second
:
'00'
}}
</view>
<view
class=
"count-value"
>
{{
count
.
second
?
count
.
second
:
'00'
}}
</view>
<view
class=
"count-unit"
>
s
</view>
<view
class=
"count-unit"
>
秒
</view>
</view>
</view>
</view>
</view>
<!--
<view
class=
"value"
v-else
>
<!--
<view
class=
"value"
v-else
>
...
@@ -77,6 +77,7 @@
...
@@ -77,6 +77,7 @@
.title
{
.title
{
width
:
80rpx
;
width
:
80rpx
;
font-size
:
30rpx
;
font-size
:
30rpx
;
font-weight
:
600
;
color
:
#000000
;
color
:
#000000
;
margin-right
:
15rpx
;
margin-right
:
15rpx
;
letter-spacing
:
6rpx
;
letter-spacing
:
6rpx
;
...
@@ -98,7 +99,7 @@
...
@@ -98,7 +99,7 @@
.count-value
{
.count-value
{
position
:
absolute
;
position
:
absolute
;
top
:
4
6
%
;
top
:
4
2
%
;
left
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
color
:
#000000
;
color
:
#000000
;
...
@@ -107,9 +108,11 @@
...
@@ -107,9 +108,11 @@
}
}
.count-unit
{
.count-unit
{
font-size
:
20rpx
;
position
:
absolute
;
position
:
absolute
;
right
:
8rpx
;
left
:
50%
;
bottom
:
8rpx
;
transform
:
translate
(
-50%
);
bottom
:
4rpx
;
}
}
}
}
}
}
...
...
vedio/components/recommend-list/recommend-list.vue
View file @
d083c50c
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</book-list-item2>
</book-list-item2>
</view>
</view>
<view
class=
"columnitem"
v-else-if=
"listType==1"
>
<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>
</book-list-item>
<view
class=
"rowitem"
>
<view
class=
"rowitem"
>
<book-list-item2
class=
"item"
:item=
'item'
v-if=
"index!=0"
v-for=
'(item, index) in dataList'
<book-list-item2
class=
"item"
:item=
'item'
v-if=
"index!=0"
v-for=
'(item, index) in dataList'
...
@@ -120,6 +120,7 @@
...
@@ -120,6 +120,7 @@
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
box-shadow
:
0px
0px
4px
rgba
(
0
,
0
,
0
,
0
.1
);
background-color
:
white
;
background-color
:
white
;
margin
:
30rpx
;
margin
:
30rpx
;
margin-bottom
:
0
;
margin-bottom
:
0
;
...
@@ -169,7 +170,7 @@
...
@@ -169,7 +170,7 @@
}
}
.item
:last-child
{
.item
:last-child
{
margin-bottom
:
0
;
//
margin-bottom: 0;
margin-right
:
0
;
margin-right
:
0
;
}
}
}
}
...
...
vedio/components/warehouse/warehouse.vue
View file @
d083c50c
...
@@ -74,9 +74,9 @@
...
@@ -74,9 +74,9 @@
watch
:
{
watch
:
{
categroyChange
:
{
categroyChange
:
{
handler
:
function
(
n
,
o
)
{
handler
:
function
(
n
,
o
)
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
`bookList
${
n
.
currentIndex
}
`
][
0
].
initRefresh
();
this
.
$refs
[
`bookList
${
n
.
currentIndex
}
`
][
0
].
initRefresh
();
}
,
500
)
})
// this.$nextTick(() => {
// this.$nextTick(() => {
// // this.$refs[`bookList${n.currentIndex}`][0].initRefresh();
// // this.$refs[`bookList${n.currentIndex}`][0].initRefresh();
// let ref = this.$refs.bookList;
// let ref = this.$refs.bookList;
...
...
vedio/page-subs/sub_A/book-content/book-content.vue
View file @
d083c50c
...
@@ -134,17 +134,11 @@
...
@@ -134,17 +134,11 @@
if
(
this
.
isVip
()
&&
this
.
bookData
)
{
if
(
this
.
isVip
()
&&
this
.
bookData
)
{
this
.
unlockBook
()
this
.
unlockBook
()
}
}
// this.showVipOpen = data.openVips
// // 用户变动,需要刷新数据
// this.$nextTick(() => {
// uni.startPullDownRefresh({})
// })
},
this
)
// 用户变动,需要刷新数据
// 用户变动,需要刷新数据
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
uni
.
startPullDownRefresh
({}
)
this
.
refreshBookData
(
this
.
bookId
)
})
})
},
this
)
// 绑定分享参数
// 绑定分享参数
// #ifdef MP-WEIXIN
// #ifdef MP-WEIXIN
...
@@ -176,9 +170,7 @@
...
@@ -176,9 +170,7 @@
wx
.
offCopyUrl
()
wx
.
offCopyUrl
()
// #endif
// #endif
},
},
onPullDownRefresh
()
{
onPullDownRefresh
()
{},
this
.
refreshBookData
(
this
.
bookId
)
},
// 文章分享
// 文章分享
onShareAppMessage
()
{
onShareAppMessage
()
{
let
result
=
{
let
result
=
{
...
@@ -254,18 +246,14 @@
...
@@ -254,18 +246,14 @@
},
},
// 文章数据刷新
// 文章数据刷新
refreshBookData
(
bookId
)
{
refreshBookData
(
bookId
)
{
// getOpens((success, data) => {
// // this.showBeanOpen = data.openBeans
// this.showVipOpen = data.openVips
// })
getBookDetailData
(
bookId
,
(
success
,
data
)
=>
{
getBookDetailData
(
bookId
,
(
success
,
data
)
=>
{
setTimeout
(()
=>
{
//
setTimeout(() => {
uni
.
stopPullDownRefresh
();
//
uni.stopPullDownRefresh();
if
(
success
)
{
if
(
success
)
{
this
.
bookData
=
new
BookDetail
(
data
);
this
.
bookData
=
new
BookDetail
(
data
);
// console.log('bookData=' + JSON.stringify(this.bookData));
// console.log('bookData=' + JSON.stringify(this.bookData));
}
}
},
10
00
)
// }, 1
00)
})
})
},
},
paySuccess
()
{
paySuccess
()
{
...
...
vedio/pages/home.vue
View file @
d083c50c
<
template
>
<
template
>
<view
v-if=
"localActiviteFlag==1"
class=
"body"
>
<view
v-if=
"localActiviteFlag==1"
class=
"body"
>
<view
style=
"height: 92%;"
>
<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"
/>
<bookcity
v-show=
"currentPage==1"
ref=
"city"
/>
<warehouse
v-show=
"currentPage==2"
ref=
"recommend"
/>
<warehouse
v-show=
"currentPage==2"
ref=
"recommend"
/>
<userPage
v-show=
"currentPage==3"
ref=
"user"
/>
<userPage
v-show=
"currentPage==3"
ref=
"user"
/>
</view>
</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
: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
v-if=
"currentPage==0"
class=
"tabs-image"
src=
"/static/tab/bookshelf_s.png"
mode=
"heightFix"
>
</image>
</image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/bookshelf.png"
mode=
"heightFix"
></image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/bookshelf.png"
mode=
"heightFix"
></image>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
书架
书架
</view>
</view>
<view
:class=
"currentPage == 1?'tab active': 'tab'"
@
click=
"tabChange(1)"
>
<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
v-if=
"currentPage==1"
class=
"tabs-image"
src=
"/static/tab/bookcity_s.png"
mode=
"heightFix"
>
</image>
</image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/bookcity.png"
mode=
"heightFix"
></image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/bookcity.png"
mode=
"heightFix"
></image>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
书城
书城
</view>
</view>
<view
:class=
"currentPage == 2?'tab active': 'tab'"
@
click=
"tabChange(2)"
>
<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
v-if=
"currentPage==2"
class=
"tabs-image"
src=
"/static/tab/bookstore_s.png"
mode=
"heightFix"
>
</image>
</image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/bookstore.png"
mode=
"heightFix"
></image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/bookstore.png"
mode=
"heightFix"
></image>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
书库
书库
</view>
</view>
<view
:class=
"currentPage == 3?'tab active': 'tab'"
@
click=
"tabChange(3)"
>
<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
v-if=
"currentPage==3"
class=
"tabs-image"
src=
"/static/tab/my_s.png"
mode=
"heightFix"
>
</image>
</image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/my.png"
mode=
"heightFix"
></image>
<image
v-else
class=
"tabs-image"
src=
"/static/tab/my.png"
mode=
"heightFix"
></image>
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</view>
</view>
<view
style=
"height: 92%;"
>
<view
style=
"height: 92%;"
>
<warehouse
v-show=
"currentPage==1"
ref=
"recommend
"
/>
<warehouse
ref=
"recommend2
"
/>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -84,13 +84,13 @@
...
@@ -84,13 +84,13 @@
data
()
{
data
()
{
return
{
return
{
currentPage
:
1
,
currentPage
:
1
,
localActiviteFlag
:
1
,
localActiviteFlag
:
0
,
localIdcode
:
0
,
localIdcode
:
0
,
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
let
index
=
options
.
index
??
''
let
index
=
options
.
index
??
''
// this.localActiviteFlag = options.activiteFlag;
this
.
localActiviteFlag
=
options
.
activiteFlag
;
this
.
localIdcode
=
options
.
idcode
;
this
.
localIdcode
=
options
.
idcode
;
if
(
index
!=
''
&&
index
!=
undefined
)
{
if
(
index
!=
''
&&
index
!=
undefined
)
{
this
.
currentPage
=
index
this
.
currentPage
=
index
...
@@ -144,9 +144,7 @@
...
@@ -144,9 +144,7 @@
this
.
$refs
.
user
.
show
();
this
.
$refs
.
user
.
show
();
}
}
}
else
{
}
else
{
if
(
this
.
currentPage
==
1
)
{
this
.
$refs
.
recommend2
.
show
();
this
.
$refs
.
city
.
show
();
}
}
}
}
}
}
}
...
@@ -167,4 +165,8 @@
...
@@ -167,4 +165,8 @@
overflow
:
hidden
;
overflow
:
hidden
;
//box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
//box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
}
}
.tab-home
{
padding-top
:
16rpx
;
}
</
style
>
</
style
>
\ No newline at end of file
vedio/pagesD/readerRecord/readerRecord.vue
View file @
d083c50c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<view
style=
"font-size: 30rpx;font-weight: 777;margin-left: 12rpx;margin-top: 10rpx;"
>
最近阅读
</view>
<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
v-for=
"(item, i) in dataList"
:key=
"i"
>
<view
<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;align-items: center;"
@
click=
"handleInfo(item)"
>
<view
style=
"display: flex;flex-direction: column;margin-left: 20rpx;margin-top: 20rpx;"
>
<view
style=
"display: flex;flex-direction: column;margin-left: 20rpx;margin-top: 20rpx;"
>
<view
style=
"font-size: 30rpx;color: black;"
>
{{
item
.
title
}}
</view>
<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
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 const PAKEAGE_NAME = 'com.test.test'
export
function
trim
(
str
)
{
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