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
c97a3492
Commit
c97a3492
authored
Aug 23, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
eb917ec3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
13 deletions
+17
-13
detail-new-buy.vue
...ubs/sub_A/book-long-content/components/detail-new-buy.vue
+3
-2
book-search.vue
vedio/page-subs/sub_A/book-search/book-search.vue
+3
-2
search-result.vue
.../page-subs/sub_A/book-search/components/search-result.vue
+7
-5
common.scss
vedio/scss/common.scss
+4
-4
No files found.
vedio/page-subs/sub_A/book-long-content/components/detail-new-buy.vue
View file @
c97a3492
...
...
@@ -234,7 +234,7 @@
.line
{
width
:
30%
;
background-color
:
lightgray
;
background-color
:
#DCBD3B
;
height
:
1rpx
;
}
...
...
@@ -268,7 +268,8 @@
font-size
:
26rpx
;
display
:
flex
;
flex-direction
:
column
;
padding
:
30rpx
;
background-color
:
#DCBD3B
;
padding
:
30rpx
40rpx
;
.warn-p
{
margin-bottom
:
15rpx
;
...
...
vedio/page-subs/sub_A/book-search/book-search.vue
View file @
c97a3492
...
...
@@ -67,8 +67,9 @@
methods
:
{
chooseKeyword
(
e
)
{
this
.
keyword
=
e
.
detail
.
keyword
;
this
.
result
=
[];
this
.
refreshSearchList
();
this
.
result
=
[];
// keyword改变自动执行startSearch
// this.refreshSearchList();
},
clearSearch
(
e
)
{
this
.
keyword
=
""
;
...
...
vedio/page-subs/sub_A/book-search/components/search-result.vue
View file @
c97a3492
<
template
>
<c-list
ref=
"list"
flag=
'search'
method=
"POST"
:needLogin=
"needLogin"
:height=
"height"
:url=
'requestUrl'
:param=
'requestParam'
@
change=
'changeData'
:showSearchEmpty=
"true"
>
:param=
'requestParam'
@
change=
'changeData'
:showSearchEmpty=
"true"
:ableLoadMore=
"false"
>
<book-list-item
v-for=
'(item, index) in dataList'
:key=
'index'
:item=
'item'
:showClose=
"false"
@
tapItem=
'tapItem($event, index)'
>
</book-list-item>
...
...
@@ -68,10 +68,12 @@
},
methods
:
{
refreshList
()
{
let
ref
=
this
.
$refs
.
list
;
if
(
ref
)
{
ref
.
onPullRefreshing
();
}
setTimeout
(()
=>
{
let
ref
=
this
.
$refs
.
list
;
if
(
ref
)
{
ref
.
requestData
(
1
);
}
},
200
)
},
changeData
(
e
)
{
this
.
dataList
=
e
.
detail
.
data
.
map
(
item
=>
{
...
...
vedio/scss/common.scss
View file @
c97a3492
...
...
@@ -48,10 +48,10 @@ body {
box-sizing
:
border-box
;
}
.center
{
text-align
:
center
;
justify-content
:
center
;
}
//
.center {
//
text-align: center;
//
justify-content: center;
//
}
.right
{
text-align
:
right
;
...
...
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