浏览代码

修改拍照功能页面

oyq28 3 周之前
父节点
当前提交
0bd276582c
共有 1 个文件被更改,包括 11 次插入30 次删除
  1. 11 30
      pages/work/record/camera-scan-code.uvue

+ 11 - 30
pages/work/record/camera-scan-code.uvue

@@ -29,8 +29,8 @@
 				<view class="camera-scan-code-table-pair-label">
 					<text>已存图片(最多能存{{joinRecord.num}}张)</text>
 				</view>
-				<view class="camera-scan-code-table-pair-value">
-					<text class="txt">{{joinRecord.imgname}}</text>
+				<view class="camera-scan-code-table-pair-value" v-for="itemName in joinRecord.imgname.split(',')"   >					
+					<text class="txt">{{ itemName }}</text>
 				</view>
 			</view>
 
@@ -38,14 +38,7 @@
 				<view class="camera-scan-code-table-pair-label">
 					<text>待存图片</text>
 				</view>
-				<view class="camera-scan-code-table-pair-value">
-					<!--
-					<checkbox-group @change="checkboxChange">
-						<view v-for="(item, index) in data">
-							<checkbox :value="item.name" :checked="true"></checkbox>
-							<view>{{ dyImgName+"-"+(index+1)+".jpg"}}</view>		
-						</view>
-					</checkbox-group>-->
+				<view class="camera-scan-code-table-pair-value">					
 					<text class="txt">{{ dyImgName+"-"+minAvailableNumber+".jpg"}}</text>
 				</view>
 			</view>
@@ -211,22 +204,6 @@
 					});
 					return;
 				}
-				
-				/*
-				uni.saveImageToPhotosAlbum({
-					filePath: this.path,
-					success: () => {
-						uni.showToast({
-							title: "保存成功!",
-						});
-					},
-					fail: () => {
-						uni.showToast({
-							title: "保存失败",
-						});
-					},
-				}); */
-
 				let updateImgs = ''
 				let updateNames = ''
 				let updateStatus = ''
@@ -292,10 +269,13 @@
 						});
 						const newPath = `${uni.env.USER_DATA_PATH}/uploadImgs/${newImgName}`
 						this.renameFile(this.path, newPath)
-						/*
-						uni.reLaunch({
-							url: '/pages/record/camera-scan-code?path='+this.path+'&recordId='+this.recordId+'&num='+this.num
-						}); */
+						
+						uni.navigateTo({
+							url: `/pages/work/record/RecordList?photoitem=${this.joinRecord.photoitem}&num=${this.joinRecord.num}&pid=${this.joinRecord.pid}&senum=${this.joinRecord.senum}`,
+							// 修改动画方向为从左到右退回
+							animationType: 'slide-in-left', // 使用从左到右滑出的动画效果
+							animationDuration: 300 // 动画持续时间,单位ms
+						})
 					}
 				});
 			},
@@ -403,6 +383,7 @@
 
 	.camera-scan-code-table-pair-value {
 		flex-grow: 2;
+		flex-direction: column;
 	}
 
 	.camera-scan-code-table-pair-value .txt {