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
3318ab07
Commit
3318ab07
authored
Jul 29, 2025
by
yuzhenWang
Browse files
Options
Browse Files
Download
Plain Diff
修改合并1
parents
4efd9f3d
4ee43272
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
5 deletions
+37
-5
pages/courselist/courselist.vue
+13
-2
pages/index/index.vue
+24
-3
No files found.
pages/courselist/courselist.vue
View file @
3318ab07
...
...
@@ -27,8 +27,10 @@
<view
class=
"productBox"
>
<view
class=
"productList"
:style=
"
{marginTop}">
<view
class=
"tabBox"
>
<view
:class=
"
{'actived': courseClassify==4}" @click="courseClassify=4;courseList()">
<text>
咨询产品
</text></view>
<view
:class=
"
{'actived': courseClassify==3}" @click="courseClassify=3;courseList()">
<text>
规划产品
</text></view>
<!-- @click="courseClassify=4;courseList()" -->
<view
:class=
"
{'actived': courseClassify==4}" @click="transform('consult')">
<text>
咨询产品
</text></view>
<!-- @click="courseClassify=3;courseList()" -->
<view
:class=
"
{'actived': courseClassify==3}" @click="transform('plan')">
<text>
规划产品
</text></view>
</view>
<view
class=
"productItem"
v-for=
"item in localCourseInfos"
:key=
"item.fileId"
>
<view
class=
"top"
@
click=
"goDetail(item)"
>
...
...
@@ -206,6 +208,15 @@
}
},
methods
:{
transform
(
value
){
if
(
value
==
'consult'
){
this
.
courseClassify
=
4
}
else
if
(
value
==
'plan'
){
this
.
courseClassify
=
3
}
this
.
$emit
(
'changeCourseClassify'
,
this
.
courseClassify
)
this
.
courseList
()
},
gotoJoinPartner
(){
dataHandling
.
pocessTracking
(
'点击'
,
...
...
pages/index/index.vue
View file @
3318ab07
...
...
@@ -64,7 +64,11 @@
</view>
</view>
-->
<view
class=
"productList"
v-if=
"cffpCourseInfos.length>0"
>
<courselist
:showFlag=
"false"
:cffpCourseInfos=
"cffpCourseInfos"
></courselist>
<courselist
:showFlag=
"false"
:cffpCourseInfos=
"cffpCourseInfos"
@
changeCourseClassify=
"changeCourseClassify"
></courselist>
<view
class=
"productListBox"
>
<!--
<view
class=
"productListItem"
v-for=
"item in cffpCourseInfos"
:key=
"item.fileId"
@
click=
"goDetail(item)"
>
-->
...
...
@@ -225,6 +229,7 @@
export
default
{
data
()
{
return
{
productType
:
4
,
partnerStatistic
:{},
//申请加盟统计
showSearch
:
true
,
searchQuery
:
''
,
...
...
@@ -361,8 +366,11 @@
url
:
`/pages/courseDetail/courseDetail?fileId=
${
this
.
productItem
.
fileId
}
`
});
}
},
changeCourseClassify
(
val
){
this
.
productType
=
val
},
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
...
...
@@ -554,7 +562,8 @@
},
courseList
()
{
const
param
=
{
queryName
:
this
.
queryName
queryName
:
this
.
queryName
,
courseClassify
:
this
.
productType
}
api
.
courseList
(
param
).
then
(
res
=>
{
if
(
res
[
'success'
])
{
...
...
@@ -571,6 +580,18 @@
}
})
},
getOneProduct
()
{
api
.
courseList
().
then
(
res
=>
{
if
(
res
[
'success'
])
{
let
result
=
res
[
'data'
][
'data'
];
if
(
result
.
length
>
0
){
result
.
forEach
(
item
=>
{
item
.
coursePrice
=
Number
(
item
.
coursePrice
).
toFixed
(
2
)
||
'0.00'
})
}
}
})
},
tokefu
()
{
let
url
=
'http://q.url.cn/abkzV9?_type=wpa&qidian=true'
// URL是要跳转的外部地址 作为参数
// #ifdef APP-PLUS
...
...
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