|
@@ -4,7 +4,7 @@
|
|
|
<video controls id="myvideo" :src="dataDetails.videoAddressUrl" @fullscreenchange="screenChange"></video>
|
|
|
</view>
|
|
|
<view style='margin:10px 0 0 19px;font-size:12px;color:#EF4034;'>注:企业认证仅限该企业法定代表人本人完成。</view>
|
|
|
-
|
|
|
+
|
|
|
<view class='content1'>
|
|
|
<view class="title">上传营业执照</view>
|
|
|
<view style='position:relative;' @click="uploadImg(1)">
|
|
@@ -24,7 +24,7 @@
|
|
|
<view class="flex row">
|
|
|
<view class="left-text">营业期限截止日期</view>
|
|
|
<view style='font-size:14px;width:50%;' class='flex flex-space-between'
|
|
|
- @click="selectValidityPeriod(0)">
|
|
|
+ @click="selectData(0)">
|
|
|
<view :style="{'color':dataDetails.businessTermDate ? '#000':'#C6CBD5'}">
|
|
|
{{dataDetails.businessTermDate?dataDetails.businessTermDate:'选择期限截止日期'}}
|
|
|
</view>
|
|
@@ -41,7 +41,7 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
-<view class='wrap'>
|
|
|
+ <view class='wrap'>
|
|
|
<view class="flex border-bottom mt20 align-center">
|
|
|
<view class="left">企业名称</view>
|
|
|
<view class="flex right">
|
|
@@ -66,7 +66,53 @@
|
|
|
</u--input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="flex mt20 align-center">
|
|
|
+ <view class="title">上传身份证人像面</view>
|
|
|
+ <view @click.stop="uploadImg(2)" class="picture picture1" v-if="!dataDetails.cardAddressUrl">
|
|
|
+ <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
|
|
|
+ <view class="text">上传身份证人像面</view>
|
|
|
+ </view>
|
|
|
+ <view v-if="dataDetails.cardAddressUrl" @click.stop="uploadImg(2)"
|
|
|
+ class="preview-card-img picture">
|
|
|
+ <image class="" :src="dataDetails.cardAddressUrl" mode="aspectFit" style=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="title">上传身份证国徽面</view>
|
|
|
+ <view @click="uploadImg(3)" class="picture picture2" v-if="!dataDetails.cardBackAddressUrl">
|
|
|
+ <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
|
|
|
+ <view class="text">上传身份证国徽面</view>
|
|
|
+ </view>
|
|
|
+ <view v-if="dataDetails.cardBackAddressUrl" @click.stop="uploadImg(3)"
|
|
|
+ class="preview-card-img picture">
|
|
|
+ <image class="" :src="dataDetails.cardBackAddressUrl" mode="aspectFit" style=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="flex border-bottom mt20 align-center">
|
|
|
+ <view class="left">身份证号</view>
|
|
|
+ <view class="flex right">
|
|
|
+ <u--input disabledColor='#fff' placeholder="输入身份证号" inputAlign='left' border="none"
|
|
|
+ v-model="dataDetails.cardNumber">
|
|
|
+ </u--input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="flex row">
|
|
|
+ <view class="left-text">身份证有效期</view>
|
|
|
+ <view style='font-size:14px;width:50%;' class='flex flex-space-between'
|
|
|
+ @click="selectData(1)">
|
|
|
+ <view :style="{'color':dataDetails.cardValidityDate ? '#000':'#C6CBD5'}">
|
|
|
+ {{dataDetails.cardValidityDate?dataDetails.cardValidityDate:'选择期限截止日期'}}
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <u-icon name="arrow-right" color="#7E7E7E" size="10"></u-icon>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="flex border-bottom mt20 align-center">
|
|
|
+ <view class="left">通讯地址</view>
|
|
|
+ <view class="flex right">
|
|
|
+ <u--input disabledColor='#fff' placeholder="输入通讯地址" inputAlign='left' border="none"
|
|
|
+ v-model="dataDetails.mailingAddress">
|
|
|
+ </u--input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- <view class="flex mt20 align-center">
|
|
|
<view class="left">注册实缴金额</view>
|
|
|
<view class="flex right align-center">
|
|
|
<u--input placeholder="输入企业注册实缴金额" inputAlign='left' border="none"
|
|
@@ -74,7 +120,7 @@
|
|
|
</u--input>
|
|
|
<view>万元</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<!-- http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4 -->
|
|
|
<!-- dataDetails.videoAddressUrl -->
|
|
@@ -89,7 +135,8 @@
|
|
|
<view class="flex row noborder mt20 flex-space-between">
|
|
|
<view class="left-text">视频验证(点击按钮播放视频)</view>
|
|
|
<view>
|
|
|
- <u-button type="primary" @click="goDetailPage('/pages/mine/company/companyvideo')" size="mini">重新上传</u-button>
|
|
|
+ <u-button type="primary" @click="goDetailPage('/pages/mine/company/companyvideo')" size="mini">重新上传
|
|
|
+ </u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <video class="myVideo" :src="dataDetails.videoAddressUrl" controls></video> -->
|
|
@@ -226,11 +273,11 @@
|
|
|
videoAddressUrl: null,
|
|
|
legalPersonName: ''
|
|
|
|
|
|
- }
|
|
|
+ },
|
|
|
+ dataType:""
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
- console.log(uni.getStorageSync("videoSrc"))
|
|
|
var viderSrc = uni.getStorageSync("videoSrc")
|
|
|
if (viderSrc) {
|
|
|
this.dataDetails.videoAddressUrl = viderSrc
|
|
@@ -239,7 +286,6 @@
|
|
|
onLoad(options) {
|
|
|
this.dataDetails.id = options.id
|
|
|
this.validityPeriod = this.$helper.makeValidityPeriod(0, '长期')
|
|
|
- console.log(this)
|
|
|
this.dataDetails.commonId = this.userInfo.id
|
|
|
this.dataDetails.phone = this.userInfo.phone
|
|
|
console.log('```````````````')
|
|
@@ -254,6 +300,29 @@
|
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
|
},
|
|
|
methods: {
|
|
|
+ selectData(num) {
|
|
|
+ this.dataType = num
|
|
|
+ this.isShowcardValidity = true
|
|
|
+ },
|
|
|
+ confirmValidityPeriod(e) {
|
|
|
+ switch (this.dataType) {
|
|
|
+ case 0:
|
|
|
+ if (e.value[0] == '长期') {
|
|
|
+ this.dataDetails.businessTermDate = e.value[0]
|
|
|
+ } else {
|
|
|
+ this.dataDetails.businessTermDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
|
|
|
+ }
|
|
|
+ break
|
|
|
+ case 1:
|
|
|
+ if (e.value[0] == '长期') {
|
|
|
+ this.dataDetails.cardValidityDate = e.value[0]
|
|
|
+ } else {
|
|
|
+ this.dataDetails.cardValidityDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
|
|
|
+ }
|
|
|
+ break
|
|
|
+ }
|
|
|
+ this.isShowcardValidity = false
|
|
|
+ },
|
|
|
screenChange(e) {
|
|
|
let fullScreen = e.detail.fullScreen; // 值true为进入全屏,false为退出全屏
|
|
|
console.log(e, "全屏");
|
|
@@ -357,10 +426,17 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.registeredPaidAmount)) {
|
|
|
+ // if (uni.$u.test.isEmpty(this.dataDetails.registeredPaidAmount)) {
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'error',
|
|
|
+ // message: "注册实缴金额不能为空!",
|
|
|
+ // })
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.mailingAddress)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "注册实缴金额不能为空!",
|
|
|
+ message: "通讯地址不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
@@ -414,6 +490,14 @@
|
|
|
},
|
|
|
submit() {
|
|
|
if (this.validate()) return
|
|
|
+ if (!this.consentStatus) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '请勾选协议',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
uni.showLoading({
|
|
|
title: '加载中',
|
|
|
mask: true
|
|
@@ -481,55 +565,131 @@
|
|
|
},
|
|
|
imgTypeSelect(val) {
|
|
|
var _this = this
|
|
|
- if (val.name == '相册') {
|
|
|
+ // if (val.name == '相册') {
|
|
|
uni.chooseImage({
|
|
|
count: 1,
|
|
|
- sourceType: this.$helper.chooseImage.sourceType,
|
|
|
+ // sourceType: ,
|
|
|
success: function(res) {
|
|
|
console.log(JSON.stringify(res.tempFilePaths));
|
|
|
uploadImage('image', res.tempFilePaths[0], 'appData/',
|
|
|
result => {
|
|
|
// 上传成功回调函数
|
|
|
- console.log('图片地址', result)
|
|
|
-
|
|
|
switch (_this.uploadType) {
|
|
|
+
|
|
|
// 身份正面
|
|
|
case 1:
|
|
|
_this.dataDetails.businessLicenseAddressUrl = result
|
|
|
+ // 识别
|
|
|
+ _this.$request.baseRequest('get',
|
|
|
+ '/cargoOwnerInfo/api/licenseShibie', {
|
|
|
+ licenseImg: result,
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ if(res.data){
|
|
|
+ if (res.data.validPeriod == '29991231') {
|
|
|
+ _this.dataDetails.businessTermDate = '长期'
|
|
|
+ }
|
|
|
+ _this.dataDetails.unifiedSocialCreditCode = res
|
|
|
+ .data.regNum
|
|
|
+ _this.dataDetails.legalPersonName = res.data
|
|
|
+ .licensePerson
|
|
|
+ _this.dataDetails.companyName = res.data
|
|
|
+ .licenseName
|
|
|
+ console.log(res)
|
|
|
+ _this.$forceUpdate()
|
|
|
+ }else{
|
|
|
+ uni.$u.toast('请上传营业执照');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ console.log(res)
|
|
|
+ uni.$u.toast(res.message);
|
|
|
+ });
|
|
|
console.log(_this.dataDetails.businessLicenseAddressUrl)
|
|
|
break
|
|
|
// 身份反面
|
|
|
case 2:
|
|
|
- _this.dataDetails.propertyAddressUrl = result
|
|
|
- console.log(_this.dataDetails.propertyAddressUrl)
|
|
|
+ _this.dataDetails.cardAddressUrl = result
|
|
|
+ // 识别
|
|
|
+ _this.$request.baseRequest('get',
|
|
|
+ '/driverInfo/personShibie', {
|
|
|
+ personImg: result,
|
|
|
+ }).then(res => {
|
|
|
+ _this.dataDetails.cardNumber = res.data.recPersonNo
|
|
|
+ _this.$forceUpdate()
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ uni.$u.toast(res.message);
|
|
|
+ });
|
|
|
+
|
|
|
break
|
|
|
case 3:
|
|
|
+ _this.dataDetails.cardBackAddressUrl = result
|
|
|
+ _this.$forceUpdate()
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
)
|
|
|
}
|
|
|
});
|
|
|
- } else {
|
|
|
- uni.chooseImage({
|
|
|
- count: 1,
|
|
|
- sourceType: ['camera'],
|
|
|
- success: function(res) {
|
|
|
- console.log(JSON.stringify(res.tempFilePaths));
|
|
|
- uploadImage('image', res.tempFilePaths[0], 'appData/',
|
|
|
- result => {
|
|
|
- // 上传成功回调函数
|
|
|
- console.log('图片地址', result)
|
|
|
- _this.dataDetails.businessLicenseAddressUrl = result
|
|
|
- }
|
|
|
- )
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+ // } else {
|
|
|
+ // uni.chooseImage({
|
|
|
+ // count: 1,
|
|
|
+ // sourceType: ['camera'],
|
|
|
+ // success: function(res) {
|
|
|
+ // console.log(JSON.stringify(res.tempFilePaths));
|
|
|
+ // uploadImage('image', res.tempFilePaths[0], 'appData/',
|
|
|
+ // result => {
|
|
|
+ // // 上传成功回调函数
|
|
|
+ // console.log('图片地址', result)
|
|
|
+ // switch (_this.uploadType) {
|
|
|
+ // // 身份正面
|
|
|
+ // case 1:
|
|
|
+ // // 识别
|
|
|
+ // _this.$request.baseRequest('get',
|
|
|
+ // '/cargoOwnerInfo/api/licenseShibie', {
|
|
|
+ // licenseImg: result,
|
|
|
+ // }).then(res => {
|
|
|
+ // if (res.code == '200') {
|
|
|
+ // if (res.data.validPeriod == '29991231') {
|
|
|
+ // _this.dataDetails.businessTermDate = '长期'
|
|
|
+ // }
|
|
|
+ // _this.dataDetails.unifiedSocialCreditCode = res
|
|
|
+ // .data.regNum
|
|
|
+ // _this.dataDetails.legalPersonName = res.data
|
|
|
+ // .licensePerson
|
|
|
+ // _this.dataDetails.companyName = res.data
|
|
|
+ // .licenseName
|
|
|
+ // console.log(res)
|
|
|
+ // _this.$forceUpdate()
|
|
|
+ // }
|
|
|
+
|
|
|
+ // })
|
|
|
+ // .catch(res => {
|
|
|
+ // uni.$u.toast(res.message);
|
|
|
+ // });
|
|
|
+ // _this.dataDetails.businessLicenseAddressUrl = result
|
|
|
+ // console.log(_this.dataDetails.businessLicenseAddressUrl)
|
|
|
+ // break
|
|
|
+ // // 身份反面
|
|
|
+ // case 2:
|
|
|
+ // _this.dataDetails.propertyAddressUrl = result
|
|
|
+ // console.log(_this.dataDetails.propertyAddressUrl)
|
|
|
+ // break
|
|
|
+ // case 3:
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // )
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
},
|
|
|
uploadImg(type) {
|
|
|
this.uploadType = type
|
|
|
- this.isShowimgType = true
|
|
|
+ this.imgTypeSelect()
|
|
|
// this.index = index
|
|
|
},
|
|
|
goDetailPage(src) {
|
|
@@ -540,28 +700,7 @@
|
|
|
this.ValidityPeriodType = type
|
|
|
this.isShowcardValidity = true
|
|
|
},
|
|
|
- confirmValidityPeriod(e) {
|
|
|
- switch (this.ValidityPeriodType) {
|
|
|
- case 0:
|
|
|
- if (e.value[0] == '长期') {
|
|
|
- this.dataDetails.businessTermDate = e.value[0]
|
|
|
- } else {
|
|
|
- this.dataDetails.businessTermDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
|
|
|
- }
|
|
|
- break
|
|
|
- case 1:
|
|
|
- if (e.value[0] == '长期') {
|
|
|
- this.dataDetails.siteLeaseDate = e.value[0]
|
|
|
- } else {
|
|
|
- this.dataDetails.siteLeaseDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
|
|
|
- }
|
|
|
- break
|
|
|
- }
|
|
|
- console.log('confirm', e)
|
|
|
-
|
|
|
-
|
|
|
- this.isShowcardValidity = false
|
|
|
- },
|
|
|
+
|
|
|
changeHandler(e) {
|
|
|
const {
|
|
|
columnIndex,
|
|
@@ -632,8 +771,8 @@
|
|
|
.picture {
|
|
|
margin-top: 20rpx;
|
|
|
background: #F5F6FA;
|
|
|
- width: 212rpx;
|
|
|
- height: 212rpx;
|
|
|
+ width: 100%;
|
|
|
+ height: 440rpx;
|
|
|
border-radius: 20rpx;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
@@ -641,6 +780,14 @@
|
|
|
align-items: center;
|
|
|
color: #6A7282;
|
|
|
}
|
|
|
+ .picture1 {
|
|
|
+ background: url(../../../static/images/mine/zm.png);
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+ .picture2 {
|
|
|
+ background: url(../../../static/images/mine/gh.png);
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
|
|
|
.content1 {
|
|
|
background: #fff;
|