|
@@ -290,18 +290,23 @@
|
|
|
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.sequence && Number(e.sequence) > 0){
|
|
|
this.swiperCurrent = Number(e.sequence) -1;
|
|
|
+ }
|
|
|
+ // 染色参数接收
|
|
|
+ if(e.ranse_id && Number(e.ranse_id) > 0){
|
|
|
+ try{
|
|
|
+ this.ranse_id = Number(e.ranse_id);
|
|
|
+ let res = await userRanse(this.ranse_id);
|
|
|
+
|
|
|
+ }catch(e){
|
|
|
+ console.log("player-errr:",e)
|
|
|
+ }
|
|
|
}
|
|
|
uni.getSystemInfo({
|
|
|
success: res => {
|
|
@@ -323,7 +328,7 @@
|
|
|
},
|
|
|
onShareAppMessage: function(res) {
|
|
|
// #ifdef MP-WEIXIN
|
|
|
- var href = '/pages/video/index?video_id=' + this.video_id
|
|
|
+ var href = '/pages/video/index?video_id=' + this.video_id + "&"
|
|
|
console.log(res)
|
|
|
let that = this;
|
|
|
const obj = {
|