From 032bda27482c51cd0bc9ce6ff078ddb54661f414 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Wed, 8 Jan 2025 15:23:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ios=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- me/detail/detailIOS.nvue | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/me/detail/detailIOS.nvue b/me/detail/detailIOS.nvue index ee9b169..37efa87 100644 --- a/me/detail/detailIOS.nvue +++ b/me/detail/detailIOS.nvue @@ -473,12 +473,14 @@ this.getDataList(this.courseId, this.courseDetailsId); } - console.log(11111) - httpsRequest.getT('/app/course/getRedEnvelopeTips').then(res => { - if (res.code === 0) { - this.getRedEnvelopeTips = res.data - } - }) + if(uni.getStorageSync('token')){ + this.$Request.getT('/app/course/getRedEnvelopeTips').then((res) => { + if (res.code == 0) { + this.getRedEnvelopeTips = res.data; + } + }); + } + this.getScale() const sysInfo = uni.getSystemInfoSync() @@ -863,11 +865,21 @@ }, // 获取收藏状态 getMyLoveStatus() { - let data = { + let data = { + id: this.courseId, + token: uni.getStorageSync('token') + }; + let obj ={} + if (uni.getStorageSync('token')) { + obj = data + } else { + obj = { id: this.courseId, - token: uni.getStorageSync('token') - } - httpsRequest.getT('/app/course/selectCourseDetailsById', data).then(res => { + token:'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxNDI5NSIsImlhdCI6MTczNjMwNDUzMCwiZXhwIjoxNzM2OTA5MzMwfQ.kCnqu3S23kOog8OBA2GUwRWhC-dmBsYmPz5mHdaCIvaoJstm0KmYnZFxssHjx562ziFOfENXDg_OQWyzBIC5xg' + } + } + + httpsRequest.getT('/app/course/selectCourseDetailsById', obj).then(res => { if (res.code == 0) { if (res.data && res.data.isCollect && res.data.isCollect > 0) { this.isCollect = true