上传资料

This commit is contained in:
老叶
2021-12-17 14:35:19 +08:00
parent dcbb8311a4
commit 5017067902
6 changed files with 568 additions and 265 deletions
+2
View File
@@ -17,7 +17,9 @@
.img-160x160{width:160rpx;height:160rpx;box-sizing:border-box;}
.img-200x180{width:200rpx;height:180rpx;box-sizing:border-box;}
.img-208x170{width:208rpx;height:170rpx;box-sizing:border-box;}
.img-220x200{width:220rpx;height:200rpx;box-sizing:border-box;}
.img-250x150{width:250rpx;height:150rpx;box-sizing:border-box;}
.img-300x200{width:300rpx;height:200rpx;box-sizing:border-box;}
.img-250x250{width:250rpx;height:250rpx;box-sizing:border-box;}
.img-250x445{width:250rpx;height:445rpx;box-sizing:border-box;}
.img-750x250{width:750rpx;height:250rpx;box-sizing:border-box;}
File diff suppressed because one or more lines are too long
+2
View File
@@ -95,6 +95,8 @@ api = {
appTransfer:'app/transfer', //调拨详情 /确认发车/接车 /报备异常
appTransferRemind:'app/transfer/remind', //调拨提醒
appCusorderCdata:'app/cusorder/cdata', //上传资料
}
//远程图片存储地址
+7
View File
@@ -607,4 +607,11 @@ apiQuery.getAppTransferRemind = function (params) {
})
}
//上传资料
apiQuery.putAppCusorderCdata = function (params) {
return new Promise(function (resolve, reject) {
HttpRequest(false, Config.api.appCusorderCdata, 2, params, "PUT", resolve, reject)
})
}
export default apiQuery;
+286 -42
View File
@@ -46,6 +46,11 @@ Page({
carToolList:[],//随车随车工具选项
ckcarTool:[],//随车工具选中内容
nextCode:false,
ins_img:[],
register_img:{},
car_img:{},
},
onLoad: function (options) {
for (let key in options) {
@@ -85,6 +90,14 @@ Page({
ckcarTool:res.data.ckcar_data.tool,//随车工具选中内容
})
if(res.data.agent_status == 1){
this.setData({
ins_img:res.data.agent_data.ins_img?res.data.agent_data.ins_img:[],
register_img:res.data.agent_data.register_img.value?res.data.agent_data.register_img:{},
car_img:res.data.agent_data.car_img.value?res.data.agent_data.car_img:{},
})
}
this.getAppLoan()
if(!this.data.isChangePayway){
this.getAppServicesPackage()
@@ -495,6 +508,13 @@ Page({
})
}
//有ID更新,没ID上传
if(that.data.info.bill_data.id){
that.putAppIdcard()
}else{
that.postAppIdcard()
}
}
},
@@ -511,35 +531,271 @@ Page({
})
},
//代办选择图片
agentUpload(e) {
let that = this
if(e.currentTarget.dataset.type=='ins'){
wx.chooseImage({
count: 10 - this.data.ins_img.length, //
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res1) {
wx.showLoading({
title: '图片上传中',
})
let ins_img=that.data.ins_img
for (let i = 0; i < res1.tempFilePaths.length; i++) {
//上传图片
wx.uploadFile({
url:_.config.api.upImg,
filePath:res1.tempFilePaths[i],
name: 'img',
formData: {
'app': 'liche'
},
success: (resp) => {
resp.data = JSON.parse(resp.data);
if (resp.data.code == 200) {
let imgdata = resp.data
let list = []
list.push({
value:imgdata.data.url,
src:imgdata.data.full_url,
})
ins_img=ins_img.concat(list)
if(i+1==res1.tempFilePaths.length){
setTimeout(function () {
let params = {};
params['id'] = that.data.id;
params['type'] = 0;
let img = []
ins_img.forEach(item => {
img.push(item.value)
})
params['img'] = img;
_.apiQuery.putAppCusorderCdata(params).then(res => {
wx.hideLoading();
that.setData({
ins_img,
})
})
}, 500);
}
}
},
})
}
},
fail: res => {
wx.showToast({
title: '文件选择失败',
icon: 'none',
duration: 2000
})
}
})
}else if(e.currentTarget.dataset.type=='register'){
wx.chooseImage({
count: 1, //
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res1) {
wx.showLoading({
title: '图片上传中',
})
//上传图片
wx.uploadFile({
url:_.config.api.upImg,
filePath:res1.tempFilePaths[0],
name: 'img',
formData: {
'app': 'liche'
},
success: (resp) => {
resp.data = JSON.parse(resp.data);
if (resp.data.code == 200) {
let register_img = {
value:resp.data.data.url,
src:resp.data.data.full_url,
}
let params = {};
params['id'] = that.data.id;
params['type'] = 1;
params['img'] = [register_img.value];
_.apiQuery.putAppCusorderCdata(params).then(res => {
wx.hideLoading();
that.setData({
register_img,
})
})
}
},
})
},
fail: res => {
wx.showToast({
title: '文件选择失败',
icon: 'none',
duration: 2000
})
}
})
}else if(e.currentTarget.dataset.type=='car'){
wx.chooseImage({
count: 1, //
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res1) {
wx.showLoading({
title: '图片上传中',
})
//上传图片
wx.uploadFile({
url:_.config.api.upImg,
filePath:res1.tempFilePaths[0],
name: 'img',
formData: {
'app': 'liche'
},
success: (resp) => {
resp.data = JSON.parse(resp.data);
if (resp.data.code == 200) {
let car_img = {
value:resp.data.data.url,
src:resp.data.data.full_url,
}
let params = {};
params['id'] = that.data.id;
params['type'] = 1;
params['img'] = [car_img.value];
_.apiQuery.putAppCusorderCdata(params).then(res => {
wx.hideLoading();
that.setData({
car_img,
})
})
}
},
})
},
fail: res => {
wx.showToast({
title: '文件选择失败',
icon: 'none',
duration: 2000
})
}
})
}
},
//上传资料
putAppCusorderCdata(type){
let params = {};
params['id'] = this.data.id;
if(type=='ins'){
params['type'] = 0;
let img = []
this.data.ins_img.forEach(item => {
img.push(item.value)
})
params['img'] = img;
}
_.apiQuery.putAppCusorderCdata(params).then(res => {
})
},
// 编辑页面删除图片
delAgent(e){
if(e.currentTarget.dataset.type=='ins'){
let ins_img = this.data.ins_img
ins_img.splice(e.currentTarget.dataset.index, 1)
let params = {};
params['id'] = this.data.id;
params['type'] = 0;
let img = []
ins_img.forEach(item => {
img.push(item.value)
})
params['img'] = img;
_.apiQuery.putAppCusorderCdata(params).then(res => {
this.setData({
ins_img,
})
})
}else if(e.currentTarget.dataset.type=='register'){
let params = {};
params['id'] = this.data.id;
params['type'] = 1;
params['img'] = [];
_.apiQuery.putAppCusorderCdata(params).then(res => {
this.setData({
register_img:{},
})
})
}else if(e.currentTarget.dataset.type=='car'){
let params = {};
params['id'] = this.data.id;
params['type'] = 2;
params['img'] = [];
_.apiQuery.putAppCusorderCdata(params).then(res => {
this.setData({
car_img:{},
})
})
}
},
//查看图片
previewAgent:function(e) {
if(e.currentTarget.dataset.type=='ins'){
let img = []
this.data.info.agent_data.ins_img.forEach(item => {
img.push(item.src)
})
wx.previewImage({
current:this.data.info.agent_data.ins_img[e.currentTarget.dataset.index].src,
urls:img,
})
}else if(e.currentTarget.dataset.type=='register'){
wx.previewImage({
current:this.data.info.agent_data.register_img.src,
urls:[this.data.info.agent_data.register_img.src],
})
}else if(e.currentTarget.dataset.type=='car'){
wx.previewImage({
current:this.data.info.agent_data.car_img.src,
urls:[this.data.info.agent_data.car_img.src],
})
}
},
//创建申请开票信息
postAppIdcard(){
let that = this
let params = {};
params['oid'] = that.data.id;
if(that.data.info.main_type == 0){
if (!that.data.frontUrl.url || !that.data.caridErr[0].caridA){
wx.showToast({
title: '请上传身份证正面照',
icon: 'none'
})
return
}else if(!that.data.backUrl.url || !that.data.caridErr[1].caridB){
wx.showToast({
title: '请上传身份证背面照',
icon: 'none'
})
return
}
if(that.data.frontUrl.url){
params['cardidA'] = that.data.frontUrl.url;
}
if(that.data.backUrl.url){
params['cardidB'] = that.data.backUrl.url;
} else if(that.data.info.main_type == 1){
if (!that.data.businessUrl.url || !that.data.businessErr[0].business_licence){
wx.showToast({
title: '请上传营业执照',
icon: 'none'
})
return
}
}
if(that.data.businessUrl.url){
params['business_licence'] = that.data.businessUrl.url;
}
that.setData({
@@ -579,27 +835,15 @@ Page({
let that = this
let params = {};
params['id'] = that.data.info.bill_data.id;
if(that.data.info.main_type == 0){
if (!that.data.frontUrl.url&&!that.data.backUrl.url) {
wx.showToast({
title: '请上传新照片',
icon: 'none'
})
return
}
params['cardidA'] = that.data.frontUrl.url || that.data.info.bill_data.carid_a_path;
params['cardidB'] = that.data.backUrl.url || that.data.info.bill_data.carid_b_path;
} else if(that.data.info.main_type == 1){
if (!that.data.businessUrl.url) {
wx.showToast({
title: '请上传新照片',
icon: 'none'
})
return
}
params['business_licence'] = that.data.businessUrl.url || that.data.info.bill_data.business_licence_path;
if(that.data.frontUrl.url){
params['cardidA'] = that.data.frontUrl.url;
}
if(that.data.backUrl.url){
params['cardidB'] = that.data.backUrl.url;
}
if(that.data.businessUrl.url){
params['business_licence'] = that.data.businessUrl.url;
}
that.setData({
submitFlag: true,
})
+252 -220
View File
@@ -1,244 +1,276 @@
<view class="container">
<view class="pl30 pr30" style="min-height:87vh">
<view class="mt20 relative">
<view class="font-32">用户信息</view>
<view class="absolute right-0 box-middle font-22 color-666">销售顾问:<text class="color-36afa2">{{userInfo.uname}}</text></view>
</view>
<view class="mt20 pl40 pr40 pt10 pb10 relative ulib-r10 box-shadow-000-10-10 overflowhidden">
<view class="pt30 pb30 font-28">
<view class="font-32">{{info.name}}</view>
<view class="mt5 font-22 color-666">手机号:{{info.mobile}}</view>
<view style="min-height:87vh">
<view class="pl30 pr30">
<view class="mt20 relative">
<view class="font-32">用户信息</view>
<view class="absolute right-0 box-middle font-22 color-666">销售顾问:<text class="color-36afa2">{{userInfo.uname}}</text></view>
</view>
<view class="absolute right-0 mr30 box-middle">
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff mr30 ulib-r750" catchtap="showMessage" data-id="{{info.id}}">
<i class="absolute box-center-middle iconfont icon-liuyan"></i>
<view class="mt20 pl40 pr40 pt10 pb10 relative ulib-r10 box-shadow-000-10-10 overflowhidden">
<view class="pt30 pb30 font-28">
<view class="font-32">{{info.name}}</view>
<view class="mt5 font-22 color-666">手机号:{{info.mobile}}</view>
</view>
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff ulib-r750" catchtap="call" data-id="{{info.id}}">
<i class="absolute box-center-middle iconfont icon-dianhua"></i>
</view>
</view>
</view>
<view class="mt40 fn-clear">
<view class="fn-fl pt10 font-32">车辆信息</view>
<view class="fn-fr">
<button bindtap="{{info.edit_status==1?'pushLink':''}}" data-url="/pages/order/edit/index?id={{id}}" class="inline-block font-22 color-fff ulib-r10 {{info.edit_status==1?'btn-36afa2':'bg-999'}}" hover-class="btn-36afa2-hover"><i class="iconfont icon-dengji mr10"></i>编辑</button>
</view>
</view>
<block wx:for="{{info.car_data}}" wx:for-index='key' wx:for-item='value' wx:key='i'>
<block wx:if="{{!!value.list}}">
<view class="relative bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">{{key}}</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">{{value.value}}</view>
</view>
<block wx:for="{{value.list}}" wx:for-index='key2' wx:for-item='value2' wx:key='j'>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>{{key2}}</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx">{{value2}}</view>
<view class="absolute right-0 mr30 box-middle">
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff mr30 ulib-r750" catchtap="showMessage" data-id="{{info.id}}">
<i class="absolute box-center-middle iconfont icon-liuyan"></i>
</view>
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff ulib-r750" catchtap="call" data-id="{{info.id}}">
<i class="absolute box-center-middle iconfont icon-dianhua"></i>
</view>
</view>
</view>
<view class="mt40 fn-clear">
<view class="fn-fl pt10 font-32">车辆信息</view>
<view class="fn-fr">
<button bindtap="{{info.edit_status==1?'pushLink':''}}" data-url="/pages/order/edit/index?id={{id}}" class="inline-block font-22 color-fff ulib-r10 {{info.edit_status==1?'btn-36afa2':'bg-999'}}" hover-class="btn-36afa2-hover"><i class="iconfont icon-dengji mr10"></i>编辑</button>
</view>
</view>
<block wx:for="{{info.car_data}}" wx:for-index='key' wx:for-item='value' wx:key='i'>
<block wx:if="{{!!value.list}}">
<view class="relative bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">{{key}}</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">{{value.value}}</view>
</view>
<block wx:for="{{value.list}}" wx:for-index='key2' wx:for-item='value2' wx:key='j'>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>{{key2}}</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx">{{value2}}</view>
</view>
</block>
</block>
<block wx:else>
<block wx:if="{{key=='定金'}}">
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>{{key}}</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx">{{value}}</view>
</view>
</block>
<block wx:else>
<view class="relative bbs-1-eb pl140 font-28" wx:if="{{value}}">
<view class="absolute left-0 box-middle font-28 color-333">{{key}}</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">{{value}}</view>
</view>
</block>
</block>
</block>
<block wx:else>
<block wx:if="{{key=='定金'}}">
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>{{key}}</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx">{{value}}</view>
<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_status == 1}}">
<view class="mt40 font-32" wx:if="{{info.main_type == 0}}">上传身份证</view>
<view class="mt40 font-32" wx:elif="{{info.main_type == 1}}">上传营业执照</view>
<view class="fn-flex mt30 text-center" wx:if="{{info.main_type == 0}}">
<view class="fn-flex-item relative mr10 ulib-r10 overflowhidden" bindtap="chooseImg" data-face="front">
<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" wx:if="{{frontUrl.full_url || info.bill_data.carid_a}}"></i>
<view class="absolute top-0 left-0 bottom-0 right-0 bg-f00-op50 z-index-3" wx:if="{{!caridErr[0].caridA}}">
<view class="absolute left-0 right-0 box-middle pl20 pr20 text-break font-22 color-fff"><i class="iconfont icon-jinggao"></i>{{caridErr[0].errmsg}}</view>
</view>
<block wx:if="{{frontUrl.full_url || info.bill_data.carid_a}}">
<image class='block wp100 bg-f8 img-h-200' lazy-load="{{true}}" mode="aspectFit" src="{{frontUrl.full_url || info.bill_data.carid_a}}"></image>
</block>
<view class="block relative wp100 bg-f8 img-h-200" wx:else>
<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>
</view>
</view>
</view>
<view class="fn-flex-item relative ml10 ulib-r10 overflowhidden" bindtap="chooseImg" data-face="back">
<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" wx:if="{{backUrl.full_url || info.bill_data.carid_b}}"></i>
<view class="absolute top-0 left-0 bottom-0 right-0 bg-f00-op50 z-index-3" wx:if="{{!caridErr[1].caridB}}">
<view class="absolute left-0 right-0 box-middle pl20 pr20 text-break font-22 color-fff"><i class="iconfont icon-jinggao"></i>{{caridErr[1].errmsg}}</view>
</view>
<block wx:if="{{backUrl.full_url || info.bill_data.carid_b}}">
<image class='block wp100 bg-f8 img-h-200' lazy-load="{{true}}" mode="aspectFit" src="{{backUrl.full_url || info.bill_data.carid_b}}"></image>
</block>
<view class="block relative wp100 bg-f8 img-h-200" wx:else>
<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>
</view>
</view>
</view>
</view>
<view class="mt30 text-center" wx:elif="{{info.main_type == 1}}">
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-face="business">
<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" wx:if="{{businessUrl.full_url || info.bill_data.business_licence}}"></i>
<view class="absolute top-0 left-0 bottom-0 right-0 bg-f00-op50 z-index-3" wx:if="{{!businessErr[0].business_licence}}">
<view class="absolute left-0 right-0 box-middle pl20 pr20 text-break font-22 color-fff"><i class="iconfont icon-jinggao"></i>{{businessErr[0].errmsg}}</view>
</view>
<block wx:if="{{businessUrl.full_url || info.bill_data.business_licence}}">
<image class='block wp100 bg-f8 img-h-200' lazy-load="{{true}}" mode="aspectFit" src="{{businessUrl.full_url || info.bill_data.business_licence}}"></image>
</block>
<view class="block relative wp100 bg-f8 img-h-200" wx:else>
<view class="absolute left-0 right-0 box-middle color-ccc">
<i class="iconfont icon-zhizhao font-60"></i>
<view class="mt10 font-22">上传营业执照</view>
</view>
</view>
</view>
</view>
</view>
<!--开票信息展示-->
<view class="pl30 pr30" wx:elif="{{info.bill_status == 2}}">
<view class="mt40 font-32">开票信息</view>
<view class="mt20" wx:if="{{info.bill_data.bill_img}}"><image bindtap="previewImage" class='wp100' lazy-load="{{true}}" mode="widthFix" src="{{info.bill_data.bill_img}}"></image></view>
</view>
<!--交付随车信息-->
<view class="mt30 pl30" wx:if="{{info.ckcar_status == 1}}">
<view>
<view class="bts-1-eb mr30 pt30 pb20 font-28 color-333">随车资料</view>
<view class="pb10 fn-clear">
<checkbox-group bindchange="changeMaterial">
<block wx:for="{{carInfoList}}" wx:key='index'>
<label class="fn-fl block mb20 relative inner30 pr80 bg-f6 font-28 ulib-r10 mr20">
<text>{{item.title}}</text>
<checkbox class="absolute right-0 box-middle mr15" value="{{item.title}}" checked="{{item.checked}}"/>
</label>
</block>
</checkbox-group>
</view>
</view>
<view>
<view class="bts-1-eb mr30 pt30 pb20 font-28 color-333">随车工具</view>
<view class="pb10 fn-clear">
<checkbox-group bindchange="changeTool">
<block wx:for="{{carToolList}}" wx:key='index'>
<label class="fn-fl block mb20 relative inner30 pr80 bg-f6 font-28 ulib-r10 mr20">
<text>{{item.title}}</text>
<checkbox class="absolute right-0 box-middle mr15" value="{{item.title}}" checked="{{item.checked}}"/>
</label>
</block>
</checkbox-group>
</view>
</view>
<view class="pr30">
<view class="bts-1-eb pt30 pb20 font-28 color-333">补充说明</view>
<textarea class="wp100 inner20 bds-1-eb font-28 ulib-r10" style="height:120rpx;" placeholder-class="color-ccc" maxlength='140' placeholder="请输入补充说明" model:value="{{remark}}" />
</view>
</view>
<view class="pt30 pl30 pr30" wx:if="{{info.ckcar_status == 0&&info.ckcar_data.info.length>0}}">
<view class="relative bts-1-eb bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">随车资料</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">
<block wx:for="{{info.ckcar_data.info}}" wx:key='index'>
<text class="pl10">{{item}}</text>
</block>
</view>
</view>
<view class="relative bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">随车工具</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">
<block wx:for="{{info.ckcar_data.tool}}" wx:key='index'>
<text class="pl10">{{item}}</text>
</block>
</view>
</view>
<view class="relative bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">补充说明</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{info.ckcar_data.remark}}</view>
</view>
</view>
<!--end交付随车信息-->
<!--资料上传-->
<view class="pl30 pr30" wx:if="{{info.agent_status==1}}">
<view class="mt40 font-32">资料上传</view>
<view class="mt30 pb20 bbs-1-eb text-center">
<scroll-view class="space-nowrap" scroll-x="true">
<block wx:for='{{ins_img}}' wx:for-item='ins_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="delAgent" data-type="ins" data-index="{{index}}" ></i>
<image class='block wp100 img-h-200 ulib-r10' src='{{ins_img.src}}' mode='aspectFit'></image>
</view>
</block>
<block wx:if="{{ins_img.length<10}}">
<view class="inline-block bg-f8 img-300x200 ml15 mr15 relative ulib-r10 overflowhidden" bindtap="agentUpload" data-type="ins">
<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>
</view>
</view>
</block>
</scroll-view>
</view>
<view class="mt20 pb20 bbs-1-eb text-center">
<block wx:if="{{register_img.value}}">
<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="delAgent" data-type="register" data-index="{{index}}" ></i>
<image class='block wp100 img-h-200 ulib-r10' src='{{register_img.src}}' mode='aspectFit'></image>
</view>
</block>
<block wx:else>
<view class="relative bbs-1-eb pl140 font-28" wx:if="{{value}}">
<view class="absolute left-0 box-middle font-28 color-333">{{key}}</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">{{value}}</view>
<view class="inline-block bg-f8 img-300x200 ml15 mr15 relative ulib-r10 overflowhidden" bindtap="agentUpload" data-type="register">
<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>
</view>
</view>
</block>
</view>
<view class="mt20 pb20 bbs-1-eb text-center">
<block wx:if="{{car_img.value}}">
<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="delAgent" data-type="car" data-index="{{index}}" ></i>
<image class='block wp100 img-h-200 ulib-r10' src='{{car_img.src}}' mode='aspectFit'></image>
</view>
</block>
<block wx:else>
<view class="inline-block bg-f8 img-300x200 ml15 mr15 relative ulib-r10 overflowhidden" bindtap="agentUpload" data-type="car">
<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>
</view>
</view>
</block>
</view>
</view>
<!--资料上传-->
<view class="pt20 pl30 pr30" wx:elif="{{info.agent_status==2}}">
<block wx:if="{{info.agent_data.ins_img.length>0}}">
<view class="mt20 font-32">保单</view>
<view class="mt20 pb20 bbs-1-eb">
<scroll-view class="space-nowrap" scroll-x="true">
<block wx:for='{{info.agent_data.ins_img}}' wx:for-item='ins_img' wx:key='index'>
<view class="inline-block img-300x200 ml15 mr15 relative" bindtap="previewAgent" data-type="ins" data-index="{{index}}">
<image class='img-300x200 ulib-r10' src='{{ins_img.src}}' mode='aspectFill'></image>
</view>
</block>
</scroll-view>
</view>
</block>
</block>
<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="">
<view class="mt40 pl30 pr30 font-22 relative">
<view class="font-32">合同信息</view>
<view bindtap="optShowCode" class="absolute right-0 box-middle pt10 pb10 pl10 pr30 space-nowrap bg-333 font-22 color-fff ulib-rl750"><i class="iconfont mr5 icon-qianming"></i>邀请签名</view>
</view>
<view class="fn-flex mt30 pl30 pr30 text-center">
<view class="fn-flex-item relative mr10 bg-f8 ulib-r10 overflowhidden" bindtap="optSelectContract">
<view class="pt30 pb30 pr100 font-32">整车销售合同</view>
<view class="absolute top-0 bottom-0 right-0 bg-666 pl10 pr10 color-fff">
<view class="relative pb10 box-center-middle">
<i class="iconfont icon-xiugai font-30"></i>
<view class="font-18 space-nowrap">修订合同</view>
<block wx:if="{{info.agent_data.register_img.value}}">
<view class="mt20 font-32">登记证</view>
<view class="mt20 pb20 bbs-1-eb">
<view class="inline-block img-300x200 ml15 mr15 relative" bindtap="previewAgent" data-type="register">
<image class='img-300x200 ulib-r10' src='{{info.agent_data.register_img.src}}' mode='aspectFill'></image>
</view>
</view>
</view>
<view class="fn-flex-item relative ml10 bg-f8 ulib-r10 overflowhidden" bindtap="optSelectEntrust">
<view class="pt30 pb30 pr100 font-32">委托服务协议</view>
<view class="absolute top-0 bottom-0 right-0 bg-666 pl10 pr10 color-fff">
<view class="relative pb10 box-center-middle">
<i class="iconfont icon-xiugai font-30"></i>
<view class="font-18 space-nowrap">修订委托</view>
</block>
<block wx:if="{{info.agent_data.car_img.value}}">
<view class="mt20 font-32">行驶证</view>
<view class="mt20 pb20 bbs-1-eb">
<view class="inline-block img-300x200 ml15 mr15 relative" bindtap="previewAgent" data-type="car">
<image class='img-300x200 ulib-r10' src='{{info.agent_data.car_img.src}}' mode='aspectFill'></image>
</view>
</view>
</view>
</block>
</view>
</view> -->
<!--分期信息修改--><!--210909不显示-->
<view class="pl30 pr30" wx:if="{{info.loan_status == -10000}}">
<view class="mt40 font-32">分期信息</view>
<view class="relative bbs-1-eb pl190">
<view class="absolute left-0 box-middle font-28 color-333">分期产品</view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker bindchange="changeBank" value="{{banksIndex}}" range="{{loanSource.banks}}">
<text class="color-ccc" wx:if="{{banksIndex == -1}}">请选择</text>
<text wx:else>{{loanSource.banks[banksIndex]}}</text>
<i class="iconfont ml5 icon-gengduo"></i>
</picker>
</view>
<view class="mt60 pl60 pr60" wx:if="{{info.loan_status == -10000}}"><!--210909不显示-->
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="{{info.loan_data.id?'putAppLoan':'postAppLoan'}}">{{info.loan_data.id?'修改信息':'保存信息'}}</button>
</view>
<view class="relative bbs-1-eb pl190">
<view class="absolute left-0 box-middle font-28 color-333">分期期数</view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker bindchange="changeYear" value="{{yearsIndex}}" range="{{loanSource.years}}">
<text class="color-ccc" wx:if="{{yearsIndex == -1}}">请选择</text>
<text wx:else>{{loanSource.years[yearsIndex]}}</text>
<i class="iconfont ml5 icon-gengduo"></i>
</picker>
</view>
</view>
<!-- <view class="relative bbs-1-eb pl190 pr40">
<view class="absolute left-0 box-middle font-28 color-333">贷款金额</view>
<view>
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入金额" bindinput='inputTx' data-key="money" name="money" value="{{money || (info.loan_data.money != '0.00'?info.loan_data.money:'')}}" />
</view>
<view class="absolute right-0 box-middle font-28 color-666">元</view>
<!-- <view class="mt60 pl60 pr60" wx:elif="{{info.bill_status == 1}}">
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="{{info.bill_data.id?'putAppIdcard':'postAppIdcard'}}">更新信息</button>
</view> -->
<view class="relative bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">贷款金额</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{loanSource.first_price}}元</view>
<view class="mt60 pl60 pr60" wx:elif="{{info.ckcar_status == 1}}">
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppCusorderCkcar">确认随车物品</button>
</view>
</view>
<!--分期信息展示--><!--210909不显示-->
<view class="pl30 pr30" wx:elif="{{info.loan_status == -20000}}">
<view class="mt40 font-32">分期信息</view>
<view class="relative bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">分期产品</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{info.loan_data.bank}}</view>
</view>
<view class="relative bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">分期期数</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{info.loan_data.year}}</view>
</view>
<view class="relative bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">贷款金额</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{info.loan_data.money}}元</view>
</view>
</view>
<!--开票信息修改-->
<view class="pl30 pr30" wx:if="{{info.bill_status == 1}}">
<view class="mt40 font-32">开票信息</view>
<view class="fn-flex mt30 text-center" wx:if="{{info.main_type == 0}}">
<view class="fn-flex-item relative mr10 ulib-r10 overflowhidden" bindtap="chooseImg" data-face="front">
<view class="absolute top-0 left-0 bottom-0 right-0 bg-f00-op50 z-index-4" wx:if="{{!caridErr[0].caridA}}">
<view class="absolute left-0 right-0 box-middle pl20 pr20 text-break font-22 color-fff"><i class="iconfont icon-jinggao"></i>{{caridErr[0].errmsg}}</view>
</view>
<image class='block wp100 bg-f8 img-h-200' lazy-load="{{true}}" mode="aspectFit" src="{{frontUrl.full_url || info.bill_data.carid_a || imgUrl + 'order/defaultidcard-front.jpg'}}"></image>
</view>
<view class="fn-flex-item relative ml10 ulib-r10 overflowhidden" bindtap="chooseImg" data-face="back">
<view class="absolute top-0 left-0 bottom-0 right-0 bg-f00-op50 z-index-4" wx:if="{{!caridErr[1].caridB}}">
<view class="absolute left-0 right-0 box-middle pl20 pr20 text-break font-22 color-fff"><i class="iconfont icon-jinggao"></i>{{caridErr[1].errmsg}}</view>
</view>
<image class='block wp100 bg-f8 img-h-200' lazy-load="{{true}}" mode="aspectFit" src="{{backUrl.full_url || info.bill_data.carid_b || imgUrl + 'order/defaultidcard-back.jpg'}}"></image>
</view>
</view>
<view class="mt30 text-center" wx:elif="{{info.main_type == 1}}">
<view class="wp50 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-face="business">
<view class="absolute top-0 left-0 bottom-0 right-0 bg-f00-op50 z-index-4" wx:if="{{!businessErr[0].business_licence}}">
<view class="absolute left-0 right-0 box-middle pl20 pr20 text-break font-22 color-fff"><i class="iconfont icon-jinggao"></i>{{businessErr[0].errmsg}}</view>
</view>
<image class='block wp100 bg-f8 img-h-200' lazy-load="{{true}}" mode="aspectFit" src="{{businessUrl.full_url || info.bill_data.business_licence || imgUrl + 'order/defaultidcard-business.jpg'}}"></image>
</view>
</view>
</view>
<!--开票信息展示-->
<view class="pl30 pr30" wx:elif="{{info.bill_status == 2}}">
<view class="mt40 font-32">开票信息</view>
<!-- <view class="fn-flex mt30 text-center">
<view class="fn-flex-item relative mr10">
<image class='wp100 img-h-200' lazy-load="{{true}}" mode="aspectFit" src="{{info.bill_data.carid_a}}"></image>
</view>
<view class="fn-flex-item relative ml10 bg-f8 ulib-r10">
<image class='wp100 img-h-200' lazy-load="{{true}}" mode="aspectFit" src="{{info.bill_data.carid_b}}"></image>
</view>
</view> -->
<view class="mt20" wx:if="{{info.bill_data.bill_img}}"><image bindtap="previewImage" class='wp100' lazy-load="{{true}}" mode="widthFix" src="{{info.bill_data.bill_img}}"></image></view>
</view>
<!--交付随车信息-->
<view class="mt30 pl30" wx:if="{{info.ckcar_status == 1}}">
<view>
<view class="bts-1-eb mr30 pt30 pb20 font-28 color-333">随车资料</view>
<view class="pb10 fn-clear">
<checkbox-group bindchange="changeMaterial">
<block wx:for="{{carInfoList}}" wx:key='index'>
<label class="fn-fl block mb20 relative inner30 pr80 bg-f6 font-28 ulib-r10 mr20">
<text>{{item.title}}</text>
<checkbox class="absolute right-0 box-middle mr15" value="{{item.title}}" checked="{{item.checked}}"/>
</label>
</block>
</checkbox-group>
</view>
</view>
<view>
<view class="bts-1-eb mr30 pt30 pb20 font-28 color-333">随车工具</view>
<view class="pb10 fn-clear">
<checkbox-group bindchange="changeTool">
<block wx:for="{{carToolList}}" wx:key='index'>
<label class="fn-fl block mb20 relative inner30 pr80 bg-f6 font-28 ulib-r10 mr20">
<text>{{item.title}}</text>
<checkbox class="absolute right-0 box-middle mr15" value="{{item.title}}" checked="{{item.checked}}"/>
</label>
</block>
</checkbox-group>
</view>
</view>
<view class="pr30">
<view class="bts-1-eb pt30 pb20 font-28 color-333">补充说明</view>
<textarea class="wp100 inner20 bds-1-eb font-28 ulib-r10" style="height:120rpx;" placeholder-class="color-ccc" maxlength='140' placeholder="请输入补充说明" model:value="{{remark}}" />
</view>
</view>
<view class="pt30 pl30 pr30" wx:if="{{info.ckcar_status == 0&&info.ckcar_data.info.length>0}}">
<view class="relative bts-1-eb bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">随车资料</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">
<block wx:for="{{info.ckcar_data.info}}" wx:key='index'>
<text class="pl10">{{item}}</text>
</block>
</view>
</view>
<view class="relative bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">随车工具</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">
<block wx:for="{{info.ckcar_data.tool}}" wx:key='index'>
<text class="pl10">{{item}}</text>
</block>
</view>
</view>
<view class="relative bbs-1-eb pl140 font-28">
<view class="absolute left-0 box-middle font-28 color-333">补充说明</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{info.ckcar_data.remark}}</view>
</view>
</view>
<!--end交付随车信息-->
<view class="mt60 pl60 pr60" wx:if="{{info.loan_status == -10000}}"><!--210909不显示-->
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="{{info.loan_data.id?'putAppLoan':'postAppLoan'}}">{{info.loan_data.id?'修改信息':'保存信息'}}</button>
</view>
<view class="mt60 pl60 pr60" wx:elif="{{info.bill_status == 1}}">
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="{{info.bill_data.id?'putAppIdcard':'postAppIdcard'}}">申请开票</button>
</view>
<view class="mt60 pl60 pr60" wx:elif="{{info.ckcar_status == 1}}">
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppCusorderCkcar">确认随车物品</button>
</view>
<view class="mt40 pt20 pl30 pr30 pb40 bg-000-op80 fn-flex">
<button bindtap="optShowCode" class="fn-flex-item ml20 mr20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover"><i class="iconfont mr5 icon-qianming"></i>邀请签名</button>
<button wx:if="{{info.pay_status == 1}}" bindtap="optShowOrderCode" class="fn-flex-item ml20 mr20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover"><i class="iconfont mr5 icon-zhifu"></i>收取意向金</button>