|
@@ -10,7 +10,7 @@
|
|
|
<detailTop @goBack="goBack"></detailTop>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="info">
|
|
|
- <stockForm :ruleForm="stockForm" @fallow = "fallow"></stockForm>
|
|
|
+ <stockForm :ruleForm="stockForm" :saw="saw" @fallow = "fallow"></stockForm>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -40,6 +40,7 @@
|
|
|
charList: {
|
|
|
name: '10',
|
|
|
},
|
|
|
+ saw:'1'
|
|
|
}),
|
|
|
created() {
|
|
|
this.searchInfo();
|
|
@@ -59,6 +60,17 @@
|
|
|
this.$set(this, `stockForm`, res.data);
|
|
|
}
|
|
|
},
|
|
|
+ async safollow() {
|
|
|
+ if (this.id) {
|
|
|
+ var userid = this.user.userid;
|
|
|
+ const ress = await this.beforFollow({ finceId: this.id, userid: userid });
|
|
|
+ if (ress.data.finstatus == 'SUCCESS') {
|
|
|
+ this.$set(this, `saw`, '0');
|
|
|
+ }else{
|
|
|
+ this.$set(this, `saw`, '1');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
// 关注
|
|
|
async fallow({ data }) {
|
|
|
var finceId=data._id;
|