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