diff --git a/src/PersonalHomepage.vue b/src/PersonalHomepage.vue
index 1242aa6..ede889b 100644
--- a/src/PersonalHomepage.vue
+++ b/src/PersonalHomepage.vue
@@ -4,7 +4,7 @@
diff --git a/src/articledetail.vue b/src/articledetail.vue
index 239486e..490bd8e 100644
--- a/src/articledetail.vue
+++ b/src/articledetail.vue
@@ -12,7 +12,9 @@
:sole="list.user.industry_name"
:text="list.data.articlecontent"
:title="list.data.title"
+ :guanzhu="ifgz"
@pinglun="pinglu"
+ @guanzhu="gz"
>
@@ -66,7 +68,9 @@ export default {
content: "",
biaoqing: false,
list: [],
- plist: []
+ plist: [],
+ userid:0,
+ ifgz:false
};
},
components: {
@@ -79,6 +83,23 @@ export default {
Emotion
},
methods: {
+ gz(e){
+ if(e==1){
+ let t=this;
+ this.axios
+ .post("http://lawpro.earnest.pro/api/login_main/plusAttention", {
+ token:localStorage.getItem("token"),
+ passivity_id:t.userid,
+ type:2
+ }).then((res)=>{
+ window.console.log(res)
+ if(res.data.code==200){
+ this.ifgz=true
+ }
+ })
+ }
+
+ },
handleEmotion(i) {
this.content += i;
},
@@ -122,6 +143,8 @@ export default {
}
},
mounted() {
+ // window.console.log(this.$route.query.userid,7946 )
+ this.userid=this.$route.query.userid
this.axios
.post("http://lawpro.earnest.pro/api/login_main/mainDetails", {
token: localStorage.getItem("token"),
diff --git a/src/components/indexFollow1.vue b/src/components/indexFollow1.vue
index 528b818..19a1896 100644
--- a/src/components/indexFollow1.vue
+++ b/src/components/indexFollow1.vue
@@ -10,12 +10,18 @@
-