修改接口问题
This commit is contained in:
@@ -497,7 +497,7 @@
|
||||
|
||||
this.getDataList(this.courseId, this.courseDetailsId);
|
||||
}
|
||||
httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => {
|
||||
httpsRequest.getT('/app/course/getRedEnvelopeTips').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.getRedEnvelopeTips = res.data
|
||||
}
|
||||
@@ -559,7 +559,7 @@
|
||||
* 获取金币比例
|
||||
*/
|
||||
getScale() {
|
||||
httpsRequest.getT("app/common/type/914", {}).then(res => {
|
||||
httpsRequest.getT("/app/common/type/914", {}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.scale = Number(res.data.value)
|
||||
}
|
||||
@@ -571,7 +571,7 @@
|
||||
// this.courseDetailsId = courseDetailsId
|
||||
if (!this.playFlag) {
|
||||
this.playFlag = true
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: courseDetailsId,
|
||||
type: 'start'
|
||||
@@ -587,7 +587,7 @@
|
||||
if (e.detail.currentTime > e.detail.duration * 0.9) {
|
||||
if (this.playFlag) {
|
||||
this.playFlag = false
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'end'
|
||||
|
||||
@@ -852,7 +852,7 @@ export default {
|
||||
console.log('has this.courseId getDataList()');
|
||||
this.getDataList(this.courseId, this.courseDetailsId);
|
||||
}
|
||||
this.$Request.getT('app/course/getRedEnvelopeTips').then((res) => {
|
||||
this.$Request.getT('/app/course/getRedEnvelopeTips').then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.getRedEnvelopeTips = res.data;
|
||||
}
|
||||
@@ -944,7 +944,7 @@ export default {
|
||||
* 获取金币比例
|
||||
*/
|
||||
getScale() {
|
||||
this.$Request.getT('app/common/type/914', {}).then((res) => {
|
||||
this.$Request.getT('/app/common/type/914', {}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.scale = Number(res.data.value);
|
||||
}
|
||||
@@ -1241,7 +1241,7 @@ export default {
|
||||
if (this.playFlag) {
|
||||
this.playFlag = false;
|
||||
this.$Request
|
||||
.getT('app/course/viewCourse', {
|
||||
.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'end'
|
||||
@@ -2005,7 +2005,7 @@ export default {
|
||||
//播放时的回掉
|
||||
videoPlay(videoId) {
|
||||
this.$Request
|
||||
.getT('app/course/viewCourse', {
|
||||
.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'start'
|
||||
|
||||
@@ -473,7 +473,7 @@
|
||||
this.getDataList(this.courseId, this.courseDetailsId);
|
||||
|
||||
}
|
||||
httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => {
|
||||
httpsRequest.getT('/app/course/getRedEnvelopeTips').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.getRedEnvelopeTips = res.data
|
||||
}
|
||||
@@ -533,7 +533,7 @@
|
||||
* 获取金币比例
|
||||
*/
|
||||
getScale() {
|
||||
httpsRequest.getT("app/common/type/914", {}).then(res => {
|
||||
httpsRequest.getT("/app/common/type/914", {}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.scale = Number(res.data.value)
|
||||
}
|
||||
@@ -544,7 +544,7 @@
|
||||
this.courseDetailsId = courseDetailsId
|
||||
if (!this.playFlag) {
|
||||
this.playFlag = true
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: courseDetailsId,
|
||||
type: 'start'
|
||||
@@ -560,7 +560,7 @@
|
||||
if (e.detail.currentTime > e.detail.duration * 0.9) {
|
||||
if (this.playFlag) {
|
||||
this.playFlag = false
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'end'
|
||||
|
||||
@@ -118,7 +118,7 @@ export default {
|
||||
title: '加载中...'
|
||||
});
|
||||
this.$u
|
||||
.post('/app/message/insertMessage', {
|
||||
.post('/app/message/sendMessage', {
|
||||
title: this.sendDate.contact,
|
||||
content: JSON.stringify(this.sendDate),
|
||||
state: 2
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
content: '我要注销账号',
|
||||
userId: uni.getStorageSync('userId')
|
||||
}
|
||||
that.$Request.postJson('/app/message/insertMessage', data).then(res => {
|
||||
that.$Request.postJson('/app/message/sendMessage', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
|
||||
@@ -257,17 +257,22 @@
|
||||
})
|
||||
setTimeout(function() {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
url: '/pages/index/index2'
|
||||
});
|
||||
}, 1000)
|
||||
// this.getUserInfo(res.userId, res.token);
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '注册失败',
|
||||
content: res.msg
|
||||
});
|
||||
setTimeout(function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
});
|
||||
}, 1000)
|
||||
// uni.showModal({
|
||||
// showCancel: false,
|
||||
// title: '注册失败',
|
||||
// content: res.msg
|
||||
// });
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -269,11 +269,16 @@
|
||||
}, 1000)
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '注册失败',
|
||||
content: res.msg
|
||||
});
|
||||
setTimeout(function() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
});
|
||||
}, 1000)
|
||||
// uni.showModal({
|
||||
// showCancel: false,
|
||||
// title: '注册失败',
|
||||
// content: res.msg
|
||||
// });
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -213,7 +213,7 @@
|
||||
this.courseDetailsId = courseDetailsId
|
||||
if ( !this.playFlag ) {
|
||||
this.playFlag = true
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: courseDetailsId,
|
||||
type: 'start'
|
||||
@@ -229,7 +229,7 @@
|
||||
if (e.detail.currentTime > e.detail.duration*0.9) {
|
||||
if ( this.playFlag) {
|
||||
this.playFlag = false
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'end'
|
||||
|
||||
@@ -528,7 +528,7 @@
|
||||
if (e.detail.currentTime > e.detail.duration * 0.9) {
|
||||
if (this.playFlag) {
|
||||
this.playFlag = false
|
||||
this.$Request.getT('app/course/viewCourse', {
|
||||
this.$Request.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'end'
|
||||
@@ -916,7 +916,7 @@
|
||||
},
|
||||
//在播放时候的回调
|
||||
videoPlay(videoId) {
|
||||
this.$Request.getT('app/course/viewCourse', {
|
||||
this.$Request.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'start'
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
this.courseDetailsId = courseDetailsId
|
||||
if ( !this.playFlag ) {
|
||||
this.playFlag = true
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: courseDetailsId,
|
||||
type: 'start'
|
||||
@@ -225,7 +225,7 @@
|
||||
if (e.detail.currentTime > e.detail.duration*0.9) {
|
||||
if ( this.playFlag) {
|
||||
this.playFlag = false
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
httpsRequest.getT('/app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'end'
|
||||
|
||||
Reference in New Issue
Block a user