|
@@ -887,7 +887,12 @@
|
|
|
|
|
|
// 进入视频课
|
|
// 进入视频课
|
|
this.activeItem = item;
|
|
this.activeItem = item;
|
|
- item.viewSign = 2;
|
|
|
|
|
|
+ this.$api
|
|
|
|
+ .orderGetViewSign(item.orderGoodsId)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ console.log('请求的viewSign', res.data.data.viewSign)
|
|
|
|
+ item.viewSign = res.data.data.viewSign;
|
|
|
|
+ })
|
|
if (item.interfaceAccountId > 0) {
|
|
if (item.interfaceAccountId > 0) {
|
|
//学习账号已开通
|
|
//学习账号已开通
|
|
|
|
|
|
@@ -903,6 +908,7 @@
|
|
this.$api
|
|
this.$api
|
|
.courseSkipPort()
|
|
.courseSkipPort()
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
+ console.log("请求的域名", res.data.data.domain)
|
|
let obj = {
|
|
let obj = {
|
|
goodsId: item.goodsId,
|
|
goodsId: item.goodsId,
|
|
orderGoodsId: item.orderGoodsId,
|
|
orderGoodsId: item.orderGoodsId,
|
|
@@ -911,7 +917,7 @@
|
|
viewSign: item.viewSign,
|
|
viewSign: item.viewSign,
|
|
skipPort: res.data.data.skipPort,
|
|
skipPort: res.data.data.skipPort,
|
|
}
|
|
}
|
|
- let webViewUrl = encodeURIComponent('http://192.168.1.213:8081' +
|
|
|
|
|
|
+ let webViewUrl = encodeURIComponent(res.data.data.domain +
|
|
'/pages3/polyv/detail?obj=' +
|
|
'/pages3/polyv/detail?obj=' +
|
|
JSON.stringify(obj))
|
|
JSON.stringify(obj))
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
@@ -1059,6 +1065,7 @@
|
|
this.$api
|
|
this.$api
|
|
.courseSkipPort()
|
|
.courseSkipPort()
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
+ console.log("请求的域名", res.data.data.domain)
|
|
let obj = {
|
|
let obj = {
|
|
id: '',
|
|
id: '',
|
|
goodsId: item.goodsId,
|
|
goodsId: item.goodsId,
|
|
@@ -1070,7 +1077,7 @@
|
|
skipPort: res.data.data.skipPort
|
|
skipPort: res.data.data.skipPort
|
|
}
|
|
}
|
|
let webViewUrl = encodeURIComponent(
|
|
let webViewUrl = encodeURIComponent(
|
|
- 'http://192.168.1.213:8081' +
|
|
|
|
|
|
+ res.data.data.domain +
|
|
'/pages3/polyv/detail?obj=' +
|
|
'/pages3/polyv/detail?obj=' +
|
|
JSON.stringify(obj))
|
|
JSON.stringify(obj))
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
@@ -1106,6 +1113,7 @@
|
|
this.$api
|
|
this.$api
|
|
.courseSkipPort()
|
|
.courseSkipPort()
|
|
.then((resForDetail) => {
|
|
.then((resForDetail) => {
|
|
|
|
+ console.log("请求的域名", resForDetail.data.data.domain)
|
|
let obj = {
|
|
let obj = {
|
|
id: res.data.rows[0].courseId,
|
|
id: res.data.rows[0].courseId,
|
|
goodsId: item.goodsId,
|
|
goodsId: item.goodsId,
|
|
@@ -1117,7 +1125,7 @@
|
|
skipPort: resForDetail.data.data.skipPort
|
|
skipPort: resForDetail.data.data.skipPort
|
|
}
|
|
}
|
|
let webViewUrl = encodeURIComponent(
|
|
let webViewUrl = encodeURIComponent(
|
|
- 'http://192.168.1.213:8081' +
|
|
|
|
|
|
+ resForDetail.data.data.domain +
|
|
'/pages3/polyv/detail?obj=' +
|
|
'/pages3/polyv/detail?obj=' +
|
|
JSON.stringify(obj))
|
|
JSON.stringify(obj))
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|