|
@@ -29,27 +29,20 @@
|
|
|
<view class='friendcircle-content flex justify-between'>
|
|
|
<image class='bg' src="../../static/img/liangmai/bg.png" mode=""></image>
|
|
|
<view class='friendcircle-content-right'>
|
|
|
- <view class='friendcircle-content-right-item Regular flex align-item-center'>
|
|
|
- <image class='headportrait' src="../../static/img/add@3x.png" mode=""></image>中天昊元粮库中天昊元…
|
|
|
- </view>
|
|
|
- <view class='friendcircle-content-right-item Regular flex align-item-center'>
|
|
|
- <image class='headportrait' src="../../static/img/add@3x.png" mode=""></image>中天昊元粮库中天昊元…
|
|
|
- </view>
|
|
|
- <view class='friendcircle-content-right-item Regular flex align-item-center'>
|
|
|
- <image class='headportrait' src="../../static/img/add@3x.png" mode=""></image>中天昊元粮库中天昊元…
|
|
|
- </view>
|
|
|
- <view class='friendcircle-content-right-item Regular flex align-item-center'>
|
|
|
- <image class='headportrait' src="../../static/img/add@3x.png" mode=""></image>中天昊元粮库中天昊元…
|
|
|
+ <view v-for='item in releaseInfo' class='friendcircle-content-right-item Regular flex align-item-center'>
|
|
|
+ <image class='headportrait' v-if='item.avatarUrl' :src="item.avatarUrl" mode=""></image>
|
|
|
+ <image class='headportrait' v-else src="../../static/img/myimg/YongHu@3x.png" mode=""></image>
|
|
|
+ {{item.title}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<scroll-view scroll-x="true" scroll-with-animation="true" class='list-type'>
|
|
|
- <view v-for='item in searchTypes' @click='mainBusinessTypecahnge(item)'
|
|
|
+ <view v-for='item in searchTypes' @click='mainBusinessTypechange(item)'
|
|
|
:class='mainBusinessTypeKey==item.value?"Semibold active":"Regular"' class="typeitem">{{item.name}}
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
- <view v-for='item in datalist' @click='todetails(item)' class="listitem">
|
|
|
+ <view v-if='datalist.length>0' v-for='item in datalist' @click='todetails(item)' class="listitem">
|
|
|
<view class="flex">
|
|
|
<image class='listitem-left' :src="item.attachmentAddress" mode=""></image>
|
|
|
<view class="listitem-right">
|
|
@@ -58,7 +51,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex align-item-center justify-between">
|
|
|
- <view @click.stop='naviageToPage("/pages/grain_pulse/localtion/localtion")'
|
|
|
+ <view @click.stop='naviageToPage1(item,"/pages/grain_pulse/localtion/localtion")'
|
|
|
class='companylocation flex align-item-center Regular'>
|
|
|
<image class='location' src="../../static/img/liangmai/icon_ditu.png" mode=""></image>
|
|
|
{{item.province}}{{item.city}}{{item.area}}{{item.detailedAddress}}
|
|
@@ -66,6 +59,9 @@
|
|
|
<view v-if='position.name!="未设置"' class='distance Regular'>{{item._metre}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view style='padding:10px;text-align:center;' v-if='datalist.length==0'>
|
|
|
+ 当前暂无数据
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view v-if='datalist.length==0' class="enter" @click="enter">
|
|
|
<image style='width:56.5px;height:28px;' src="../../static/img/liangmai/ruzhu.png" mode=""></image>
|
|
@@ -89,6 +85,7 @@
|
|
|
mainBusinessType: '',
|
|
|
mainBusinessTypeKey: '0',
|
|
|
pageSize: 10,
|
|
|
+ releaseInfo:[],
|
|
|
currentPage: 1,
|
|
|
searchTypes: [{
|
|
|
name: '全部',
|
|
@@ -118,29 +115,12 @@
|
|
|
value: '7'
|
|
|
}
|
|
|
],
|
|
|
+ notlist:false,
|
|
|
datalist: []
|
|
|
}
|
|
|
},
|
|
|
onShow(val) {
|
|
|
-
|
|
|
- this.$api.doRequest('get', '/settledCompanyInfo/selectSettledCompanyInfo', {
|
|
|
- mainBusinessType: this.mainBusinessType,
|
|
|
- pageSize: this.pageSize,
|
|
|
- currentPage: this.currentPage,
|
|
|
- pcFlag: 2
|
|
|
- }).then(res => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- this.datalist = res.data.data.records
|
|
|
- console.log(this.position)
|
|
|
- let lat2 =this.position.location.split(',')[1];
|
|
|
- let lng2 = this.position.location.split(',')[0];
|
|
|
- for(var i=0;i<this.datalist.length;i++){
|
|
|
- this.datalist[i]._metre=this.utils.getDistance(this.datalist[i].latitude,this.datalist[i].longitude,lat2,lng2)
|
|
|
- }
|
|
|
- console.log(this.datalist)
|
|
|
- // let _metre = this.utils.getDistance(lat1,lng1,lat2,lng2) +"千米"
|
|
|
- }
|
|
|
- })
|
|
|
+ this.getList()
|
|
|
uni.getStorage({
|
|
|
key: 'setLocaltion',
|
|
|
success: (res) => {
|
|
@@ -160,12 +140,48 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- mainBusinessTypecahnge(item) {
|
|
|
+ getList(){
|
|
|
+ this.$api.doRequest('get', '/settledCompanyDynamics/selectSettledCompanyDynamicsPage', {
|
|
|
+ currentPage: 1,
|
|
|
+ pageSize: 4,
|
|
|
+ searchKeyWord: this.keyword
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ this.releaseInfo = res.data.data.records
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$api.doRequest('get', '/settledCompanyInfo/selectSettledCompanyInfo', {
|
|
|
+ mainBusinessType: this.mainBusinessType,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ pcFlag: 2
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ this.datalist = res.data.data.records
|
|
|
+ console.log(this.position)
|
|
|
+ let lat2 =this.position.location.split(',')[1];
|
|
|
+ let lng2 = this.position.location.split(',')[0];
|
|
|
+ for(var i=0;i<this.datalist.length;i++){
|
|
|
+ this.datalist[i]._metre=this.utils.getDistance(this.datalist[i].latitude,this.datalist[i].longitude,lat2,lng2)
|
|
|
+ }
|
|
|
+ if(this.currentPage==1&&this.datalist.length==0){
|
|
|
+ this.notlist=true
|
|
|
+ }else{
|
|
|
+ this.notlist=false
|
|
|
+ }
|
|
|
+ console.log(this.datalist)
|
|
|
+ // let _metre = this.utils.getDistance(lat1,lng1,lat2,lng2) +"千米"
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ mainBusinessTypechange(item) {
|
|
|
if (item.name != '全部') {
|
|
|
this.mainBusinessType = item.name
|
|
|
} else {
|
|
|
this.mainBusinessType = ''
|
|
|
}
|
|
|
+ this.getList()
|
|
|
this.mainBusinessTypeKey = item.value
|
|
|
},
|
|
|
enter() {
|
|
@@ -189,6 +205,12 @@
|
|
|
uni.navigateTo({
|
|
|
url: item
|
|
|
})
|
|
|
+ },
|
|
|
+ naviageToPage1(item,url) {
|
|
|
+ uni.setStorageSync('location', item)
|
|
|
+ uni.navigateTo({
|
|
|
+ url: url
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -300,6 +322,7 @@
|
|
|
width: 22.5px;
|
|
|
height: 22.5px;
|
|
|
margin-right: 8.5px;
|
|
|
+ border-radius:10px;
|
|
|
}
|
|
|
|
|
|
/* 圈友说--》 */
|