提交代码

This commit is contained in:
duan
2025-01-08 15:31:04 +08:00
parent 032bda2748
commit 01c486bfcb

View File

@@ -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;