添加调拨状态
This commit is contained in:
@@ -135,10 +135,21 @@ Page({
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
wx.previewImage({
|
||||
current:this.data.info.abnormal.imgs[0],
|
||||
urls:this.data.info.abnormal.imgs,
|
||||
})
|
||||
if(e.currentTarget.dataset.type=='abnormal'){
|
||||
wx.previewImage({
|
||||
current:this.data.info.abnormal.imgs[0],
|
||||
urls:this.data.info.abnormal.imgs,
|
||||
})
|
||||
}else if(e.currentTarget.dataset.type=='transport'){
|
||||
let transportImg = []
|
||||
this.data.info.transport.imgs.forEach(item => {
|
||||
transportImg.push(item.src)
|
||||
})
|
||||
wx.previewImage({
|
||||
current:transportImg[0],
|
||||
urls:transportImg,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
//确认发车/接车
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<view class="container">
|
||||
<view class="inner30">
|
||||
<view class="inner30 {{info.status==1?'pb200':'pb100'}}">
|
||||
<view class="relative bg-fff ulib-r10 box-shadow-000-10-10">
|
||||
<view class="relative inner40 pr180 bbs-1-eb">
|
||||
<view class="font-28">
|
||||
@@ -31,7 +31,7 @@
|
||||
<view class="font-32">报备异常</view>
|
||||
<view class="mt20 font-28 color-666" wx:if="{{info.abnormal.note}}">{{info.abnormal.note}}</view>
|
||||
<view class="mt20" wx:if="{{info.abnormal.imgs.length>0}}">
|
||||
<view class="img-200x180 relative" bindtap="previewImage">
|
||||
<view class="img-200x180 relative" bindtap="previewImage" data-type="abnormal">
|
||||
<view class="absolute box-center-middle font-28 color-fff z-index-1" wx:if="{{info.abnormal.imgs.length>1}}">{{info.abnormal.imgs.length}}张</view>
|
||||
<image class='img-200x180 ulib-r10' src='{{info.abnormal.imgs[0]}}' mode='aspectFill'></image>
|
||||
</view>
|
||||
@@ -39,7 +39,7 @@
|
||||
</view>
|
||||
<view class="pt0 inner40">
|
||||
<view class="font-32">请上传运输单</view>
|
||||
<view class="mt20">
|
||||
<view class="mt20" wx:if="{{info.status==1}}">
|
||||
<scroll-view class="space-nowrap" scroll-x="true">
|
||||
<block wx:for='{{transport}}' wx:for-item='transport' wx:for-index="index" wx:key='transport'>
|
||||
<view class="inline-block img-200x180 mr20 relative">
|
||||
@@ -57,13 +57,19 @@
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="mt20" wx:elif="{{info.transport.imgs.length>0}}">
|
||||
<view class="img-200x180 relative" bindtap="previewImage" data-type="transport">
|
||||
<view class="absolute box-center-middle font-28 color-fff z-index-1" wx:if="{{info.transport.imgs.length>1}}">{{info.transport.imgs.length}}张</view>
|
||||
<image class='img-200x180 ulib-r10' src='{{info.transport.imgs[0].src}}' mode='aspectFill'></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt30 font-24 color-999"><i class="mr5 iconfont icon-tishi"></i>请仔细检查车辆外观与随车物品是否正常,如有异常点击下方报备异常。</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
|
||||
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb" wx:if="{{info.status==1}}">
|
||||
<block wx:for="{{info.btn}}" wx:key='index'>
|
||||
<block wx:if="{{item.type==1}}">
|
||||
<button class="wp100 bds-2-36afa2 bg-fff mr20 pt10 pb10 text-center font-32 color-36afa2 ulib-r750" hover-class="btn-36afa2-hover" bindtap="optShowReport" data-id="{{item.id}}">{{item.title}}</button>
|
||||
|
||||
Reference in New Issue
Block a user