|
@@ -312,6 +312,7 @@ Page({
|
|
|
Name:"appl",
|
|
|
value:"545455",
|
|
|
color:'crimson',
|
|
|
+ plateId:""
|
|
|
},
|
|
|
newsData:[],
|
|
|
},
|
|
@@ -356,6 +357,7 @@ Page({
|
|
|
var Name = "object.Name"
|
|
|
var value = "object.value"
|
|
|
var color='object.color'
|
|
|
+ var plateId='object.plateId'
|
|
|
let Values,colors
|
|
|
if(JSON.parse(options.row).industryTag){
|
|
|
Values="+"+JSON.parse(options.row).industryValue.toFixed(2)+"%";
|
|
@@ -365,13 +367,28 @@ Page({
|
|
|
colors="#07c160"
|
|
|
|
|
|
}
|
|
|
+ console.log(app.globalData.userInfo)
|
|
|
this.setData({
|
|
|
[Name]:JSON.parse(options.row).industryName,
|
|
|
+ [plateId]:JSON.parse(options.row).industryId,
|
|
|
[value]:Values,
|
|
|
[color]:colors,
|
|
|
})
|
|
|
that.posthisfind(JSON.parse(options.row).industryId,)
|
|
|
that.postpredfind(JSON.parse(options.row).industryId,)
|
|
|
+ that.postfollow()
|
|
|
+ },
|
|
|
+ postfollow:function(){
|
|
|
+ var that = this;
|
|
|
+ console.log(app.globalData.userInfo)
|
|
|
+ var data={
|
|
|
+ plateId: this.data.object.plateId,
|
|
|
+ plateName: this.data.object.Name,
|
|
|
+ userId: wx.getStorageSync('openid'),
|
|
|
+ userName: app.globalData.userInfo.nickName,
|
|
|
+ }
|
|
|
+ console.log(data)
|
|
|
+ var postfollow = wxRequest.postRequest(Api.postfollow(),data);
|
|
|
},
|
|
|
//获取数据
|
|
|
posthisfind:function(row){
|