|
|
|
@ -6,52 +6,14 @@ |
|
|
|
|
</view> |
|
|
|
|
<slFilter :independence="true" :color="titleColor" :themeColor="themeColor" :menuList.sync="menuList" |
|
|
|
|
@result="result"></slFilter> |
|
|
|
|
<view class="width90 height100p backcorfff border-r mart10" @click="goDetails"> |
|
|
|
|
<image mode="widthFix" src="../../../static/img/noorder.png" class="recontleft flleft mart10 border-r"> |
|
|
|
|
<view class="width90 height100p backcorfff border-r mart10" v-for="(item,index) in refuelList" :key="index" @click="goDetails"> |
|
|
|
|
<image mode="widthFix" :src="item.store_logo" class="recontleft flleft mart10 border-r"> |
|
|
|
|
</image> |
|
|
|
|
<view class="recontright"> |
|
|
|
|
<view class="text1 width100 font15 fontwig6 paddtop10">贵州花冠中石油燃气加油站</view> |
|
|
|
|
<view class="text1 width100 font15 fontwig6 paddtop10">{{item.store_name}}</view> |
|
|
|
|
<view class="width100 mart10 height22"> |
|
|
|
|
<view class="width70 flleft text1 font13 fcor999"> |
|
|
|
|
花冠路贵惠大道桐荫26号 |
|
|
|
|
</view> |
|
|
|
|
<view class="width30 flright font13 fcor666 fotct"> |
|
|
|
|
<image mode="widthFix" src="../../../static/img/dh.png" style="width: 10px;"></image>1.9km |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="font14 width100 fcoreb5 mart5 height22"> |
|
|
|
|
<text class="font18 fontwig6">6.40</text>起<text class="fcor999 margle">油站价¥6.88</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="width90 height100p backcorfff border-r mart10"> |
|
|
|
|
<image mode="widthFix" src="../../../static/img/noorder.png" class="recontleft flleft mart10 border-r"> |
|
|
|
|
</image> |
|
|
|
|
<view class="recontright"> |
|
|
|
|
<view class="text1 width100 font15 fontwig6 paddtop10">贵州花冠中石油燃气加油站</view> |
|
|
|
|
<view class="width100 mart10 height22"> |
|
|
|
|
<view class="width70 flleft text1 font13 fcor999"> |
|
|
|
|
花冠路贵惠大道桐荫26号 |
|
|
|
|
</view> |
|
|
|
|
<view class="width30 flright font13 fcor666 fotct"> |
|
|
|
|
<image mode="widthFix" src="../../../static/img/dh.png" style="width: 10px;"></image>1.9km |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="font14 width100 fcoreb5 mart5 height22"> |
|
|
|
|
<text class="font18 fontwig6">6.40</text>起<text class="fcor999 margle">油站价¥6.88</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="width90 height100p backcorfff border-r mart10"> |
|
|
|
|
<image mode="widthFix" src="../../../static/img/noorder.png" class="recontleft flleft mart10 border-r"> |
|
|
|
|
</image> |
|
|
|
|
<view class="recontright"> |
|
|
|
|
<view class="text1 width100 font15 fontwig6 paddtop10">贵州花冠中石油燃气加油站</view> |
|
|
|
|
<view class="width100 mart10 height22"> |
|
|
|
|
<view class="width70 flleft text1 font13 fcor999"> |
|
|
|
|
花冠路贵惠大道桐荫26号 |
|
|
|
|
{{item.address}} |
|
|
|
|
</view> |
|
|
|
|
<view class="width30 flright font13 fcor666 fotct"> |
|
|
|
|
<image mode="widthFix" src="../../../static/img/dh.png" style="width: 10px;"></image>1.9km |
|
|
|
@ -67,6 +29,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import {getGasStoreList} from '../../../Utils/Api.js'; |
|
|
|
|
import slFilter from '@/components/sl-filter/sl-filter.vue'; |
|
|
|
|
import uSearchBar from '../../../components/uni-search-bar/components/uni-search-bar/uni-search-bar.vue'; |
|
|
|
|
export default { |
|
|
|
@ -173,13 +136,51 @@ |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
], |
|
|
|
|
refuelList: [], |
|
|
|
|
pageNum: 1, |
|
|
|
|
pageSize: 10, |
|
|
|
|
isNoMoreData: false, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad() { |
|
|
|
|
|
|
|
|
|
this.getGasStoreList(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//查询列表 |
|
|
|
|
getGasStoreList() { |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: '加载中...' |
|
|
|
|
}) |
|
|
|
|
if (this.isNoMoreData) { |
|
|
|
|
uni.hideLoading() |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
let pagenum = this.pageNum; |
|
|
|
|
let params = { |
|
|
|
|
distance: '25', |
|
|
|
|
regionId: '110000', |
|
|
|
|
oilNoName: '92#', |
|
|
|
|
longitude: "116.881602", |
|
|
|
|
latitude: '39.912496', |
|
|
|
|
pageNum: pagenum, |
|
|
|
|
pageSize: this.pageSize |
|
|
|
|
} |
|
|
|
|
getGasStoreList(params).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true; |
|
|
|
|
if (res.return_data.total == (this.pageNum * this.pageSize)) { |
|
|
|
|
this.isNoMoreData = true; |
|
|
|
|
} |
|
|
|
|
this.refuelList = this.refuelList.concat(res.return_data.list); |
|
|
|
|
this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum; |
|
|
|
|
} else { |
|
|
|
|
this.refuelList = []; |
|
|
|
|
uni.hideLoading() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//跳转详情 |
|
|
|
|
goDetails() { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|