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
c0da905c
Commit
c0da905c
authored
Jan 10, 2023
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页单独写
parent
fb98c260
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
16 deletions
+40
-16
pages/courseDetail/courseDetail.vue
+1
-11
pages/index/index.vue
+34
-3
pages/personalCenter/system/settings.vue
+1
-0
pages/saleCourseLists/saleCourseLists.vue
+4
-2
No files found.
pages/courseDetail/courseDetail.vue
View file @
c0da905c
...
...
@@ -40,17 +40,7 @@
<text>
唤醒App
</text>
</view>
-->
<!-- v-if="isWeixin == true" -->
<view
class=
"awakenApp"
v-if=
"isWeixin == true"
>
<wx-open-launch-app
id=
"launch-btn"
appid=
"wxb591d0034cdcf0cd"
extinfo=
"extinfo"
v-if=
"isWeixin == true"
>
<view
v-is=
"'script'"
type=
"text/wxtag-template"
>
<!--
<view
class=
""
style=
"width: 50rpx; height: 50rpx;"
>
<image
style=
"width: 50rpx; height: 50rpx;"
src=
"../../static/Slice117.png"
mode=
""
></image>
</view>
-->
<!--
<text>
唤醒App
</text>
-->
<button
class=
"btn"
style=
"color: #FFFFFF;margin-left: 10rpx;"
>
唤醒App
</button>
</view>
</wx-open-launch-app>
</view>
<strong>
</strong>
...
...
pages/index/index.vue
View file @
c0da905c
...
...
@@ -46,7 +46,12 @@
<h4>
精品课程
</h4>
<view
@
click=
"goToCourselist()"
>
更多
<text
class=
"iconfont icon-youjiantou"
></text></view>
</view>
<courselist
:tagIds=
"[1111]"
:onlyShowList=
"0"
></courselist>
<!--
<courselist
:onlyShowList=
"0"
></courselist>
-->
<view
class=
"ulBox"
v-if=
"cffpCourseInfos.length>0"
>
<view
class=
"liBox"
v-for=
"item in cffpCourseInfos"
:key=
"item.fileId"
@
click=
"goDetail(item)"
>
<course-item
:thumbnailPath=
"item.displayImage"
:title=
"item.fileTitle"
:summaryBox=
"item.fileSynopsis"
:dataList=
"
{coursePrice:item.coursePrice,salesNumber:item.salesNumber}" :tagList="{v1:item.fileLecturerRanks,v2:item.fileLecturerName}">
</course-item>
</view>
</view>
</view>
<tabBar
:currentPage=
"currentPage"
></tabBar>
</view>
...
...
@@ -63,9 +68,11 @@
import
tabBar
from
'../../components/tabBar/tabBar.vue'
;
import
carousel
from
'@/components/carousel/carousel.vue'
;
import
search
from
'@/components/search/search.vue'
;
import
courseItem
from
"@/components/courseItem/courseItem.vue"
;
export
default
{
data
()
{
return
{
cffpCourseInfos
:[],
x
:
0
,
y
:
0
,
old
:
{
...
...
@@ -145,14 +152,16 @@
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
shareId
:
null
,
kefu
:
'../../static/kefu.png'
,
loginornot
:
true
loginornot
:
true
,
queryName
:
''
}
},
components
:
{
courselist
,
tabBar
,
carousel
,
search
search
,
courseItem
},
onLoad
(
options
)
{
if
(
uni
.
getStorageSync
(
'isLogin'
))
{
...
...
@@ -163,6 +172,7 @@
url
:
'/components/login/login'
})
}
this
.
courseList
()
},
onShow
()
{
let
loginType
=
uni
.
getStorageSync
(
'loginType'
)
...
...
@@ -171,6 +181,27 @@
};
},
methods
:
{
goDetail
(
item
){
uni
.
navigateTo
({
url
:
`/pages/courseDetail/courseDetail?fileId=
${
item
.
fileId
}
`
});
},
courseList
(){
const
param
=
{
queryName
:
this
.
queryName
}
api
.
courseList
(
param
).
then
(
res
=>
{
if
(
res
[
'success'
]){
this
.
cffpCourseInfos
=
res
[
'data'
][
'data'
];
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
}
})
},
tokefu
()
{
let
url
=
'http://q.url.cn/abkzV9?_type=wpa&qidian=true'
// URL是要跳转的外部地址 作为参数
uni
.
navigateTo
({
...
...
pages/personalCenter/system/settings.vue
View file @
c0da905c
...
...
@@ -20,6 +20,7 @@ import MenuList from "@/components/menuList/menuList.vue"
components
:{
MenuList
},
data
()
{
return
{
menuList
:
null
,
minorMenuLists
:
[{
title
:
'账号绑定设置'
,
icon
:
'shareEcode'
,
...
...
pages/saleCourseLists/saleCourseLists.vue
View file @
c0da905c
...
...
@@ -175,9 +175,11 @@
onLoad() {
this.userCourseCount()
this.userCourseList()
},
mounted() {
},
onShow() {
let app22 = getCurrentPages().length
console.log(app22)
}
}
</
script
>
...
...
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