Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
d8b30674
Commit
d8b30674
authored
Nov 22, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程详情组件查询修改
parent
1495f4ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
components/courseItem/courseItem.vue
+18
-8
pages/orderConfirm/orderConfirm.vue
+1
-3
No files found.
components/courseItem/courseItem.vue
View file @
d8b30674
...
...
@@ -15,8 +15,14 @@
<strong>
¥
{{
dataList
.
coursePrice
}}
</strong>
<text>
{{
dataList
.
salesNumber
}}
人购买
</text>
</view>
<view
class=
"tagListBox"
v-if=
"tagList"
>
<view
class=
"tagListBox"
v-if=
"tagList || fileLecturerId"
>
<template
v-if=
"tagList"
>
<view
class=
"tagItem"
v-for=
"tagItem in tagConcat(tagList.v1,tagList.v2)"
>
{{
tagItem
}}
</view>
</
template
>
<
template
v-else-if=
"_tagList"
>
<view
class=
"tagItem"
v-for=
"tagItem in tagConcat(_tagList.v1,_tagList.v2)"
>
{{
tagItem
}}
</view>
</
template
>
</view>
</view>
</view>
...
...
@@ -31,7 +37,7 @@
type
:
Object
},
fileLecturerId
:{
type
:
String
type
:
Number
},
thumbnailPath
:{
type
:
String
...
...
@@ -54,11 +60,10 @@
tagList
:{
type
:
Object
}
},
data
()
{
return
{
_tagList
:{}
};
},
methods
:{
...
...
@@ -80,15 +85,20 @@
},
lecturerQuery
(){
api
.
lecturerQuery
({
id
:
this
.
fileLecturerId
}).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
[
'success'
]){
this
.
_tagList
[
'v1'
]
=
res
[
'data'
][
'lecturerInfos'
][
0
][
'lecturerRankNames'
];
this
.
_tagList
[
'v2'
]
=
res
[
'data'
][
'lecturerInfos'
][
0
][
'lecturerName'
];
}
})
}
},
moun
ted
()
{
console
.
log
(
this
.
fileLecturerId
,
66666
)
console
.
log
(
this
.
courseInfoItem
)
upda
ted
()
{
if
(
this
.
fileLecturerId
){
this
.
lecturerQuery
(
)
}
},
mounted
()
{}
}
</
script
>
...
...
pages/orderConfirm/orderConfirm.vue
View file @
d8b30674
...
...
@@ -3,7 +3,7 @@
<!-- 课程详情 -->
<template
v-if=
"courseInfoItem"
>
<view
class=
"courseItemBox"
>
<course-item
:thumbnailPath=
"courseInfoItem.displayImage"
:title=
"courseInfoItem.fileTitle"
:summaryBox=
"courseInfoItem.fileSynopsis"
:dataList=
"
{coursePrice:courseInfoItem.coursePrice,salesNumber:courseInfoItem.salesNumber}" :fileLecturerId="courseInfoItem.fileLecturerId"
:courseInfoItem="courseInfoItem"
>
</course-item>
<course-item
:thumbnailPath=
"courseInfoItem.displayImage"
:title=
"courseInfoItem.fileTitle"
:summaryBox=
"courseInfoItem.fileSynopsis"
:dataList=
"
{coursePrice:courseInfoItem.coursePrice,salesNumber:courseInfoItem.salesNumber}" :fileLecturerId="courseInfoItem.fileLecturerId">
</course-item>
</view>
</
template
>
<!-- 价格明细 -->
...
...
@@ -197,9 +197,7 @@
api
.
courseDetail
({
fileId
:
this
.
fileId
,
userId
:
1
}).
then
(
res
=>
{
console
.
log
(
'课程详情'
,
res
);
if
(
res
[
'success'
]){
console
.
log
(
res
,
4567
)
this
.
courseInfoItem
=
res
[
'data'
][
'data'
];
console
.
log
(
this
.
courseInfoItem
,
55555
)
}
})
},
...
...
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