|
@@ -127,11 +127,12 @@
|
|
|
</view>
|
|
|
<view class='content3' v-if="dataDetails.videoAddressUrl">
|
|
|
<view class="left-text">视频验证(点击按钮播放视频)</view>
|
|
|
- <view>
|
|
|
+ <video class="myVideo" :src="dataDetails.videoAddressUrl" controls></video>
|
|
|
+ <!-- <view>
|
|
|
<view class="video-icon">
|
|
|
<u-icon size="40" name="play-circle-fill" @click="isSshowPlayVideo=true"></u-icon>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
|
|
|
<view class="content4">
|
|
@@ -180,7 +181,6 @@
|
|
|
return {
|
|
|
isSshowPlayVideo: false,
|
|
|
srcHandler() {
|
|
|
- //
|
|
|
return `/hybrid/html/play.html?src=${this.dataDetails.videoAddressUrl}`
|
|
|
},
|
|
|
consentStatus: false,
|
|
@@ -212,7 +212,8 @@
|
|
|
propertyAddressUrl: '',
|
|
|
advanceFreightService: 1,
|
|
|
landOwnership: '自有',
|
|
|
- videoAddressUrl: null
|
|
|
+ videoAddressUrl: null,
|
|
|
+ legalPersonName:''
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -224,12 +225,34 @@
|
|
|
this.dataDetails.phone = this.userInfo.phone
|
|
|
console.log('```````````````')
|
|
|
console.log(options)
|
|
|
+ if(uni.getStorageSync('companydata')){
|
|
|
+ this.dataDetails = uni.getStorageSync('companydata')
|
|
|
+ }
|
|
|
this.dataDetails.videoAddressUrl = options.videoSrc
|
|
|
+ this.getName()
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
|
},
|
|
|
methods: {
|
|
|
+ getName(){
|
|
|
+ let that = this
|
|
|
+ this.$request.baseRequest('get', '/cargoOwnerInfo/selectCargoOwner', {
|
|
|
+ commonId: this.userInfo.id
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code==200) {debugger
|
|
|
+ that.dataDetails.legalPersonName = res.data.name
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ uni.hideLoading()
|
|
|
+ uni.showToast({
|
|
|
+ title: res.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ });
|
|
|
+ },
|
|
|
loadedmetadata(event) {
|
|
|
console.log(event)
|
|
|
},
|
|
@@ -250,6 +273,13 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
+ if (this.dataDetails.companyName.length<4||this.dataDetails.companyName.length<25) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "企业名称字数在4-25个字!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.legalPersonName)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -439,10 +469,7 @@
|
|
|
// this.index = index
|
|
|
},
|
|
|
goDetailPage(src) {
|
|
|
- uni.setStorage({
|
|
|
- key: 'companydata',
|
|
|
- data: JSON.stringify(this.dataDetails)
|
|
|
- });
|
|
|
+ uni.setStorageSync('companydata', this.dataDetails);
|
|
|
uni.$u.route(src);
|
|
|
},
|
|
|
selectValidityPeriod(type) {
|
|
@@ -673,4 +700,7 @@
|
|
|
align-items: center;
|
|
|
color: #6A7282;
|
|
|
}
|
|
|
+ .myVideo{
|
|
|
+
|
|
|
+ }
|
|
|
</style>
|