|
@@ -19,7 +19,10 @@
|
|
|
<view class='follow' @click="followClick(item)">{{item.followFlag=='0'?'+关注':'已关注'}}</view>
|
|
|
</view>
|
|
|
<view class="row2">
|
|
|
- <view class="time">{{item.createDate}}</view>
|
|
|
+ <view class='position'>
|
|
|
+ <image class='location' src="../../../static/img/liangmai/icon_ditu.png" mode=""></image>
|
|
|
+ {{item.warehousePrivate}}{{item.warehouseCity}}{{item.warehouseArea}}{{item.detailedAddress}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="row3">
|
|
|
<view class="row3-item">
|
|
@@ -32,13 +35,11 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row4">
|
|
|
- <view class='position'>
|
|
|
- <image class='location' src="../../../static/img/liangmai/icon_ditu.png" mode=""></image>
|
|
|
- {{item.warehousePrivate}}{{item.warehouseCity}}{{item.warehouseArea}}{{item.detailedAddress}}
|
|
|
- </view>
|
|
|
- <u-button class="btn" @click='naviageToPage("/pages/user/depotAcquisition/grainDeliveryRegistration?itemValue="+JSON.stringify(item))'>
|
|
|
+ <view class="time">{{item.createDate}}</view>
|
|
|
+ <view class="btn"
|
|
|
+ @click='naviageToPage("/pages/user/depotAcquisition/grainDeliveryRegistration?itemValue="+JSON.stringify(item))'>
|
|
|
我要送粮
|
|
|
- </u-button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
|
|
@@ -131,7 +132,9 @@
|
|
|
city: this.currentCityName,
|
|
|
compId: uni.getStorageSync('pcUserInfo').compId,
|
|
|
pageSize: this.pageSize,
|
|
|
- currentPage: this.currentPage
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ loginPhone:uni.getStorageSync("userInfo").phone,
|
|
|
+
|
|
|
}).then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
if (this.currentCityName == '') this.currentCityName = '全国'
|
|
@@ -142,8 +145,15 @@
|
|
|
})
|
|
|
},
|
|
|
followClick(val) {
|
|
|
- this.$api.doRequest('post', '/acquisitionInfo/api/editFollowFlag', {
|
|
|
- id: val.id
|
|
|
+ let _url = ''
|
|
|
+ if(val.followFlag==1){
|
|
|
+ _url = '/acquisitionInfo/api/followNot'
|
|
|
+ }else{
|
|
|
+ _url = '/acquisitionInfo/api/follow'
|
|
|
+ }
|
|
|
+ this.$api.doRequest('post', _url, {
|
|
|
+ id: val.id,
|
|
|
+ commonId: uni.getStorageSync("userInfo").id,
|
|
|
}).then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
if (res.data.data == '1') {
|
|
@@ -156,6 +166,24 @@
|
|
|
this.$forceUpdate()
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ // this.$api.doRequest('post', '/acquisitionInfo/api/editFollowFlag', {
|
|
|
+ // id: val.id,
|
|
|
+ // commonId: uni.getStorageSync("userInfo").id,
|
|
|
+ // }).then(res => {
|
|
|
+ // if (res.data.code == "200") {
|
|
|
+ // if (res.data.data == '1') {
|
|
|
+ // val.followFlag = '1'
|
|
|
+ // this.$api.msg('关注成功')
|
|
|
+ // } else {
|
|
|
+ // val.followFlag = '0'
|
|
|
+ // this.$api.msg('取消关注成功')
|
|
|
+ // }
|
|
|
+ // this.$forceUpdate()
|
|
|
+ // }
|
|
|
+ // })
|
|
|
|
|
|
},
|
|
|
open(e) {
|
|
@@ -186,6 +214,7 @@
|
|
|
},
|
|
|
searchChange(e) {
|
|
|
console.log(e)
|
|
|
+ this.getListData()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -259,23 +288,19 @@
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- .btn{
|
|
|
+
|
|
|
+ .btn {
|
|
|
background: #22C572;
|
|
|
border-radius: 40rpx;
|
|
|
font-size: 28rpx;
|
|
|
font-weight: 400;
|
|
|
color: #FFFFFF;
|
|
|
- margin: 0;
|
|
|
+ padding: 10rpx 30rpx;
|
|
|
}
|
|
|
- .position {
|
|
|
- font-size: 12px;
|
|
|
- color: #676E80;
|
|
|
- background: #F5F6FA;
|
|
|
- padding: 0rpx 20rpx;
|
|
|
- height: 50rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- border-radius: 50rpx;
|
|
|
+
|
|
|
+ .time {
|
|
|
+ color: #878C9C;
|
|
|
+ margin: 20rpx 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -306,11 +331,17 @@
|
|
|
}
|
|
|
|
|
|
.row2 {
|
|
|
- .time {
|
|
|
- color: #878C9C;
|
|
|
+ .position {
|
|
|
margin: 20rpx 0;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #676E80;
|
|
|
+ background: #F5F6FA;
|
|
|
+ padding: 0rpx 20rpx;
|
|
|
+ height: 50rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ border-radius: 50rpx;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
</style>
|