|
@@ -360,30 +360,7 @@
|
|
|
option = JSON.parse(decodeURIComponent(option.obj));
|
|
|
}
|
|
|
// 请求商品类型并判断是否是小程序环境
|
|
|
- this.$api.orderGetViewSign(Number(option.orderGoodsId)).then((res) => {
|
|
|
- this.playSource = res.data.data.viewSign;
|
|
|
- if (this.playSource == 2) {
|
|
|
- // #ifdef MP-WEIXIN
|
|
|
- this.$api
|
|
|
- .courseSkipPort()
|
|
|
- .then((res2) => {
|
|
|
- console.log("详情页请求的域名", res2.data.data.domain, res2.data.data.skipPort)
|
|
|
- let obj = {
|
|
|
- skipPort: res2.data.data.skipPort,
|
|
|
- ...option
|
|
|
- }
|
|
|
- let webViewUrl = encodeURIComponent(
|
|
|
- res2.data.data.domain +
|
|
|
- '/pages3/polyv/detail?obj=' +
|
|
|
- JSON.stringify(obj))
|
|
|
- uni.redirectTo({
|
|
|
- url: `/pages5/webview/detaillink?url=${webViewUrl}`
|
|
|
- })
|
|
|
- })
|
|
|
- return;
|
|
|
- // #endif
|
|
|
- }
|
|
|
- })
|
|
|
+ await this.orderGetViewSign(option)
|
|
|
if (option.isOther) {
|
|
|
this.showMark = true;
|
|
|
return;
|
|
@@ -475,6 +452,36 @@
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
...mapMutations(["updateChapterOpen", "updateLiveLast"]),
|
|
|
+ orderGetViewSign(option) {
|
|
|
+ return new Promise(resolve => {
|
|
|
+ this.$api.orderGetViewSign(Number(option.orderGoodsId)).then((res) => {
|
|
|
+ this.playSource = res.data.data.viewSign;
|
|
|
+ if (this.playSource == 2) {
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ this.$api
|
|
|
+ .courseSkipPort()
|
|
|
+ .then((res2) => {
|
|
|
+ console.log("详情页请求的域名", res2.data.data.domain, res2.data.data
|
|
|
+ .skipPort)
|
|
|
+ let obj = {
|
|
|
+ skipPort: res2.data.data.skipPort,
|
|
|
+ ...option
|
|
|
+ }
|
|
|
+ let webViewUrl = encodeURIComponent(
|
|
|
+ res2.data.data.domain +
|
|
|
+ '/pages3/polyv/detail?obj=' +
|
|
|
+ JSON.stringify(obj))
|
|
|
+ uni.redirectTo({
|
|
|
+ url: `/pages5/webview/detaillink?url=${webViewUrl}`
|
|
|
+ })
|
|
|
+ })
|
|
|
+ return;
|
|
|
+ // #endif
|
|
|
+ }
|
|
|
+ resolve()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
// 进行学习后,保存标识,用于检查是否二建15天提示弹窗弹出
|
|
|
saveLoaclCheckClass() {
|
|
|
let ary = uni.getStorageSync("loaclCheckClass") || []
|
|
@@ -502,6 +509,7 @@
|
|
|
this.isAllowSeek = "on";
|
|
|
// #endif
|
|
|
}
|
|
|
+ console.log("进入:", this.playSource, this.isAllowSeek)
|
|
|
this.photoList = [];
|
|
|
this.courseList = [];
|
|
|
this.photoConfig = false;
|