@ -8,24 +8,22 @@
< u -steps -item :title ="languageData.me.submitForReview" desc = "" > < / u - s t e p s - i t e m >
< u -steps -item :title ="languageData.me.submitForReview" desc = "" > < / u - s t e p s - i t e m >
< / u - s t e p s >
< / u - s t e p s >
<!-- < view class = "form-title" > { { formData . userType === '0' ? languageData . me . personalData : languageData . me . merchantInfo } } < / view > -- >
<!-- < view class = "form-title" > { { formData . userType === '0' ? languageData . me . personalData : languageData . me . merchantInfo } } < / view > -- >
< uni -forms style = "max-height: 60vh; margin-top:30px; overflow-y: auto;" label -position = " left " :label-width ="70" label -align = " left " ref = "form" :model ="formData" :rules ="rules" >
< uni -forms style = "max-height: 60vh; margin-top:30px; overflow-y: auto;" label -position = " left "
: label - width = "70" label - align = "left" ref = "form" : model = "formData" : rules = "rules" >
< view v-show ="step!==1" >
< view v-show ="step!==1" >
< uni -forms -item :label ="languageData.me.userType" name = "userType" >
< uni -forms -item :label ="languageData.me.userType" name = "userType" >
< uni -easyinput disabled :placeholder ="languageData.me.correspondentAccount" clearable / >
< uni -easyinput disabled :placeholder ="languageData.me.correspondentAccount" clearable / >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< uni -forms -item :label ="languageData.me.agentName" name = "name" >
< uni -forms -item :label ="languageData.me.agentName" name = "name" >
< uni -easyinput : disabled = "step === 2" v -model = " formData.agentName " :placeholder ="languageData.me.agentName" clearable / >
< uni -easyinput : disabled = "step === 2" v -model = " formData.agentName "
: placeholder = "languageData.me.agentName" clearable / >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< view @ click = "showBizType = true" >
< view @ click = "showBizType = true" >
< uni -forms -item style = "pointer-events: none" :label ="languageData.me.runType" name = "operateType" >
< uni -forms -item style = "pointer-events: none" :label ="languageData.me.runType"
< u - -input
name = "operateType" >
border = "surround"
< u - -input border = "surround" v -model = " formData.operateTypeLabel "
v - model = "formData.operateTypeLabel"
: placeholder = "languageData.me.runType" : disabled = "true"
: placeholder = "languageData.me.runType"
: disabledColor = "step === 2 ? '#F7F6F6':'white'" suffixIcon = "arrow-down" > < / u - - i n p u t >
: disabled = "true"
: disabledColor = "step === 2 ? '#F7F6F6':'white'"
suffixIcon = "arrow-down"
> < / u - - i n p u t >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< / view >
< / view >
< / view >
< / view >
@ -34,141 +32,153 @@
< uni -forms -item :label ="languageData.me.authenticationType" >
< uni -forms -item :label ="languageData.me.authenticationType" >
< view class = "gender-options" >
< view class = "gender-options" >
< u -radio -group : disabled = "step === 2" v -model = " formData.licenseType " placement = "row"
< u -radio -group : disabled = "step === 2" v -model = " formData.licenseType " placement = "row"
style = "justify-content: space-around;" >
style = "justify-content: space-around;" >
< u -radio size = "25" : customStyle = "{marginBottom: '8px'}"
< u -radio size = "25" : customStyle = "{marginBottom: '8px'}" v -for = " ( item , index ) in [ { label : languageData.functions.passport , name : 0 } ,
v - for = " ( item , index ) in [ { label : languageData . functions . passport , name : '0' } ,
{ label : languageData . functions . idCard , name : 1 } ] " :key=" index " :label=" item . label " :name=" item . name " >
{ label : languageData . functions . idCard , name : '1' } ] "
: key = "index" : label = "item.label" : name = "item.name" >
< / u - r a d i o >
< / u - r a d i o >
< / u - r a d i o - g r o u p >
< / u - r a d i o - g r o u p >
< / view >
< / view >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< uni -forms -item :label ="languageData.me.leName" name = "legalPersoName" >
< uni -forms -item :label ="languageData.me.leName" name = "legalPersoName" >
< uni -easyinput : disabled = "step === 2" v -model = " formData.legalPersonName " :placeholder ="languageData.me.leName" clearable / >
< uni -easyinput : disabled = "step === 2" v -model = " formData.legalPersonName "
: placeholder = "languageData.me.leName" clearable / >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< uni -forms -item :label ="languageData.me.lePhone" name = "contactPersonPhone" >
< uni -forms -item :label ="languageData.me.lePhone" name = "contactPersonPhone" >
< uni -easyinput : disabled = "step === 2" v -model = " formData.contactPersonPhone " :placeholder ="languageData.me.lePhone" clearable / >
< uni -easyinput : disabled = "step === 2" v -model = " formData.contactPersonPhone "
: placeholder = "languageData.me.lePhone" clearable / >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< uni -forms -item :label ="languageData.me.leMail" name = "contactPersonEmail" >
< uni -forms -item :label ="languageData.me.leMail" name = "contactPersonEmail" >
< uni -easyinput : disabled = "step === 2" v -model = " formData.contactPersonEmail " :placeholder ="languageData.me.leMail" clearable / >
< uni -easyinput : disabled = "step === 2" v -model = " formData.contactPersonEmail "
: placeholder = "languageData.me.leMail" clearable / >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< view @click ="dateClick('i')" >
< view @click ="dateClick('i')" >
< uni -forms -item style = "pointer-events: none;" :label ="languageData.me.signDate" name = "expDate" >
< uni -forms -item style = "pointer-events: none;" :label ="languageData.me.signDate"
< u - -input
name = "expDate" >
border = "surround"
< u - -input border = "surround" v -model = " formData.legalPersonDateOfIssue "
v - model = "formData.legalPersonDateOfIssue"
: placeholder = "languageData.me.signDate" : disabled = "true"
: placeholder = "languageData.me.signDate"
: disabledColor = "step === 2 ? '#F7F6F6':'white'" suffixIcon = "arrow-down" > < / u - - i n p u t >
: disabled = "true"
: disabledColor = "step === 2 ? '#F7F6F6':'white'"
suffixIcon = "arrow-down"
> < / u - - i n p u t >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< / view >
< / view >
< view @click ="dateClick('e')" >
< view @click ="dateClick('e')" >
< uni -forms -item style = "pointer-events: none;" :label ="languageData.me.exTime" name = "expDate" >
< uni -forms -item style = "pointer-events: none;" :label ="languageData.me.exTime"
< u - -input
name = "expDate" >
border = "surround"
< u - -input border = "surround" v -model = " formData.legalPersonExpirationTime "
v - model = "formData.legalPersonExpirationTime"
: placeholder = "languageData.me.exTime" : disabled = "true"
: placeholder = "languageData.me.exTime"
: disabledColor = "step === 2 ? '#F7F6F6':'white'" suffixIcon = "arrow-down" > < / u - - i n p u t >
: disabled = "true"
: disabledColor = "step === 2 ? '#F7F6F6':'white'"
suffixIcon = "arrow-down"
> < / u - - i n p u t >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< / view >
< / view >
< uni -forms -item :label ="languageData.me.leId" name = "legalPersonIdCard" >
< uni -forms -item :label ="languageData.me.leId" name = "legalPersonIdCard" >
< uni -easyinput : disabled = "step === 2" v -model = " formData.legalPersonIdCard " :placeholder ="languageData.me.leId" clearable / >
< uni -easyinput : disabled = "step === 2" v -model = " formData.legalPersonIdCard "
: placeholder = "languageData.me.leId" clearable / >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< view v-if ="formData.licenseType == 1" >
< view v-if ="formData.licenseType == 1" >
< uni -forms -item style = "align-items: left;" :label ="languageData.me.leupIdImg" name = "cardImg" >
< uni -forms -item style = "align-items: left;" :label ="languageData.me.leupIdImg"
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList1" @afterRead ="afterRead"
name = "cardImg" >
@ delete = "deletePic" name = "1" multiple : maxCount = "1" >
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList1"
@ afterRead = "afterRead" @ delete = "deletePic" name = "1" multiple : maxCount = "1" >
< / u - u p l o a d >
< / u - u p l o a d >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< uni -forms -item style = "align-items: left;" :label ="languageData.me.lebackIdImg" name = "cardImg" >
< uni -forms -item style = "align-items: left;" :label ="languageData.me.lebackIdImg"
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList2" @afterRead ="afterRead"
name = "cardImg" >
@ delete = "deletePic" name = "2" multiple : maxCount = "1" >
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList2"
@ afterRead = "afterRead" @ delete = "deletePic" name = "2" multiple : maxCount = "1" >
< / u - u p l o a d >
< / u - u p l o a d >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< uni -forms -item style = "align-items: left;" :label ="languageData.me.leholdIdImg" name = "cardImg" >
< uni -forms -item style = "align-items: left;" :label ="languageData.me.leholdIdImg"
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList3" @afterRead ="afterRead"
name = "cardImg" >
@ delete = "deletePic" name = "3" multiple : maxCount = "1" >
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList3"
@ afterRead = "afterRead" @ delete = "deletePic" name = "3" multiple : maxCount = "1" >
< / u - u p l o a d >
< / u - u p l o a d >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< / view >
< / view >
< view v-show ="formData.licenseType == 0" >
< view v-show ="formData.licenseType == 0" >
< uni -forms -item v-if ="formData.licenseType == 0" style="align-items: left;" :label="languageData.functions.passportInformation" name="cardImg" >
< uni -forms -item v -if = " formData.licenseType = = 0 " style = "align-items: left;"
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList4" @ afterRead = "(e)=>afterRead(e, 'pa')"
: label = "languageData.functions.passportInformation" name = "cardImg" >
@ delete = "(e)=>deletePic(e, 'pa')" name = "4" multiple : maxCount = "1" >
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList6"
@ afterRead = "(e)=>afterRead(e, 'pa')" @ delete = "(e)=>deletePic(e, 'pa')" name = "6"
multiple : maxCount = "1" >
< / u - u p l o a d >
< / u - u p l o a d >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< / view >
< / view >
< view @click ="addrClick('a')" >
< view @click ="addrClick('a')" >
< uni -forms -item style = "pointer-events: none" :label ="languageData.me.runArea" name = "address" >
< uni -forms -item style = "pointer-events: none" :label ="languageData.me.runArea"
< u - -input
name = "address" >
border = "surround"
< u - -input border = "surround" v -model = " formData.area "
v - model = "formData.area"
: placeholder = "languageData.me.runArea" : disabled = "true"
: placeholder = "languageData.me.runArea"
: disabledColor = "step === 2 ? '#F7F6F6':'white'" suffixIcon = "arrow-down" > < / u - - i n p u t >
: disabled = "true"
: disabledColor = "step === 2 ? '#F7F6F6':'white'"
suffixIcon = "arrow-down"
> < / u - - i n p u t >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< / view >
< / view >
< uni -forms -item :label ="languageData.me.addrDetail" name = "address" >
< uni -forms -item :label ="languageData.me.addrDetail" name = "address" >
< uni -easyinput : disabled = "step === 2" v -model = " formData.address " :placeholder ="languageData.me.addrDetail" clearable / >
< uni -easyinput : disabled = "step === 2" v -model = " formData.address "
: placeholder = "languageData.me.addrDetail" clearable / >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< uni -forms -item :label ="languageData.me.runCode" name = "businessLicenseNumber" >
< uni -forms -item :label ="languageData.me.runCode" name = "businessLicenseNumber" >
< uni -easyinput : disabled = "step === 2" v -model = " formData.businessLicenseNumber " :placeholder ="languageData.me.runCode" clearable / >
< uni -easyinput : disabled = "step === 2" v -model = " formData.businessLicenseNumber "
: placeholder = "languageData.me.runCode" clearable / >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< / view >
< / view >
< uni -forms -item v-show ="true" style="align-items: left;" :label="languageData.me.runImg" name="cardImg" >
< uni -forms -item v -show = " true " style = "align-items: left;" :label ="languageData.me.runImg"
name = "cardImg" >
< view >
< view >
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList4" @afterRead ="afterRead"
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList4"
@ delete = "deletePic" name = "4" multiple : maxCount = "1" >
@ afterRead = "afterRead" @ delete = "deletePic" name = "4" multiple : maxCount = "1" >
< / u - u p l o a d >
< / u - u p l o a d >
< / view >
< / view >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< uni -forms -item v-show ="true" style="align-items: left;" :label="languageData.me.guaImg" name="cardImg" >
< uni -forms -item v -show = " true " style = "align-items: left;" :label ="languageData.me.guaImg"
name = "cardImg" >
< view >
< view >
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList5" @afterRead ="afterRead"
< u -upload : disabled = "step === 2" style = "margin-left: 0px;" :fileList ="fileList5"
@ delete = "deletePic" name = "5" multiple : maxCount = "1" >
@ afterRead = "afterRead" @ delete = "deletePic" name = "5" multiple : maxCount = "1" >
< / u - u p l o a d >
< / u - u p l o a d >
< / view >
< / view >
< / u n i - f o r m s - i t e m >
< / u n i - f o r m s - i t e m >
< uni -forms -item :label ="languageData.account.eContract" >
< view style = "display: flex; flex-direction: column; align-items: flex-start;" >
< view > < a @click.prevent.stop ="showContract=true" href = "#" > 《 { { languageData . account . agentContract } } 》 < / a > < / view >
< view class = "gender-options" style = "gap: 0;" >
< u -radio -group : disabled = "step === 2" v -model = " formData.bankAccountNumber "
placement = "row" style = "" >
< u -radio size = "25" : customStyle = "{marginBottom: '8px'}" v -for = " ( item , index ) in [ { label : languageData.account.agree , name : ' 1 ' } , { label : languageData.account.disagree , name : ' 0 ' }
] " :key=" index " :label=" item . label " :name=" item . name " >
< / u - r a d i o >
< / u - r a d i o - g r o u p >
< / view >
< / view >
< / u n i - f o r m s - i t e m >
< / view >
< / view >
< / u n i - f o r m s >
< / u n i - f o r m s >
< view >
< view >
< button v-show ="step>0" class="submit-btn" @click="step = step === 0 ? step:step-1" > {{ languageData.functions.lastStep }} < / button >
< button v -show = " step > 0 && ! checkOnly " class=" submit - btn "
< button v-show ="step<2" class="submit-btn" @click="nextStep()" > {{ languageData.functions.nextStep }} < / button >
@ click = "step = step === 0 ? step:step-1" > { { languageData . functions . lastStep } } < / button >
< button v-show ="step===2" class="submit-btn" @click="handleSubmit" > {{ languageData.me.submit }} < / button >
< button v -show = " step < 2 & & ! checkOnly " class = "submit-btn"
@ click = "nextStep()" > { { languageData . functions . nextStep } } < / button >
< button v-show ="step===2 && !checkOnly" class="submit-btn" @click="handleSubmit" > {{ languageData.me.submit }} < / button >
< / view >
< / view >
< / view >
< / view >
< u -datetime -picker
< u -datetime -picker ref = "datetimePicker" :show ="showBirth" mode = "date" :value ="pickerDate" :minDate ="0"
ref = "datetimePicker"
: maxDate = "7289625599000" @ confirm = "dateConf" @ cancel = "dateClose" >
: show = "showBirth"
mode = "date"
: value = "pickerDate"
: minDate = "0"
: maxDate = "7289625599000"
@ confirm = "dateConf"
@ cancel = "dateClose"
>
< / u - d a t e t i m e - p i c k e r >
< / u - d a t e t i m e - p i c k e r >
< u -picker @cancel ="bizTYpeCancel" @confirm ="bizTypeConfirm" keyName = "label" :show ="showBizType"
< u -picker @cancel ="bizTYpeCancel" @confirm ="bizTypeConfirm" keyName = "label" :show ="showBizType"
: columns = "opTypes" > < / u - p i c k e r >
: columns = "opTypes" > < / u - p i c k e r >
< u -picker :show ="showAddr" ref = "uPicker"
< u -picker :show ="showAddr" ref = "uPicker" :columns ="addrData.province" @confirm ="addrConf" @change ="addrChg"
: columns = "addrData.province"
@ confirm = "addrConf" @ change = "addrChg"
@ cancel = "addrClose" > < / u - p i c k e r >
@ cancel = "addrClose" > < / u - p i c k e r >
< u -popup :show ="showContract" mode = "bottom" @close ="showContract=false" >
< view style = "width: 100%; height: 60vh;overflow-y: auto; padding: 20px; margin-top: 10px; " >
< view style = "text-align: center;" > 《 { { languageData . account . agentContract } } 》 < / view > < br >
< view style = "text-indent: 2em;" > { { languageData . account . contrtent } } < / view >
< / view >
< / u - p o p u p >
< loading ref = "loading" :custom ="false" :shadeClick ="false" :type ="1" / >
< loading ref = "loading" :custom ="false" :shadeClick ="false" :type ="1" / >
< / view >
< / view >
@ -179,50 +189,66 @@
updateAgentProfile ,
updateAgentProfile ,
verifyPhoneNumber
verifyPhoneNumber
} from "@/api/system/user" ;
} from "@/api/system/user" ;
import { baseUrl } from "@/config" ;
import {
import { addr } from "@/config/addr" ;
baseUrl
} from "@/config" ;
import {
addr
} from "@/config/addr" ;
export default {
export default {
computed : {
computed : {
user ( ) {
user ( ) {
return this . $store . state . user
return this . $store . state . user
} ,
} ,
baseUrl ( ) {
baseUrl ( ) {
return baseUrl
return baseUrl
}
}
} ,
} ,
data ( ) {
data ( ) {
return {
return {
opTypes : [ [ { label : this . $languageData . me . lspf , id : 0 } , { label : this . $languageData . me . manu , id : 1 } , { label : this . $languageData . me . serv , id : 2 } ] ] ,
showContract : false ,
showBizType : false ,
opTypes : [
[ {
label : this . $languageData . me . lspf ,
id : 0
} , {
label : this . $languageData . me . manu ,
id : 1
} , {
label : this . $languageData . me . serv ,
id : 2
} ]
] ,
showBizType : false ,
pickerDate : new Date ( ) . getTime ( ) ,
pickerDate : new Date ( ) . getTime ( ) ,
step : 0 ,
step : 0 ,
addrData : '' ,
addrData : '' ,
dateItem : '' ,
dateItem : '' ,
showBirth : false ,
showBirth : false ,
showAddr : false ,
showAddr : false ,
fileList1 : [ ] ,
fileList1 : [ ] ,
fileList2 : [ ] ,
fileList2 : [ ] ,
fileList3 : [ ] ,
fileList3 : [ ] ,
fileList4 : [ ] ,
fileList4 : [ ] ,
fileList5 : [ ] ,
fileList5 : [ ] ,
fileList6 : [ ] ,
formData : { } ,
formData : { } ,
rules : {
rules : { }
}
}
}
} ,
} ,
onLoad ( e ) {
onLoad ( e ) {
if ( e . checkOnly ) {
if ( e . checkOnly ) {
this . step = 2
this . step = 2
this . checkOnly = true
this . checkOnly = true
}
}
this . getUser ( )
this . getUser ( )
this . languageData = this . $languageData ;
this . languageData = this . $languageData ;
if ( uni . getLocale ( ) == 'en' ) {
if ( uni . getLocale ( ) == 'en' ) {
this . addrData = addr . en
this . addrData = addr . en
} else if ( uni . getLocale ( ) == 'zh-Hans' ) {
} else if ( uni . getLocale ( ) == 'zh-Hans' ) {
this . addrData = addr . cn
this . addrData = addr . cn
} else {
} else {
this . addrData = addr . laos
this . addrData = addr . laos
}
}
} ,
} ,
@ -231,132 +257,167 @@
this . languageData = this . $languageData ;
this . languageData = this . $languageData ;
} ,
} ,
methods : {
methods : {
bizTypeConfirm ( e ) {
bizTypeConfirm ( e ) {
this . formData . operateTypeLabel = e . value [ 0 ] . label
this . formData . operateTypeLabel = e . value [ 0 ] . label
this . formData . operateType = e . value [ 0 ] . id
this . formData . operateType = e . value [ 0 ] . id
this . showBizType = false
this . showBizType = false
} ,
} ,
bizTYpeCancel ( e ) {
bizTYpeCancel ( e ) {
this . showBizType = false
this . showBizType = false
} ,
} ,
nextStep ( ) {
nextStep ( ) {
let msg = '' ;
let msg = '' ;
if ( this . step === 0 ) {
if ( this . step === 0 ) {
/ / i f ( t h i s . f o r m D a t a . e m a i l = = = ' ' | | t h i s . f o r m D a t a . e m a i l = = n u l l )
/ / i f ( t h i s . f o r m D a t a . e m a i l = = = ' ' | | t h i s . f o r m D a t a . e m a i l = = n u l l )
/ / m s g + = ' 电 子 邮 箱 '
/ / m s g + = ' 电 子 邮 箱 '
if ( this . formData . agentName === '' || this . formData . agentName == null )
if ( this . formData . agentName === '' || this . formData . agentName == null )
msg += ' ' + this . $languageData . me . merchanrName + ' '
msg += ' ' + this . $languageData . me . merchanrName + ' '
if ( this . formData . operateType === '' || this . formData . operateType == null )
if ( this . formData . operateType === '' || this . formData . operateType == null )
msg += ' ' + this . $languageData . me . runType + ' '
msg += ' ' + this . $languageData . me . runType + ' '
}
} else if ( this . step === 1 ) {
else if ( this . step === 1 ) {
if ( this . formData . legalPersonName === '' || this . formData . legalPersonName == null )
if ( this . formData . legalPersonName === '' || this . formData . legalPersonName == null )
msg += ' ' + this . $languageData . me . leName + ' '
msg += ' ' + this . $languageData . me . leName + ' '
if ( this . formData . contactPersonPhone === '' || this . formData . contactPersonPhone == null )
if ( this . formData . contactPersonPhone === '' || this . formData . contactPersonPhone == null )
msg += ' ' + this . $languageData . me . lePhone + ' '
msg += ' ' + this . $languageData . me . lePhone + ' '
if ( this . formData . contactPersonEmail === '' || this . formData . contactPersonEmail == null )
if ( this . formData . contactPersonEmail === '' || this . formData . contactPersonEmail == null )
msg += ' ' + this . $languageData . me . leMail + ' '
msg += ' ' + this . $languageData . me . leMail + ' '
if ( this . formData . legalPersonDateOfIssue === '' || this . formData . legalPersonDateOfIssue == null )
if ( this . formData . legalPersonDateOfIssue === '' || this . formData . legalPersonDateOfIssue == null )
msg += ' ' + this . $languageData . me . signDate + ' '
msg += ' ' + this . $languageData . me . signDate + ' '
if ( this . formData . legalPersonExpirationTime === '' || this . formData . legalPersonExpirationTime == null )
if ( this . formData . legalPersonExpirationTime === '' || this . formData . legalPersonExpirationTime == null )
msg += ' ' + this . $languageData . me . exTime + ' '
msg += ' ' + this . $languageData . me . exTime + ' '
if ( this . formData . legalPersonIdCard === '' || this . formData . legalPersonIdCard == null )
if ( this . formData . legalPersonIdCard === '' || this . formData . legalPersonIdCard == null )
msg += ' ' + this . $languageData . me . leId + ' '
msg += ' ' + this . $languageData . me . leId + ' '
if ( ( this . fileList1 == null || this . fileList1 . length === 0 ) && this . formData . licenseType == 0 )
if ( this . fileList1 == null || this . fileList1 . length === 0 )
msg += ' ' + this . $languageData . me . leupIdImg + ' '
msg += ' ' + this . $languageData . me . leupIdImg + ' '
if ( ( this . fileList2 == null || this . fileList2 . length === 0 ) && this . formData . licenseType == 0 )
if ( this . fileList2 == null || this . fileList2 . length === 0 )
msg += ' ' + this . $languageData . me . lebackIdImg + ' '
msg += ' ' + this . $languageData . me . lebackIdImg + ' '
if ( ( this . fileList3 == null || this . fileList3 . length === 0 ) && this . formData . licenseType == 1 )
if ( this . fileList3 == null || this . fileList3 . length === 0 )
msg += ' ' + this . $languageData . me . leholdIdImg + ' '
msg += ' ' + this . $languageData . me . leholdIdImg + ' '
if ( this . formData . area == null || this . formData . area === 0 )
if ( this . formData . area == null || this . formData . area === 0 )
msg += ' ' + this . $languageData . me . runArea + ' '
msg += ' ' + this . $languageData . me . runArea + ' '
if ( this . formData . address == null || this . formData . address === 0 )
if ( this . formData . address == null || this . formData . address === 0 )
msg += ' ' + this . $languageData . me . addrDetail + ' '
msg += ' ' + this . $languageData . me . addrDetail + ' '
if ( this . formData . businessLicenseNumber === '' || this . formData . businessLicenseNumber == null )
if ( this . formData . businessLicenseNumber === '' || this . formData . businessLicenseNumber == null )
msg += ' ' + this . $languageData . me . runCode + ' '
msg += ' ' + this . $languageData . me . runCode + ' '
if ( this . fileList4 == null || this . fileList4 . length === 0 )
if ( this . fileList4 == null || this . fileList4 . length === 0 )
msg += ' ' + this . $languageData . me . runImg + ' '
msg += ' ' + this . $languageData . me . runImg + ' '
if ( this . fileList5 == null || this . fileList5 . length === 0 )
if ( this . fileList5 == null || this . fileList5 . length === 0 )
msg += ' ' + this . $languageData . me . guaImg + ' '
msg += ' ' + this . $languageData . me . guaImg + ' '
if ( ( this . fileList6 == null || this . fileList6 . length === 0 ) && this . formData . licenseType == 0 )
}
msg += ' ' + this . $languageData . functions . passport + ' '
if ( msg . length > 0 ) {
}
this . $modal . msg ( msg + this . $languageData . me . cannotbeNUll )
if ( msg . length > 0 ) {
this . $modal . msg ( msg + this . $languageData . me . cannotbeNUll )
return
return
}
}
this . step = this . step === 2 ? this . step : this . step + 1
this . step = this . step === 2 ? this . step : this . step + 1
} ,
} ,
dateClick ( type ) {
dateClick ( type ) {
if ( this . step === 2 ) return
if ( this . step === 2 ) return
this . dateItem = type
this . dateItem = type
this . showBirth = true ;
this . showBirth = true ;
} ,
} ,
dateConf ( e ) {
dateConf ( e ) {
this . showBirth = false ;
this . showBirth = false ;
/ / 签 发
/ / 签 发
if ( this . dateItem === 'i' ) {
if ( this . dateItem === 'i' ) {
this . formData . legalPersonDateOfIssue = this . $dayjs ( e . value ) . format ( "DD/MM/YYYY" )
this . formData . legalPersonDateOfIssue = this . $dayjs ( e . value ) . format ( "DD/MM/YYYY" )
}
}
/ / 到 期 日 期
/ / 到 期 日 期
if ( this . dateItem === 'e' ) {
if ( this . dateItem === 'e' ) {
this . formData . legalPersonExpirationTime = this . $dayjs ( e . value ) . format ( "DD/MM/YYYY" )
this . formData . legalPersonExpirationTime = this . $dayjs ( e . value ) . format ( "DD/MM/YYYY" )
}
}
} ,
} ,
dateClose ( e ) {
dateClose ( e ) {
this . showBirth = false
this . showBirth = false
} ,
} ,
addrClick ( type ) {
addrClick ( type ) {
if ( this . step === 2 ) return
if ( this . step === 2 ) return
this . showAddr = true
this . showAddr = true
} ,
} ,
addrChg ( e ) {
addrChg ( e ) {
const { columnIndex , value , values , index , picker = this . $refs . uPicker } = e
const {
columnIndex ,
value ,
values ,
index ,
picker = this . $refs . uPicker
} = e
/ / 当 第 一 列 值 发 生 变 化 时 , 变 化 第 二 列 ( 后 一 列 ) 对 应 的 选 项
/ / 当 第 一 列 值 发 生 变 化 时 , 变 化 第 二 列 ( 后 一 列 ) 对 应 的 选 项
if ( columnIndex === 0 ) {
if ( columnIndex === 0 ) {
/ / p i c k e r 为 选 择 器 t h i s 实 例 , 变 化 第 二 列 对 应 的 选 项
/ / p i c k e r 为 选 择 器 t h i s 实 例 , 变 化 第 二 列 对 应 的 选 项
picker . setColumnValues ( 1 , this . addrData . district [ index ] )
picker . setColumnValues ( 1 , this . addrData . district [ index ] )
}
}
} ,
} ,
addrConf ( e ) {
addrConf ( e ) {
console . log ( e )
console . log ( e )
this . formData . area = e . value [ 0 ] + ' / ' + e . value [ 1 ]
this . formData . area = e . value [ 0 ] + ' / ' + e . value [ 1 ]
this . showAddr = false
this . showAddr = false
} ,
} ,
addrClose ( e ) {
addrClose ( e ) {
this . showAddr = false
this . showAddr = false
} ,
} ,
getUser ( ) {
getUser ( ) {
getAgentProfile ( ) . then ( response => {
getAgentProfile ( ) . then ( response => {
this . formData = response . data
this . formData = response . data
if ( this . formData . contactAddress ) {
if ( this . formData . contactAddress ) {
let addr = this . formData . contactAddress
let addr = this . formData . contactAddress
let idx = addr . lastIndexOf ( '/' )
let idx = addr . lastIndexOf ( '/' )
this . formData . area = addr . substring ( 0 , idx )
this . formData . area = addr . substring ( 0 , idx )
this . formData . address = addr . substring ( idx + 1 )
this . formData . address = addr . substring ( idx + 1 )
}
}
if ( this . formData . operateType ) {
if ( this . formData . operateType ) {
this . formData . operateTypeLabel = this . opTypes [ 0 ] . filter ( item => item . id == this . formData . operateType ) [ 0 ] . label
this . formData . operateTypeLabel = this . opTypes [ 0 ] . filter ( item => item . id == this . formData
}
. operateType ) [ 0 ] . label
if ( this . formData . idCardFrontImagePath )
}
this . fileList1 = [ { type : "image" , url : this . formData . idCardFrontImagePath ,
if ( this . formData . idCardFrontImagePath )
thumb : this . formData . idCardFrontImagePath , status : "sucess" } ]
this . fileList1 = [ {
if ( this . formData . idCardBackImagePath )
type : "image" ,
this . fileList2 = [ { type : "image" , url : this . formData . idCardBackImagePath ,
url : this . formData . idCardFrontImagePath ,
thumb : this . formData . idCardBackImagePath , status : "sucess" } ]
thumb : this . formData . idCardFrontImagePath ,
if ( this . formData . userWithIdCardImagePath )
status : "sucess"
this . fileList3 = [ { type : "image" , url : this . formData . userWithIdCardImagePath ,
} ]
thumb : this . formData . userWithIdCardImagePath , status : "sucess" } ]
if ( this . formData . idCardBackImagePath )
if ( this . formData . businessLicenseImage )
this . fileList2 = [ {
this . fileList4 = [ { type : "image" , url : this . formData . businessLicenseImage ,
type : "image" ,
thumb : this . formData . businessLicenseImage , status : "sucess" } ]
url : this . formData . idCardBackImagePath ,
if ( this . formData . earnestMoney )
thumb : this . formData . idCardBackImagePath ,
this . fileList5 = [ { type : "image" , url : this . formData . earnestMoney ,
status : "sucess"
thumb : this . formData . earnestMoney , status : "sucess" } ]
} ]
if ( this . formData . gender == null ) this . formData . gender = ''
if ( this . formData . userWithIdCardImagePath )
this . fileList3 = [ {
type : "image" ,
url : this . formData . userWithIdCardImagePath ,
thumb : this . formData . userWithIdCardImagePath ,
status : "sucess"
} ]
if ( this . formData . businessLicenseImage )
this . fileList4 = [ {
type : "image" ,
url : this . formData . businessLicenseImage ,
thumb : this . formData . businessLicenseImage ,
status : "sucess"
} ]
if ( this . formData . earnestMoney )
this . fileList5 = [ {
type : "image" ,
url : this . formData . earnestMoney ,
thumb : this . formData . earnestMoney ,
status : "sucess"
} ]
if ( this . formData . passportImagePath )
this . fileList6 = [ {
type : "image" ,
url : this . formData . passportImagePath ,
thumb : this . formData . passportImagePath ,
status : "sucess"
} ]
if ( this . formData . gender == null ) this . formData . gender = ''
} )
} )
} ,
} ,
@ -364,26 +425,29 @@
this . $refs . loading . open ( ) ;
this . $refs . loading . open ( ) ;
this . formData . contactAddress = this . formData . area + '/' + this . formData . address
this . formData . contactAddress = this . formData . area + '/' + this . formData . address
if ( this . fileList1 . length > 0 )
if ( this . fileList1 . length > 0 )
this . formData . idCardFrontImagePath = this . fileList1 [ 0 ] . url
this . formData . idCardFrontImagePath = this . fileList1 [ 0 ] . url
if ( this . fileList2 . length > 0 )
if ( this . fileList2 . length > 0 )
this . formData . idCardBackImagePath = this . fileList2 [ 0 ] . url
this . formData . idCardBackImagePath = this . fileList2 [ 0 ] . url
if ( this . fileList3 . length > 0 )
if ( this . fileList3 . length > 0 )
this . formData . userWithIdCardImagePath = this . fileList3 [ 0 ] . url
this . formData . userWithIdCardImagePath = this . fileList3 [ 0 ] . url
if ( this . fileList4 . length > 0 )
if ( this . fileList4 . length > 0 )
this . formData . businessLicenseImage = this . fileList4 [ 0 ] . url
this . formData . businessLicenseImage = this . fileList4 [ 0 ] . url
if ( this . fileList5 . length > 0 )
if ( this . fileList5 . length > 0 )
this . formData . earnestMoney = this . fileList5 [ 0 ] . url
this . formData . earnestMoney = this . fileList5 [ 0 ] . url
if ( this . fileList6 . length > 0 )
this . formData . passportImagePath = this . fileList6 [ 0 ] . url
this . formData . commonContactAddress = this . formData . area + '/' + this . formData . address
this . formData . commonContactAddress = this . formData . area + '/' + this . formData . address
this . $refs . form . validate ( ) . then ( res => {
this . $refs . form . validate ( ) . then ( res => {
updateAgentProfile ( this . formData ) . then ( res => {
updateAgentProfile ( this . formData ) . then ( res => {
if ( res . code === 200 ) {
if ( res . code === 200 ) {
this . $store . dispatch ( 'GetInfo' ) . then ( res => {
this . $store . dispatch ( 'GetInfo' ) . then ( res => {
setTimeout ( ( ) => {
setTimeout ( ( ) => {
this . $refs . loading . close ( ) ;
this . $refs . loading . close ( ) ;
setTimeout ( ( ) => {
setTimeout ( ( ) => {
this . $modal . msgSuccess ( this . languageData . updateSuccess )
this . $modal . msgSuccess ( this . languageData
. updateSuccess )
uni . switchTab ( {
uni . switchTab ( {
url : '/pages/home/index'
url : '/pages/home/index'
} )
} )
@ -402,27 +466,30 @@
this . submit ( ) ;
this . submit ( ) ;
} ,
} ,
deletePic ( event , type ) {
deletePic ( event , type ) {
if ( this . checkOnly || this . step == 2 )
if ( this . checkOnly || this . step == 2 )
return
return
this [ ` fileList ${ event . name } ` ] . splice ( event . index , 1 ) ;
this [ ` fileList ${ event . name } ` ] . splice ( event . index , 1 ) ;
} ,
} ,
/ / 新 增 图 片
/ / 新 增 图 片
async afterRead ( event ) {
async afterRead ( event ) {
if ( ! this . formData . fileLlist1 ) {
if ( ! this . formData . fileLlist1 ) {
this . formData . fileList1 = [ ]
this . formData . fileList1 = [ ]
}
}
if ( ! this . formData . fileLlist2 ) {
if ( ! this . formData . fileLlist2 ) {
this . formData . fileList2 = [ ]
this . formData . fileList2 = [ ]
}
}
if ( ! this . formData . fileLlist3 ) {
if ( ! this . formData . fileLlist3 ) {
this . formData . fileList3 = [ ]
this . formData . fileList3 = [ ]
}
}
if ( ! this . formData . fileLlist4 ) {
if ( ! this . formData . fileLlist4 ) {
this . formData . fileList4 = [ ]
this . formData . fileList4 = [ ]
}
}
if ( ! this . formData . fileLlist5 ) {
if ( ! this . formData . fileLlist5 ) {
this . formData . fileList5 = [ ]
this . formData . fileList5 = [ ]
}
}
if ( ! this . formData . fileLlist6 ) {
this . formData . fileList6 = [ ]
}
/ / 当 设 置 m u l t i p l e 为 t r u e 时 , f i l e 为 数 组 格 式 , 否 则 为 对 象 格 式
/ / 当 设 置 m u l t i p l e 为 t r u e 时 , f i l e 为 数 组 格 式 , 否 则 为 对 象 格 式
let lists = [ ] . concat ( event . file ) ;
let lists = [ ] . concat ( event . file ) ;
let fileListLen = this [ ` fileList ${ event . name } ` ] . length ;
let fileListLen = this [ ` fileList ${ event . name } ` ] . length ;
@ -435,7 +502,7 @@
} ) ;
} ) ;
for ( let i = 0 ; i < lists . length ; i ++ ) {
for ( let i = 0 ; i < lists . length ; i ++ ) {
const result = await this . uploadFilePromise ( lists [ i ] . url ) ;
const result = await this . uploadFilePromise ( lists [ i ] . url ) ;
const rsUrl = this . baseUrl + '/file/' + JSON . parse ( result ) . data
const rsUrl = this . baseUrl + '/file/' + JSON . parse ( result ) . data
let item = this [ ` fileList ${ event . name } ` ] [ fileListLen ] ;
let item = this [ ` fileList ${ event . name } ` ] [ fileListLen ] ;
this [ ` fileList ${ event . name } ` ] . splice (
this [ ` fileList ${ event . name } ` ] . splice (
fileListLen ,
fileListLen ,