学习?学个屁 1 month ago
parent
commit
5687ccafeb
3 changed files with 5 additions and 5 deletions
  1. 1 1
      src/pages/index/venue/index.vue
  2. 2 2
      src/pages/mine/orderInfo/index.vue
  3. 2 2
      src/utils/http/index.ts

+ 1 - 1
src/pages/index/venue/index.vue

@@ -123,7 +123,7 @@ const current = ref(1)
 const searchLoading = ref(true)
 const tagsVal = ref()
 const get_placeList = (tagsVal) => {
-	http.post('/home/getPlaceList', { size: 10, current: current.value, venueType: String(tagsVal), longitude: cache.get('LON') || 0, latitude: cache.get('LAT') || 0 }).then((res) => {
+	http.post('/home/getPlaceList', { size: 10, current: current.value, venueType: String(tagsVal), longitude: cache.get('LON') || 0, latitude: cache.get('LAT') || 0 },{ loading: true }).then((res) => {
 		searchLoading.value = false
 		if (current.value == 1) {
 			dataList.value = res.result.records

+ 2 - 2
src/pages/mine/orderInfo/index.vue

@@ -81,8 +81,8 @@
 					@click.stop="RouterUtils.to_page(`/pages/index/writeComments/index?siteId=${item.addressSiteId}&orderId=${item.orderId}&siteName=${item.orderProInfoList[0].address}`)">
 					评价</view>
 				<!-- 已使用 -->
-				<view class="cancel-btn" v-if="selected == 4">申请退款</view>
-				<view class="pay-btn" v-if="selected == 4">凭证</view>
+				<view class="cancel-btn" v-if="selected == 4&&(item.orderProInfoList[0].type==1||item.orderProInfoList[0].type==2)&&(item.orderStatus==1)">申请退款</view>
+				<!-- <view class="pay-btn" v-if="selected == 4">凭证</view> -->
 			</view>
 			<!-- 待使用 -->
 			<view class="o-order-tips"

+ 2 - 2
src/utils/http/index.ts

@@ -178,10 +178,10 @@ export class HttpClient {
 
 // 创建实例
 export const http = new HttpClient({
-  // baseURL: 'http://192.168.0.217:8080/jeecg-boot/app',
+  baseURL: 'http://192.168.0.217:8080/jeecg-boot/app',
   // baseURL: 'http://192.168.1.166:8080/jeecg-boot/app',
   // baseURL: 'http://192.168.0.11:8080/jeecg-boot/app',
-  baseURL: 'https://api.qlapp.cn/jeecgboot/app', //生产
+  // baseURL: 'https://api.qlapp.cn/jeecgboot/app', //生产
   headers: {
     'Content-Type': 'application/json'
   }