Browse Source

图片压缩

twt 2 years ago
parent
commit
7cd388dc9a
4 changed files with 8 additions and 3 deletions
  1. 1 0
      pages/addjk/choice.vue
  2. 2 0
      pages/addjk/eadit.vue
  3. 1 1
      pages/europeOrder/eorderDetail.vue
  4. 4 2
      utils/request.js

+ 1 - 0
pages/addjk/choice.vue

@@ -105,6 +105,7 @@
 			   uni.chooseImage({
 			   	sourceType: ['album','camera'],
 			   	count:1, 
+				sizeType:['compressed'],
 			   	success: (chooseImageRes) => {
 			   		const tempFilePaths = chooseImageRes.tempFilePaths;
 			   		that.file=tempFilePaths[0]

+ 2 - 0
pages/addjk/eadit.vue

@@ -289,6 +289,7 @@
 		  	uni.chooseImage({
 				sourceType: ['album','camera'],
 				count:1, 
+				sizeType:['compressed'],
 				success: (chooseImageRes) => {
 					const tempFilePaths = chooseImageRes.tempFilePaths;
 					that.file=tempFilePaths[0]
@@ -437,6 +438,7 @@
 			   uni.chooseImage({
 				sourceType: ['album','camera'],
 				count:9, 
+				sizeType:['compressed'],
 				success: (chooseImageRes) => {
 					const tempFilePaths = chooseImageRes.tempFilePaths;
 					that.file=tempFilePaths[0]

+ 1 - 1
pages/europeOrder/eorderDetail.vue

@@ -57,7 +57,7 @@
 		 			   <view class="timeLeft">
 		 				   <span v-if="orderData.sheetState==1||orderData.sheetState==2||orderData.sheetState==0">预约到店:{{orderData.orderTime}}</span>
 						   <span v-else>服务时间:{{orderData.serviceTime}}</span>
-		 				   <image v-if="orderData.sheetState==2&iOSInfo.indexOf('P003')!=-1" src="../../static/img/icon_edit.png"   mode="" class="timeEditImg" @click="timeShowClick"></image>
+		 				   <image v-if="orderData.sheetState==2&&iOSInfo.indexOf('P003')!=-1" src="../../static/img/icon_edit.png"   mode="" class="timeEditImg" @click="timeShowClick"></image>
 		 			   </view>
 		 			<!--   <view class="timeRight" @click="qrcodeClick">订单码</view> -->
 		 		   </view>

+ 4 - 2
utils/request.js

@@ -1,9 +1,11 @@
 //测试地址
-const baseUrl = 'http://api.dms.66km.com.cn/'
+//const baseUrl = 'http://api.dms.66km.com.cn/'
 //const baseUrl = 'http://192.168.0.124:20187/'
 //const baseUrl = 'http://syadmin.66km.com/'
+//正式地址-66
 //const baseUrl = 'http://apidms.66km.com/'
-//正式地址
+//欧洲维修
+const baseUrl = 'https://crm.eurorepar.cn/'
 import $store from '../store'
 
 const http = (url = '', date = {}, type = 'POST', header = {