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
Show 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 @@
...
@@ -89,7 +89,7 @@
bottomSafePadding
:
12
,
bottomSafePadding
:
12
,
h5Url
:
'https://api.mints-id.com/index.html'
,
h5Url
:
'https://api.mints-id.com/index.html'
,
baseUrl
:
'https://dx.mints-tech.cn/minip-api/miniApi'
,
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
,
titleButtonWidth
:
38
,
token
:
''
,
token
:
''
,
userId
:
0
,
userId
:
0
,
...
...
vedio/components/bookshelf/bookshelf.vue
View file @
6d1c5ce3
vedio/components/bookshelf/components/bookshelf-list.vue
View file @
6d1c5ce3
<
template
>
<
template
>
<view>
<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"
>
:param=
"requestParam"
@
change=
'changeData'
method=
"POST"
>
<book-list-item
v-for=
'(item, index) in dataList'
:key=
'index'
:item=
'item'
<book-list-item
v-for=
'(item, index) in dataList'
:key=
'index'
:item=
'item'
@
tapItem=
'tapItem($event, index)'
@
close=
'tapClose($event, index)'
>
@
tapItem=
'tapItem($event, index)'
@
close=
'tapClose($event, index)'
>
<
!--
<
template
v-slot:footer
>
<template
v-slot:footer
>
<view
class=
"c-flex_row c-aligns_center"
>
<view
class=
"c-flex_row c-aligns_center"
>
<uni-icons
type=
'calendar'
size=
"16"
color=
"#999"
></uni-icons>
<uni-icons
type=
'calendar'
size=
"16"
color=
"#999"
></uni-icons>
<view
class=
"info"
>
<view
class=
"info"
>
{{
item
.
lastReadTime
Desc
}}
前阅读过
{{
item
.
lastReadTime
}}
前阅读过
</view>
</view>
</view>
</view>
</
template
>
-->
</
template
>
</book-list-item>
</book-list-item>
</c-list>
</c-list>
</view>
</view>
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
},
},
changeData
(
e
)
{
changeData
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
this
.
dataList
=
e
.
detail
.
data
.
list
.
map
(
item
=>
{
this
.
dataList
=
e
.
detail
.
data
.
map
(
item
=>
{
return
new
BookshelfBookItem
(
item
)
return
new
BookshelfBookItem
(
item
)
})
})
},
},
...
...
vedio/components/c-list/c-list.vue
View file @
6d1c5ce3
...
@@ -126,17 +126,7 @@
...
@@ -126,17 +126,7 @@
},
},
computed
:
{
computed
:
{
showEmpty
:
function
()
{
showEmpty
:
function
()
{
console
.
log
(
this
.
dataList
)
return
isEmpty
(
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
},
},
scrollStyle
:
function
()
{
scrollStyle
:
function
()
{
return
{
return
{
...
...
vedio/components/warehouse/warehouse.vue
View file @
6d1c5ce3
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
@
change=
"changeSwiper"
>
@
change=
"changeSwiper"
>
<swiper-item
v-for=
'(item, index) in categorys'
:key=
'index'
>
<swiper-item
v-for=
'(item, index) in categorys'
:key=
'index'
>
<WarehouseList
:ref=
"`bookList$
{index}`" :category='item' :height='listHeight'>
</WarehouseList>
<WarehouseList
:ref=
"`bookList$
{index}`" :category='item' :height='listHeight'>
</WarehouseList>
<!--
<WarehouseList
ref=
"bookList"
:category=
'item'
:height=
'listHeight'
></WarehouseList>
-->
</swiper-item>
</swiper-item>
</swiper>
</swiper>
</view>
</view>
...
@@ -75,13 +76,16 @@
...
@@ -75,13 +76,16 @@
watch
:
{
watch
:
{
categroyChange
:
{
categroyChange
:
{
handler
:
function
(
n
,
o
)
{
handler
:
function
(
n
,
o
)
{
this
.
$nextTick
(()
=>
{
setTimeout
(()
=>
{
this
.
$refs
[
`bookList
${
n
.
currentIndex
}
`
][
0
].
initRefresh
();
this
.
$refs
[
`bookList
${
n
.
currentIndex
}
`
][
0
].
initRefresh
();
},
500
)
// this.$nextTick(() => {
// // this.$refs[`bookList${n.currentIndex}`][0].initRefresh();
// let ref = this.$refs.bookList;
// let ref = this.$refs.bookList;
// if (ref) {
// if (ref) {
// ref[n.currentIndex].initRefresh();
// ref[n.currentIndex].initRefresh();
// }
// }
})
//
})
},
},
deep
:
true
deep
:
true
}
}
...
...
vedio/config/env/develop.js
View file @
6d1c5ce3
...
@@ -9,7 +9,7 @@ const {
...
@@ -9,7 +9,7 @@ const {
}
}
}
=
require
(
"../configEnum"
);
}
=
require
(
"../configEnum"
);
export
default
{
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
:
"https://dx.mints-tech.cn/minip-api/miniApi"
,
BASE_URL_MODULE
:
""
,
BASE_URL_MODULE
:
""
,
BASE_SOCKET_URL
:
""
,
BASE_SOCKET_URL
:
""
,
...
...
vedio/config/env/product.js
View file @
6d1c5ce3
...
@@ -9,7 +9,7 @@ const {
...
@@ -9,7 +9,7 @@ const {
}
}
}
=
require
(
"../configEnum"
);
}
=
require
(
"../configEnum"
);
export
default
{
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
:
"https://dx.mints-tech.cn/minip-api/miniApi"
,
BASE_URL_MODULE
:
""
,
BASE_URL_MODULE
:
""
,
BASE_SOCKET_URL
:
""
,
BASE_SOCKET_URL
:
""
,
...
...
vedio/page-subs/sub_A/book-content/book-content.vue
View file @
6d1c5ce3
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<detail-warn></detail-warn>
<detail-warn></detail-warn>
<detail-thumb
:detail=
'bookData'
@
tapThumb=
'tapThumb'
></detail-thumb>
<detail-thumb
:detail=
'bookData'
@
tapThumb=
'tapThumb'
></detail-thumb>
<detail-content
@
tapVip=
'tapPayPop'
:detail=
'bookData'
:userInfo=
'userInfo'
></detail-content>
<detail-content
@
tapVip=
'tapPayPop'
:detail=
'bookData'
:userInfo=
'userInfo'
></detail-content>
<detail-new-buy
v-if=
"bookData.isUnlock==0 && !isVip()"
:showVipOpen=
"
showVipOpen
"
<detail-new-buy
v-if=
"bookData.isUnlock==0 && !isVip()"
:showVipOpen=
"
1
"
:showBeanOpen=
"
showBeanOpen
"
:detail=
'bookData'
:userInfo=
'userInfo'
@
unlockBook=
'unlockBook'
:showBeanOpen=
"
0
"
:detail=
'bookData'
:userInfo=
'userInfo'
@
unlockBook=
'unlockBook'
@
tapVip=
'tapVipPop'
@
tapBean=
'tapBeanPop'
></detail-new-buy>
@
tapVip=
'tapVipPop'
@
tapBean=
'tapBeanPop'
></detail-new-buy>
<detail-bottom
:detail=
'bookData'
:userInfo=
'userInfo'
@
tapBottomItem=
'tapBottomItem'
></detail-bottom>
<detail-bottom
:detail=
'bookData'
:userInfo=
'userInfo'
@
tapBottomItem=
'tapBottomItem'
></detail-bottom>
<setting-pop
:show=
'showSetting'
@
close=
'closePop'
></setting-pop>
<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 @@
...
@@ -74,7 +74,7 @@
}
}
},
},
changeData
(
e
)
{
changeData
(
e
)
{
this
.
dataList
=
e
.
detail
.
data
.
list
.
map
(
item
=>
{
this
.
dataList
=
e
.
detail
.
data
.
map
(
item
=>
{
return
new
WarehouseBookItem
(
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