更改随机名字

This commit is contained in:
GaoHao
2024-12-23 19:38:39 +08:00
parent b4be77303e
commit 6d72021f87
128 changed files with 11752 additions and 2333 deletions

View File

@@ -0,0 +1,31 @@
<template>
<view class="">
<image src="../../../static/iosImg/DEghTTorspIMG_6790.JPG" mode="aspectFill"></image>
<image src="../../../static/iosImg/DEghTTorspIMG_6791.JPG" mode="aspectFill"></image>
</view>
</template>
<script>
export default {
data() {
return {
}
},
onShow() {
},
onHide() {
},
onLoad(option) {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
</style>

View File

@@ -0,0 +1,31 @@
<template>
<view class="">
<image src="../../../static/iosImg/DEghTTorspIMG_6788.JPG" mode="aspectFill"></image>
<image src="../../../static/iosImg/DEghTTorspIMG_6789.JPG" mode="aspectFill"></image>
</view>
</template>
<script>
export default {
data() {
return {
}
},
onShow() {
},
onHide() {
},
onLoad(option) {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
</style>

View File

@@ -1,88 +1,88 @@
<template>
<view class="detail">
<list @loadmore="getData()" :loadmoreoffset="wHeight*3" :show-scrollbar="false" ref="listBox"
<view class="detailDEghTTorsp">
<list @loadmore="getDataDEghTTorsp()" :loadmoreoffset="wHeight*3" :show-scrollbar="false" ref="listBox"
:pagingEnabled="true" :scrollable="true">
<cell v-for="(item,i) in videoList" :key="i" :ref="'list'+item.courseDetailsId">
<view class="swipers-items" @longpress="openBs()" @appear="appear(item.courseDetailsId,i)"
<view class="swipersDEghTTorsp-items" @longpress="openBsDEghTTorsp()" @appear="appearDEghTTorsp(item.courseDetailsId,i)"
:style="boxStyle">
<!-- 视频 -->
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" object-fit="cover"
<video :show-fullscreen-btn="false" @controlstoggle="controlstogglesDEghTTorsp" object-fit="cover"
v-if="isShowVideo == item.courseDetailsId && item.videoUrl" :play-strategy="2"
:show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="true"
@timeupdate="timeupdate"
@play="videoPlay('myVideo'+item.courseDetailsId, item.courseDetailsId)"
@ended="ended" :enable-progress-gesture="false" :poster="item.titleImg"
@timeupdate="timeupdateDEghTTorsp"
@play="videoPlayDEghTTorsp('myVideo'+item.courseDetailsId, item.courseDetailsId)"
@ended="endedDEghTTorsp" :enable-progress-gesture="false" :poster="item.titleImg"
:ref="'myVideo'+item.courseDetailsId" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl"
:autoplay="item.autoPlay" class="swipers-items-video"></video>
<image v-else :src="item.titleImg" class="swipers-items-imgsbg" mode="aspectFill">
:autoplay="item.autoPlay" class="swipersDEghTTorsp-items-video"></video>
<image v-else :src="item.titleImg" class="swipersDEghTTorsp-items-imgsbg" mode="aspectFill">
</image>
<!-- 右边操作 -->
<view class="swipers-items-right" :style="rightTop" v-if="showControls">
<view class="swipers-items-right-item">
<view class="swipers-items-right-item-img" @click.stop="dianzan(item)">
<image v-if="item.isGood!=null && item.isGood!=0" class="swipers-items-right-item-imgs"
<view class="swipersDEghTTorsp-items-right" :style="rightTop" v-if="showControls">
<view class="swipersDEghTTorsp-items-right-item">
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="dianzanDEghTTorsp(item)">
<image v-if="item.isGood!=null && item.isGood!=0" class="swipersDEghTTorsp-items-right-item-imgs"
src="../../static/images/me/myLove_.png" mode=""></image>
<image v-else class="swipers-items-right-item-imgs"
<image v-else class="swipersDEghTTorsp-items-right-item-imgs"
src="../../static/images/me/myLove.png" mode=""></image>
</view>
<view class="swipers-items-right-item-txt">
<text class="swipers-items-right-item-txts">
<view class="swipersDEghTTorsp-items-right-item-txt">
<text class="swipersDEghTTorsp-items-right-item-txts">
{{item.goodNum}}
</text>
</view>
</view>
<view class="swipers-items-right-item" @click="share()">
<view class="swipers-items-right-item-img">
<image class="swipers-items-right-item-imgs" src="../../static/images/me/share.png"
<view class="swipersDEghTTorsp-items-right-item" @click="shareDEghTTorsp()">
<view class="swipersDEghTTorsp-items-right-item-img">
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/share.png"
mode=""></image>
</view>
<view class="swipers-items-right-item-txt">
<text class="swipers-items-right-item-txts">
<view class="swipersDEghTTorsp-items-right-item-txt">
<text class="swipersDEghTTorsp-items-right-item-txts">
分享
</text>
</view>
</view>
<view class="swipers-items-right-item" v-if="item.isCollect==null || item.isCollect == 0">
<view class="swipers-items-right-item-img" @click.stop="collectVideo(item)">
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian.png"
<view class="swipersDEghTTorsp-items-right-item" v-if="item.isCollect==null || item.isCollect == 0">
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="collectVideoDEghTTorsp(item)">
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/shuqian.png"
mode=""></image>
</view>
<view class="swipers-items-right-item-txt">
<text class="swipers-items-right-item-txts">
<view class="swipersDEghTTorsp-items-right-item-txt">
<text class="swipersDEghTTorsp-items-right-item-txts">
追剧
</text>
</view>
</view>
<view class="swipers-items-right-item" v-else>
<view class="swipers-items-right-item-img" @click.stop="collectVideo(item)">
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
<view class="swipersDEghTTorsp-items-right-item" v-else>
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="collectVideoDEghTTorsp(item)">
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
mode=""></image>
</view>
<view class="swipers-items-right-item-txt">
<text class="swipers-items-right-item-txts">
<view class="swipersDEghTTorsp-items-right-item-txt">
<text class="swipersDEghTTorsp-items-right-item-txts">
已追
</text>
</view>
</view>
</view>
<!-- 底部视频信息 -->
<view class="swipers-items-btom"
<view class="swipersDEghTTorsp-items-btom"
:style="{bottom:(item.rankCount && item.rankCount<30)?'160rpx':'100rpx'}" v-if="showControls">
<view class="swipers-items-btom-box">
<view class="swipersDEghTTorsp-items-btom-box">
<!-- 标题 -->
<view class="swipers-items-btom-box-title">
<text class="swipers-items-btom-box-titles">
<view class="swipersDEghTTorsp-items-btom-box-title">
<text class="swipersDEghTTorsp-items-btom-box-titles">
{{item.title}}
</text>
</view>
<!-- 介绍 -->
<view v-if="item.content" class="swipers-items-btom-box-content">
<text class="swipers-items-btom-box-contents">{{item.content}}</text>
<view v-if="item.content" class="swipersDEghTTorsp-items-btom-box-content">
<text class="swipersDEghTTorsp-items-btom-box-contents">{{item.content}}</text>
</view>
<!-- 集数 -->
<view @click="goCourse(item.courseId,item.courseDetailsId)"
class="swipers-items-btom-box-num">
<text class="swipers-items-btom-box-nums">
<view @click="goCourseDEghTTorsp(item.courseId,item.courseDetailsId)"
class="swipersDEghTTorsp-items-btom-box-num">
<text class="swipersDEghTTorsp-items-btom-box-nums">
查看更多续集 >
</text>
</view>
@@ -92,12 +92,12 @@
</cell>
</list>
<uni-popup ref="popupBs" :safe-area="true" background-color="#ffffff">
<view class="bs">
<text class="bs-title">倍速:</text>
<view class="bs-se">
<view class="bs-se-i" @click="BsChange(index)" :class="nowBs==index?'bsActive':''"
<view class="bsDEghTTorsp">
<text class="bsDEghTTorsp-title">倍速:</text>
<view class="bsDEghTTorsp-se">
<view class="bsDEghTTorsp-se-i" @click="BsChangeDEghTTorsp(index)" :class="nowBs==index?'bsActiveDEghTTorsp':''"
v-for="(item,index) in subList" :key="index">
<text class="bs-se-it">{{item.name}}</text>
<text class="bsDEghTTorsp-se-it">{{item.name}}</text>
</view>
</view>
</view>
@@ -185,7 +185,7 @@
})
this.page = 1
this.randomNum = Math.floor(Math.random() * 33);
this.getDataList()
this.getDataListDEghTTorsp()
},
onHide() {
try {
@@ -209,7 +209,7 @@
},
methods: {
//播放时的回掉
videoPlay(videoId,courseDetailsId) {
videoPlayDEghTTorsp(videoId,courseDetailsId) {
this.courseDetailsId = courseDetailsId
if ( !this.playFlag ) {
this.playFlag = true
@@ -224,7 +224,7 @@
},
//播放进度变化回掉
timeupdate(e) {
timeupdateDEghTTorsp(e) {
if (e.detail.currentTime > e.detail.duration*0.9) {
if ( this.playFlag) {
@@ -240,7 +240,7 @@
}
},
appear(e, index) {
appearDEghTTorsp(e, index) {
this.current = index
this.showControls = true
this.isShowVideo = e
@@ -250,27 +250,27 @@
this.videoContextId = 'myVideo' + numIdCurr;
this.videoContext = uni.createVideoContext(this.videoContextId, this);
//插入历史记录
this.setHistor(this.videoList[index].courseId, this.videoList[index].courseDetailsId);
this.setHistorDEghTTorsp(this.videoList[index].courseId, this.videoList[index].courseDetailsId);
this.$forceUpdate()
},
getData() {
getDataDEghTTorsp() {
if (this.page < this.pages) {
this.page += 1
this.getDataList()
this.getDataListDEghTTorsp()
this.$forceUpdate()
}
},
//显示/隐藏适配控制器的回调
controlstoggles(e) {
controlstogglesDEghTTorsp(e) {
this.showControls = e.detail.show
console.log(e.detail.show, '显示/隐藏控制栏')
},
//打开倍速弹框
openBs() {
openBsDEghTTorsp() {
this.$refs.popupBs.open('bottom')
},
//切换倍速
BsChange(index) {
BsChangeDEghTTorsp(index) {
this.nowBs = index
this.videoContext.playbackRate(this.subList[index].num)
this.$refs.popupBs.close()
@@ -281,23 +281,23 @@
})
},
// 跳转资源详情
goCourse(e, courseDetailsId) {
goCourseDEghTTorsp(e, courseDetailsId) {
let userId = uni.getStorageSync('userId')
if (userId) {
// uni.navigateTo({
// url: '/pages/index/course/courseDet?id=' + e
// url: '/pages/index/mggghRAnkh/courseDet?id=' + e
// });
uni.navigateTo({
url: '/me/detail/detail?id=' + e + '&courseDetailsId=' + courseDetailsId
})
} else {
uni.navigateTo({
url: "/pages/login/login"
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
})
}
},
//分享-复制app下载连接
share() {
shareDEghTTorsp() {
let invitationCode = ''
let qdCode = ''
if (uni.getStorageSync('invitationCode')) {
@@ -306,7 +306,7 @@
if (uni.getStorageSync('qdCode')) {
qdCode = uni.getStorageSync('qdCode')
}
let url = config.APIHOST2 + '/pages/login/registerApp?invitation=' + invitationCode + '&qdCode=' + qdCode
let url = config.APIHOST2 + '/pages/ghtwwlkXYG/WVEtZeeghKApp?invitation=' + invitationCode + '&qdCode=' + qdCode
uni.setClipboardData({
data: url,
success(res) {
@@ -317,7 +317,7 @@
})
},
//收藏
collectVideo(item) {
collectVideoDEghTTorsp(item) {
if (uni.getStorageSync('token')) {
let data = {
courseId: item.courseId,
@@ -336,14 +336,14 @@
})
} else {
uni.navigateTo({
url: "/pages/login/login"
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
})
}
},
//点赞
dianzan(item) {
dianzanDEghTTorsp(item) {
if (uni.getStorageSync('token')) {
let data = {
courseId: item.courseId,
@@ -364,12 +364,12 @@
})
} else {
uni.navigateTo({
url: "/pages/login/login"
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
})
}
},
ended() {
endedDEghTTorsp() {
console.log(this.current, 'eeeeeeeeeeeee')
if (this.current < this.videoList.length - 1) {
// this.current += 1
@@ -388,7 +388,7 @@
* @param {Number} courseDetailsId 当前视频id
* @param {boolean} type 是购买后返回的还是直接进来的
*/
getDataList() {
getDataListDEghTTorsp() {
let data = {
page: this.page,
limit: this.limit,
@@ -419,7 +419,7 @@
})
if (uni.getStorageSync('token')) { //如果有token则插入
//插入历史记录
this.setHistor(this.videoList[this.current].courseId, this.videoList[this
this.setHistorDEghTTorsp(this.videoList[this.current].courseId, this.videoList[this
.current]
.courseDetailsId)
}
@@ -439,7 +439,7 @@
})
},
//插入观看记录
setHistor(courseId, courseDetailsId) {
setHistorDEghTTorsp(courseId, courseDetailsId) {
if (uni.getStorageSync('token')) {
let data = {
courseId: courseId,
@@ -455,7 +455,7 @@
</script>
<style>
.bs {
.bsDEghTTorsp {
display: flex;
flex-direction: row;
align-items: center;
@@ -464,12 +464,12 @@
}
.bs-title {
.bsDEghTTorsp-title {
font-size: 24rpx;
font-weight: bold;
}
.bs-se {
.bsDEghTTorsp-se {
display: flex;
flex-direction: row;
align-items: center;
@@ -478,129 +478,129 @@
border-radius: 10rpx;
}
.bs-se-it {
.bsDEghTTorsp-se-it {
font-size: 24rpx;
width: 100rpx;
padding: 16rpx 0;
text-align: center;
}
.bsActive {
.bsActiveDEghTTorsp {
background-color: #ffffff;
border-radius: 6rpx;
}
.detail {
.detailDEghTTorsp {
width: 750rpx;
flex: 1;
background-color: #000;
overflow-y: hidden;
}
.swipers {
.swipersDEghTTorsp {
width: 750rpx;
flex: 1;
}
.swipers-item {
.swipersDEghTTorsp-item {
width: 750rpx;
flex: 1;
}
.swipers-items {
.swipersDEghTTorsp-items {
width: 750rpx;
flex: 1;
position: relative;
background-color: #000;
}
.swipers-items-video {
.swipersDEghTTorsp-items-video {
width: 750rpx;
flex: 1;
}
.swipers-items-imgsbg {
.swipersDEghTTorsp-items-imgsbg {
width: 750rpx;
flex: 1;
}
.swipers-items-right {
.swipersDEghTTorsp-items-right {
position: absolute;
width: 60rpx;
top: 100rpx;
right: 20rpx;
}
.swipers-items-right-item {
.swipersDEghTTorsp-items-right-item {
width: 60rpx;
margin-bottom: 40rpx;
}
.swipers-items-right-item-imgs {
.swipersDEghTTorsp-items-right-item-imgs {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
}
.swipers-items-right-item-img {
.swipersDEghTTorsp-items-right-item-img {
width: 60rpx;
height: 60rpx;
}
.swipers-items-right-item-imgs {
.swipersDEghTTorsp-items-right-item-imgs {
width: 60rpx;
height: 60rpx;
}
.swipers-items-right-item-txt {
.swipersDEghTTorsp-items-right-item-txt {
width: 60rpx;
}
.swipers-items-right-item-txts {
.swipersDEghTTorsp-items-right-item-txts {
width: 60rpx;
color: #ffffff;
font-size: 24rpx;
text-align: center;
}
.swipers-items-btom {
.swipersDEghTTorsp-items-btom {
width: 750rpx;
position: absolute;
/* bottom: 140rpx; */
align-items: center;
}
.swipers-items-btom-box {
.swipersDEghTTorsp-items-btom-box {
width: 710rpx;
}
.swipers-items-btom-box-title {
.swipersDEghTTorsp-items-btom-box-title {
width: 710rpx;
}
.swipers-items-btom-box-titles {
.swipersDEghTTorsp-items-btom-box-titles {
width: 710rpx;
color: #ffffff;
font-size: 30rpx;
}
.swipers-items-btom-box-content {
.swipersDEghTTorsp-items-btom-box-content {
width: 710rpx;
margin-top: 10rpx;
}
.swipers-items-btom-box-contents {
.swipersDEghTTorsp-items-btom-box-contents {
width: 710rpx;
color: #ffffff;
font-size: 28rpx;
}
.swipers-items-btom-box-num {
.swipersDEghTTorsp-items-btom-box-num {
width: 750rpx;
margin-top: 20rpx;
}
.swipers-items-btom-box-nums {
.swipersDEghTTorsp-items-btom-box-nums {
width: 710rpx;
color: #ffffff;
font-size: 30rpx;

View File

@@ -1,36 +1,36 @@
<template>
<view>
<swiper @longpress="openBs()" :style="{height:winHeight}" :circular="false" class="swipers" @change="change"
<swiper @longpress="openBsDEghTTorsp()" :style="{height:winHeight}" :circular="false" class="swipers" @change="changeDEghTTorsp"
:current="current" :vertical="true" :indicator-dots="false" :autoplay="false" :interval="0" :duration="1">
<swiper-item class="swipers-item" v-for="(item,index) in videoList" :key="item.courseDetailsId">
<view class="swipers-items">
<!-- 视频 -->
<!-- #ifndef MP-TOUTIAO -->
<!-- #ifdef MP-WEIXIN -->
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" @timeupdate="timeupdate"
@waiting="waiting()" object-fit="cover" v-if="current == index" :play-strategy="2"
<video :show-fullscreen-btn="false" @controlstoggle="controlstogglesDEghTTorsp" @timeupdate="timeupdate"
@waiting="waitingDEghTTorsp()" object-fit="cover" v-if="current == index" :play-strategy="2"
:show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="false"
@ended="ended" @play="videoPlay('myVideo'+item.courseDetailsId)"
@ended="ended" @play="videoPlayDEghTTorsp('myVideo'+item.courseDetailsId)"
:enable-progress-gesture="false" :ref="'myVideo'+item.courseDetailsId"
:id="'myVideo'+item.courseDetailsId" :src="item.wxCourseDetailsId?item.wxUrl:item.videoUrl"
:poster="item.titleImg" :autoplay="item.autoPlay" initial-time="0"
class="swipers-items-video"></video>
<!-- #endif -->
<!-- #ifndef MP-WEIXIN -->
<video :show-fullscreen-btn="false" @click.stop.prevent="isSelectType" :controls="false"
@controlstoggle="controlstoggles" @timeupdate="timeupdate" @waiting="waiting()"
<video :show-fullscreen-btn="false" @click.stop.prevent="isSelectTypeDEghTTorsp" :controls="false"
@controlstoggle="controlstogglesDEghTTorsp" @timeupdate="timeupdate" @waiting="waitingDEghTTorsp()"
object-fit="cover" v-if="current == index" :play-strategy="2" :show-loading="true"
codec="software" :muted="false" :show-center-play-btn="true" :loop="false" @ended="ended"
@play="videoPlay('myVideo'+item.courseDetailsId)" :enable-progress-gesture="false"
@play="videoPlayDEghTTorsp('myVideo'+item.courseDetailsId)" :enable-progress-gesture="false"
:ref="'myVideo'+item.courseDetailsId" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl"
:poster="item.titleImg" :autoplay="item.autoPlay" initial-time="0" class="swipers-items-video"
@contextmenu.prevent="disableContextMenu"></video>
@contextmenu.prevent="disableContextMenuDEghTTorsp"></video>
<!-- #endif -->
<!-- #endif -->
<!-- #ifdef MP-TOUTIAO -->
<video-player :show-fullscreen-btn="false" @controlstoggle="controlstoggles" @error="videoError"
version="1" @ended="ended" object-fit="cover" @play="videoPlay('myVideo'+item.courseDetailsId)"
<video-player :show-fullscreen-btn="false" @controlstoggle="controlstogglesDEghTTorsp" @error="videoErrorDEghTTorsp"
version="1" @ended="ended" object-fit="cover" @play="videoPlayDEghTTorsp('myVideo'+item.courseDetailsId)"
:autoplay="item.autoPlay" :id="'myVideo'+item.courseDetailsId"
:ref="'myVideo'+item.courseDetailsId" :album-id="item.dyCourseDetailsId"
:episode-id="item.dyEpisodeId" :cloud-type="playType" :three-party-cloud="item.videoUrl"
@@ -53,14 +53,14 @@
</view>
<!-- 集数 -->
<view class="swipers-items-info-num" @click="goCourse(item.courseId,item.courseDetailsId)">
<view class="swipers-items-info-num" @click="goCourseDEghTTorsp(item.courseId,item.courseDetailsId)">
查看更多续集 >
</view>
</view>
<!-- 右侧操作 -->
<view class="swipers-items-right" :style="[tabBarStyles]">
<view class="swipers-items-right-item">
<view class="swipers-items-right-item-img" @click.stop="dianzan(item)">
<view class="swipers-items-right-item-img" @click.stop="dianzanDEghTTorsp(item)">
<u-icon name="heart-fill" v-if="item.isGood!=null && item.isGood!=0" color="red"
size="60"></u-icon>
<u-icon name="heart-fill" v-else color="#ffffff" size="60"></u-icon>
@@ -71,7 +71,7 @@
</view>
</view>
<!-- #ifndef MP-KUAISHOU -->
<view class="swipers-items-right-item" @click="share(item)">
<view class="swipers-items-right-item" @click="shareDEghTTorsp(item)">
<view class="swipers-items-right-item-img">
<image src="../../static/images/me/share.png" mode=""></image>
</view>
@@ -82,7 +82,7 @@
<!-- #endif -->
<view class="swipers-items-right-item" v-if="item.isCollect==null || item.isCollect == 0">
<view class="swipers-items-right-item-img" @click.stop="shoucang(item)">
<view class="swipers-items-right-item-img" @click.stop="shoucangDEghTTorsp(item)">
<image src="../../static/images/me/shuqian.png" style="height: 60rpx;" mode=""></image>
</view>
<view class="swipers-items-right-item-txt">
@@ -90,7 +90,7 @@
</view>
</view>
<view class="swipers-items-right-item" v-else>
<view class="swipers-items-right-item-img" @click.stop="shoucang(item)">
<view class="swipers-items-right-item-img" @click.stop="shoucangDEghTTorsp(item)">
<image src="../../static/images/me/shuqian_s.png" style="height: 60rpx;" mode="">
</image>
</view>
@@ -104,40 +104,40 @@
</swiper>
<!-- #ifdef APP -->
<tki-qrcode ref="qrcode" v-if="isStart" :val="erweima" :size="200" background="#ffffff" foreground="#000"
pdground="#000" :onval="true" :loadMake="true" @result="qrR" :show="false"></tki-qrcode>
pdground="#000" :onval="true" :loadMake="true" @result="qrRDEghTTorsp" :show="false"></tki-qrcode>
<!-- @success成功事件 imgSrc图片地址 QrSrc二维码图片地址
Title标题 PriceTxt价格 OriginalTxt原始价格 LineType -->
<cc-poster v-if="haibaoShow==true && erweima" @error="posterError" @success="posterSuccess" :imgSrc="imgSrc"
<cc-poster v-if="haibaoShow==true && erweima" @error="posterErrorDEghTTorsp" @success="posterSuccessDEghTTorsp" :imgSrc="imgSrc"
:QrSrc="qrCodeData" :Title="title" :PriceTxt="title" :LineType="false"></cc-poster>
<!-- #endif -->
<!-- #ifdef H5 -->
<tki-qrcode ref="qrcode" v-if="isStart" :val="erweima" :size="200" background="#ffffff" foreground="#000"
pdground="#000" :onval="true" :loadMake="true" @result="qrR" :show="false"></tki-qrcode>
pdground="#000" :onval="true" :loadMake="true" @result="qrRDEghTTorsp" :show="false"></tki-qrcode>
<!-- @success成功事件 imgSrc图片地址 QrSrc二维码图片地址
Title标题 PriceTxt价格 OriginalTxt原始价格 LineType -->
<cc-poster v-if="haibaoShow==true && erweima" @error="posterError" @success="posterSuccess" :imgSrc="imgSrc"
<cc-poster v-if="haibaoShow==true && erweima" @error="posterErrorDEghTTorsp" @success="posterSuccessDEghTTorsp" :imgSrc="imgSrc"
:QrSrc="qrCodeData" :Title="title" :PriceTxt="title" :LineType="false"></cc-poster>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<cc-poster v-if="haibaoShow==true && qrCodeData" @error="posterError" @success="posterSuccess" :imgSrc="imgSrc"
<cc-poster v-if="haibaoShow==true && qrCodeData" @error="posterErrorDEghTTorsp" @success="posterSuccessDEghTTorsp" :imgSrc="imgSrc"
:QrSrc="qrCodeData" :Title="title" :PriceTxt="title" :LineType="false"></cc-poster>
<!-- #endif -->
<!-- #ifdef MP-TOUTIAO -->
<cc-poster v-if="haibaoShow==true && qrCodeData" @error="posterError" @success="posterSuccess" :imgSrc="imgSrc"
<cc-poster v-if="haibaoShow==true && qrCodeData" @error="posterErrorDEghTTorsp" @success="posterSuccessDEghTTorsp" :imgSrc="imgSrc"
:QrSrc="qrCodeData" :Title="title" :PriceTxt="title" :LineType="false"></cc-poster>
<!-- #endif -->
<u-popup width="686" v-model="showImg" mode="center" border-radius="14">
<image :show-menu-by-longpress='true' @click="priveImage(haibaoImg)" @longpress="saveImage()"
<image :show-menu-by-longpress='true' @click="priveImageDEghTTorsp(haibaoImg)" @longpress="saveImageDEghTTorsp()"
:src="haibaoImg" style="width: 100%;" mode="widthFix"></image>
</u-popup>
<uni-popup ref="popupBs" :safe-area="true" background-color="#ffffff">
<view class="bs">
<text class="bs-title">倍速</text>
<view class="bs-se">
<view class="bs-se-i" @click="BsChange(index)" :class="nowBs==index?'bsActive':''"
<view class="bsDEghTTorsp">
<text class="bsDEghTTorsp-title">倍速</text>
<view class="bsDEghTTorsp-se">
<view class="bsDEghTTorsp-se-i" @click="BsChangeDEghTTorsp(index)" :class="nowBs==index?'bsActiveDEghTTorsp':''"
v-for="(item,index) in subList" :key="index">
{{item.name}}
</view>
@@ -263,7 +263,7 @@
}
this.page = 1
this.randomNum = Math.floor(Math.random() * 33);
this.getDataList()
this.getDataListDEghTTorsp()
},
onHide() {
@@ -282,8 +282,8 @@
path: '/pages/video/video?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode + '&id=' + this.courseId + '&courseDetailsId=' + this
.courseDetailsId, //这是为了传参 onload(data){let id=data.id;}
title: this.getVideoTitle(),
imageUrl: this.getVideoImageUrl()
title: this.getVideoTitleDEghTTorsp(),
imageUrl: this.getVideoImageUrlDEghTTorsp()
}
},
onShareTimeline(res) {
@@ -291,8 +291,8 @@
path: '/pages/video/video?invitation=' + this.invitationCode + '&qdCode=' + this
.qdCode + '&id=' + this.courseId + '&courseDetailsId=' + this
.courseDetailsId, //这是为了传参 onload(data){let id=data.id;}
title: this.getVideoTitle(),
imageUrl: this.getVideoImageUrl()
title: this.getVideoTitleDEghTTorsp(),
imageUrl: this.getVideoImageUrlDEghTTorsp()
}
},
onLoad(e) {
@@ -316,7 +316,7 @@
if (scene[3]) {
uni.setStorageSync('qdCodeion', scene[3])
}
this.getDataList(this.courseId, this.courseDetailsId);
this.getDataListDEghTTorsp(this.courseId, this.courseDetailsId);
}
// #endif
if (e.invitation) {
@@ -332,7 +332,7 @@
if (e.qdCode) {
uni.setStorageSync('qdCodeion', e.qdCode)
}
// this.getDataList()
// this.getDataListDEghTTorsp()
},
onReady() {
// #ifdef MP-WEIXIN
@@ -350,7 +350,7 @@
if ((newData + 1) == (this.limit * this.page)) { //最后一条了
if (this.page < this.pages) {
this.page += 1
this.getDataList()
this.getDataListDEghTTorsp()
}
console.log(this.videoList, '2222222222')
@@ -385,10 +385,10 @@
},
},
methods: {
disableContextMenu(event) {
disableContextMenuDEghTTorsp(event) {
event.preventDefault();
},
priveImage(url) {
priveImageDEghTTorsp(url) {
// #ifdef H5
let ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('micromessenger') == -1) {
@@ -399,17 +399,17 @@
// #endif
},
//获取当前播放视频的封面图
getVideoImageUrl() {
getVideoImageUrlDEghTTorsp() {
console.log(this.videoList[this.current].titleImg)
return this.videoList[this.current].titleImg
},
//获取当前播放视频的标题
getVideoTitle() {
getVideoTitleDEghTTorsp() {
return this.videoList[this.current].courseDetailsName
},
//抖音保存海报
saveImage() {
saveImageDEghTTorsp() {
let that = this
// #ifdef MP-TOUTIAO || MP-KUAISHOU
uni.saveImageToPhotosAlbum({
@@ -428,7 +428,7 @@
});
// #endif
},
isSelectType(e) {
isSelectTypeDEghTTorsp(e) {
// console.log(e)
// #ifndef MP-WEIXIN || MP-KUAISHOU
this.showControls = !this.showControls
@@ -437,7 +437,7 @@
},
//显示/隐藏适配控制器的回调
controlstoggles(e) {
controlstogglesDEghTTorsp(e) {
// #ifndef MP-KUAISHOU
this.showControls = e.detail.show
// #endif
@@ -445,7 +445,7 @@
console.log(e.detail.show, '显示/隐藏控制栏')
},
//获取微信的播放链接
getsrc(videoUrl, wxCourseDetailsId) {
getsrcDEghTTorsp(videoUrl, wxCourseDetailsId) {
// #ifdef MP-WEIXIN
let data = {
wxCourseDetailsIds: wxCourseDetailsId // 注意:这里应该是单数,除非后端确实接收复数形式
@@ -463,16 +463,16 @@
// #endif
},
videoError(e) {
videoErrorDEghTTorsp(e) {
console.log(e, '11111111111')
},
//打开倍速弹框
openBs() {
openBsDEghTTorsp() {
console.log('打开倍速')
this.$refs.popupBs.open('bottom')
},
//切换倍速
BsChange(index) {
BsChangeDEghTTorsp(index) {
this.nowBs = index
this.videoContext.playbackRate(this.subList[index].num)
this.$refs.popupBs.close()
@@ -502,7 +502,7 @@
}
},
//缓冲中
waiting(e) {
waitingDEghTTorsp(e) {
//在h5状态下视频出现缓冲则显示loding
// #ifdef H5
uni.showLoading()
@@ -516,7 +516,7 @@
},
//生成失败
posterError() {
posterErrorDEghTTorsp() {
this.haibaoImg = ''
this.showImg = false
// 生成完成后初始化分享
@@ -533,14 +533,14 @@
/**
* @param {String} path //返回的二维码地址
*/
qrR(path) {
qrRDEghTTorsp(path) {
this.qrCodeData = path
this.haibaoShow = true
},
/**生成成功
* @param {String} img 成功回调的图片
*/
posterSuccess(img) {
posterSuccessDEghTTorsp(img) {
console.log(img)
this.haibaoImg = img.tempFilePath
this.showImg = true
@@ -557,7 +557,7 @@
});
},
//分享
share(item) {
shareDEghTTorsp(item) {
this.imgSrc = item.titleImg
let qdCode = ""
if (uni.getStorageSync('qdCode')) {
@@ -599,23 +599,23 @@
// #endif
},
// 跳转资源详情
goCourse(e, courseDetailsId) {
goCourseDEghTTorsp(e, courseDetailsId) {
let userId = uni.getStorageSync('userId')
if (userId) {
// uni.navigateTo({
// url: '/pages/index/course/courseDet?id=' + e
// url: '/pages/index/mggghRAnkh/courseDet?id=' + e
// });
uni.navigateTo({
url: '/me/detail/detail?id=' + e + '&courseDetailsId=' + courseDetailsId
})
} else {
uni.navigateTo({
url: "/pages/login/login"
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
})
}
},
//收藏
shoucang(item) {
shoucangDEghTTorsp(item) {
if (uni.getStorageSync('token')) {
let data = {
courseId: item.courseId,
@@ -634,12 +634,12 @@
})
} else {
uni.navigateTo({
url: "/pages/login/login"
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
})
}
},
//点赞
dianzan(item) {
dianzanDEghTTorsp(item) {
if (uni.getStorageSync('token')) {
let data = {
courseId: item.courseId,
@@ -660,13 +660,13 @@
})
} else {
uni.navigateTo({
url: "/pages/login/login"
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
})
}
},
// 资源详情
getDataList() {
getDataListDEghTTorsp() {
let data = {
page: this.page,
limit: this.limit,
@@ -707,12 +707,12 @@
if (uni.getStorageSync('token')) { //如果有token则插入
//插入历史记录
this.setHistor(this.videoList[this.current].courseId, this.videoList[this
this.setHistorDEghTTorsp(this.videoList[this.current].courseId, this.videoList[this
.current]
.courseDetailsId)
}
}
this.getsrc(this.videoList[this.current].videoUrl, this.videoList[this.current]
this.getsrcDEghTTorsp(this.videoList[this.current].videoUrl, this.videoList[this.current]
.wxCourseDetailsId)
this.$forceUpdate()
}
@@ -727,7 +727,7 @@
})
},
//记录观看记录
setHistor(courseId, courseDetailsId) {
setHistorDEghTTorsp(courseId, courseDetailsId) {
//如果没有登录则不进行记录直接return
if (!uni.getStorageSync('token')) {
return
@@ -741,7 +741,7 @@
this.$Request.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {})
},
//swiper上下切换事件
change(e) {
changeDEghTTorsp(e) {
//拿出当前的swiper索引
let current = Number(e.detail.current)
//考虑向上滑动的时候
@@ -842,22 +842,22 @@
this.scrollIntoView = 'video' + scrollIndex;
this.current = current
this.$nextTick(() => {
this.getsrc(this.videoList[this.current].videoUrl, this.videoList[this.current]
this.getsrcDEghTTorsp(this.videoList[this.current].videoUrl, this.videoList[this.current]
.wxCourseDetailsId)
//插入历史记录
this.setHistor(this.videoList[this.current].courseId, this.videoList[this.current]
this.setHistorDEghTTorsp(this.videoList[this.current].courseId, this.videoList[this.current]
.courseDetailsId)
// 把选择的视频的自动播放设置为true
this.videoList[this.current].autoPlay = true
//让当前选择的视频播放
this.startPlay(this.current)
this.startPlayDEghTTorsp(this.current)
//更新视图
this.$forceUpdate()
})
},
startPlay(current) {
startPlayDEghTTorsp(current) {
if (this.videoContext) { //判断之前是否有视频的上下文
this.videoContext.stop();
this.videoContext = null;
@@ -878,7 +878,7 @@
},
//在播放时候的回调
videoPlay(videoId) {
videoPlayDEghTTorsp(videoId) {
this.$Request.getT('app/course/viewCourse', {
courseId: this.courseId,
courseDetailsId: this.courseDetailsId,
@@ -916,7 +916,7 @@
background-color: #000;
}
.bs {
.bsDEghTTorsp {
display: flex;
align-items: center;
justify-content: space-between;
@@ -924,12 +924,12 @@
padding-bottom: 100rpx;
}
.bs-title {
.bsDEghTTorsp-title {
font-size: 30rpx;
font-weight: bold;
}
.bs-se {
.bsDEghTTorsp-se {
display: flex;
align-items: center;
background-color: #eeeeef;
@@ -937,41 +937,41 @@
border-radius: 10rpx;
}
.bs-se-i {
.bsDEghTTorsp-se-i {
width: 100rpx;
padding: 16rpx 0;
text-align: center;
}
.bsActive {
.bsActiveDEghTTorsp {
background-color: #ffffff;
border-radius: 6rpx;
}
.list {
.listDEghTTorsp {
width: 100%;
height: 100%;
background-color: #202020;
color: #ffffff;
.list-title {
.listDEghTTorsp-title {
height: 100rpx;
width: 100%;
// padding-top: 30rpx;
font-size: 32rpx;
font-weight: bold;
.list-title-icon {
.listDEghTTorsp-title-icon {
padding-left: 30rpx;
padding-right: 30rpx;
}
}
.list-item {
.listDEghTTorsp-item {
padding: 0 30rpx;
.list-item-box {
.listDEghTTorsp-item-box {
width: 100%;
line-height: 90rpx;
background-color: #ffffff;
@@ -984,19 +984,19 @@
}
.list-box {
.listDEghTTorsp-box {
width: 100%;
height: calc(100% - 100rpx);
}
.list-box-item {
.listDEghTTorsp-box-item {
width: calc(100% - 40rpx);
margin: 0 auto;
margin-bottom: 20rpx;
}
.list-box-item-l {
.listDEghTTorsp-box-item-l {
width: 140rpx;
height: 100%;
border-radius: 10rpx;
@@ -1008,23 +1008,23 @@
}
}
.list-box-item-r {
.listDEghTTorsp-box-item-r {
width: calc(100% - 160rpx);
height: 100%;
color: #ffffff;
font-size: 32rpx;
.list-box-item-r-title {
.listDEghTTorsp-box-item-r-title {
width: 100%;
font-weight: bold;
}
.list-box-item-r-titles {
.listDEghTTorsp-box-item-r-titles {
margin-top: 10rpx;
}
.list-box-item-r-content {
.listDEghTTorsp-box-item-r-content {
width: 100%;
color: rgba(255, 255, 255, 0.6);
margin-top: 10rpx;

View File

@@ -1,86 +1,86 @@
<template>
<view class="detail">
<swiper @longpress="openBs()" :circular="false" class="swipers" @change="change" :current="current"
<view class="detailDEghTTorsp">
<swiper @longpress="openBsDEghTTorsp()" :circular="false" class="swipersDEghTTorsp" @change="changeDEghTTorsp" :current="current"
:vertical="true" :indicator-dots="false" :autoplay="false" :interval="3000" :duration="300">
<swiper-item class="swipers-item" v-for="(item,index) in videoList" :key="item.courseDetailsId">
<view class="swipers-items">
<swiper-item class="swipersDEghTTorsp-item" v-for="(item,index) in videoList" :key="item.courseDetailsId">
<view class="swipersDEghTTorsp-items">
<!-- 视频 -->
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" object-fit="cover"
<video :show-fullscreen-btn="false" @controlstoggle="controlstogglesDEghTTorsp" object-fit="cover"
v-if="current === index && item.videoUrl" :play-strategy="2" :show-loading="true"
codec="software" :muted="false" :show-center-play-btn="true" :loop="true" @ended="ended"
@timeupdate="timeupdate"
@play="videoPlay('myVideo'+item.courseDetailsId, item.courseDetailsId)"
codec="software" :muted="false" :show-center-play-btn="true" :loop="true" @ended="endedDEghTTorsp"
@timeupdate="timeupdateDEghTTorsp"
@play="videoPlayDEghTTorsp('myVideo'+item.courseDetailsId, item.courseDetailsId)"
:enable-progress-gesture="false" :poster="item.titleImg" :ref="'myVideo'+item.courseDetailsId"
:id="'myVideo'+item.courseDetailsId" :src="item.videoUrl" :autoplay="item.autoPlay"
class="swipers-items-video"></video>
<image v-else :src="item.titleImg" class="swipers-items-imgsbg" mode="aspectFill">
class="swipersDEghTTorsp-items-video"></video>
<image v-else :src="item.titleImg" class="swipersDEghTTorsp-items-imgsbg" mode="aspectFill">
</image>
<!-- 右边操作 -->
<view class="swipers-items-right" :style="rightTop" v-if="showControls">
<view class="swipers-items-right-item">
<view class="swipers-items-right-item-img" @click.stop="dianzan(item)">
<image v-if="item.isGood!=null && item.isGood!=0" class="swipers-items-right-item-imgs"
<view class="swipersDEghTTorsp-items-right" :style="rightTop" v-if="showControls">
<view class="swipersDEghTTorsp-items-right-item">
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="dianzanDEghTTorsp(item)">
<image v-if="item.isGood!=null && item.isGood!=0" class="swipersDEghTTorsp-items-right-item-imgs"
src="../../static/images/me/myLove_.png" mode=""></image>
<image v-else class="swipers-items-right-item-imgs"
<image v-else class="swipersDEghTTorsp-items-right-item-imgs"
src="../../static/images/me/myLove.png" mode=""></image>
</view>
<view class="swipers-items-right-item-txt">
<text class="swipers-items-right-item-txts">
<view class="swipersDEghTTorsp-items-right-item-txt">
<text class="swipersDEghTTorsp-items-right-item-txts">
{{item.goodNum}}
</text>
</view>
</view>
<view class="swipers-items-right-item" @click="share()">
<view class="swipers-items-right-item-img">
<image class="swipers-items-right-item-imgs" src="../../static/images/me/share.png"
<view class="swipersDEghTTorsp-items-right-item" @click="shareDEghTTorsp()">
<view class="swipersDEghTTorsp-items-right-item-img">
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/share.png"
mode=""></image>
</view>
<view class="swipers-items-right-item-txt">
<text class="swipers-items-right-item-txts">
<view class="swipersDEghTTorsp-items-right-item-txt">
<text class="swipersDEghTTorsp-items-right-item-txts">
分享
</text>
</view>
</view>
<view class="swipers-items-right-item" v-if="item.isCollect==null || item.isCollect == 0">
<view class="swipers-items-right-item-img" @click.stop="shoucang(item)">
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian.png"
<view class="swipersDEghTTorsp-items-right-item" v-if="item.isCollect==null || item.isCollect == 0">
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="shoucangDEghTTorsp(item)">
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/shuqian.png"
mode=""></image>
</view>
<view class="swipers-items-right-item-txt">
<text class="swipers-items-right-item-txts">
<view class="swipersDEghTTorsp-items-right-item-txt">
<text class="swipersDEghTTorsp-items-right-item-txts">
追剧
</text>
</view>
</view>
<view class="swipers-items-right-item" v-else>
<view class="swipers-items-right-item-img" @click.stop="shoucang(item)">
<image class="swipers-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
<view class="swipersDEghTTorsp-items-right-item" v-else>
<view class="swipersDEghTTorsp-items-right-item-img" @click.stop="shoucangDEghTTorsp(item)">
<image class="swipersDEghTTorsp-items-right-item-imgs" src="../../static/images/me/shuqian_s.png"
mode=""></image>
</view>
<view class="swipers-items-right-item-txt">
<text class="swipers-items-right-item-txts">
<view class="swipersDEghTTorsp-items-right-item-txt">
<text class="swipersDEghTTorsp-items-right-item-txts">
已追
</text>
</view>
</view>
</view>
<!-- 底部视频信息 -->
<view class="swipers-items-btom" v-if="showControls">
<view class="swipers-items-btom-box">
<view class="swipersDEghTTorsp-items-btom" v-if="showControls">
<view class="swipersDEghTTorsp-items-btom-box">
<!-- 标题 -->
<view class="swipers-items-btom-box-title">
<text class="swipers-items-btom-box-titles">
<view class="swipersDEghTTorsp-items-btom-box-title">
<text class="swipersDEghTTorsp-items-btom-box-titles">
{{item.title}}
</text>
</view>
<!-- 介绍 -->
<view v-if="item.content" class="swipers-items-btom-box-content">
<text class="swipers-items-btom-box-contents">{{item.content}}</text>
<view v-if="item.content" class="swipersDEghTTorsp-items-btom-box-content">
<text class="swipersDEghTTorsp-items-btom-box-contents">{{item.content}}</text>
</view>
<!-- 集数 -->
<view @click="goCourse(item.courseId,item.courseDetailsId)"
class="swipers-items-btom-box-num">
<text class="swipers-items-btom-box-nums">
<view @click="goCourseDEghTTorsp(item.courseId,item.courseDetailsId)"
class="swipersDEghTTorsp-items-btom-box-num">
<text class="swipersDEghTTorsp-items-btom-box-nums">
查看更多续集 >
</text>
</view>
@@ -90,12 +90,12 @@
</swiper-item>
</swiper>
<uni-popup ref="popupBs" :safe-area="true" background-color="#ffffff">
<view class="bs">
<text class="bs-title">倍速:</text>
<view class="bs-se">
<view class="bs-se-i" @click="BsChange(index)" :class="nowBs==index?'bsActive':''"
<view class="bsDEghTTorsp">
<text class="bsDEghTTorsp-title">倍速:</text>
<view class="bsDEghTTorsp-se">
<view class="bsDEghTTorsp-se-i" @click="BsChangeDEghTTorsp(index)" :class="nowBs==index?'bsActiveDEghTTorsp':''"
v-for="(item,index) in subList" :key="index">
<text class="bs-se-it">{{item.name}}</text>
<text class="bsDEghTTorsp-se-it">{{item.name}}</text>
</view>
</view>
</view>
@@ -166,7 +166,7 @@
if ((newData + 1) == (this.limit * this.page)) { //最后一条了
if (this.page < this.pages) {
this.page += 1
this.getDataList()
this.getDataListDEghTTorsp()
}
this.$forceUpdate()
}
@@ -187,7 +187,7 @@
})
this.page = 1
this.randomNum = Math.floor(Math.random() * 33);
this.getDataList()
this.getDataListDEghTTorsp()
},
onHide() {
try {
@@ -205,7 +205,7 @@
},
methods: {
//播放时的回掉
videoPlay(videoId,courseDetailsId) {
videoPlayDEghTTorsp(videoId,courseDetailsId) {
this.courseDetailsId = courseDetailsId
if ( !this.playFlag ) {
this.playFlag = true
@@ -220,7 +220,7 @@
},
//播放进度变化回掉
timeupdate(e) {
timeupdateDEghTTorsp(e) {
if (e.detail.currentTime > e.detail.duration*0.9) {
if ( this.playFlag) {
@@ -237,16 +237,16 @@
},
//显示/隐藏适配控制器的回调
controlstoggles(e) {
controlstogglesDEghTTorsp(e) {
this.showControls = e.detail.show
console.log(e.detail.show, '显示/隐藏控制栏')
},
//打开倍速弹框
openBs() {
openBsDEghTTorsp() {
this.$refs.popupBs.open('bottom')
},
//切换倍速
BsChange(index) {
BsChangeDEghTTorsp(index) {
this.nowBs = index
this.videoContext.playbackRate(this.subList[index].num)
this.$refs.popupBs.close()
@@ -257,23 +257,23 @@
})
},
// 跳转资源详情
goCourse(e, courseDetailsId) {
goCourseDEghTTorsp(e, courseDetailsId) {
let userId = uni.getStorageSync('userId')
if (userId) {
// uni.navigateTo({
// url: '/pages/index/course/courseDet?id=' + e
// url: '/pages/index/mggghRAnkh/courseDet?id=' + e
// });
uni.navigateTo({
url: '/me/detail/detail?id=' + e + '&courseDetailsId=' + courseDetailsId
})
} else {
uni.navigateTo({
url: "/pages/login/login"
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
})
}
},
//分享-复制app下载连接
share() {
shareDEghTTorsp() {
let invitationCode = ''
let qdCode = ''
if (uni.getStorageSync('invitationCode')) {
@@ -282,7 +282,7 @@
if (uni.getStorageSync('qdCode')) {
qdCode = uni.getStorageSync('qdCode')
}
let url = config.APIHOST2 + '/pages/login/registerApp?invitation=' + invitationCode + '&qdCode=' + qdCode
let url = config.APIHOST2 + '/pages/ghtwwlkXYG/WVEtZeeghKApp?invitation=' + invitationCode + '&qdCode=' + qdCode
uni.setClipboardData({
data: url,
success(res) {
@@ -293,7 +293,7 @@
})
},
//收藏
shoucang(item) {
shoucangDEghTTorsp(item) {
if (uni.getStorageSync('token')) {
let data = {
courseId: item.courseId,
@@ -312,14 +312,14 @@
})
} else {
uni.navigateTo({
url: "/pages/login/login"
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
})
}
},
//点赞
dianzan(item) {
dianzanDEghTTorsp(item) {
if (uni.getStorageSync('token')) {
let data = {
courseId: item.courseId,
@@ -340,13 +340,13 @@
})
} else {
uni.navigateTo({
url: "/pages/login/login"
url: "/pages/ghtwwlkXYG/wVghNzmqkQ"
})
}
},
//swiper上下切换事件
change(e) {
changeDEghTTorsp(e) {
console.log(e, '111111111111111111')
this.showControls = true
//拿出当前的swiper索引
@@ -354,16 +354,16 @@
this.scrollIntoView = 'video' + current
this.$nextTick(() => {
this.current = current
this.startPlay(current)
this.startPlayDEghTTorsp(current)
})
if (uni.getStorageSync('token')) {
//插入历史记录
this.setHistor(this.videoList[this.current].courseId, this.videoList[this.current].courseDetailsId);
this.setHistorDEghTTorsp(this.videoList[this.current].courseId, this.videoList[this.current].courseDetailsId);
}
},
//控制播放
startPlay(current) {
startPlayDEghTTorsp(current) {
if (this.videoContext) { //判断之前是否有视频的上下文
this.videoContext.stop();
this.videoContext = null;
@@ -378,7 +378,7 @@
this.$forceUpdate();
})
},
ended() {
endedDEghTTorsp() {
if (this.current < this.videoList.length - 1) {
this.current += 1
}
@@ -388,7 +388,7 @@
* @param {Number} courseDetailsId 当前视频id
* @param {boolean} type 是购买后返回的还是直接进来的
*/
getDataList() {
getDataListDEghTTorsp() {
let data = {
page: this.page,
limit: this.limit,
@@ -419,7 +419,7 @@
})
if (uni.getStorageSync('token')) { //如果有token则插入
//插入历史记录
this.setHistor(this.videoList[this.current].courseId, this.videoList[this
this.setHistorDEghTTorsp(this.videoList[this.current].courseId, this.videoList[this
.current]
.courseDetailsId)
}
@@ -439,7 +439,7 @@
})
},
//插入观看记录
setHistor(courseId, courseDetailsId) {
setHistorDEghTTorsp(courseId, courseDetailsId) {
let data = {
courseId: courseId,
courseDetailsId: courseDetailsId,
@@ -453,7 +453,7 @@
</script>
<style>
.bs {
.bsDEghTTorsp {
display: flex;
flex-direction: row;
align-items: center;
@@ -462,12 +462,12 @@
}
.bs-title {
.bsDEghTTorsp-title {
font-size: 24rpx;
font-weight: bold;
}
.bs-se {
.bsDEghTTorsp-se {
display: flex;
flex-direction: row;
align-items: center;
@@ -476,122 +476,122 @@
border-radius: 10rpx;
}
.bs-se-it {
.bsDEghTTorsp-se-it {
font-size: 24rpx;
width: 100rpx;
padding: 16rpx 0;
text-align: center;
}
.bsActive {
.bsActiveDEghTTorsp {
background-color: #ffffff;
border-radius: 6rpx;
}
.detail {
.detailDEghTTorsp {
width: 750rpx;
flex: 1;
background-color: #000;
}
.swipers {
.swipersDEghTTorsp {
width: 750rpx;
flex: 1;
}
.swipers-item {
.swipersDEghTTorsp-item {
width: 750rpx;
flex: 1;
}
.swipers-items {
.swipersDEghTTorsp-items {
width: 750rpx;
flex: 1;
position: relative;
background-color: #000;
}
.swipers-items-video {
.swipersDEghTTorsp-items-video {
width: 750rpx;
flex: 1;
}
.swipers-items-imgsbg {
.swipersDEghTTorsp-items-imgsbg {
width: 750rpx;
flex: 1;
}
.swipers-items-right {
.swipersDEghTTorsp-items-right {
position: absolute;
width: 60rpx;
top: 100rpx;
right: 20rpx;
}
.swipers-items-right-item {
.swipersDEghTTorsp-items-right-item {
width: 60rpx;
margin-bottom: 40rpx;
}
.swipers-items-right-item-img {
.swipersDEghTTorsp-items-right-item-img {
width: 60rpx;
height: 60rpx;
}
.swipers-items-right-item-imgs {
.swipersDEghTTorsp-items-right-item-imgs {
width: 60rpx;
height: 60rpx;
}
.swipers-items-right-item-txt {
.swipersDEghTTorsp-items-right-item-txt {
width: 60rpx;
}
.swipers-items-right-item-txts {
.swipersDEghTTorsp-items-right-item-txts {
width: 60rpx;
color: #ffffff;
font-size: 24rpx;
text-align: center;
}
.swipers-items-btom {
.swipersDEghTTorsp-items-btom {
width: 750rpx;
position: absolute;
bottom: 100rpx;
align-items: center;
}
.swipers-items-btom-box {
.swipersDEghTTorsp-items-btom-box {
width: 710rpx;
}
.swipers-items-btom-box-title {
.swipersDEghTTorsp-items-btom-box-title {
width: 710rpx;
}
.swipers-items-btom-box-titles {
.swipersDEghTTorsp-items-btom-box-titles {
width: 710rpx;
color: #ffffff;
font-size: 30rpx;
}
.swipers-items-btom-box-content {
.swipersDEghTTorsp-items-btom-box-content {
width: 710rpx;
margin-top: 10rpx;
}
.swipers-items-btom-box-contents {
.swipersDEghTTorsp-items-btom-box-contents {
width: 710rpx;
color: #ffffff;
font-size: 28rpx;
}
.swipers-items-btom-box-num {
.swipersDEghTTorsp-items-btom-box-num {
width: 750rpx;
margin-top: 20rpx;
}
.swipers-items-btom-box-nums {
.swipersDEghTTorsp-items-btom-box-nums {
width: 710rpx;
color: #ffffff;
font-size: 30rpx;