1
0

3 Commitit 87af5ee28e ... d03022b0f8

Tekijä SHA1 Viesti Päivämäärä
  LiChengjin d03022b0f8 opt:暂时不显示客房超市图标 2 viikkoa sitten
  LiChengjin 58cee8363b opt:修改图片路径 2 viikkoa sitten
  LiChengjin 6e0002e2ed opt:修改config文件 2 viikkoa sitten
4 muutettua tiedostoa jossa 7 lisäystä ja 6 poistoa
  1. 2 1
      config.js
  2. 1 1
      pages/home/home.vue
  3. 2 2
      subpkg/extend/extend.vue
  4. 2 2
      subpkg_checkin/confirmOrder/confirmOrder.vue

+ 2 - 1
config.js

@@ -5,7 +5,7 @@ const PRO_ROOM_TYPE_PIC_URL = "https://pro.cloud.boyuantech.net/img"
 //测试
 const TEST_BASE_URL = "https://test.cloud.boyuantech.net/mp/api/v1"
 const TEST_IMG_BASE_URL = "https://test.cloud.boyuantech.net/img"
-const TEST_ROOM_TYPE_PIC_URL = "https://test.cloud.boyuantech.net/hotel-room-type-img/"
+const TEST_ROOM_TYPE_PIC_URL = "https://test.cloud.boyuantech.net/hotel-room-type-img"
 //本地
 const DEV_BASE_URL = "http://localhost:9041/api/v1"
 const DEV_IMG_BASE_URL = "https://pro.cloud.boyuantech.net/img"
@@ -21,6 +21,7 @@ const env = accountInfo.miniProgram.envVersion
 if (env === 'release') {
 	BASE_URL = PRO_BASE_URL
 	IMG_BASE_URL = PRO_IMG_BASE_URL
+	ROOM_TYPE_PIC_URL = PRO_ROOM_TYPE_PIC_URL
 } else {
 	// 生产环境
 	// BASE_URL = PRO_BASE_URL

+ 1 - 1
pages/home/home.vue

@@ -57,7 +57,7 @@
 					</view>
 					<view class="bottom--row-item__word">手机开门</view>
 				</view>
-				<view class="bottom--row-item" id="shop">
+				<view class="bottom--row-item" id="shop" v-if="false">
 					<view class="bottom--row-item__img">
 						<u-image src="/static/shop.png" width="118rpx" height="108rpx"></u-image>
 					</view>

+ 2 - 2
subpkg/extend/extend.vue

@@ -96,7 +96,7 @@
 		getDay
 	} from '../../utils/commonUtils.js'
 	import {
-		IMG_BASE_URL
+		ROOM_TYPE_PIC_URL
 	} from "../../config.js"
 	import moment from 'moment'
 	import {
@@ -301,7 +301,7 @@
 					let checkinInfo = res.data.data
 					// console.log(checkinInfo)
 					if (checkinInfo) {
-						this.roomTypePicPath = IMG_BASE_URL + '/' + checkinInfo.roomPicPath
+						this.roomTypePicPath = ROOM_TYPE_PIC_URL + '/' + checkinInfo.roomPicPath
 						this.roomInfo = checkinInfo.roomTypeName + checkinInfo.room
 						this.unitPrice = checkinInfo.unitPrice
 						this.breakfastNum = checkinInfo.breakfastNum

+ 2 - 2
subpkg_checkin/confirmOrder/confirmOrder.vue

@@ -116,7 +116,7 @@
 		getDay
 	} from '../../utils/commonUtils.js'
 	import {
-		IMG_BASE_URL
+		ROOM_TYPE_PIC_URL
 	} from "../../config.js"
 	import {
 		mapState,
@@ -529,7 +529,7 @@
 				hotelId: this.currentHotel.hotelId,
 				roomType: this.order.roomType
 			})
-			this.roomPicPath = IMG_BASE_URL + '/' + res.data.data.roomPicPath
+			this.roomPicPath = ROOM_TYPE_PIC_URL + '/' + res.data.data.roomPicPath
 			this.roomTypeName = res.data.data.roomTypeName
 			this.unitPrice = res.data.data.unitPrice
 			this.startDate = moment(new Date(this.order.startTime)).format('MM月DD日')