12
This commit is contained in:
@@ -40,14 +40,14 @@
|
||||
付款码
|
||||
</text>
|
||||
</view>
|
||||
<view class="text-xxl" @tap="toCards">
|
||||
<!-- <view class="text-xxl" @tap="toCards">
|
||||
<view class="cuIcon-vipcard">
|
||||
|
||||
</view>
|
||||
<text class="text-df">
|
||||
加油卡
|
||||
</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="text-xxl" @tap="toOrders">
|
||||
<view class="cuIcon-form">
|
||||
|
||||
@@ -370,11 +370,11 @@
|
||||
});
|
||||
},
|
||||
getAmount() {
|
||||
accountApi.getTotalOilCardInfo().then(res => {
|
||||
if (res.code == 20000) {
|
||||
this.userTotal = res.data
|
||||
}
|
||||
})
|
||||
// accountApi.getTotalOilCardInfo().then(res => {
|
||||
// if (res.code == 20000) {
|
||||
// this.userTotal = res.data
|
||||
// }
|
||||
// })
|
||||
},
|
||||
refreshLocation() {
|
||||
uni.getLocation({
|
||||
@@ -494,6 +494,7 @@
|
||||
pageSize: 10,
|
||||
params: { //类型:Object 必有字段 备注:// 筛选对象
|
||||
clientBelong:'ZHONGPIN',
|
||||
targetApp:'SAAS',
|
||||
sort: "juli", //类型:String 必有字段 备注:// 智能排序 ( price:价格最低 juli:距离最近 ) 默认距离排序
|
||||
// longitude: 117.157817, // 必有字段 备注:// 当前位置经度
|
||||
// latitude: 31.802472, // 必有字段 备注:// 当前位置维度
|
||||
|
||||
@@ -136,11 +136,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
onShow() {
|
||||
console.log('====');
|
||||
// location.reload()
|
||||
// this.initList()
|
||||
},
|
||||
onLoad() {
|
||||
this.initList()
|
||||
this.initList();
|
||||
let that = this
|
||||
uni.$on('orderLisetUpdate',()=>{
|
||||
that.onRequest()
|
||||
setTimeout(function() {
|
||||
uni.stopPullDownRefresh()
|
||||
}, 1000);
|
||||
})
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.onRequest()
|
||||
@@ -241,6 +250,7 @@
|
||||
|
||||
},
|
||||
getOrder(id, page, tip) {
|
||||
console.log('运行')
|
||||
clearTimeout(this.getSiteListTimer);
|
||||
this.getSiteListTimer = setTimeout(()=>{
|
||||
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
@blur="InputBlur" v-model="siteName" :adjust-position="false" type="text" placeholder="加油站名称" />
|
||||
</view>
|
||||
<view class="action" @tap="toMap">
|
||||
<image class="icon shadow-blur round icon-gasstation"
|
||||
src="https://www.51xingka.net/LSMOIL/static/img/gas-station.png" mode=""></image>
|
||||
<image class="icon shadow-blur round icon-gasstation" src="https://www.51xingka.net/LSMOIL/static/img/gas-station.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -33,10 +32,10 @@
|
||||
<!-- 筛选开始 -->
|
||||
<scroll-view class="screentop bg-white" style="flex: 1;">
|
||||
<view class="">
|
||||
<sl-filter v-if="isFilterData" reflexTitle ref="slFilter" :productCodeList="productCodeList" :areaCodeList="areaCodeList"
|
||||
<sl-filter v-if="isFilterData&&areaCodeList.length>1" reflexTitle ref="slFilter" :productCodeList="productCodeList" :areaCodeList="areaCodeList"
|
||||
@result="filterRes" :menuList="menuList"></sl-filter>
|
||||
<!-- <sl-filter reflexTitle ref="slFilter" @result="filterRes" :menuList="menuList"></sl-filter> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="bg-white min-height-50 padding-top" v-if="siteList.length>0">
|
||||
<site-item v-for="(item,index) in siteList" :key="item.id" :site-item="item" :first="index==0"
|
||||
:listHeight="listHeight" class="cu-list menu-avatar cu-item" @tap="toDetail(item)">
|
||||
@@ -256,6 +255,9 @@
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.areaCodeList = uni.getStorageSync('areaCodeList');
|
||||
},
|
||||
onLoad() {
|
||||
this.refreshLocation()
|
||||
if (!uni.getStorageSync('filterData')) {
|
||||
@@ -263,7 +265,7 @@
|
||||
} else {
|
||||
this.isFilterData=true
|
||||
}
|
||||
this.getSiteList()
|
||||
this.getSiteList();
|
||||
},
|
||||
|
||||
onPullDownRefresh() {
|
||||
@@ -325,7 +327,7 @@
|
||||
if (res.code == 20000) {
|
||||
uni.setStorageSync('productCodeList', res.data.productCodeList)
|
||||
uni.setStorageSync('areaCodeList', res.data.areaCodeList)
|
||||
this.areaCodeList = uni.getStorageSync('areaCodeList')
|
||||
this.areaCodeList = uni.getStorageSync('areaCodeList');
|
||||
let channelCodes = []
|
||||
res.data.channelCodes.map(item => {
|
||||
channelCodes.push({
|
||||
@@ -380,6 +382,7 @@
|
||||
pageSize: 10,
|
||||
params: { //类型:Object 必有字段 备注:// 筛选对象
|
||||
clientBelong:'ZHONGPIN',
|
||||
targetApp:'SAAS',
|
||||
sort: "juli", //类型:String 必有字段 备注:// 智能排序 ( price:价格最低 juli:距离最近 ) 默认距离排序
|
||||
siteName: this.siteName,
|
||||
...uni.getStorageSync('location'),
|
||||
@@ -394,6 +397,7 @@
|
||||
cityCode: this.filterData.cityCode,
|
||||
areaCode: this.filterData.areaCode,
|
||||
distance: this.filterData.distance,
|
||||
juli:this.filterData.distance,
|
||||
comprehensiveSort: this.filterData.comprehensiveSort ? this.filterData.comprehensiveSort : 1
|
||||
}
|
||||
|
||||
|
||||
@@ -257,11 +257,11 @@
|
||||
})
|
||||
},
|
||||
getAmount() {
|
||||
accountApi.getTotalOilCardInfo().then(res => {
|
||||
if (res.code == 20000) {
|
||||
this.userTotal = res.data
|
||||
}
|
||||
})
|
||||
// accountApi.getTotalOilCardInfo().then(res => {
|
||||
// if (res.code == 20000) {
|
||||
// this.userTotal = res.data
|
||||
// }
|
||||
// })
|
||||
},
|
||||
copy() {
|
||||
uni.setClipboardData({
|
||||
|
||||
Reference in New Issue
Block a user