|
@@ -12,7 +12,7 @@
|
|
|
<view style='padding:10px 0 10px;' class="flex flex-space-between items-center width100">
|
|
|
<view style='width:100px;font-size:14px;'>法定代表人姓名</view>
|
|
|
<view class="flex">
|
|
|
- <u--input disabledColor='#fff' disabled placeholder="自动获取" inputAlign='left' border="none" v-model="dataDetails.legalPersonName">
|
|
|
+ <u--input disabledColor='#fff' disabled placeholder="自动获取" inputAlign='left' border="none" v-model="dataDetails.legalPersonName1">
|
|
|
</u--input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -50,9 +50,9 @@
|
|
|
</view>
|
|
|
</view> -->
|
|
|
<view class="flex row noborder">
|
|
|
- <view class="left-text">授权截止日期</view>
|
|
|
+ <view stlye='width:100px;' class="left-text">授权截止日期</view>
|
|
|
<view style='font-size:16px;width:50%;' class='flex flex-space-between' @click="selectdate">
|
|
|
- <view :style="{'color':dataDetails.authorizationDeadline ? '#000':'#C6CBD5'}">{{dataDetails.authorizationDeadline?dataDetails.authorizationDeadline:'选择期限截止日期'}}</view>
|
|
|
+ <view style='padding-left:20px;' :style="{'color':dataDetails.authorizationDeadline ? '#000':'#C6CBD5'}">{{dataDetails.authorizationDeadline?dataDetails.authorizationDeadline:'选择期限截止日期'}}</view>
|
|
|
<view><u-icon name="arrow-right" color="#7E7E7E" size="10"></u-icon></view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -66,7 +66,7 @@
|
|
|
</u-action-sheet>
|
|
|
<view class="content4">
|
|
|
<view style='margin:0 0 18px;font-size:12px;color:#999;' class='flex items-center'>
|
|
|
- <u--image style='margin-right:5px;' @click='consent'
|
|
|
+ <u--image style='margin-right:5px;margin-top: 16rpx;' @click='consent'
|
|
|
:src="checked?'../../../static/mine/duihao@2x.png':'../../../static/mine/wxz.png'"
|
|
|
width="12px" height="12px"></u--image>
|
|
|
我已阅读并同意全部细则
|
|
@@ -84,6 +84,7 @@
|
|
|
mapState
|
|
|
} from 'vuex';
|
|
|
import upload from '@/components/upload.vue';
|
|
|
+ import permision from "@/js_sdk/wa-permission/permission.js"
|
|
|
import uploadImage from '@/components/ossutil/uploadFile.js';
|
|
|
export default {
|
|
|
components: {
|
|
@@ -109,6 +110,7 @@
|
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
|
},
|
|
|
onLoad(options){
|
|
|
+ this.get_camera_permission()
|
|
|
if(uni.getStorageSync('cargoOwnerId')){
|
|
|
this.dataDetails.cargoOwnerId=uni.getStorageSync('cargoOwnerId')
|
|
|
}
|
|
@@ -116,6 +118,15 @@
|
|
|
// this.getList()
|
|
|
|
|
|
this.dataDetails = options
|
|
|
+ if(this.dataDetails.legalPersonName.length==2){
|
|
|
+ this.dataDetails.legalPersonName1=this.dataDetails.legalPersonName.toString().replace(/^([^\x00-\xff])([^\x00-\xff]{0,})([^\x00-\xff])/g , '$1*')
|
|
|
+ }else if(this.dataDetails.legalPersonName.length==3){
|
|
|
+ this.dataDetails.legalPersonName1=this.dataDetails.legalPersonName.toString().replace(/^([^\x00-\xff])([^\x00-\xff]{0,})([^\x00-\xff])/g , '$1*$3')
|
|
|
+ }else if(this.dataDetails.legalPersonName.length==4){
|
|
|
+ this.dataDetails.legalPersonName1=this.dataDetails.legalPersonName.toString().replace(/^([^\x00-\xff])([^\x00-\xff]{0,2})([^\x00-\xff])/g , '$1**$3')
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log(this.dataDetails)
|
|
|
if(options.certificateAddressUrl){
|
|
|
var arr = options.certificateAddressUrl.split(',')
|
|
|
this.urlList = options.certificateAddressUrl.split(',')
|
|
@@ -133,6 +144,23 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ async get_camera_permission() {
|
|
|
+ var photol=await permision.requestAndroidPermission("android.permission.CAMERA")
|
|
|
+ if(photol == false){
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '您已经关闭相册权限,去设置',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ permision.gotoAppPermissionSetting()
|
|
|
+ // plus.runtime.openURL("app-settings:");
|
|
|
+ } else if (res.cancel) {
|
|
|
+ console.log('用户点击取消');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
uploadFilePromise(file,url) {
|
|
|
uploadImage('image',url, 'appData/',
|
|
|
result => {
|
|
@@ -276,8 +304,10 @@
|
|
|
<style lang='scss' scoped>
|
|
|
page{
|
|
|
background: #F5F6FA;
|
|
|
+
|
|
|
}
|
|
|
.content{
|
|
|
+ height:100vh;
|
|
|
/* background: white; */
|
|
|
/* padding:20rpx */
|
|
|
}
|