处理h5无痕浏览问题
This commit is contained in:
@@ -2,27 +2,23 @@
|
||||
"version" : "1.0",
|
||||
"configurations" : [
|
||||
{
|
||||
"app-plus" :
|
||||
{
|
||||
"app-plus" : {
|
||||
"launchtype" : "local"
|
||||
},
|
||||
"default" :
|
||||
{
|
||||
"default" : {
|
||||
"launchtype" : "local"
|
||||
},
|
||||
"h5" :
|
||||
{
|
||||
"h5" : {
|
||||
"launchtype" : "local"
|
||||
},
|
||||
"mp-weixin" :
|
||||
{
|
||||
"mp-weixin" : {
|
||||
"launchtype" : "local"
|
||||
},
|
||||
"provider" : "aliyun",
|
||||
"type" : "uniCloud"
|
||||
},
|
||||
{
|
||||
"playground" : "custom",
|
||||
"playground" : "standard",
|
||||
"type" : "uni-app:app-android"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
// const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||
|
||||
// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
|
||||
// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||
const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
|
||||
const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
|
||||
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||
|
||||
const ROOTPATH1 = "http://192.168.1.5:8100/sqx_fast/"; //
|
||||
const ROOTPATH = "http://192.168.1.5:8100/sqx_fast/"; //后台服务域名
|
||||
const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名
|
||||
// const ROOTPATH1 = "http://192.168.1.5:8100/sqx_fast/"; //
|
||||
// const ROOTPATH = "http://192.168.1.5:8100/sqx_fast/"; //后台服务域名
|
||||
// const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名
|
||||
|
||||
module.exports = {
|
||||
APIHOST: ROOTPATH,
|
||||
|
||||
@@ -913,16 +913,16 @@
|
||||
this.$refs.popuppay.open('bottom')
|
||||
return
|
||||
// 通过 id 获取 nvue 子窗体
|
||||
const subNVue = uni.getSubNVueById('pay')
|
||||
subNVue.setStyle({
|
||||
height: '350rpx',
|
||||
})
|
||||
// 打开 nvue 子窗体
|
||||
subNVue.show('slide-in-bottom', 300, function() {
|
||||
// 打开后进行一些操作...
|
||||
//
|
||||
console.log('subnvue open')
|
||||
});
|
||||
// const subNVue = uni.getSubNVueById('pay')
|
||||
// subNVue.setStyle({
|
||||
// height: '350rpx',
|
||||
// })
|
||||
// // 打开 nvue 子窗体
|
||||
// subNVue.show('slide-in-bottom', 300, function() {
|
||||
// // 打开后进行一些操作...
|
||||
// //
|
||||
// console.log('subnvue open')
|
||||
// });
|
||||
// 关闭 nvue 子窗体
|
||||
// subNVue.hide('fade-out', 300)
|
||||
|
||||
|
||||
@@ -194,7 +194,9 @@
|
||||
<!-- <u-icon name="lock" class="list-title-icon" color="#efbb6b" size="40"></u-icon> -->
|
||||
当前视频 没有播放权限
|
||||
</view>
|
||||
<view class="" style="font-size: 24rpx;color: #999;padding: 0 34rpx;margin-bottom: 20rpx;">{{getRedEnvelopeTips}}</view>
|
||||
<view class="" style="font-size: 24rpx;color: #999;padding: 0 34rpx;margin-bottom: 20rpx;">
|
||||
{{getRedEnvelopeTips}}
|
||||
</view>
|
||||
|
||||
<view class="list-item" v-if="zhengbu === '是' && isWxIosPay == true">
|
||||
<view class="list-item-box flex align-center justify-center" @click="payVideo(1)">
|
||||
@@ -581,6 +583,13 @@
|
||||
this.tt_episode_id = e.tt_episode_id
|
||||
}
|
||||
if (e.allId) {
|
||||
console.log("allId ---- ");
|
||||
|
||||
// 如果存在allId 并且没有登录 则表示使用无痕浏览器查看,弹出提示
|
||||
if (!uni.getStorageSync('token')) {
|
||||
uni.setStorageSync("isSafeView", "1")
|
||||
}
|
||||
|
||||
const arr = e.allId.split('-')
|
||||
this.courseId = arr[0];
|
||||
if (arr[1] && arr[1] != 'null') {
|
||||
@@ -1587,7 +1596,8 @@
|
||||
console.log('到达判断抽奖');
|
||||
// if (this.noBuyVideoIndex != null ) {
|
||||
console.log(this.noBuyVideoIndex);
|
||||
if (this.noBuyVideoIndex !== null&&this.noBuyVideoIndex !== undefined&&this.noBuyVideoIndex !=='' && this.videoList[this
|
||||
if (this.noBuyVideoIndex !== null && this.noBuyVideoIndex !==
|
||||
undefined && this.noBuyVideoIndex !== '' && this.videoList[this
|
||||
.noBuyVideoIndex].videoUrl) {
|
||||
this.$Request.getT('app/discSpinning/drawCount').then(res => {
|
||||
console.log('转盘抽奖次数')
|
||||
@@ -1595,8 +1605,7 @@
|
||||
uni.navigateTo({
|
||||
url: '/me/choujiang/choujiang'
|
||||
})
|
||||
}else{
|
||||
}
|
||||
} else {}
|
||||
})
|
||||
uni.removeStorageSync('noBuyVideoIndex')
|
||||
this.noBuyVideoIndex = null
|
||||
|
||||
@@ -261,7 +261,6 @@
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
|
||||
// barWidth
|
||||
// #ifdef MP-WEIXIN || MP-TOUTIAO || MP-KUAISHOU
|
||||
// 获取胶囊按钮位置信息
|
||||
|
||||
@@ -58,7 +58,15 @@
|
||||
checked: false
|
||||
};
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
if (uni.getStorageSync('isSafeView')) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您正在使用无痕浏览,可能导致登录状态失效,建议切换浏览模式',
|
||||
})
|
||||
uni.setStorageSync("isSafeView", null)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 注册
|
||||
register() {
|
||||
|
||||
Reference in New Issue
Block a user