DESKTOP-70VPDLK\Administrator hai 1 ano
pai
achega
e4f32dca2c
Modificáronse 1 ficheiros con 12 adicións e 3 borrados
  1. 12 3
      page_task/credit_upload/credit_upload.vue

+ 12 - 3
page_task/credit_upload/credit_upload.vue

@@ -9,10 +9,10 @@
 					<text class="text-color-666 size-26">上传征信</text>
 				</view>
 				<view class="item-box" v-for="(item,index) in formData.credit_img">
-						<image style="width: 100%;height: 240rpx;" :src="item"
+						<image style="width: 100%;height: 240rpx;" :src="item" @click.stop="previewImage(index)"
 						mode="aspectFill">
 					</image>
-					<image class="wh-30 delete_iocn" src="/static/img/information/blank_delete.png" @click.stop="delImg(index)" mode=""></image>
+					<image class="wh-30 delete_iocn" src="/page_task/static/img/information/blank_delete.png" @click.stop="delImg(index)" mode=""></image>
 				</view>
 			</view>
 		</view>
@@ -57,6 +57,15 @@
 
     },
     methods: {
+      previewImage(index){
+        uni.previewImage({
+          urls: this.formData.credit_img,
+          current: index,
+          success: () => {
+
+          }
+        })
+      },
       // 完成
       onSubmit() {
 
@@ -103,4 +112,4 @@
 			}
 		}
 	}
-</style>
+</style>