ycm 2 years ago
parent
commit
b3ac09f450

+ 6 - 0
pages/record/recorddetails/recorddetails.js

@@ -32,6 +32,12 @@ Page({
      */
     onShow: function () {
 
+    },
+    openpreview(e){
+        wx.previewImage({
+            current: e.currentTarget.dataset.url, // 当前显示图片的http链接
+            urls: e.currentTarget.dataset.urls || [] // 需要预览的图片http链接列表
+        })
     },
     goedit(){
       wx.navigateTo({

+ 2 - 2
pages/record/recorddetails/recorddetails.wxml

@@ -68,11 +68,11 @@
 <view class="item_four">
     <view class="title_view">分拣照片</view>
     <view>
-        <image src="{{item}}" wx:for="{{info.images}}" wx:key="index" class="item_four_image"></image>
+        <image src="{{item}}" wx:for="{{info.images}}" wx:key="index" class="item_four_image" catchtap="openpreview" data-url="{{item}}" data-urls="{{info.images}}"></image>
     </view>
     <view class="title_view">质检照片</view>
     <view>
-        <image src="{{item}}" wx:for="{{info.hand_images}}" wx:key="index" class="item_four_image"></image>
+        <image src="{{item}}" wx:for="{{info.hand_images}}" wx:key="index" class="item_four_image" catchtap="openpreview" data-url="{{item}}" data-urls="{{info.hand_images}}"></image>
     </view>
 </view>
 

+ 5 - 5
pages/tabber/home/index.js

@@ -24,11 +24,11 @@ Page({
                 url:"/pages/control/choice/choice"
 
             },
-            {
-                icon:'/image/home//icon_yichang.png',
-                url:"/pages/error/yichang/index",
-                tit:'异常单'
-            },
+            // {
+            //     icon:'/image/home//icon_yichang.png',
+            //     url:"/pages/error/yichang/index",
+            //     tit:'异常单'
+            // },
             {
                 icon:'/image/home/icon_yiwupandian.png',
                 tit:'衣物盘点',

+ 6 - 0
pages/tabber/order/see/see.js

@@ -37,6 +37,12 @@ Page({
     onShow(){
       this.getsorting();
     },
+    openpreview(e){
+        wx.previewImage({
+            current: e.currentTarget.dataset.url, // 当前显示图片的http链接
+            urls: e.currentTarget.dataset.urls || [] // 需要预览的图片http链接列表
+        })
+    },
     show(){
       this.getOrder();
         this.setData({

+ 2 - 2
pages/tabber/order/see/see.wxml

@@ -83,7 +83,7 @@
                 </view>
             <view class="boxs b-bottom flexs ju-b ">
              
-                <view wx:key="index" wx:for="{{item.images}}" wx:for-item="val" class="img">
+                <view wx:key="index" wx:for="{{item.images}}" wx:for-item="val" class="img" catchtap="openpreview" data-url="{{val}}" data-urls="{{item.images}}">
                     <image  src="{{val}}"></image>
                   
                 </view>
@@ -93,7 +93,7 @@
                 </view>
             <view class="boxs b-bottom flexs ju-b ">
              
-                <view wx:key="index" wx:for="{{item.after_thumbs}}" wx:for-item="val" class="img">
+                <view wx:key="index" wx:for="{{item.after_thumbs}}" wx:for-item="val" class="img" catchtap="openpreview" data-url="{{val}}" data-urls="{{item.after_thumbs}}">
                     <image  src="{{val}}"></image>
                   
                 </view>