上传图片

This commit is contained in:
老叶
2022-01-21 15:09:49 +08:00
parent 4721f99f26
commit b361a97ba2
7 changed files with 390 additions and 366 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -110,7 +110,7 @@ api = {
appCusorderV2Inten:'app/cusorderV2/inten', //新增意向金订单
appCusorderV2:'app/cusorderV2', //新建订单 /获取订单列表 /订单详情
appCusorderV2Tabs:'app/cusorderV2/tabs', //获取订单列表tab
appCusorderdata:'app/Cusorderdata', //获取订单图片
appCusorderdata:'app/Cusorderdata', //获取订单图片 /上传编辑国补资料/
}
+7
View File
@@ -726,4 +726,11 @@ apiQuery.getAppCusorderdata = function (params) {
})
}
//上传编辑国补资料
apiQuery.putAppCusorderdata = function (params) {
return new Promise(function (resolve, reject) {
HttpRequest(false, Config.api.appCusorderdata, 2, params, "PUT", resolve, reject)
})
}
export default apiQuery;
+8
View File
@@ -32,6 +32,14 @@
</view>
<!-- 管辖门店 -->
<view class="mb40 inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
<view class="font-36">水平业务相关</view>
<view class="relative mt20 mb30 pt25 pb25 pl110 bg-fe606c-ff9026 color-fff ulib-r10" bindtap="pushLink" data-url="/pages/order/filterList/index?title=水平业务资料未提交">
<i class="absolute left-0 box-middle ml35 iconfont icon-tijiao font-60"></i>
<view class="text-left">
<view class="font-40">10</view>
<view class="font-22">水平业务资料未提交</view>
</view>
</view>
<view class="relative z-index-1">
<view class="font-36">管辖门店</view>
<picker class="absolute right-0 box-middle" bindchange="changeCity" value="{{cityIndex}}" range="{{cityArray}}">
+2 -1
View File
@@ -1,2 +1,3 @@
.bg-2e3246-8058fe{background-image:linear-gradient(45deg, #2e3246, #1a1c26);}
.allot-tip{right:30rpx;bottom:0;}
.allot-tip{right:30rpx;bottom:0;}
.bg-fe606c-ff9026{background-image:linear-gradient(45deg, #fe606c, #ff9026); text-align: center;}
+311 -319
View File
@@ -12,24 +12,6 @@ Page({
carToolList:[],//随车随车工具选项
ckcarTool:[],//随车工具选中内容
nextCode:false,
frontUrl:{},
backUrl:{},
businessUrl:{},
caridErr:[
{
caridA:true,
},
{
caridB:true,
},
],
businessErr:[
{
business_licence:true,
},
],
cardida:{},//身份证正面照片
cardidb:{},//身份证反面照片
@@ -97,13 +79,13 @@ Page({
})
if(res.data.img_status == 1){
this.setData({
cardida:res.data.imgs.cardida==[]?{}:res.data.imgs.cardida,
cardidb:res.data.imgs.cardidb==[]?{}:res.data.imgs.cardidb,
business_licence:res.data.imgs.business_licence==[]?{}:res.data.imgs.business_licence,
car_img:res.data.imgs.car_img==[]?{}:res.data.imgs.car_img,
register_img:res.data.imgs.register_img==[]?{}:res.data.imgs.register_img,
ins_img:res.data.imgs.ins_img?res.data.imgs.ins_img:[],
other_img:res.data.imgs.other_img?res.data.imgs.other_img:[],
cardida:res.data.imgs.cardida.length==0?{}:res.data.imgs.cardida,
cardidb:res.data.imgs.cardidb.length==0?{}:res.data.imgs.cardidb,
business_licence:res.data.imgs.business_licence.length==0?{}:res.data.imgs.business_licence,
car_img:res.data.imgs.car_img.length==0?{}:res.data.imgs.car_img,
register_img:res.data.imgs.register_img.length==0?{}:res.data.imgs.register_img,
ins_img:res.data.imgs.ins_img.length==0?[]:res.data.imgs.ins_img,
other_img:res.data.imgs.other_img.length==0?[]:res.data.imgs.other_img,
})
}
wx.stopPullDownRefresh()
@@ -211,83 +193,252 @@ Page({
//选择图片
chooseImg(e) {
this.setData({
submitFlag: false,
})
let that = this
wx.chooseImage({
count: 1, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res) {
wx.showLoading();
wx.uploadFile({
url:_.config.api.upImg,
filePath:res.tempFilePaths[0],
name: 'img',
formData: {
'app': 'liche'
},
success: (resp) => {
resp.data = JSON.parse(resp.data);
wx.hideLoading();
if (resp.data.code == 200) {
if(e.currentTarget.dataset.face == 'front'){
that.setData({
frontUrl:resp.data.data,
'caridErr[0].caridA':true,
})
}
if(e.currentTarget.dataset.face == 'back'){
that.setData({
backUrl:resp.data.data,
'caridErr[1].caridB':true,
})
}
if(e.currentTarget.dataset.face == 'business'){
that.setData({
businessUrl:resp.data.data,
'businessErr[0].business_licence':true,
})
}
//有ID更新,没ID上传
if(that.data.info.bill_data.id){
that.putAppIdcard()
}else{
that.postAppIdcard()
}
}
},
})
},
fail: res => {
wx.showToast({
title: '文件选择失败',
icon: 'none',
duration: 2000
})
}
})
},
//代办选择图片
agentUpload(e) {
let that = this
if(e.currentTarget.dataset.type=='ins'){
//上传身份证正面
if(e.currentTarget.dataset.type=='cardida'){
wx.chooseImage({
count: 10 - this.data.ins_img.length, //
count: 1, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res) {
wx.showLoading();
wx.uploadFile({
url:_.config.api.upImg,
filePath:res.tempFilePaths[0],
name: 'img',
formData: {
'app': 'liche'
},
success: (resp) => {
resp.data = JSON.parse(resp.data);
wx.hideLoading();
if (resp.data.code == 200) {
that.setData({
'cardida.value':resp.data.data.url,
'cardida.img':resp.data.data.full_url,
})
let params = {};
params['id'] = that.data.id;
params['cardida'] = resp.data.data.url;
_.apiQuery.putAppCusorderdata(params).then(res2 => {
}).catch(res2=>{
if(res2.code==418){
that.setData({
'cardida.err':!res2.data[0].caridA,
'cardida.errmsg':res2.data[0].errmsg,
})
}
});
}
},
})
},
fail: res => {
wx.showToast({
title: '文件选择失败',
icon: 'none',
duration: 2000
})
}
})
}
//上传身份证背面
if(e.currentTarget.dataset.type=='cardidb'){
wx.chooseImage({
count: 1, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res) {
wx.showLoading();
wx.uploadFile({
url:_.config.api.upImg,
filePath:res.tempFilePaths[0],
name: 'img',
formData: {
'app': 'liche'
},
success: (resp) => {
resp.data = JSON.parse(resp.data);
wx.hideLoading();
if (resp.data.code == 200) {
that.setData({
'cardidb.value':resp.data.data.url,
'cardidb.img':resp.data.data.full_url,
})
let params = {};
params['id'] = that.data.id;
params['cardidb'] = resp.data.data.url;
_.apiQuery.putAppCusorderdata(params).then(res2 => {
}).catch(res2=>{
if(res2.code==418){
that.setData({
'cardidb.err':!res2.data[1].caridB,
'cardidb.errmsg':res2.data[1].errmsg,
})
}
});
}
},
})
},
fail: res => {
wx.showToast({
title: '文件选择失败',
icon: 'none',
duration: 2000
})
}
})
}
//上传营业执照
if(e.currentTarget.dataset.type=='business_licence'){
wx.chooseImage({
count: 1, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res) {
wx.showLoading();
wx.uploadFile({
url:_.config.api.upImg,
filePath:res.tempFilePaths[0],
name: 'img',
formData: {
'app': 'liche'
},
success: (resp) => {
resp.data = JSON.parse(resp.data);
wx.hideLoading();
if (resp.data.code == 200) {
that.setData({
'business_licence.value':resp.data.data.url,
'business_licence.img':resp.data.data.full_url,
})
let params = {};
params['id'] = that.data.id;
params['business_licence'] = resp.data.data.url;
_.apiQuery.putAppCusorderdata(params).then(res2 => {
}).catch(res2=>{
if(res2.code==418){
that.setData({
'business_licence.err':!res2.data[0].business_licence,
'business_licence.errmsg':res2.data[0].errmsg,
})
}
});
}
},
})
},
fail: res => {
wx.showToast({
title: '文件选择失败',
icon: 'none',
duration: 2000
})
}
})
}
//上传登记证
if(e.currentTarget.dataset.type=='register_img'){
wx.chooseImage({
count: 1, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res) {
wx.showLoading();
wx.uploadFile({
url:_.config.api.upImg,
filePath:res.tempFilePaths[0],
name: 'img',
formData: {
'app': 'liche'
},
success: (resp) => {
resp.data = JSON.parse(resp.data);
wx.hideLoading();
if (resp.data.code == 200) {
let params = {};
params['id'] = that.data.id;
params['register_img'] = resp.data.data.url;
_.apiQuery.putAppCusorderdata(params).then(res2 => {
that.setData({
'register_img.value':resp.data.data.url,
'register_img.img':resp.data.data.full_url,
})
})
}
},
})
},
fail: res => {
wx.showToast({
title: '文件选择失败',
icon: 'none',
duration: 2000
})
}
})
}
//上传行驶证
if(e.currentTarget.dataset.type=='car_img'){
wx.chooseImage({
count: 1, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res) {
wx.showLoading();
wx.uploadFile({
url:_.config.api.upImg,
filePath:res.tempFilePaths[0],
name: 'img',
formData: {
'app': 'liche'
},
success: (resp) => {
resp.data = JSON.parse(resp.data);
wx.hideLoading();
if (resp.data.code == 200) {
let params = {};
params['id'] = that.data.id;
params['car_img'] = resp.data.data.url;
_.apiQuery.putAppCusorderdata(params).then(res2 => {
that.setData({
'car_img.value':resp.data.data.url,
'car_img.img':resp.data.data.full_url,
})
})
}
},
})
},
fail: res => {
wx.showToast({
title: '文件选择失败',
icon: 'none',
duration: 2000
})
}
})
}
//上传保单
if(e.currentTarget.dataset.type=='ins_img'){
wx.chooseImage({
count: 10 - that.data.ins_img.length, //
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res1) {
wx.showLoading({
title: '图片上传中',
})
wx.showLoading();
let ins_img=that.data.ins_img
for (let i = 0; i < res1.tempFilePaths.length; i++) {
//上传图片
@@ -305,27 +456,24 @@ Page({
let list = []
list.push({
value:imgdata.data.url,
src:imgdata.data.full_url,
img: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();
params['ins_imgs'] = img;
_.apiQuery.putAppCusorderdata(params).then(res2 => {
that.setData({
ins_img,
})
})
}, 500);
}
}
},
@@ -342,96 +490,57 @@ Page({
})
}
})
}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'){
//上传交车合照
if(e.currentTarget.dataset.type=='other_img'){
wx.chooseImage({
count: 1, //
count: 10 - that.data.other_img.length, //
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'] = 2;
params['img'] = [car_img.value];
_.apiQuery.putAppCusorderCdata(params).then(res => {
wx.hideLoading();
that.setData({
car_img,
wx.showLoading();
let other_img=that.data.other_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,
img:imgdata.data.full_url,
})
})
}
},
})
other_img=other_img.concat(list)
if(i+1==res1.tempFilePaths.length){
setTimeout(function () {
let params = {};
params['id'] = that.data.id;
let img = []
other_img.forEach(item => {
img.push(item.value)
})
params['other_imgs'] = img;
_.apiQuery.putAppCusorderdata(params).then(res2 => {
that.setData({
other_img,
})
})
}, 500);
}
}
},
})
}
},
fail: res => {
@@ -443,160 +552,43 @@ Page({
}
})
}
},
//上传资料
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'){
delImg(e){
if(e.currentTarget.dataset.type=='ins_img'){
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({
params['ins_imgs'] = img;
_.apiQuery.putAppCusorderdata(params).then(res => {
that.setData({
ins_img,
})
})
}else if(e.currentTarget.dataset.type=='register'){
}else if(e.currentTarget.dataset.type=='other_img'){
let ins_img = this.data.ins_img
ins_img.splice(e.currentTarget.dataset.index, 1)
let params = {};
params['id'] = this.data.id;
params['type'] = 1;
params['img'] = [];
_.apiQuery.putAppCusorderCdata(params).then(res => {
this.setData({
register_img:{},
})
let img = []
ins_img.forEach(item => {
img.push(item.value)
})
}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:{},
params['other_imgs'] = img;
_.apiQuery.putAppCusorderdata(params).then(res => {
that.setData({
other_img,
})
})
}
},
//创建申请开票信息
postAppIdcard(){
let that = this
let params = {};
params['oid'] = that.data.id;
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,
})
_.apiQuery.postAppIdcard(params).then(res => {
this.setData({
submitFlag: false,
})
this.getAppCusorderV2()
wx.showToast({
title: '已提交申请',
icon: 'success'
})
}).catch(res=>{
if(res.code==418){
if(this.data.info.main_type == 0){
this.setData({
caridErr:res.data,
})
}else if(this.data.info.main_type == 1){
this.setData({
businessErr:res.data,
})
}
}
this.setData({
submitFlag: false,
})
});
},
//修改申请开票信息
putAppIdcard() {
let that = this
let params = {};
params['id'] = that.data.info.bill_data.id;
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,
})
_.apiQuery.putAppIdcard(params).then(res => {
this.setData({
submitFlag: false,
})
this.getAppCusorderV2()
wx.showToast({
title: '已提交修改',
icon: 'success'
})
}).catch(res=>{
if(res.code==418){
if(this.data.info.main_type == 0){
this.setData({
caridErr:res.data,
})
}else if(this.data.info.main_type == 1){
this.setData({
businessErr:res.data,
})
}
}
this.setData({
submitFlag: false,
})
});
},
//确认交付
putAppCusorderCkcar(){
+46 -42
View File
@@ -22,7 +22,7 @@
<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>
<button bindtap="{{info.edit_status==1?'pushLink':''}}" data-url="/pages/order/edit/index2?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'>
@@ -132,18 +132,18 @@
<block wx:if="{{info.main_type == 0}}">
<view class="mt40 font-32">上传身份证</view>
<view class="fn-flex mt30 text-center">
<view class="fn-flex-item relative mr10">
<view class="fn-flex-item relative mr10" bindtap="chooseImg" data-type="cardida">
<block wx:if="{{cardida.value}}">
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-face="front">
<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>
<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 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.src}}' mode='aspectFit'></image>
<image class='block wp100 img-h-200 ulib-r10' src='{{cardida.img}}' mode='aspectFit'></image>
</view>
</block>
<block wx:else>
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-face="front">
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
<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>
@@ -151,18 +151,18 @@
</view>
</block>
</view>
<view class="fn-flex-item relative ml10" bindtap="chooseImg" data-face="back">
<view class="fn-flex-item relative ml10" bindtap="chooseImg" data-type="cardidb">
<block wx:if="{{cardidb.value}}">
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-face="back">
<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>
<view class="absolute top-0 left-0 bottom-0 right-0 bg-f00-op50 z-index-3" wx:if="{{!caridErr[0].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 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.src}}' mode='aspectFit'></image>
<image class='block wp100 img-h-200 ulib-r10' src='{{cardidb.img}}' mode='aspectFit'></image>
</view>
</block>
<block wx:else>
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-face="back">
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
<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>
@@ -176,35 +176,39 @@
<block wx:elif="{{info.main_type == 1}}">
<view class="mt40 font-32">上传营业执照</view>
<view class="mt30 text-center">
<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 || imgInfo.imgs.business_licence.img}}"></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 || imgInfo.imgs.business_licence.img}}">
<image class='block wp100 bg-f8 img-h-200' lazy-load="{{true}}" mode="aspectFit" src="{{businessUrl.full_url || imgInfo.imgs.business_licence.img}}"></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 class="inline-block img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="business_licence">
<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>
<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>
</view>
</view>
</block>
<block wx:else>
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
<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>
</block>
</view>
</view>
</block>
<!--上传国家补材料-->
<view class="mt40 font-32">上传国家补材料</view>
<view class="fn-flex mt30 text-center">
<view class="fn-flex-item relative mr10">
<view class="fn-flex-item relative mr10" bindtap="chooseImg" data-type="register_img">
<block wx:if="{{register_img.value}}">
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="agentUpload" data-type="register">
<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.src}}' mode='aspectFit'></image>
<image class='block wp100 img-h-200 ulib-r10' src='{{register_img.img}}' mode='aspectFit'></image>
</view>
</block>
<block wx:else>
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="agentUpload" data-type="register">
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
<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>
@@ -212,15 +216,15 @@
</view>
</block>
</view>
<view class="fn-flex-item relative ml10">
<view class="fn-flex-item relative ml10" bindtap="chooseImg" data-type="car_img">
<block wx:if="{{car_img.value}}">
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="agentUpload" data-type="car">
<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.src}}' mode='aspectFit'></image>
<image class='block wp100 img-h-200 ulib-r10' src='{{car_img.img}}' mode='aspectFit'></image>
</view>
</block>
<block wx:else>
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="agentUpload" data-type="car">
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
<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>
@@ -235,12 +239,12 @@
<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>
<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>
</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="inline-block bg-f8 img-300x200 ml15 mr15 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="ins_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>
@@ -253,17 +257,17 @@
<view class="mt40 font-32">上传交车合照</view>
<view class="mt30 pb20 text-center">
<scroll-view class="space-nowrap" scroll-x="true">
<block wx:for='{{other_img}}' wx:for-item='ins_img' wx:key='index'>
<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="delAgent" data-type="ins" data-index="{{index}}" ></i>
<image class='block wp100 img-h-200 ulib-r10' src='{{other_img.src}}' mode='aspectFit'></image>
<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>
</view>
</block>
<block wx:if="{{other_img.length<10}}">
<view class="inline-block bg-f8 img-300x200 ml15 mr15 relative ulib-r10 overflowhidden" bindtap="agentUpload" data-type="other_img">
<view class="inline-block bg-f8 img-300x200 ml15 mr15 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="other_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>
<view class="mt10 font-22">上传保单</view>
</view>
</view>
</block>