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
8093b395
Commit
8093b395
authored
Jan 18, 2023
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
轮播图没有跳转链接判断&控制台userId经常报错bug修复
parent
93559250
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
components/carousel/carousel.vue
+13
-4
pages/courseDetail/courseDetail.vue
+2
-0
No files found.
components/carousel/carousel.vue
View file @
8093b395
...
...
@@ -2,9 +2,9 @@
<swiper
class=
"swiper"
circular
:indicator-dots=
"indicatorDots"
:autoplay=
"autoplay"
:interval=
"interval"
:duration=
"duration"
>
<swiper-item
v-for=
"bannerItem in carouselList"
>
<
uni-link
:href=
"bannerItem.destinationAddress"
>
<image
:src=
"bannerItem.filePath"
mode=
"widthFix"
></image>
<
/uni-link
>
<
!--
<uni-link
:href=
"bannerItem.destinationAddress?bannerItem.destinationAddress:'#'"
>
--
>
<image
:src=
"bannerItem.filePath"
mode=
"widthFix"
@
click=
"jumpUrl(bannerItem.destinationAddress)"
></image>
<
!--
</uni-link>
--
>
</swiper-item>
</swiper>
</
template
>
...
...
@@ -26,7 +26,16 @@
console
.
log
(
this
.
carouselList
)
},
methods
:{
jumpUrl
(
url
){
if
(
!
url
){
return
false
}
else
{
// // #ifdef H5
// window.open(url);
// // #endif
window
.
location
.
href
=
url
;
}
}
}
}
</
script
>
...
...
pages/courseDetail/courseDetail.vue
View file @
8093b395
...
...
@@ -723,6 +723,8 @@
let
startTime
=
uni
.
getStorageSync
(
'h5_startTime'
)
if
(
endTime
-
startTime
>
3600
*
24
)
{
uni
.
setStorageSync
(
'cffp_userId'
,
''
)
uni
.
setStorageSync
(
'isLogin'
,
''
)
uni
.
setStorageSync
(
'loginType'
,
''
)
}
uni
.
setStorageSync
(
'h5_coursesharing'
,
this
.
coursesharing
);
this
.
getshareData
()
...
...
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