From 12636c7490c12dbd28680f25a4ed96b64769a127 Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Mon, 13 Feb 2023 18:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/detail/detail.vue | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue index 48a884c..39d7d77 100644 --- a/pages/detail/detail.vue +++ b/pages/detail/detail.vue @@ -137,8 +137,23 @@ // }) }, articleDetails(){ - - articleDetails({ids:this.id}).then(res=>{ + // let params={ids:this.id} + // uni.$u.http.post('http://lxwx.njrenzhou.cn/api/wx_article_collect/add', + // params, + // { + // header: { + // 'Content-Type': 'application/x-www-form-urlencoded', + // 'token':uni.getStorageSync('userInfo').token + // }, + // }).then((res) => { + // this.$refs.uToast.show({ + // message:"ζ”Άθ—ζˆεŠŸ" + // }) + // this.isCollect = true + // }).catch((res) =>{ + + // }) + articleDetails({ids:this.id},{ custom: { auth: true }}).then(res=>{ this.titleInfo = res; if(res.is_collect==0){ this.isCollect = false