合格证,发票展示修改
This commit is contained in:
@@ -18,6 +18,8 @@ Page({
|
||||
register_img:{},//登记证照片
|
||||
ins_img:[],//保险照片
|
||||
other_img:[],//交车合照
|
||||
isShowCK:false,
|
||||
isShowBill:false,
|
||||
},
|
||||
onLoad: function (options) {
|
||||
for (let key in options) {
|
||||
@@ -693,7 +695,13 @@ Page({
|
||||
previewImage: function (e) {
|
||||
if(e.currentTarget.dataset.type=='bill_img'){
|
||||
let urls = [this.data.info.bill_img]
|
||||
urls = urls.concat(this.data.imgInfo.imgs.bill_ck_img),
|
||||
wx.previewImage({
|
||||
current:e.currentTarget.dataset.img,
|
||||
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,
|
||||
urls,
|
||||
@@ -802,6 +810,20 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//显示隐藏合格证
|
||||
optShowCK(){
|
||||
this.setData({
|
||||
isShowCK:!this.data.isShowCK,
|
||||
})
|
||||
},
|
||||
|
||||
//显示隐藏合格证
|
||||
optShowBill(){
|
||||
this.setData({
|
||||
isShowBill:!this.data.isShowBill,
|
||||
})
|
||||
},
|
||||
|
||||
//删除订单
|
||||
putAppCusorderV2Status(){
|
||||
let that = this
|
||||
|
||||
@@ -114,13 +114,28 @@
|
||||
<view class="relative bbs-1-eb pt30 pb30 text-right font-24 color-666" wx:if="{{info.inten_money}}">已付意向金<text class="pl5 pr5 color-f9394d">{{info.inten_money}}</text>元</view>
|
||||
</view>
|
||||
|
||||
<!--开票信息展示-->
|
||||
<view class="pl30 pr30" wx:if="{{info.bill_img}}">
|
||||
<view class="mt40 font-32">开票信息</view>
|
||||
<view class="mt20"><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>
|
||||
<block wx:for='{{imgInfo.imgs.bill_ck_img}}' wx:key='index'>
|
||||
<view class="mt20"><image bindtap="previewImage" data-type="bill_img" data-img="{{item}}" class='wp100' lazy-load="{{true}}" mode="widthFix" src="{{item}}"></image></view>
|
||||
</block>
|
||||
<!--合格证,发票展示-->
|
||||
<view class="pl30 pr30">
|
||||
<view class="bbs-1-eb" wx:if="{{imgInfo.imgs.bill_ck_img.length>0}}">
|
||||
<view class="relative pt30 pb30" bindtap="optShowCK">
|
||||
<text class="font-32">合格证</text>
|
||||
<i class="absolute right-0 box-middle iconfont ml10 {{isShowCK?'icon-xuanze':'icon-gengduo'}} font-26 color-999"></i>
|
||||
</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>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bbs-1-eb" wx:if="{{info.bill_img}}">
|
||||
<view class="relative pt30 pb30" bindtap="optShowBill">
|
||||
<text class="font-32">发票</text>
|
||||
<i class="absolute right-0 box-middle iconfont ml10 {{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>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!--图片-->
|
||||
|
||||
Reference in New Issue
Block a user