Commit fb9f29a6 authored by IvyXia123's avatar IvyXia123

支付调式

parent ee3fee99
...@@ -382,6 +382,7 @@ export default { ...@@ -382,6 +382,7 @@ export default {
let data = { pay_type: payTypeArr[this.payIndex], return_url: window.location.href, goods_id: json.goods_id, buy_type: this.groupDetail.goods_type, group_order_id: json.group_order_id, order_coupon_id:json.order_coupon_id } let data = { pay_type: payTypeArr[this.payIndex], return_url: window.location.href, goods_id: json.goods_id, buy_type: this.groupDetail.goods_type, group_order_id: json.group_order_id, order_coupon_id:json.order_coupon_id }
postPayBillApi(data).then(res => { postPayBillApi(data).then(res => {
if(this.payIndex === 0) { if(this.payIndex === 0) {
console.log(9999)
this.orderNo = res.out_trade_no; this.orderNo = res.out_trade_no;
if (res.out_trade_no && !res.appId) { if (res.out_trade_no && !res.appId) {
getCourseInfoApi().then(res => { getCourseInfoApi().then(res => {
...@@ -393,6 +394,7 @@ export default { ...@@ -393,6 +394,7 @@ export default {
this.navPage(res); this.navPage(res);
}); });
} else { } else {
console.log(8888)
let that = this; let that = this;
this.orderNo = res.out_trade_no; this.orderNo = res.out_trade_no;
this.jsApiParameters = res; this.jsApiParameters = res;
...@@ -423,11 +425,14 @@ export default { ...@@ -423,11 +425,14 @@ export default {
} }
}else if(this.payIndex === 1){ }else if(this.payIndex === 1){
this.payUrl = res.pay_url; this.payUrl = res.pay_url;
}else if(this.payIndex === 2) {
this.payUrl = res.pay_url;
} }
}) })
/*payApi(json).then(res => { /*payApi(json).then(res => {
this.orderNo = res.out_trade_no; this.orderNo = res.out_trade_no;
console.log(res)
if (res.out_trade_no && !res.appId) { if (res.out_trade_no && !res.appId) {
getCourseInfoApi().then(res => { getCourseInfoApi().then(res => {
this.userCourse = res; this.userCourse = res;
......
<template> <template>
<div> <div>
<div class="model-n"> <div class="model-n" v-if="promp" @click="promp=false">
<div class="model-n-image"> <div class="model-n-image">
<img :src="yinyin" alt=""> <img :src="yinyin" alt="">
</div> </div>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
/> />
<div class="unit-block"> <div class="unit-block">
<div class="course_title" @click="actionsheetShow=true">{{secActions.name}} <i class="iconfont icon-below-s"></i> <div class="course_title" @click="actionsheetShow=true">{{secActions.name}} <i class="iconfont icon-below-s"></i>
<router-link v-show="promp" :to="{path: '/promptTime', query: { periods_id: secActions.id }}"> <router-link :to="{path: '/promptTime', query: { periods_id: secActions.id }}">
<div class="zhongbian-kuang"> <div class="zhongbian-kuang">
<img class="zhongbian" :src="zhong" alt=""> <img class="zhongbian" :src="zhong" alt="">
</div> </div>
...@@ -787,7 +787,6 @@ ...@@ -787,7 +787,6 @@
left: 0; left: 0;
top: 0; top: 0;
z-index: 5000; z-index: 5000;
display: none;
.model-n-image { .model-n-image {
width: 100%; width: 100%;
img{ img{
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
name: "promptTime", name: "promptTime",
data() { data() {
return { return {
currentTime: '', currentTime: '07:00',
dateVal: '', dateVal: '',
dateShow: false, dateShow: false,
selectedValue: '', selectedValue: '',
...@@ -69,16 +69,11 @@ ...@@ -69,16 +69,11 @@
} }
}, },
preservationClick() { preservationClick() {
if(this.currentTime) { let pushAtData = { time: this.currentTime, periods_id: this.$route.query.periods_id }
let pushAtData = { time: this.currentTime, periods_id: this.$route.query.periods_id } postNotifySettingApi(pushAtData).then(res => {
postNotifySettingApi(pushAtData).then(res => { Toast("时间设定完成");
Toast("时间设定完成"); this.$router.go(-1);
this.$router.go(-1); })
})
}else {
Toast("请先设定时间");
this.$refs.timeSetting.style.borderBottom = '1px solid red'
}
} }
} }
} }
......
<template> <template>
<div class="audio-page"> <div class="audio-page">
{{ showObj.audio[index].image }}
<div class="content" v-if="showObj.audio"> <div class="content" v-if="showObj.audio">
<audio <audio
ref="audio" ref="audio"
...@@ -217,10 +218,9 @@ ...@@ -217,10 +218,9 @@
}; };
}, },
mounted() { mounted() {
if(this.$route.params.evaluate === 1)
this.finishStudy()
this.changeAge(this.contentData.age); this.changeAge(this.contentData.age);
this.userCourse = JSON.parse(localStorage.getItem("userCourse")); this.userCourse = JSON.parse(localStorage.getItem("userCourse"));
console.log(this.userCourse, 897896)
if (this.userCourse.periods_list) { if (this.userCourse.periods_list) {
this.checkCollect(); this.checkCollect();
} }
...@@ -756,6 +756,8 @@ ...@@ -756,6 +756,8 @@
this.playFlag = false; this.playFlag = false;
this.startTime = "00:00"; this.startTime = "00:00";
this.overTime = "00:00"; this.overTime = "00:00";
console.log(this.contentData)
console.log(this.showObj, 12345)
}, },
finishStudy() { finishStudy() {
this.sendConsole("完成今日学习"); this.sendConsole("完成今日学习");
......
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
sharePage sharePage
}, },
mounted() { mounted() {
console.log(this.lesson, 9876546);
this.initPage(); this.initPage();
}, },
/** /**
...@@ -223,6 +224,7 @@ ...@@ -223,6 +224,7 @@
lessonDetail.total_watch_time = res.total_watch_time; lessonDetail.total_watch_time = res.total_watch_time;
lessonDetail.nowTime = nowTime; lessonDetail.nowTime = nowTime;
lessonDetail.star_num = res.total_star_num; lessonDetail.star_num = res.total_star_num;
console.log(res, 'asdfasfsaf')
localStorage.setItem("lessonDetail", JSON.stringify(lessonDetail)); localStorage.setItem("lessonDetail", JSON.stringify(lessonDetail));
let query = { let query = {
...@@ -336,6 +338,7 @@ ...@@ -336,6 +338,7 @@
age: this.nowLesson.age age: this.nowLesson.age
}; };
} }
console.log(this.nowLesson, 87654)
break; break;
case 3: case 3:
this.$sa.track("learnPart", { this.$sa.track("learnPart", {
......
...@@ -9,47 +9,47 @@ ...@@ -9,47 +9,47 @@
</div> </div>
<div <div
v-if="showObj.video.length > 1&&orientationchange" v-if="showObj.video.length > 1&&orientationchange"
class="age-block video" class="age-block video"
@click="videoShow = !videoShow" @click="videoShow = !videoShow"
> >
<div> <div>
视频({{videoIndex+1}}) 视频({{videoIndex+1}})
<i class="playImage _154722344142123489"></i> <i class="playImage _154722344142123489"></i>
</div> </div>
</div> </div>
<div
class="age-change-block video"
v-if="showObj.video.length > 1 && videoShow&&orientationchange"
>
<div <div
class="age-change-block video" @click="videoIndex= index;videoShow=false;sendConsole('多视频选择视频')"
v-if="showObj.video.length > 1 && videoShow&&orientationchange" v-for="(item,index) in showObj.video"
> >
<div 视频({{index+1}})
@click="videoIndex= index;videoShow=false;sendConsole('多视频选择视频')" <i
v-for="(item,index) in showObj.video" :class="{'playImage _282918034425091245':index === videoIndex}"
> v-if="contentData.age === 1"
视频({{index+1}}) ></i>
<i
:class="{'playImage _282918034425091245':index === videoIndex}"
v-if="contentData.age === 1"
></i>
</div>
</div>
<div v-if="showObj.change" class="change-block">
<div class="active">视频教学</div>
<div @click="changeAudio(true)">音频教学</div>
</div> </div>
</div> </div>
<div class="header"> <div v-if="showObj.change" class="change-block">
<img :src="imgURL.luolacoming" class="text" v-if="nowShow === 3" /> <div class="active">视频教学</div>
<img :src="imgURL.luolalaila" class="text" v-if="nowShow === 2" /> <div @click="changeAudio(true)">音频教学</div>
</div> </div>
<div </div>
class="video-block hp-video" <div class="header">
v-if="showObj.video[videoIndex]" <img :src="imgURL.luolacoming" class="text" v-if="nowShow === 3" />
v-show="!share_show && !popupVisible" <img :src="imgURL.luolalaila" class="text" v-if="nowShow === 2" />
> </div>
<!-- :src="showObj.video[videoIndex].url" --> <div
<video v-show="!star" class="video-block hp-video"
ref="videoDom" v-if="showObj.video[videoIndex]"
style="object-fit:fill" v-show="!share_show && !popupVisible"
>
<!-- :src="showObj.video[videoIndex].url" -->
<video v-show="!star"
ref="videoDom"
style="object-fit:fill"
:src="showObj.video[videoIndex].url" :src="showObj.video[videoIndex].url"
@ended="videoEnd" @ended="videoEnd"
@error="errorLog" @error="errorLog"
...@@ -196,6 +196,7 @@ ...@@ -196,6 +196,7 @@
this.videoWidth = Number(document.documentElement.clientWidth) / 3.8; this.videoWidth = Number(document.documentElement.clientWidth) / 3.8;
}, },
mounted() { mounted() {
console.log(this.contentData, 86876)
this.changeAge(this.contentData.age); this.changeAge(this.contentData.age);
let that = this; let that = this;
// console.log(document.documentElement.clientWidth) // console.log(document.documentElement.clientWidth)
......
...@@ -36,7 +36,6 @@ export default { ...@@ -36,7 +36,6 @@ export default {
mounted() { mounted() {
// debugger // debugger
let userCourse2 = JSON.parse(localStorage.getItem("userCourse")); let userCourse2 = JSON.parse(localStorage.getItem("userCourse"));
console.log(userCourse2)
this.ownDetail = JSON.parse(localStorage.getItem("userDesc")); this.ownDetail = JSON.parse(localStorage.getItem("userDesc"));
if(userCourse2){ if(userCourse2){
this.userCourse2 = userCourse2 this.userCourse2 = userCourse2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment