Browse Source

上传照片bug修复

xiaoxin 2 years ago
parent
commit
89db890cf0
2 changed files with 4 additions and 4 deletions
  1. 3 3
      pagesRepairs/repairRecord/repairRecord.vue
  2. 1 1
      pagesRepairs/repairs/repairs.vue

+ 3 - 3
pagesRepairs/repairRecord/repairRecord.vue

@@ -324,11 +324,11 @@ export default {
 				//原图的路径
 				let imagePath = item.path
 				//大小限制1024kb
-				let limitSize = 1024
+				let limitSize = 1024 * 3
 				//初始绘画区域是画布自身的宽度也就是屏幕宽度
 				let drawWidth = uni.getSystemInfoSync().windowWidth
-
-				getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, (resPath) => {
+				let that = this
+				getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, that, (resPath) => {
 					uni.showLoading({
 						title: '上传中'
 					})

+ 1 - 1
pagesRepairs/repairs/repairs.vue

@@ -274,7 +274,7 @@ export default {
 								url: '/repairRecord/insertRepairRecord',
 								method: 'post',
 								data: {
-									// 报修区域ID
+									// 报修区域
 									areaId: this.repairsArea,
 									// 详细地址
 									address: this.repairsAddress,