Ver Fonte

Merge branch 'v3' of http://git.jihengcc.cn/starfire/spark-sale into v3

zhangli há 2 anos atrás
pai
commit
5efb9656ff
2 ficheiros alterados com 6 adições e 4 exclusões
  1. 2 0
      config/api.js
  2. 4 4
      pagesMain/venueMore.vue

+ 2 - 0
config/api.js

@@ -34,6 +34,8 @@ module.exports = {
 	getNearVenueList: API_BASE + '/v2/sale/home/getVenueNearList',
 	getNearVenueList: API_BASE + '/v2/sale/home/getVenueNearList',
 	//  获取所有场馆列表
 	//  获取所有场馆列表
 	getAllVenueList: API_BASE + '/v2/sale/home/getVenueNearMoreList',
 	getAllVenueList: API_BASE + '/v2/sale/home/getVenueNearMoreList',
+	//  获取场馆列表
+	getSaleVenueList: API_BASE + '/v2/sale/center/getSaleVenueList',
 	//  获取所有场馆
 	//  获取所有场馆
 	getVenueListInfo: API_BASE + '/sgai/venue/get4ShortestVenue',
 	getVenueListInfo: API_BASE + '/sgai/venue/get4ShortestVenue',
 	//  获取场馆详情
 	//  获取场馆详情

+ 4 - 4
pagesMain/venueMore.vue

@@ -10,10 +10,10 @@
 					<view class="venue-name">{{item.name}}</view>
 					<view class="venue-name">{{item.name}}</view>
 				</view>
 				</view>
 				<view class="venue-content" slot="body">
 				<view class="venue-content" slot="body">
-					<view class="info-text">
+		<!-- 			<view class="info-text">
 						<u-icon name="car"></u-icon>
 						<u-icon name="car"></u-icon>
 						距您{{item.distance}}
 						距您{{item.distance}}
-					</view>
+					</view> -->
 					<view class="info-text">
 					<view class="info-text">
 						<u-icon name="map"></u-icon>
 						<u-icon name="map"></u-icon>
 						{{item.address}}
 						{{item.address}}
@@ -53,8 +53,8 @@
 			//  获取全部场馆
 			//  获取全部场馆
 			getAllVenue() {
 			getAllVenue() {
 				// 附件场馆
 				// 附件场馆
-				NET.request(API.getVenueList, uni.getStorageSync('locationData'), 'POST').then(res => {
-					this.venueList = res.data
+				NET.request(API.getSaleVenueList, {page:1,size:100}, 'POST').then(res => {
+					this.venueList = res.data.row
 				}).catch(error => {
 				}).catch(error => {
 					this.$refs.uTips.show({
 					this.$refs.uTips.show({
 						title: error.message,
 						title: error.message,