|
@@ -3,7 +3,12 @@
|
|
<view class="top-style">
|
|
<view class="top-style">
|
|
<view style='background:#fff;border-bottom:1px solid #EEE;padding-bottom:10px;'>
|
|
<view style='background:#fff;border-bottom:1px solid #EEE;padding-bottom:10px;'>
|
|
<view class="cu-bar search">
|
|
<view class="cu-bar search">
|
|
- <view style='position:absolute;left:30px;top:50%;transform: translateY(-50%);'>
|
|
|
|
|
|
+ <view style='position:absolute;left:30px;top:50%;transform: translateY(-50%);' @click='status=true'>
|
|
|
|
+ {{location}}<image style='width:10px;height:6px;margin-left:4px;position:relative;top:-2px;'
|
|
|
|
+ src='../../static/img/jiaoyi/down.png'></image>
|
|
|
|
+ </view>
|
|
|
|
+ <u-picker mode="selector" @confirm='locationChange' v-model="status" :range="locationType"></u-picker>
|
|
|
|
+ <!-- <view>
|
|
<picker style='display:inline-block;' @change="locationChange" :value="location"
|
|
<picker style='display:inline-block;' @change="locationChange" :value="location"
|
|
:range="locationType">
|
|
:range="locationType">
|
|
<view class="picker">
|
|
<view class="picker">
|
|
@@ -12,7 +17,8 @@
|
|
</picker>
|
|
</picker>
|
|
<image style='width:10px;height:6px;margin-left:4px;position:relative;top:-2px;'
|
|
<image style='width:10px;height:6px;margin-left:4px;position:relative;top:-2px;'
|
|
src='../../static/img/jiaoyi/down.png'></image>
|
|
src='../../static/img/jiaoyi/down.png'></image>
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
|
|
+
|
|
<view class="search-form round" @click="naviageToPage('/pageA/product/lookup?TabCur=')">
|
|
<view class="search-form round" @click="naviageToPage('/pageA/product/lookup?TabCur=')">
|
|
<text style='color: #ccc;text-indent:56px;' class="cuIcon-search"></text>
|
|
<text style='color: #ccc;text-indent:56px;' class="cuIcon-search"></text>
|
|
<input type="text" placeholder="请输入货名或标题" confirm-type="search"></input>
|
|
<input type="text" placeholder="请输入货名或标题" confirm-type="search"></input>
|
|
@@ -93,9 +99,10 @@
|
|
isLoadMore: false, //是否加载中
|
|
isLoadMore: false, //是否加载中
|
|
showTran: true,
|
|
showTran: true,
|
|
scrollTop: 0,
|
|
scrollTop: 0,
|
|
|
|
+ status:false,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
searchKeyWord: '',
|
|
searchKeyWord: '',
|
|
- receivePrivate: '',
|
|
|
|
|
|
+ receivePrivate: '全国',
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
categoryList: [{
|
|
categoryList: [{
|
|
title: '我要买粮',
|
|
title: '我要买粮',
|
|
@@ -106,7 +113,10 @@
|
|
}],
|
|
}],
|
|
TabCur: 0,
|
|
TabCur: 0,
|
|
current: 1,
|
|
current: 1,
|
|
- location: 0,
|
|
|
|
|
|
+ location: '全国',
|
|
|
|
+ params:{
|
|
|
|
+ province: true,
|
|
|
|
+ },
|
|
locationType: ['全国', '黑龙江', '河南', '山东', '安徽', '吉林', '河北', '江苏', '内蒙古', '四川', '湖南', '湖北', '辽宁',
|
|
locationType: ['全国', '黑龙江', '河南', '山东', '安徽', '吉林', '河北', '江苏', '内蒙古', '四川', '湖南', '湖北', '辽宁',
|
|
'江西', '云南', '新疆', '山西', '广西', '陕西', '广东', '甘肃', '重庆', '贵州', '浙江', '福建',
|
|
'江西', '云南', '新疆', '山西', '广西', '陕西', '广东', '甘肃', '重庆', '贵州', '浙江', '福建',
|
|
'宁夏', '天津', '海南', '青海', '西藏', '上海', '北京'
|
|
'宁夏', '天津', '海南', '青海', '西藏', '上海', '北京'
|
|
@@ -203,8 +213,9 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
locationChange(e) {
|
|
locationChange(e) {
|
|
- this.location = e.detail.value
|
|
|
|
- this.receivePrivate = e.detail.value
|
|
|
|
|
|
+ console.log(e)
|
|
|
|
+ this.location = this.locationType[e[0]]
|
|
|
|
+ this.receivePrivate = this.locationType[e[0]]
|
|
this.currentPage = 1
|
|
this.currentPage = 1
|
|
this.loadData()
|
|
this.loadData()
|
|
},
|
|
},
|
|
@@ -246,7 +257,7 @@
|
|
showFlag: 1,
|
|
showFlag: 1,
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
searchKeyWord: this.searchKeyWord,
|
|
searchKeyWord: this.searchKeyWord,
|
|
- receivePrivate: this.receivePrivate =="0" ? '':this.locationType[this.receivePrivate]
|
|
|
|
|
|
+ receivePrivate: this.receivePrivate
|
|
}).then(res => {
|
|
}).then(res => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
this.buyInfo = res.data.data.records
|
|
this.buyInfo = res.data.data.records
|