提交代码
This commit is contained in:
@@ -1316,7 +1316,19 @@
|
||||
id: courseId,
|
||||
token: uni.getStorageSync('token') ? uni.getStorageSync('token') : ''
|
||||
};
|
||||
httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => {
|
||||
let obj ={}
|
||||
if ( uni.getStorageSync('token')) {
|
||||
obj = data
|
||||
} else {
|
||||
obj = {
|
||||
id: this.courseId,
|
||||
token:'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxNDI5NSIsImlhdCI6MTczNjMwNDUzMCwiZXhwIjoxNzM2OTA5MzMwfQ.kCnqu3S23kOog8OBA2GUwRWhC-dmBsYmPz5mHdaCIvaoJstm0KmYnZFxssHjx562ziFOfENXDg_OQWyzBIC5xg'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
httpsRequest.getT('/app/course/selectCourseDetailsById', obj).then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data.listsDetail) {
|
||||
this.info = res.data;
|
||||
|
||||
Reference in New Issue
Block a user