修改接口问题

This commit is contained in:
duan
2024-12-31 17:05:26 +08:00
parent 8775b23f6a
commit 3b3e167089
10 changed files with 41 additions and 31 deletions

View File

@@ -497,7 +497,7 @@
this.getDataList(this.courseId, this.courseDetailsId); this.getDataList(this.courseId, this.courseDetailsId);
} }
httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => { httpsRequest.getT('/app/course/getRedEnvelopeTips').then(res => {
if (res.code == 0) { if (res.code == 0) {
this.getRedEnvelopeTips = res.data this.getRedEnvelopeTips = res.data
} }
@@ -559,7 +559,7 @@
* 获取金币比例 * 获取金币比例
*/ */
getScale() { getScale() {
httpsRequest.getT("app/common/type/914", {}).then(res => { httpsRequest.getT("/app/common/type/914", {}).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.scale = Number(res.data.value) this.scale = Number(res.data.value)
} }
@@ -571,7 +571,7 @@
// this.courseDetailsId = courseDetailsId // this.courseDetailsId = courseDetailsId
if (!this.playFlag) { if (!this.playFlag) {
this.playFlag = true this.playFlag = true
httpsRequest.getT('app/course/viewCourse', { httpsRequest.getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: courseDetailsId, courseDetailsId: courseDetailsId,
type: 'start' type: 'start'
@@ -587,7 +587,7 @@
if (e.detail.currentTime > e.detail.duration * 0.9) { if (e.detail.currentTime > e.detail.duration * 0.9) {
if (this.playFlag) { if (this.playFlag) {
this.playFlag = false this.playFlag = false
httpsRequest.getT('app/course/viewCourse', { httpsRequest.getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: this.courseDetailsId, courseDetailsId: this.courseDetailsId,
type: 'end' type: 'end'

View File

@@ -852,7 +852,7 @@ export default {
console.log('has this.courseId getDataList()'); console.log('has this.courseId getDataList()');
this.getDataList(this.courseId, this.courseDetailsId); 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) { if (res.code == 0) {
this.getRedEnvelopeTips = res.data; this.getRedEnvelopeTips = res.data;
} }
@@ -944,7 +944,7 @@ export default {
* 获取金币比例 * 获取金币比例
*/ */
getScale() { getScale() {
this.$Request.getT('app/common/type/914', {}).then((res) => { this.$Request.getT('/app/common/type/914', {}).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.scale = Number(res.data.value); this.scale = Number(res.data.value);
} }
@@ -1241,7 +1241,7 @@ export default {
if (this.playFlag) { if (this.playFlag) {
this.playFlag = false; this.playFlag = false;
this.$Request this.$Request
.getT('app/course/viewCourse', { .getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: this.courseDetailsId, courseDetailsId: this.courseDetailsId,
type: 'end' type: 'end'
@@ -2005,7 +2005,7 @@ export default {
//播放时的回掉 //播放时的回掉
videoPlay(videoId) { videoPlay(videoId) {
this.$Request this.$Request
.getT('app/course/viewCourse', { .getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: this.courseDetailsId, courseDetailsId: this.courseDetailsId,
type: 'start' type: 'start'

View File

@@ -473,7 +473,7 @@
this.getDataList(this.courseId, this.courseDetailsId); this.getDataList(this.courseId, this.courseDetailsId);
} }
httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => { httpsRequest.getT('/app/course/getRedEnvelopeTips').then(res => {
if (res.code === 0) { if (res.code === 0) {
this.getRedEnvelopeTips = res.data this.getRedEnvelopeTips = res.data
} }
@@ -533,7 +533,7 @@
* 获取金币比例 * 获取金币比例
*/ */
getScale() { getScale() {
httpsRequest.getT("app/common/type/914", {}).then(res => { httpsRequest.getT("/app/common/type/914", {}).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.scale = Number(res.data.value) this.scale = Number(res.data.value)
} }
@@ -544,7 +544,7 @@
this.courseDetailsId = courseDetailsId this.courseDetailsId = courseDetailsId
if (!this.playFlag) { if (!this.playFlag) {
this.playFlag = true this.playFlag = true
httpsRequest.getT('app/course/viewCourse', { httpsRequest.getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: courseDetailsId, courseDetailsId: courseDetailsId,
type: 'start' type: 'start'
@@ -560,7 +560,7 @@
if (e.detail.currentTime > e.detail.duration * 0.9) { if (e.detail.currentTime > e.detail.duration * 0.9) {
if (this.playFlag) { if (this.playFlag) {
this.playFlag = false this.playFlag = false
httpsRequest.getT('app/course/viewCourse', { httpsRequest.getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: this.courseDetailsId, courseDetailsId: this.courseDetailsId,
type: 'end' type: 'end'

View File

@@ -118,7 +118,7 @@ export default {
title: '加载中...' title: '加载中...'
}); });
this.$u this.$u
.post('/app/message/insertMessage', { .post('/app/message/sendMessage', {
title: this.sendDate.contact, title: this.sendDate.contact,
content: JSON.stringify(this.sendDate), content: JSON.stringify(this.sendDate),
state: 2 state: 2

View File

@@ -63,7 +63,7 @@
content: '我要注销账号', content: '我要注销账号',
userId: uni.getStorageSync('userId') 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) { if (res.code == 0) {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',

View File

@@ -257,17 +257,22 @@
}) })
setTimeout(function() { setTimeout(function() {
uni.switchTab({ uni.switchTab({
url: '/pages/index/index' url: '/pages/index/index2'
}); });
}, 1000) }, 1000)
// this.getUserInfo(res.userId, res.token); // this.getUserInfo(res.userId, res.token);
} else { } else {
uni.hideLoading(); uni.hideLoading();
uni.showModal({ setTimeout(function() {
showCancel: false, uni.navigateTo({
title: '注册失败', url: '/pages/login/login'
content: res.msg });
}); }, 1000)
// uni.showModal({
// showCancel: false,
// title: '注册失败',
// content: res.msg
// });
} }
}); });
}, },

View File

@@ -269,11 +269,16 @@
}, 1000) }, 1000)
} else { } else {
uni.hideLoading(); uni.hideLoading();
uni.showModal({ setTimeout(function() {
showCancel: false, uni.navigateTo({
title: '注册失败', url: '/pages/login/login'
content: res.msg });
}); }, 1000)
// uni.showModal({
// showCancel: false,
// title: '注册失败',
// content: res.msg
// });
} }
}); });
}, },

View File

@@ -213,7 +213,7 @@
this.courseDetailsId = courseDetailsId this.courseDetailsId = courseDetailsId
if ( !this.playFlag ) { if ( !this.playFlag ) {
this.playFlag = true this.playFlag = true
httpsRequest.getT('app/course/viewCourse', { httpsRequest.getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: courseDetailsId, courseDetailsId: courseDetailsId,
type: 'start' type: 'start'
@@ -229,7 +229,7 @@
if (e.detail.currentTime > e.detail.duration*0.9) { if (e.detail.currentTime > e.detail.duration*0.9) {
if ( this.playFlag) { if ( this.playFlag) {
this.playFlag = false this.playFlag = false
httpsRequest.getT('app/course/viewCourse', { httpsRequest.getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: this.courseDetailsId, courseDetailsId: this.courseDetailsId,
type: 'end' type: 'end'

View File

@@ -528,7 +528,7 @@
if (e.detail.currentTime > e.detail.duration * 0.9) { if (e.detail.currentTime > e.detail.duration * 0.9) {
if (this.playFlag) { if (this.playFlag) {
this.playFlag = false this.playFlag = false
this.$Request.getT('app/course/viewCourse', { this.$Request.getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: this.courseDetailsId, courseDetailsId: this.courseDetailsId,
type: 'end' type: 'end'
@@ -916,7 +916,7 @@
}, },
//在播放时候的回调 //在播放时候的回调
videoPlay(videoId) { videoPlay(videoId) {
this.$Request.getT('app/course/viewCourse', { this.$Request.getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: this.courseDetailsId, courseDetailsId: this.courseDetailsId,
type: 'start' type: 'start'

View File

@@ -209,7 +209,7 @@
this.courseDetailsId = courseDetailsId this.courseDetailsId = courseDetailsId
if ( !this.playFlag ) { if ( !this.playFlag ) {
this.playFlag = true this.playFlag = true
httpsRequest.getT('app/course/viewCourse', { httpsRequest.getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: courseDetailsId, courseDetailsId: courseDetailsId,
type: 'start' type: 'start'
@@ -225,7 +225,7 @@
if (e.detail.currentTime > e.detail.duration*0.9) { if (e.detail.currentTime > e.detail.duration*0.9) {
if ( this.playFlag) { if ( this.playFlag) {
this.playFlag = false this.playFlag = false
httpsRequest.getT('app/course/viewCourse', { httpsRequest.getT('/app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
courseDetailsId: this.courseDetailsId, courseDetailsId: this.courseDetailsId,
type: 'end' type: 'end'