twt 2 gadi atpakaļ
vecāks
revīzija
e8e290bd73
3 mainītis faili ar 26 papildinājumiem un 6 dzēšanām
  1. 1 1
      pages/index/confirmYuyue.vue
  2. 4 1
      pages/index/index.vue
  3. 21 4
      pages/user/reportUni.vue

+ 1 - 1
pages/index/confirmYuyue.vue

@@ -140,7 +140,7 @@
 						if(res.code==0){
 							uni.showModal({
 							    title: '提示',
-							    content: '预约成功',
+							    content: '预约订单提交成功',
 								confirmText:'返回首页',
 								cancelText:'查看订单',
 							    success: function (res) {

+ 4 - 1
pages/index/index.vue

@@ -999,7 +999,10 @@
 				  })
 			 }
 			 
-		}
+		},
+	   onShareAppMessage(){
+		   
+	   }
 	}
 </script>
 

+ 21 - 4
pages/user/reportUni.vue

@@ -176,8 +176,7 @@
 									<view class="image-list">
 										<view class="image-list-item" v-for="(file,index) in item.photoPath"
 											:key="file.id">
-											<img :src="file" v-preview="file" :alt="`查看图片${index+1}`"
-												preview-title-enable="true" preview-nav-enable="true" />
+											<img mode='aspectFit' :src="file"  @click="sphotos(item.photoPath,index)" class="image-list-item-img"/>
 										</view>
 									</view>
 
@@ -257,6 +256,21 @@
 
 		},
 		methods: {
+			sphotos(arr,index){
+				uni.previewImage({
+					urls: arr,
+					current: index,
+					longPressActions: {
+						itemList: ['发送给朋友', '保存图片', '收藏'],
+						success: function(data) {
+							console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
+						},
+						fail: function(err) {
+							console.log(err.errMsg);
+						}
+					}
+				});
+			},
 			call() {
 				uni.makePhoneCall({
 					phoneNumber: this.detailData.mobilePhone
@@ -366,10 +380,13 @@
 		vertical-align: top;
 		position: relative;
 		display: inline-block;
-		width: 33%;
+		width: 25%;
 		margin: 4rpx auto;
 	}
-
+    .image-list-item  .image-list-item-img{
+		width: 160rpx;
+		height: 160rpx;
+	}
 	.remove {
 		position: absolute;
 		text-align: center;