Commit 2a857987 by sunerhu

1.错误的浏览器回弹效果--暂时注释

parent c262c2a4
......@@ -25,9 +25,9 @@
<template v-if="isRenderVideo">
<view>
<video id="myVideo" :src="courseInfo.filePathOss" :initial-time="videoPlaybackInfo.maxViewTime"
object-fit="contain" class="videoBox" :poster="courseInfo.fileFirstImage" :title="courseInfo.fileTitle"
@loadedmetadata="loadedmetadata" @play="playVideo" @pause="pause" @ended="ended"
@timeupdate="timeupdate"></video>
object-fit="contain" class="videoBox" :poster="courseInfo.fileFirstImage"
:title="courseInfo.fileTitle" @loadedmetadata="loadedmetadata" @play="playVideo" @pause="pause"
@ended="ended" @timeupdate="timeupdate"></video>
</view>
</template>
</view>
......@@ -36,7 +36,7 @@
<view class="courseTitleContent">
<view class="courseTitle">
<view class="" style="width: 70%;">
<h4>{{courseInfo.fileTitle}}</h4>
<h4>{{courseInfo.fileTitle}}</h4>
</view>
<view class="shareF">
<view class="awakenApp" @click="jumpapp()" v-if="coursesharing == 1">
......@@ -118,7 +118,7 @@
<view class="buyBox" @click="saveOrder()" v-if="courseInfo.status == 1">
<text>{{loginType=='visitor' ? '登录/注册' : '购买'}}</text>
</view>
</view>
</view>
<boot-page v-if="sharelogin" ref="sharelogin" @close="close"></boot-page>
......@@ -126,12 +126,15 @@
</view>
</template>
<script>
import api from "../../api/api";
import BootPage from "@/components/bootpage/bootpage.vue";
import UniShareWx from "@/uni_modules/uni-share-wx/index.vue";
import dataHandling from "@/util/dataHandling";
import {hshare} from '@/util/fiveshare'
// import {
// hshare
// } from '@/util/fiveshare'
import {
nanoid
} from 'nanoid';
......@@ -142,7 +145,7 @@
},
data() {
return {
isRenderVideo:false,
isRenderVideo: false,
fileId: null,
lecturerId: null,
tabType: 3,
......@@ -288,8 +291,9 @@
console.log(res, 545415)
if (res['success']) {
this.orderId = res['data']['id'];
if(this.coursesharing == '1'){
this.userId = localStorage.getItem('h5_userId')?localStorage.getItem('h5_userId'): this.userId
if (this.coursesharing == '1') {
this.userId = localStorage.getItem('h5_userId') ? localStorage.getItem('h5_userId') :
this.userId
}
uni.navigateTo({
url: `/pages/orderConfirm/orderConfirm?fileId=${this.fileId}&orderId=${this.orderId}&userId=${this.userId}`
......@@ -495,16 +499,16 @@
})
},
// H5 自定义分享
getshareData(){
let data = {
title:this.courseInfo.fileTitle,
desc:'加入我们开启学习之旅',
link: window.location.href,//分享链接
imgUrl: this.courseInfo.displayImage, //图片
}
var url = window.location.href.split('#')[0]
hshare(data,url)
},
// getshareData() {
// let data = {
// title: this.courseInfo.fileTitle,
// desc: '加入我们开启学习之旅',
// link: window.location.href, //分享链接
// imgUrl: this.courseInfo.displayImage, //图片
// }
// var url = window.location.href.split('#')[0]
// hshare(data, url)
// },
},
onLoad(option) {
this.fileId = option.fileId;
......@@ -522,8 +526,9 @@
localStorage.setItem('h5_userId', '')
}
uni.setStorageSync('h5_coursesharing', this.coursesharing);
this.getshareData()
}
// this.getshareData()
let dataForm = uni.getStorageSync('userinfodataForm')
this.realName = dataForm.realName
// this.switchTab(1);
......
......@@ -302,7 +302,7 @@
if(this.deviceType == 3){
this.tipsFlag = true;
this.paymentBtnDisabled = false;
let url = window.location.href + `&isRedirect=1&userId=${this.userId}&amount=${this.amount}`;
let url = window.location.href + `&isRedirect=1&amount=${this.amount}`;
window.history.replaceState(null, '',url);
return;
}
......
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