修改接口,喜欢接口
This commit is contained in:
@@ -69,12 +69,12 @@ const install = (Vue, vm) => {
|
||||
obj = params
|
||||
} else {
|
||||
obj = {
|
||||
id:params.id,
|
||||
courseId:params.courseId,
|
||||
token:'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxMDc0MDk2MjQwODQ2ODQ1NTU3IiwiaWF0IjoxNzM2NTA0OTcyLCJleHAiOjE3MzcxMDk3NzJ9.b-xJwmlGiZ1MTojGdLPXPqk-7Lw0pSYRU-QFQW0HBRn1EUHpqz1To3HWPiC-j6F0W_YnbQrQKqztRs8kLoR0vA'
|
||||
|
||||
}
|
||||
}
|
||||
return vm.$u.get('app/course/selectCourseDetailsById', obj)
|
||||
return vm.$u.get('app/course/courseSets', obj)
|
||||
};
|
||||
|
||||
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
|
||||
|
||||
@@ -961,7 +961,7 @@
|
||||
id: this.courseId,
|
||||
token: uni.getStorageSync('token')
|
||||
}
|
||||
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
|
||||
httpsRequest.getT('/app/course/courseSets', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data && res.data.isCollect && res.data.isCollect > 0) {
|
||||
this.isCollect = true
|
||||
@@ -1271,7 +1271,7 @@
|
||||
id: courseId,
|
||||
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : ''
|
||||
};
|
||||
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
|
||||
httpsRequest.getT('/app/course/courseSets', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data.listsDetail) {
|
||||
this.info = res.data;
|
||||
|
||||
4044
me/detail/detail.vue
4044
me/detail/detail.vue
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user