|
|
@ -137,8 +137,23 @@ |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
articleDetails(){ |
|
|
|
articleDetails(){ |
|
|
|
|
|
|
|
// let params={ids:this.id} |
|
|
|
articleDetails({ids:this.id}).then(res=>{ |
|
|
|
// 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; |
|
|
|
this.titleInfo = res; |
|
|
|
if(res.is_collect==0){ |
|
|
|
if(res.is_collect==0){ |
|
|
|
this.isCollect = false |
|
|
|
this.isCollect = false |
|
|
|