| xqd
@@ -188,9 +188,12 @@
|
|
|
|
|
|
if (res2.code == 0) {
|
|
|
uni.setStorageSync('course_id', this.course_id)
|
|
|
+
|
|
|
+ let webRoot = uni.getStorageSync('webRoot')
|
|
|
+
|
|
|
let addRedirectUrl = res2.data + '&redirect_url=' +
|
|
|
encodeURIComponent(
|
|
|
- 'https://www.ai5566.cn/h5/pages/index/scorePayMiddle/index?id=' + this.course_id
|
|
|
+ webRoot + '/pages/index/scorePayMiddle/index?id=' + this.course_id
|
|
|
)
|
|
|
location.href = addRedirectUrl
|
|
|
} else {
|
| xqd
@@ -213,9 +216,11 @@
|
|
|
console.log('res2-2', res2);
|
|
|
if (res2.code == 0) {
|
|
|
uni.setStorageSync('course_id', this.course_id)
|
|
|
+
|
|
|
+ let webRoot = uni.getStorageSync('webRoot')
|
|
|
let addRedirectUrl = res2.data + '&redirect_url=' +
|
|
|
encodeURIComponent(
|
|
|
- 'https://www.ai5566.cn/h5/pages/index/scorePayMiddle/index?id=' + this.course_id
|
|
|
+ webRoot + '/pages/index/scorePayMiddle/index?id=' + this.course_id
|
|
|
)
|
|
|
location.href = addRedirectUrl
|
|
|
} else {
|