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
6d1c5ce3
Commit
6d1c5ce3
authored
Jun 03, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
6643da5e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
31 deletions
+25
-31
App.vue
vedio/App.vue
+1
-1
bookshelf.vue
vedio/components/bookshelf/bookshelf.vue
+1
-1
bookshelf-list.vue
vedio/components/bookshelf/components/bookshelf-list.vue
+6
-6
c-list.vue
vedio/components/c-list/c-list.vue
+1
-11
warehouse.vue
vedio/components/warehouse/warehouse.vue
+11
-7
develop.js
vedio/config/env/develop.js
+1
-1
product.js
vedio/config/env/product.js
+1
-1
book-content.vue
vedio/page-subs/sub_A/book-content/book-content.vue
+2
-2
search-result.vue
.../page-subs/sub_A/book-search/components/search-result.vue
+1
-1
No files found.
vedio/App.vue
View file @
6d1c5ce3
...
...
@@ -89,7 +89,7 @@
bottomSafePadding
:
12
,
h5Url
:
'https://api.mints-id.com/index.html'
,
baseUrl
:
'https://dx.mints-tech.cn/minip-api/miniApi'
,
// baseUrl: 'http://192.168.110.
42
:8303/miniApi',
// baseUrl: 'http://192.168.110.
141
:8303/miniApi',
titleButtonWidth
:
38
,
token
:
''
,
userId
:
0
,
...
...
vedio/components/bookshelf/bookshelf.vue
View file @
6d1c5ce3
...
...
@@ -56,7 +56,7 @@
removeCollectionChangeWatch
(
this
);
},
methods
:
{
show
()
{
show
()
{
this
.
$refs
.
timeCount
.
refresh
()
this
.
initHeight
();
...
...
vedio/components/bookshelf/components/bookshelf-list.vue
View file @
6d1c5ce3
<
template
>
<view>
<c-list
ref=
'list'
:showShelfEmpty=
"true"
flag=
'bookshelf'
:needLogin=
"true"
:height=
"height"
url=
'/book/collectList
/
'
<c-list
ref=
'list'
:showShelfEmpty=
"true"
flag=
'bookshelf'
:needLogin=
"true"
:height=
"height"
url=
'/book/collectList'
:param=
"requestParam"
@
change=
'changeData'
method=
"POST"
>
<book-list-item
v-for=
'(item, index) in dataList'
:key=
'index'
:item=
'item'
@
tapItem=
'tapItem($event, index)'
@
close=
'tapClose($event, index)'
>
<
!--
<
template
v-slot:footer
>
<template
v-slot:footer
>
<view
class=
"c-flex_row c-aligns_center"
>
<uni-icons
type=
'calendar'
size=
"16"
color=
"#999"
></uni-icons>
<view
class=
"info"
>
{{
item
.
lastReadTime
Desc
}}
前阅读过
{{
item
.
lastReadTime
}}
前阅读过
</view>
</view>
</
template
>
-->
</
template
>
</book-list-item>
</c-list>
</view>
...
...
@@ -59,8 +59,8 @@
}
},
changeData
(
e
)
{
console
.
log
(
e
)
this
.
dataList
=
e
.
detail
.
data
.
list
.
map
(
item
=>
{
console
.
log
(
e
)
this
.
dataList
=
e
.
detail
.
data
.
map
(
item
=>
{
return
new
BookshelfBookItem
(
item
)
})
},
...
...
vedio/components/c-list/c-list.vue
View file @
6d1c5ce3
...
...
@@ -126,17 +126,7 @@
},
computed
:
{
showEmpty
:
function
()
{
console
.
log
(
this
.
dataList
)
if
(
isEmpty
(
this
.
dataList
))
{
return
true
}
else
{
if
(
typeof
this
.
dataList
==
'object'
)
{
if
(
this
.
dataList
.
list
!=
undefined
)
{
return
isEmpty
(
this
.
dataList
.
list
)
}
}
}
return
false
return
isEmpty
(
this
.
dataList
)
},
scrollStyle
:
function
()
{
return
{
...
...
vedio/components/warehouse/warehouse.vue
View file @
6d1c5ce3
...
...
@@ -12,6 +12,7 @@
@
change=
"changeSwiper"
>
<swiper-item
v-for=
'(item, index) in categorys'
:key=
'index'
>
<WarehouseList
:ref=
"`bookList$
{index}`" :category='item' :height='listHeight'>
</WarehouseList>
<!--
<WarehouseList
ref=
"bookList"
:category=
'item'
:height=
'listHeight'
></WarehouseList>
-->
</swiper-item>
</swiper>
</view>
...
...
@@ -50,7 +51,7 @@
};
},
onLoad
(
options
)
{
},
computed
:
{
showEmpty
:
function
()
{
...
...
@@ -75,13 +76,16 @@
watch
:
{
categroyChange
:
{
handler
:
function
(
n
,
o
)
{
this
.
$nextTick
(()
=>
{
setTimeout
(()
=>
{
this
.
$refs
[
`bookList
${
n
.
currentIndex
}
`
][
0
].
initRefresh
();
// let ref = this.$refs.bookList;
// if (ref) {
// ref[n.currentIndex].initRefresh();
// }
})
},
500
)
// this.$nextTick(() => {
// // this.$refs[`bookList${n.currentIndex}`][0].initRefresh();
// let ref = this.$refs.bookList;
// if (ref) {
// ref[n.currentIndex].initRefresh();
// }
// })
},
deep
:
true
}
...
...
vedio/config/env/develop.js
View file @
6d1c5ce3
...
...
@@ -9,7 +9,7 @@ const {
}
}
=
require
(
"../configEnum"
);
export
default
{
// BASE_URL: "http://192.168.110.
42
:8303/miniApi",
// BASE_URL: "http://192.168.110.
141
:8303/miniApi",
BASE_URL
:
"https://dx.mints-tech.cn/minip-api/miniApi"
,
BASE_URL_MODULE
:
""
,
BASE_SOCKET_URL
:
""
,
...
...
vedio/config/env/product.js
View file @
6d1c5ce3
...
...
@@ -9,7 +9,7 @@ const {
}
}
=
require
(
"../configEnum"
);
export
default
{
// BASE_URL: "http://192.168.110.
42
:8303/miniApi",
// BASE_URL: "http://192.168.110.
141
:8303/miniApi",
BASE_URL
:
"https://dx.mints-tech.cn/minip-api/miniApi"
,
BASE_URL_MODULE
:
""
,
BASE_SOCKET_URL
:
""
,
...
...
vedio/page-subs/sub_A/book-content/book-content.vue
View file @
6d1c5ce3
...
...
@@ -5,8 +5,8 @@
<detail-warn></detail-warn>
<detail-thumb
:detail=
'bookData'
@
tapThumb=
'tapThumb'
></detail-thumb>
<detail-content
@
tapVip=
'tapPayPop'
:detail=
'bookData'
:userInfo=
'userInfo'
></detail-content>
<detail-new-buy
v-if=
"bookData.isUnlock==0 && !isVip()"
:showVipOpen=
"
showVipOpen
"
:showBeanOpen=
"
showBeanOpen
"
:detail=
'bookData'
:userInfo=
'userInfo'
@
unlockBook=
'unlockBook'
<detail-new-buy
v-if=
"bookData.isUnlock==0 && !isVip()"
:showVipOpen=
"
1
"
:showBeanOpen=
"
0
"
:detail=
'bookData'
:userInfo=
'userInfo'
@
unlockBook=
'unlockBook'
@
tapVip=
'tapVipPop'
@
tapBean=
'tapBeanPop'
></detail-new-buy>
<detail-bottom
:detail=
'bookData'
:userInfo=
'userInfo'
@
tapBottomItem=
'tapBottomItem'
></detail-bottom>
<setting-pop
:show=
'showSetting'
@
close=
'closePop'
></setting-pop>
...
...
vedio/page-subs/sub_A/book-search/components/search-result.vue
View file @
6d1c5ce3
...
...
@@ -74,7 +74,7 @@
}
},
changeData
(
e
)
{
this
.
dataList
=
e
.
detail
.
data
.
list
.
map
(
item
=>
{
this
.
dataList
=
e
.
detail
.
data
.
map
(
item
=>
{
return
new
WarehouseBookItem
(
item
)
})
},
...
...
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