|
@@ -24,7 +24,7 @@
|
|
<view class="flex row">
|
|
<view class="flex row">
|
|
<view class="left-text">营业期限截止日期</view>
|
|
<view class="left-text">营业期限截止日期</view>
|
|
<view style='font-size:14px;width:50%;' class='flex flex-space-between'
|
|
<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'}">
|
|
<view :style="{'color':dataDetails.businessTermDate ? '#000':'#C6CBD5'}">
|
|
{{dataDetails.businessTermDate?dataDetails.businessTermDate:'选择期限截止日期'}}
|
|
{{dataDetails.businessTermDate?dataDetails.businessTermDate:'选择期限截止日期'}}
|
|
</view>
|
|
</view>
|
|
@@ -66,6 +66,44 @@
|
|
</u--input>
|
|
</u--input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <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="flex border-bottom mt20 align-center">
|
|
<view class="left">通讯地址</view>
|
|
<view class="left">通讯地址</view>
|
|
<view class="flex right">
|
|
<view class="flex right">
|
|
@@ -235,11 +273,11 @@
|
|
videoAddressUrl: null,
|
|
videoAddressUrl: null,
|
|
legalPersonName: ''
|
|
legalPersonName: ''
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ dataType:""
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- console.log(uni.getStorageSync("videoSrc"))
|
|
|
|
var viderSrc = uni.getStorageSync("videoSrc")
|
|
var viderSrc = uni.getStorageSync("videoSrc")
|
|
if (viderSrc) {
|
|
if (viderSrc) {
|
|
this.dataDetails.videoAddressUrl = viderSrc
|
|
this.dataDetails.videoAddressUrl = viderSrc
|
|
@@ -248,7 +286,6 @@
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
this.dataDetails.id = options.id
|
|
this.dataDetails.id = options.id
|
|
this.validityPeriod = this.$helper.makeValidityPeriod(0, '长期')
|
|
this.validityPeriod = this.$helper.makeValidityPeriod(0, '长期')
|
|
- console.log(this)
|
|
|
|
this.dataDetails.commonId = this.userInfo.id
|
|
this.dataDetails.commonId = this.userInfo.id
|
|
this.dataDetails.phone = this.userInfo.phone
|
|
this.dataDetails.phone = this.userInfo.phone
|
|
console.log('```````````````')
|
|
console.log('```````````````')
|
|
@@ -263,6 +300,29 @@
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
},
|
|
},
|
|
methods: {
|
|
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) {
|
|
screenChange(e) {
|
|
let fullScreen = e.detail.fullScreen; // 值true为进入全屏,false为退出全屏
|
|
let fullScreen = e.detail.fullScreen; // 值true为进入全屏,false为退出全屏
|
|
console.log(e, "全屏");
|
|
console.log(e, "全屏");
|
|
@@ -505,55 +565,131 @@
|
|
},
|
|
},
|
|
imgTypeSelect(val) {
|
|
imgTypeSelect(val) {
|
|
var _this = this
|
|
var _this = this
|
|
- if (val.name == '相册') {
|
|
|
|
|
|
+ // if (val.name == '相册') {
|
|
uni.chooseImage({
|
|
uni.chooseImage({
|
|
count: 1,
|
|
count: 1,
|
|
- sourceType: this.$helper.chooseImage.sourceType,
|
|
|
|
|
|
+ // sourceType: ,
|
|
success: function(res) {
|
|
success: function(res) {
|
|
console.log(JSON.stringify(res.tempFilePaths));
|
|
console.log(JSON.stringify(res.tempFilePaths));
|
|
uploadImage('image', res.tempFilePaths[0], 'appData/',
|
|
uploadImage('image', res.tempFilePaths[0], 'appData/',
|
|
result => {
|
|
result => {
|
|
// 上传成功回调函数
|
|
// 上传成功回调函数
|
|
- console.log('图片地址', result)
|
|
|
|
-
|
|
|
|
switch (_this.uploadType) {
|
|
switch (_this.uploadType) {
|
|
|
|
+
|
|
// 身份正面
|
|
// 身份正面
|
|
case 1:
|
|
case 1:
|
|
_this.dataDetails.businessLicenseAddressUrl = result
|
|
_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)
|
|
console.log(_this.dataDetails.businessLicenseAddressUrl)
|
|
break
|
|
break
|
|
// 身份反面
|
|
// 身份反面
|
|
case 2:
|
|
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
|
|
break
|
|
case 3:
|
|
case 3:
|
|
|
|
+ _this.dataDetails.cardBackAddressUrl = result
|
|
|
|
+ _this.$forceUpdate()
|
|
break;
|
|
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) {
|
|
uploadImg(type) {
|
|
this.uploadType = type
|
|
this.uploadType = type
|
|
- this.isShowimgType = true
|
|
|
|
|
|
+ this.imgTypeSelect()
|
|
// this.index = index
|
|
// this.index = index
|
|
},
|
|
},
|
|
goDetailPage(src) {
|
|
goDetailPage(src) {
|
|
@@ -564,28 +700,7 @@
|
|
this.ValidityPeriodType = type
|
|
this.ValidityPeriodType = type
|
|
this.isShowcardValidity = true
|
|
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) {
|
|
changeHandler(e) {
|
|
const {
|
|
const {
|
|
columnIndex,
|
|
columnIndex,
|
|
@@ -656,8 +771,8 @@
|
|
.picture {
|
|
.picture {
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|
|
background: #F5F6FA;
|
|
background: #F5F6FA;
|
|
- width: 212rpx;
|
|
|
|
- height: 212rpx;
|
|
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 440rpx;
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
@@ -665,6 +780,14 @@
|
|
align-items: center;
|
|
align-items: center;
|
|
color: #6A7282;
|
|
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 {
|
|
.content1 {
|
|
background: #fff;
|
|
background: #fff;
|