Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
tjty-app
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
王永飞
tjty-app
Commits
ad93ccbe
Commit
ad93ccbe
authored
Nov 30, 2022
by
王宝峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除卡片当中的详情按钮,改为全卡片触发
parent
8eb921e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
146 additions
and
148 deletions
+146
-148
course.vue
tjty-app/pages_course/tjty_course_course/course.vue
+146
-148
No files found.
tjty-app/pages_course/tjty_course_course/course.vue
View file @
ad93ccbe
...
@@ -30,12 +30,12 @@
...
@@ -30,12 +30,12 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-else
class=
"card"
v-for=
"(item,index) in ByTypelist"
:key=
"index"
>
<view
v-else
class=
"card"
v-for=
"(item,index) in ByTypelist"
:key=
"index"
@
click=
"toAppoint(item)"
>
<view
class=
"ima"
>
<view
class=
"ima"
>
<image
style=
"width: 116px;height:116px;border-radius:16px "
:src=
"item.image"
></image>
<image
style=
"width: 116px;height:116px;border-radius:16px "
:src=
"item.image"
></image>
</view>
</view>
<view>
<view>
<view
style=
"height: 80px;width: 265px"
>
<view
class=
"a-card"
>
<view
class=
"a-card"
>
{{
item
.
mechanismName
|
ellipsis
}}
{{
item
.
mechanismName
|
ellipsis
}}
</view>
</view>
...
@@ -43,14 +43,9 @@
...
@@ -43,14 +43,9 @@
适用人群:
{{
item
.
propertyPeople
|
elli
}}
适用人群:
{{
item
.
propertyPeople
|
elli
}}
</view>
</view>
</view>
</view>
<view
style=
"width: 265px;right: 5%;"
>
<button
class=
"b-card"
@
click=
"toAppoint(item)"
>
详情
</button>
</view>
</view>
</view>
</view>
<view
style=
"margin-left: 40%;margin-bottom: 20px;color: #666666;"
@
tap=
"more"
v-show=
"total >= queryParams.pageNum * queryParams.pageSize"
>
加载更多~
</view>
<view
style=
"margin-left: 40%;margin-bottom: 20px;color: #666666;"
@
tap=
"more"
v-show=
"total >= queryParams.pageNum * queryParams.pageSize"
>
加载更多~
</view>
</view>
</view>
</scroll-view>
</scroll-view>
</swiper-item>
</swiper-item>
...
@@ -70,7 +65,7 @@
...
@@ -70,7 +65,7 @@
</view>
</view>
</view>
</view>
</view
>
</view>
<view
v-else
class=
"card"
v-for=
"(item,index) in ByTypelist"
:key=
"index"
>
<view
v-else
class=
"card"
v-for=
"(item,index) in ByTypelist"
:key=
"index"
>
<view
class=
"ima"
>
<view
class=
"ima"
>
<image
style=
"width: 116px;height:116px;border-radius:16px "
:src=
"item.image"
></image>
<image
style=
"width: 116px;height:116px;border-radius:16px "
:src=
"item.image"
></image>
...
@@ -91,7 +86,8 @@
...
@@ -91,7 +86,8 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
style=
"margin-left: 40%;margin-bottom: 20px;color: #666666;"
@
tap=
"more"
v-show=
"total >= queryParams.pageNum * queryParams.pageSize"
>
加载更多~
</view>
<view
style=
"margin-left: 40%;margin-bottom: 20px;color: #666666;"
@
tap=
"more"
v-show=
"total >= queryParams.pageNum * queryParams.pageSize"
>
加载更多~
</view>
</view>
</view>
</scroll-view>
</scroll-view>
</swiper-item>
</swiper-item>
...
@@ -132,7 +128,8 @@
...
@@ -132,7 +128,8 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
style=
"margin-left: 40%;margin-bottom: 20px;color: #666666;"
@
tap=
"more"
v-show=
"total >= queryParams.pageNum * queryParams.pageSize"
>
加载更多~
</view>
<view
style=
"margin-left: 40%;margin-bottom: 20px;color: #666666;"
@
tap=
"more"
v-show=
"total >= queryParams.pageNum * queryParams.pageSize"
>
加载更多~
</view>
</view>
</view>
</scroll-view>
</scroll-view>
</swiper-item>
</swiper-item>
...
@@ -172,7 +169,8 @@
...
@@ -172,7 +169,8 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
style=
"margin-left: 40%;margin-bottom: 20px;color: #666666;"
@
tap=
"more"
v-show=
"total >= queryParams.pageNum * queryParams.pageSize"
>
加载更多~
</view>
<view
style=
"margin-left: 40%;margin-bottom: 20px;color: #666666;"
@
tap=
"more"
v-show=
"total >= queryParams.pageNum * queryParams.pageSize"
>
加载更多~
</view>
</view>
</view>
</scroll-view>
</scroll-view>
</swiper-item>
</swiper-item>
...
@@ -192,7 +190,7 @@
...
@@ -192,7 +190,7 @@
</view>
</view>
</view>
</view>
</view
>
</view>
<view
v-else
class=
"card"
v-for=
"(item,index) in ByTypelist"
:key=
"index"
>
<view
v-else
class=
"card"
v-for=
"(item,index) in ByTypelist"
:key=
"index"
>
<view
class=
"ima"
>
<view
class=
"ima"
>
<image
style=
"width: 116px;height:116px;border-radius:16px "
:src=
"item.image"
></image>
<image
style=
"width: 116px;height:116px;border-radius:16px "
:src=
"item.image"
></image>
...
@@ -213,7 +211,8 @@
...
@@ -213,7 +211,8 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
style=
"margin-left: 40%;margin-bottom: 20px;color: #666666;"
@
tap=
"more"
v-show=
"total >= queryParams.pageNum * queryParams.pageSize"
>
加载更多~
</view>
<view
style=
"margin-left: 40%;margin-bottom: 20px;color: #666666;"
@
tap=
"more"
v-show=
"total >= queryParams.pageNum * queryParams.pageSize"
>
加载更多~
</view>
</view>
</view>
</scroll-view>
</scroll-view>
</swiper-item>
</swiper-item>
...
@@ -246,12 +245,12 @@
...
@@ -246,12 +245,12 @@
},
},
data
()
{
data
()
{
return
{
return
{
max
:
10
,
max
:
10
,
f
:
10
,
f
:
10
,
// token:uni.getStorageSync("token"),
// token:uni.getStorageSync("token"),
onMore
:
true
,
onMore
:
true
,
loadStatus
:
'loading'
,
loadStatus
:
'loading'
,
isLoadMore
:
false
,
isLoadMore
:
false
,
triggered
:
false
,
triggered
:
false
,
url
:
'/pages_course/tjty_course_course/course'
,
url
:
'/pages_course/tjty_course_course/course'
,
type
:
1
,
type
:
1
,
...
@@ -308,17 +307,17 @@
...
@@ -308,17 +307,17 @@
...
mapState
(
'm_user'
,
[
'token'
])
...
mapState
(
'm_user'
,
[
'token'
])
},
},
filters
:
{
filters
:
{
ellipsis
(
value
)
{
ellipsis
(
value
)
{
if
(
!
value
)
return
''
;
if
(
!
value
)
return
''
;
if
(
value
.
length
>
12
)
{
if
(
value
.
length
>
12
)
{
return
value
.
slice
(
0
,
12
)
+
'...'
return
value
.
slice
(
0
,
12
)
+
'...'
}
}
return
value
return
value
},
},
elli
(
value
)
{
elli
(
value
)
{
if
(
!
value
)
return
''
;
if
(
!
value
)
return
''
;
if
(
value
.
length
>
7
)
{
if
(
value
.
length
>
7
)
{
return
value
.
slice
(
0
,
7
)
+
'...'
return
value
.
slice
(
0
,
7
)
+
'...'
}
}
return
value
return
value
}
}
...
@@ -425,7 +424,7 @@
...
@@ -425,7 +424,7 @@
this
.
scrollLeft
+=
this
.
category
[
i
].
width
this
.
scrollLeft
+=
this
.
category
[
i
].
width
};
};
},
},
list
(
id
,
pageNum
)
{
list
(
id
,
pageNum
)
{
listByType
(
id
,
pageNum
).
then
(
response
=>
{
listByType
(
id
,
pageNum
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
this
.
flag
)
{
if
(
this
.
flag
)
{
...
@@ -566,12 +565,11 @@
...
@@ -566,12 +565,11 @@
font-size
:
32rpx
;
font-size
:
32rpx
;
width
:
500rpx
;
width
:
500rpx
;
height
:
80rpx
;
font-family
:
Source
Han
Sans
CN
,
Source
Han
Sans
CN-Regular
;
font-family
:
Source
Han
Sans
CN
,
Source
Han
Sans
CN-Regular
;
font-weight
:
400
;
font-weight
:
400
;
text-align
:
left
;
text-align
:
left
;
color
:
#666666
;
color
:
#666666
;
line-height
:
50
px
;
line-height
:
100r
px
;
}
}
...
@@ -579,12 +577,12 @@
...
@@ -579,12 +577,12 @@
.a-card
{
.a-card
{
font-size
:
32rpx
;
font-size
:
32rpx
;
line-height
:
120rpx
;
width
:
500rpx
;
width
:
500rpx
;
font-family
:
Source
Han
Sans
CN
,
Source
Han
Sans
CN-Bold
;
font-family
:
Source
Han
Sans
CN
,
Source
Han
Sans
CN-Bold
;
font-weight
:
700
;
font-weight
:
700
;
text-align
:
left
;
text-align
:
left
;
color
:
#333333
;
color
:
#333333
;
line-height
:
42px
;
}
}
...
@@ -598,7 +596,7 @@
...
@@ -598,7 +596,7 @@
top
:
25rpx
;
top
:
25rpx
;
width
:
152rpx
;
width
:
152rpx
;
height
:
64rpx
;
height
:
64rpx
;
right
:
20%
;
right
:
20%
;
// height: auto;
// height: auto;
text-align
:
center
;
text-align
:
center
;
...
...
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