|
@@ -186,7 +186,8 @@
|
|
|
} from '@/common/apis/zju.js'
|
|
|
import {
|
|
|
getUserInfo
|
|
|
- } from "@/common/apis/my.js";
|
|
|
+ } from "@/common/apis/my.js";
|
|
|
+ import {userRanse} from "@/common/apis/common.js"
|
|
|
import {
|
|
|
getOptions,
|
|
|
getPayInfo
|
|
@@ -281,19 +282,26 @@
|
|
|
this.initTabs();
|
|
|
})
|
|
|
},
|
|
|
- onLoad(e) {
|
|
|
+ async onLoad(e) {
|
|
|
// console.log('11111111111111111111',e)
|
|
|
let that = this;
|
|
|
uni.getSystemInfo({
|
|
|
success(res) {
|
|
|
that.top_height = res.statusBarHeight; //data中 声明 top_height:0
|
|
|
}
|
|
|
- });
|
|
|
+ });
|
|
|
+ // 染色参数接收
|
|
|
+ if(e.ranse_id && Number(e.ranse_id) > 0){
|
|
|
+ this.ranse_id = Number(e.ranse_id);
|
|
|
+ let res = await userRanse(this.ranse_id);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if (e.video_id) {
|
|
|
this.video_id = Number(e.video_id)
|
|
|
}
|
|
|
- if(e.chapter_id && Number(e.chapter_id) > 0){
|
|
|
- this.swiperCurrent = Number(e.chapter_id) -1;
|
|
|
+ if(e.sequence && Number(e.sequence) > 0){
|
|
|
+ this.swiperCurrent = Number(e.sequence) -1;
|
|
|
}
|
|
|
uni.getSystemInfo({
|
|
|
success: res => {
|
|
@@ -576,7 +584,7 @@
|
|
|
this.isqp = true
|
|
|
videoEpisodePlay({
|
|
|
video_id: this.video_id,
|
|
|
- sequence: originIndex
|
|
|
+ sequence: originIndex,
|
|
|
}).then(res => {
|
|
|
if (res.code == 0) {
|
|
|
this.currentVideoInfo = res.data
|