音/视频)查询。示例:1e067a2831b641db90d570b6480f****。
width: '100%', //容器的大小
+ // videoWidth: '100vw', //容器的大小
+ // videoHeight: '100vh', //容器的大小
height: '100%', //容器的大小
playsinline: true,
controlBarVisibility: "click",
cover: "",
components: [
+ // {
+ // name: 'BulletScreenComponent',
+ // type: AliPlayerComponent.BulletScreenComponent,
+ // /** Descriptions of the scrolling text component parameters: text, style, bulletPosition
+ // * text: The scrolling text
+ // * style: The style of the scrolling text
+ // * bulletPosition: The position of the scrolling text. Valid values: 'top', 'bottom', and 'random'. The default is 'random'.
+ // */
+ // args: ['http://101.201.146.165:8088/Pf-EH/statics/uploadFile/2024-05-10/b0f420c7-9178-41ad-9dd6-f59a64a6e190.png']
+ // },
{
name: 'adComponent',
type: fullScreenButtonComponent,
@@ -699,6 +726,14 @@ export default {
name: 'RateComponent',
type: AliPlayerComponent.RateComponent
},
+
+
+ // {
+ // name: 'RotateMirrorComponent',
+ // type: AliPlayerComponent.RotateMirrorComponent
+ // },
+
+
],
skinLayout: [{
@@ -752,6 +787,14 @@ export default {
x: 10,
y: 7
},
+ // {name: "fullScreenButton", align: "tr", x: 10, y: 12},
+ // {name:"subtitle", align:"tr",x:15, y:12},
+ // {
+ // name: "setting",
+ // align: "tr",
+ // x: 15,
+ // y: 12
+ // },
{
name: "prism-speed-selector",
align: "tr",
@@ -774,12 +817,12 @@ export default {
if (this.videoData.type == 1) {
playerOptions = {
...playerOptions,
- "playauth": this.videoData.playAuth, // 必选参数,参数值可通过调用GetVideoPlayAuth接口获取。
+ "playauth": this.videoData.playAuth, // 必选参数,参数值可通过调用GetVideoPlayAuth接口获取。
"encryptType": 1, // 必选参数,当播放私有加密流时需要设置本参数值为1。其它情况无需设置。
"playConfig": {
"EncryptType": 'AliyunVoDEncryption'
},
-
+
}
} else {
@@ -789,16 +832,48 @@ export default {
}
}
var player = new Aliplayer(playerOptions, function(player) { });
- this.player = player;
+ this.player = player;
console.log('是否拿到第一次初始值呢',this.platform, typeof this.firstTime, this.firstTime)
- if(this.platform == 'ios'){
- player.on('canplay',function(){
- console.log('这是ios数据缓冲初次设置播放位置判断!!!!')
- this.player.seek(20);
- })
- }else{
- this.player.seek(this.firstTime)
- }
+if(this.platform == 'ios'){
+ player.on('canplay',function(){
+ console.log('这是ios数据缓冲初次设置播放位置判断!!!!')
+ this.player.seek(20);
+ })
+// var seeked = false;
+// player.on('loadedmetadata',function (e) {
+// if(!seeked)
+// {
+// seeked = true;
+// this.player.seek(20);
+// }
+// });
+ // player.on('waiting',function(){
+ // console.log('这是ios数据缓冲初次设置播放位置判断!!!!')
+ // setTimeout(()=>{
+ // player.seek(this.firstTime)
+ // },500)
+
+ // })
+}else{
+ this.player.seek(this.firstTime)
+}
+
+
+
+
+
+ // var seeked = false;
+// this.player.on('loadedmetadata',function (e) {
+// if(!seeked)
+// {
+// seeked = true;
+// player.seek(this.firstTime);
+// }
+// });
+
+
+
+
clearInterval(this.videoTimer);
this.videoTimer = null;
@@ -811,25 +886,160 @@ export default {
}, 1000);
this.$refs.videoContent4.click()
player.on('ready', function() {
-
+
+ // player.fullscreenService.requestFullScreen()
+
})
+
+ // this.
+
+
+ // this.$refs.videoContent.click()
this.player.on('ended', function() {
+ // console.log('that.curTime at line 242:', this.curTime)
+ // console.log('that.curStatus at line 210:', this.curStatus)
this.$refs.videoContent2.click()
+
+
+
+
})
+
+
+
+ // player.setRotate(90)
+
+ //全屏播放
+
+ // player.one('canplay', function() {
+ // // console.log('canplay', this.player.tag);
+ // player.tag.play();
+
+ // });
+
+
+
+ },
+ showPreview(e) {
+ // console.log('e at line 56:', e)
+ let conimg = e.target.dataset.nodes;
+ let imgs = conimg.match(/
![]()
]+>/g); //选择节点中的img
+ console.log('imgs at line 59:', imgs)
+ let imgList = [];
+ //遍历img标签的src里面的内容放在定义的数组imgList中
+ for (var j = 0; j < imgs.length; j++) {
+ imgs[j].replace(/
![]()
]*src=['"]([^'"]+)[^>]*>/gi, function(match, capture) {
+ imgList.push(capture)
+
+ })
+ }
+ console.log('imgList.push at line 64:', imgList)
+
+
+ //最后一步就是所有图片放在预览的方法previewImage中就可以了
+ // uni.previewImage({
+ // current: imgList,
+ // urls: imgList,
+ // })
+ uni.previewImage({
+ urls: imgList,
+ longPressActions: {
+ itemList: ['很抱歉,暂不支持保存图片到本地'],
+ success: function(res) {
+ // console.log(res,'+++++')
+ }
+ }
+ });
+
+ },
+
+ receiveScreenType(newValue) {
+ // console.log('newValue at line 427屏幕方向111111111111:', newValue)
+
},
async receiveIsfresh(newValue) {
+
+
+
+ console.log('是否走了刷新销毁方法:', this.player)
if (this.player) {
clearInterval(this.$store.state.videoTimer)
// await this.setVideoTime();
this.player.dispose();
+ // $('#url-player-test').empty()
+
+ // this.player.seek(newValue);
}
+
+
+ },
+ async receiveplatform(newValue) {
+
+
+
+
+
+
},
async receiveIsChange(newValue) {
+
+
+ // this.timer=null
+
if (this.isChange) {
+
this.checkValue()
+
+ // if (this.videoData.type == 1) {
+ // console.log('是否走了切换加密视频方法:', this.isChange, this.videoData)
+ // await this.player.replayByVidAndPlayAuth(this.videoData.video, this.videoData.playAuth)
+ // this.$refs.videoContent.click()
+ // } else {
+ // console.log('是否走了切换老视频/音频方法:', this.isChange, this.videoData)
+ // await this.player.loadByUrl(this.videoData.videoUrl)
+ // this.$refs.videoContent.click()
+ // }
+
}
+
+
+ // this.$refs.videoContent3.click()
+
+ },
+
+ receiveVideoList(newValue, oldValue, ownerVm, vm) {
+ // //数据变化
+
+ console.log('currentVideoListcurrentVideoListcurrentVideoList', newValue)
+
+
+
+
+
+ },
+ receiveMsg(newValue, oldValue, ownerVm, vm) {
+ //数据变化
+ // console.log('newValue', newValue)
+ // console.log('oldValue', oldValue)
+ // console.log('ownerVm', ownerVm)
+ // console.log('vm', vm)
+ },
+ receiveWinWidth(newValue, oldValue, ownerVm, vm) {
+ //数据变化
+ console.log('newValue', newValue)
+ // console.log('oldValue', oldValue)
+ // console.log('ownerVm', ownerVm)
+ // console.log('vm', vm)
+ },
+ receiveWinHeight(newValue, oldValue, ownerVm, vm) {
+ //数据变化
+ console.log('newValue', newValue)
+ // console.log('oldValue', oldValue)
+ // console.log('ownerVm', ownerVm)
+ // console.log('vm', vm)
},
checkValue() {
+ console.log(this.videoId, this.authId, this.videoData, "1111888888")
if ((!this.videoData.playAuth || !this.currentVideoList)) {
setTimeout(() => {
this.checkValue();
@@ -842,6 +1052,9 @@ export default {
},
loadWebPlayerSDK() {
return new Promise((resolve, reject) => {
+
+
+
const s_tag = document.createElement('script'); // 引入播放器js
s_tag.type = 'text/javascript';
// s_tag.src = 'https://g.alicdn.com/apsara-media-box/imp-web-player/2.20.3/aliplayer-min.js';
@@ -875,6 +1088,20 @@ export default {
document.body.appendChild(l_tag);
});
},
+ loadComponent() {
+ // return new Promise((resolve, reject) => {
+ // const s_tag = document.createElement('script');
+ // s_tag.type = 'text/javascript';
+ // // 需要先下载组件 js 文件,放到项目 /static/ 目录下
+ // // 下载地址:https://github.com/aliyunvideo/AliyunPlayer_Web/blob/master/customComponents/dist/aliplayer-components/aliplayercomponents-1.0.9.min.js
+ // s_tag.src = '@/static/aliplayercomponents.js';
+ // s_tag.charset = 'utf-8';
+ // s_tag.onload = () => {
+ // resolve();
+ // }
+ // document.body.appendChild(s_tag);
+ // });
+ }
}
}
diff --git a/pages/curriculum/list/index.vue b/pages/curriculum/list/index.vue
index 2bbc7f3..cbac74d 100644
--- a/pages/curriculum/list/index.vue
+++ b/pages/curriculum/list/index.vue
@@ -35,11 +35,11 @@
{{item.title}}
-
+
免费
¥{{item.courseCatalogueEntityList[0].halfFee}}/{{item.courseCatalogueEntityList[0].fee}}
-
+
{{formatContent(v.title)}}/
@@ -124,12 +124,7 @@ export default {
onLoad(options) {
//清除缓存
uni.removeStorageSync('fixed');
- //针对身心医学的判断
- if(options.title=='心身医学'&&this.$platform!='android'){
- this.title = '心身健康科学'
- }else{
- this.title = options.title;
- }
+ this.title = options.title;
this.id = options.id;
//如果是心理评测
@@ -293,11 +288,7 @@ export default {
})
.then(res => {
if (res.code == 0) {
- if(this.$platform=='android'){
- this.formList = res.formList;
- }else{
- this.formList = res.formList.slice(0,2);
- }
+ this.formList = res.formList;
}
}).catch(e => {
diff --git a/pages/curriculum/order/detail.vue b/pages/curriculum/order/detail.vue
index 4009e37..10e2b2b 100644
--- a/pages/curriculum/order/detail.vue
+++ b/pages/curriculum/order/detail.vue
@@ -194,9 +194,12 @@ export default {
watch: {
currentVideoId() {
this.currentVideoIndex = this.videoArray.findIndex(
-
- (e) => e.id == this.currentVideoId
- )
+ (e) => e.id == this.currentVideoId,
+ );
+ console.log(
+ "that.currentVideoIndex at line 3401111111111111:",
+ this.currentVideoIndex,
+ );
},
},
methods: {
diff --git a/pages/curriculum/order/index.vue b/pages/curriculum/order/index.vue
index 93a7ab8..fe76be2 100644
--- a/pages/curriculum/order/index.vue
+++ b/pages/curriculum/order/index.vue
@@ -4,7 +4,7 @@
-
+
{{goBuyTitle}}
@@ -14,7 +14,7 @@
-
+
@@ -95,7 +95,7 @@
+ @hancleClick="(data, index) => gotoDetail(data, index, slotProps)" label="title">
-
+
(全部积分:{{ initData.user.jf }})
@@ -107,7 +107,7 @@
¥{{ isShowAddress ? freightNum.toFixed(2) : Number(0).toFixed(2) }}
-
+
-¥{{ jfNumberShow }}
@@ -119,7 +119,7 @@
-
+
可用积分({{ jfNumberMax }}分)
diff --git a/pages/home/index.vue b/pages/home/index.vue
index 238bf35..faf8747 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -9,7 +9,7 @@
-
+
@@ -37,17 +37,7 @@
-
-
-
-
-
- 心身健康科学
- {{ item.title }}
-
-
-
-
+
@@ -128,35 +118,7 @@ export default {
data() {
return {
curriculumList: [],
- // curriculumList: [
- // {
- // name: "我的课程",
- // url: "/pages/curriculum/index/index",
- // imgUrl: require("@/static/icon/home_bg1.png")
- // },
- // {
- // name: "免费课程",
- // url: "/pages/curriculum/index/free",
- // imgUrl: require("@/static/icon/home_bg2.png")
- // },
- // {
- // name: "VIP办理",
- // url: "/pages/vip/index",
- // imgUrl: require("@/static/icon/home_bg3.png")
- // },
- // ],
- cateList: [],
- noticeList: [], //通知消息
- seckillLst: [], //秒杀列表
- studyList: [], //正在学习
- flashSaleList: [], //欢迎试听
- subList: [],
- cateIndex: 0 //分类默认选中第一个
- }
- },
- onLoad() {
- if(this.$platform=='android'){
- this.curriculumList = [
+ curriculumList: [
{
name: "我的课程",
url: "/pages/curriculum/index/index",
@@ -172,27 +134,23 @@ export default {
url: "/pages/vip/index",
imgUrl: require("@/static/icon/home_bg3.png")
},
- ]
- }else{
- this.curriculumList = [
- {
- name: "我的课程",
- url: "/pages/curriculum/index/index",
- imgUrl: require("@/static/icon/home_bg1.png")
- },
- {
- name: "免费课程",
- url: "/pages/curriculum/index/free",
- imgUrl: require("@/static/icon/home_bg2.png")
- }
- ]
+ ],
+ cateList: [],
+ noticeList: [], //通知消息
+ seckillLst: [], //秒杀列表
+ studyList: [], //正在学习
+ flashSaleList: [], //欢迎试听
+ subList: [],
+ cateIndex: 0 //分类默认选中第一个
}
},
+ onLoad() {
+ this.getCateList();
+ },
onShow() {
let cateIndex = uni.getStorageSync('cateIndex');
this.cateIndex = cateIndex;
this.getCourseList();
- this.getCateList();
this.getNotice();
this.getMarketProductList();
this.getMarketCourseList();
@@ -200,6 +158,9 @@ export default {
methods: {
//获取列表数据
getCateList(){
+ uni.showLoading({
+ title: '加载中'
+ })
this.$http.request({
url: 'psyche/home/getPsycheLabels',
method: "POST",
@@ -211,6 +172,7 @@ export default {
},
})
.then(res=> {
+ uni.hideLoading();
if (res.labels&&res.labels.length>0) {
this.cateList = res.labels;
//默认获取第一个id 请求二级列表
@@ -218,6 +180,7 @@ export default {
}
})
.catch(e=>{
+ uni.hideLoading();
uni.setStorageSync("guidePages", 2);
});
},
@@ -238,12 +201,6 @@ export default {
this.subList = res.labels;
}
})
- .catch(e=>{
- uni.setStorageSync("guidePages", 2);
- uni.redirectTo({
- url: "/pages/user/login",
- });
- });
},
//获取通知数据
getNotice() {
diff --git a/pages/my/index.vue b/pages/my/index.vue
index 19642b3..6ad4800 100644
--- a/pages/my/index.vue
+++ b/pages/my/index.vue
@@ -14,7 +14,7 @@
-
+
医学
国学心理学
@@ -23,8 +23,8 @@
{{ userMes.nickname ? userMes.nickname : "未设置" }}
- 手机号:({{ userMes.tel }})
-
+ 手机号:({{ userMes.tel }})
+
{{item}}
@@ -32,7 +32,7 @@
-
+
@@ -93,7 +93,7 @@
{{userMes.jf ? userMes.jf : 0}}
-
- 免登录体验
+ 游客模式
@@ -1083,12 +1083,12 @@ export default {
justify-content: center;
margin: 60rpx 0 0 0;
font-size: 28rpx;
- color: $themeColor;
-
+
view {
- border: 1px solid $themeColor;
+ border: 1rpx solid $themeColor;
border-radius: 10rpx;
- padding: 5rpx 15rpx;
+ padding: 15rpx 30rpx;
+ color: $themeColor;
}
}
diff --git a/pages/vip/index.vue b/pages/vip/index.vue
index 7c2837a..0af4d0c 100644
--- a/pages/vip/index.vue
+++ b/pages/vip/index.vue
@@ -21,8 +21,8 @@
一年{{item.originalPrice||0}}元
- 去办理
- 去续费
+ 去办理
+ 去续费
超级VIP价格:
diff --git a/pages/visitor/index.vue b/pages/visitor/index.vue
index 15c6959..7373a5f 100644
--- a/pages/visitor/index.vue
+++ b/pages/visitor/index.vue
@@ -9,8 +9,7 @@
- 心身健康科学
- {{ item.title }}
+ {{ item.title }}
diff --git a/pages/wallet/account.vue b/pages/wallet/account.vue
index fbdb0c9..5c9377f 100644
--- a/pages/wallet/account.vue
+++ b/pages/wallet/account.vue
@@ -124,31 +124,35 @@ export default {
});
}
},
- // 获取
+ //获取数据
getData() {
- var data = {
- userId: this.userInfo.id,
- };
- if (!this.iosHide) {
- this.tab_muJian = 1;
- }
- // 用户详情
- if (this.userInfo.id != undefined) {
- this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
- this.userMes = res.user;
- });
- }
- $http.request({
- url: this.urlList.list,
- method: "POST",
- data,
- header: {
- "Content-Type": "application/json",
- },
- })
- .then((res) => {
- this.MoneyRecord = res.transactionDetailsList;
- });
+ var data = {
+ userId: this.userInfo.id,
+ };
+ if (!this.iosHide) {
+ this.tab_muJian = 1;
+ }
+ //用户详情
+ if (this.userInfo.id != undefined) {
+ this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
+ this.userMes = res.user;
+ });
+ }
+ uni.showLoading({
+ title: '加载中'
+ })
+ $http.request({
+ url: this.urlList.list,
+ method: "POST",
+ data,
+ header: {
+ "Content-Type": "application/json",
+ },
+ })
+ .then((res) => {
+ uni.hideLoading();
+ this.MoneyRecord = res.transactionDetailsList;
+ });
},
// 跳转
onPageJump(url) {
diff --git a/pages/wallet/points.vue b/pages/wallet/points.vue
index 1fa10e1..a096e2a 100644
--- a/pages/wallet/points.vue
+++ b/pages/wallet/points.vue
@@ -98,31 +98,35 @@ export default {
url: "/pages/detail/orderLCont?orderId=" + id
});
},
- // 获取
+ //获取数据
getData() {
- var data = {
- userId: this.userInfo.id,
- };
- if (!this.iosHide) {
- this.tab_muJian = 1;
- }
- // 用户详情
- if (this.userInfo.id != undefined) {
- this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
- this.userMes = res.user;
- });
- }
- $http.request({
- url: this.urlList.list,
- method: "POST",
- data,
- header: {
- "Content-Type": "application/json",
- },
- })
- .then((res) => {
- this.MoneyRecord = res.transactionDetailsList;
- });
+ var data = {
+ userId: this.userInfo.id,
+ };
+ if (!this.iosHide) {
+ this.tab_muJian = 1;
+ }
+ //用户详情
+ if (this.userInfo.id != undefined) {
+ this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
+ this.userMes = res.user;
+ });
+ }
+ uni.showLoading({
+ title: '加载中'
+ })
+ $http.request({
+ url: this.urlList.list,
+ method: "POST",
+ data,
+ header: {
+ "Content-Type": "application/json",
+ },
+ })
+ .then((res) => {
+ uni.hideLoading();
+ this.MoneyRecord = res.transactionDetailsList;
+ });
},
},
};
diff --git a/pages/wallet/recharge.vue b/pages/wallet/recharge.vue
index 05cc67c..72d59e8 100644
--- a/pages/wallet/recharge.vue
+++ b/pages/wallet/recharge.vue
@@ -32,17 +32,6 @@
style="float: right; margin-top: 5rpx">
-
-