编辑查看大图
This commit is contained in:
@@ -188,6 +188,26 @@ Page({
|
||||
urls:end_mileage,
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='edit_transport'){
|
||||
let transportImg = []
|
||||
this.data.transport.forEach(item => {
|
||||
transportImg.push(item.src)
|
||||
})
|
||||
wx.previewImage({
|
||||
current:e.currentTarget.dataset.current,
|
||||
urls:transportImg,
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='edit_photos'){
|
||||
let photos = []
|
||||
this.data.photos.forEach(item => {
|
||||
photos.push(item.src)
|
||||
})
|
||||
wx.previewImage({
|
||||
current:e.currentTarget.dataset.current,
|
||||
urls:photos,
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<block wx:for='{{transport}}' wx:for-item='transport' wx:for-index="index" wx:key='transport'>
|
||||
<view class="inline-block img-200x180 mr20 relative">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-guanbi1 inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="delTransport" data-index="{{index}}" ></i>
|
||||
<image class='img-200x180 ulib-r10' src='{{transport.src}}' mode='aspectFill'></image>
|
||||
<image class='img-200x180 ulib-r10' src='{{transport.src}}' mode='aspectFill' bindtap="previewImage" data-type="edit_transport" data-current="{{transport.src}}"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:if="{{transport.length<10}}">
|
||||
@@ -119,7 +119,7 @@
|
||||
<block wx:for='{{photos}}' wx:for-item='photos' wx:for-index="index" wx:key='photo'>
|
||||
<view class="inline-block img-200x180 ml10 mr10 relative">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-guanbi1 inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="delPic" data-index="{{index}}" ></i>
|
||||
<image class='img-200x180 ulib-r10' src='{{photos.src}}' mode='aspectFill'></image>
|
||||
<image class='img-200x180 ulib-r10' src='{{photos.src}}' mode='aspectFill' bindtap="previewImage" data-type="edit_photos" data-current="{{photos.src}}"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:if="{{photos.length==0}}">
|
||||
@@ -192,7 +192,7 @@
|
||||
<block wx:for='{{photos}}' wx:for-item='photos' wx:for-index="index" wx:key='photo'>
|
||||
<view class="inline-block img-200x180 ml10 mr10 relative">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-guanbi1 inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="delPic" data-index="{{index}}" ></i>
|
||||
<image class='img-200x180 ulib-r10' src='{{photos.src}}' mode='aspectFill'></image>
|
||||
<image class='img-200x180 ulib-r10' src='{{photos.src}}' mode='aspectFill' bindtap="previewImage" data-type="edit_photos" data-current="{{photos.src}}"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:if="{{photos.length==0}}">
|
||||
|
||||
@@ -166,6 +166,21 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
if(e.currentTarget.dataset.type=='car_img'){
|
||||
let car_img = []
|
||||
this.data.car_img.forEach(item => {
|
||||
car_img.push(item.src)
|
||||
})
|
||||
wx.previewImage({
|
||||
current:e.currentTarget.dataset.current,
|
||||
urls:car_img,
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
//页面相关事件处理函数--监听用户下拉动作
|
||||
onPullDownRefresh(){
|
||||
this.getAppInventory()
|
||||
|
||||
@@ -22,11 +22,11 @@
|
||||
<view class="pl40 pr40 font-32">盘点信息</view>
|
||||
<view class="mt20 pl30">
|
||||
<block wx:for="{{car_img}}" wx:key='index'>
|
||||
<view class="inline-block ml10 mr10 text-center ulib-r10 overflowhidden" bindtap="chooseImg" data-index="{{index}}" wx:if="{{item.value}}">
|
||||
<view class="inline-block ml10 mr10 text-center ulib-r10 overflowhidden" wx:if="{{item.value}}">
|
||||
<view class="bg-f8 img-190x175 relative ulib-r10">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1"></i>
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="chooseImg" data-index="{{index}}"></i>
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<image class='img-190x175 ulib-r10' src='{{item.src}}' mode='aspectFill'></image>
|
||||
<image class='img-190x175 ulib-r10' src='{{item.src}}' mode='aspectFill' bindtap="previewImage" data-type="car_img" data-current="{{item.src}}"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt10 font-24 color-666">{{item.title}}</view>
|
||||
|
||||
@@ -702,14 +702,14 @@ Page({
|
||||
if(e.currentTarget.dataset.type=='bill_img'){
|
||||
let urls = [this.data.info.bill_img]
|
||||
wx.previewImage({
|
||||
current:e.currentTarget.dataset.img,
|
||||
current:e.currentTarget.dataset.current,
|
||||
urls,
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='bill_ck_img'){
|
||||
let urls = this.data.imgInfo.imgs.bill_ck_img
|
||||
wx.previewImage({
|
||||
current:e.currentTarget.dataset.img,
|
||||
current:e.currentTarget.dataset.current,
|
||||
urls,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
</view>
|
||||
<view hidden="{{!isShowCK}}">
|
||||
<block wx:for='{{imgInfo.imgs.bill_ck_img}}' wx:key='index'>
|
||||
<view class="mt10 mb10 "><image bindtap="previewImage" data-type="bill_ck_img" data-img="{{item}}" class='wp100' lazy-load="{{true}}" mode="widthFix" src="{{item}}"></image></view>
|
||||
<view class="mt10 mb10 "><image bindtap="previewImage" data-type="bill_ck_img" data-current="{{item}}" class='wp100' lazy-load="{{true}}" mode="widthFix" src="{{item}}"></image></view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
@@ -135,7 +135,7 @@
|
||||
<i class="absolute right-0 box-middle iconfont {{isShowBill?'icon-xuanze':'icon-gengduo'}} font-26 color-999"></i>
|
||||
</view>
|
||||
<view hidden="{{!isShowBill}}">
|
||||
<view class="mt10 mb10"><image bindtap="previewImage" data-type="bill_img" data-img="{{info.bill_img}}" class='wp100' lazy-load="{{true}}" mode="widthFix" src="{{info.bill_img}}"></image></view>
|
||||
<view class="mt10 mb10"><image bindtap="previewImage" data-type="bill_img" data-current="{{info.bill_img}}" class='wp100' lazy-load="{{true}}" mode="widthFix" src="{{info.bill_img}}"></image></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -461,4 +461,14 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
if(e.currentTarget.dataset.type=='business_licence'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.business_licence.img,
|
||||
urls:[this.data.imgInfo.imgs.business_licence.img],
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -3,18 +3,18 @@
|
||||
|
||||
<!-- <view class="mt40 font-32">营业执照</view> -->
|
||||
<view class="mt30 text-center">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="business_licence">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden">
|
||||
<block wx:if="{{business_licence.value}}">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4"></i>
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4" bindtap="chooseImg" data-type="business_licence"></i>
|
||||
<view class="absolute top-0 left-0 bottom-0 right-0 bg-f00-op50 z-index-3" wx:if="{{business_licence.err}}">
|
||||
<view class="absolute left-0 right-0 box-middle pl20 pr20 text-break font-22 color-fff"><i class="iconfont icon-jinggao"></i>{{business_licence.errmsg}}</view>
|
||||
</view>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{business_licence.img}}' mode='aspectFit'></image>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{business_licence.img}}' mode='aspectFit' bindtap="previewImage" data-type="business_licence"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="business_licence">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-fanmian font-60"></i>
|
||||
<view class="mt10 font-22">上传营业执照</view>
|
||||
|
||||
@@ -461,4 +461,20 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
if(e.currentTarget.dataset.type=='cardida'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.cardida.img,
|
||||
urls:[this.data.imgInfo.imgs.cardida.img],
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='cardidb'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.cardidb.img,
|
||||
urls:[this.data.imgInfo.imgs.cardidb.img],
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -3,18 +3,18 @@
|
||||
|
||||
<!-- <view class="mt40 font-32">身份证</view> -->
|
||||
<view class="fn-flex mt30 text-center">
|
||||
<view class="fn-flex-item relative mr10" bindtap="chooseImg" data-type="cardida">
|
||||
<view class="fn-flex-item relative mr10">
|
||||
<block wx:if="{{cardida.value}}">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4"></i>
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4" bindtap="chooseImg" data-type="cardida"></i>
|
||||
<view class="absolute top-0 left-0 bottom-0 right-0 bg-f00-op50 z-index-3" wx:if="{{cardida.err}}">
|
||||
<view class="absolute left-0 right-0 box-middle pl20 pr20 text-break font-22 color-fff"><i class="iconfont icon-jinggao"></i>{{cardida.errmsg}}</view>
|
||||
</view>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{cardida.img}}' mode='aspectFit'></image>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{cardida.img}}' mode='aspectFit' bindtap="previewImage" data-type="cardida"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="cardida">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-zhengmian font-60"></i>
|
||||
<view class="mt10 font-22">上传身份证正面</view>
|
||||
@@ -22,18 +22,18 @@
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="fn-flex-item relative ml10" bindtap="chooseImg" data-type="cardidb">
|
||||
<view class="fn-flex-item relative ml10">
|
||||
<block wx:if="{{cardidb.value}}">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4"></i>
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4" bindtap="chooseImg" data-type="cardidb"></i>
|
||||
<view class="absolute top-0 left-0 bottom-0 right-0 bg-f00-op50 z-index-3" wx:if="{{cardidb.err}}">
|
||||
<view class="absolute left-0 right-0 box-middle pl20 pr20 text-break font-22 color-fff"><i class="iconfont icon-jinggao"></i>{{cardidb.errmsg}}</view>
|
||||
</view>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{cardidb.img}}' mode='aspectFit'></image>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{cardidb.img}}' mode='aspectFit' bindtap="previewImage" data-type="cardidb"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="cardidb">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-fanmian font-60"></i>
|
||||
<view class="mt10 font-22">上传身份证背面</view>
|
||||
|
||||
@@ -84,4 +84,14 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
if(e.currentTarget.dataset.type=='delivery_ck_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.delivery_ck_img.img,
|
||||
urls:[this.data.imgInfo.imgs.delivery_ck_img.img],
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -3,15 +3,15 @@
|
||||
|
||||
<!-- <view class="mt40 font-32">营业执照</view> -->
|
||||
<view class="mt30 text-center">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="delivery_ck_img">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden">
|
||||
<block wx:if="{{delivery_ck_img.value}}">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{delivery_ck_img.img}}' mode='aspectFit'></image>
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4" bindtap="chooseImg" data-type="delivery_ck_img"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{delivery_ck_img.img}}' mode='aspectFit' bindtap="previewImage" data-type="delivery_ck_img"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="delivery_ck_img">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-fanmian font-60"></i>
|
||||
<view class="mt10 font-22">上传交付确认单</view>
|
||||
|
||||
@@ -335,14 +335,6 @@ Page({
|
||||
});
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
wx.previewImage({
|
||||
current:this.data.notify_file_obj.src,
|
||||
urls:[this.data.notify_file_obj.src],
|
||||
})
|
||||
},
|
||||
|
||||
//获取金融分期期数
|
||||
getAppFinanceNums(){
|
||||
_.apiQuery.getAppFinanceNums().then(res => {
|
||||
@@ -375,4 +367,20 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
if(e.currentTarget.dataset.type=='notify'){
|
||||
wx.previewImage({
|
||||
current:this.data.notify_file_obj.src,
|
||||
urls:[notify_file_obj.src],
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='lend'){
|
||||
wx.previewImage({
|
||||
current:this.data.lend_file_obj.src,
|
||||
urls:[this.data.lend_file_obj.src],
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -30,15 +30,15 @@
|
||||
<view class="relative">
|
||||
<view class="mt30 font-28">按揭通知函<text class="color-f9394d">*</text></view>
|
||||
<view class="mt30 text-center">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="notify" >
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden" >
|
||||
<block wx:if="{{notify_file_obj.value}}">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{notify_file_obj.src}}' mode='aspectFit'></image>
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4" bindtap="chooseImg" data-type="notify"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{notify_file_obj.src}}' mode='aspectFit' bindtap="previewImage" data-type="notify"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="notify">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-fanmian font-60"></i>
|
||||
<view class="mt10 font-22">上传按揭通知函</view>
|
||||
@@ -61,7 +61,7 @@
|
||||
<view class="relative">
|
||||
<view class="mt30 font-28">按揭通知函</view>
|
||||
<view class="mt30 text-center">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden" bindtap="previewImage">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden" bindtap="previewImage" data-type="notify">
|
||||
<block wx:if="{{notify_file_obj.value}}">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden">
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{notify_file_obj.src}}' mode='aspectFit'></image>
|
||||
@@ -74,15 +74,15 @@
|
||||
<view class="relative">
|
||||
<view class="mt30 font-28">放款通知函</view>
|
||||
<view class="mt30 text-center">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="lend">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden">
|
||||
<block wx:if="{{lend_file_obj.value}}">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{lend_file_obj.src}}' mode='aspectFit'></image>
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4" bindtap="chooseImg" data-type="lend"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{lend_file_obj.src}}' mode='aspectFit' bindtap="previewImage" data-type="lend"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="lend">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-fanmian font-60"></i>
|
||||
<view class="mt10 font-22">上传放款通知函</view>
|
||||
|
||||
@@ -346,4 +346,30 @@ Page({
|
||||
});
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
if(e.currentTarget.dataset.type=='insurance_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.insurance_img.img,
|
||||
urls:[this.data.imgInfo.imgs.insurance_img.img],
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='business_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.business_img.img,
|
||||
urls:[this.data.imgInfo.imgs.business_img.img],
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='ins_img'){
|
||||
let img = []
|
||||
this.data.imgInfo.imgs.ins_img.forEach(item => {
|
||||
img.push(item.img)
|
||||
})
|
||||
wx.previewImage({
|
||||
current:e.currentTarget.dataset.current,
|
||||
urls:img,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -5,15 +5,15 @@
|
||||
|
||||
<view class="font-28 text-center text-bold">交强险</view>
|
||||
<view class="mt30 pb30 text-center">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="insurance_img">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden">
|
||||
<block wx:if="{{insurance_img.value}}">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{insurance_img.img}}' mode='aspectFit'></image>
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="chooseImg" data-type="insurance_img"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{insurance_img.img}}' mode='aspectFit' bindtap="previewImage" data-type="insurance_img"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="insurance_img">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-paizhao font-48"></i>
|
||||
<view class="mt10 font-22">上传交强险</view>
|
||||
@@ -68,15 +68,15 @@
|
||||
<view class="mt50 pl40 pr40 pt40 relative ulib-r10 box-shadow-000-10-10 overflowhidden">
|
||||
<view class="font-28 text-center text-bold">商业险</view>
|
||||
<view class="mt30 pb30 text-center">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="business_img">
|
||||
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden">
|
||||
<block wx:if="{{business_img.value}}">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{business_img.img}}' mode='aspectFit'></image>
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="chooseImg" data-type="business_img"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{business_img.img}}' mode='aspectFit' bindtap="previewImage" data-type="business_img"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="business_img">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-paizhao font-48"></i>
|
||||
<view class="mt10 font-22">上传商业险</view>
|
||||
@@ -136,7 +136,7 @@
|
||||
<block wx:for='{{ins_img}}' wx:for-item='ins_img' wx:key='index'>
|
||||
<view class="inline-block bg-f8 img-300x200 ml10 mr10 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-guanbi1 inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="delImg" data-type="ins_img" data-index="{{index}}" ></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{ins_img.img}}' mode='aspectFit'></image>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{ins_img.img}}' mode='aspectFit' bindtap="previewImage" data-type="ins_img" data-current="{{ins_img.img}}"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:if="{{ins_img.length<10}}">
|
||||
|
||||
@@ -461,4 +461,20 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
if(e.currentTarget.dataset.type=='register_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.register_img.img,
|
||||
urls:[this.data.imgInfo.imgs.register_img.img],
|
||||
})
|
||||
}
|
||||
else if(e.currentTarget.dataset.type=='car_img'){
|
||||
wx.previewImage({
|
||||
current:this.data.imgInfo.imgs.car_img.img,
|
||||
urls:[this.data.imgInfo.imgs.car_img.img],
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -3,15 +3,15 @@
|
||||
|
||||
<!-- <view class="mt40 font-32">车辆证件</view> -->
|
||||
<view class="fn-flex mt30 text-center">
|
||||
<view class="fn-flex-item relative mr10" bindtap="chooseImg" data-type="register_img">
|
||||
<view class="fn-flex-item relative mr10">
|
||||
<block wx:if="{{register_img.value}}">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{register_img.img}}' mode='aspectFit'></image>
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="chooseImg" data-type="register_img"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{register_img.img}}' mode='aspectFit' bindtap="previewImage" data-type="register_img"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="register_img">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-paizhao font-48"></i>
|
||||
<view class="mt10 font-22">上传登记证</view>
|
||||
@@ -19,15 +19,15 @@
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="fn-flex-item relative ml10" bindtap="chooseImg" data-type="car_img">
|
||||
<view class="fn-flex-item relative ml10">
|
||||
<block wx:if="{{car_img.value}}">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{car_img.img}}' mode='aspectFit'></image>
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="chooseImg" data-type="car_img"></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{car_img.img}}' mode='aspectFit' bindtap="previewImage" data-type="car_img"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
|
||||
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="car_img">
|
||||
<view class="absolute left-0 right-0 box-middle color-ccc">
|
||||
<i class="iconfont icon-paizhao font-48"></i>
|
||||
<view class="mt10 font-22">上传行驶证</view>
|
||||
|
||||
@@ -461,4 +461,18 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
if(e.currentTarget.dataset.type=='other_img'){
|
||||
let img = []
|
||||
this.data.imgInfo.imgs.other_img.forEach(item => {
|
||||
img.push(item.img)
|
||||
})
|
||||
wx.previewImage({
|
||||
current:e.currentTarget.dataset.current,
|
||||
urls:img,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -7,7 +7,7 @@
|
||||
<block wx:for='{{other_img}}' wx:for-item='other_img' wx:key='index'>
|
||||
<view class="inline-block bg-f8 img-300x200 ml15 mr15 relative ulib-r10 overflowhidden">
|
||||
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-guanbi1 inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="delImg" data-type="other_img" data-index="{{index}}" ></i>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{other_img.img}}' mode='aspectFit'></image>
|
||||
<image class='block wp100 img-h-200 ulib-r10' src='{{other_img.img}}' mode='aspectFit' bindtap="previewImage" data-type="other_img" data-current="{{other_img.img}}"></image>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:if="{{other_img.length<1}}">
|
||||
|
||||
Reference in New Issue
Block a user