Commit a875e5fc authored by 李晓兵's avatar 李晓兵

'绑定'

parent 13f6b2d6
Pipeline #4441 canceled with stages
......@@ -860,12 +860,12 @@ export default {
<style lang="less" scoped>
#my-info {
.content-wrap{
/* .content-wrap{
margin-left:40px;
}
.content-wrap:not(:nth-of-type(1)){
margin-left:70px;
}
}*/
.card-top {
width: 330px;
margin: 0 auto;
......@@ -1007,14 +1007,21 @@ export default {
display: flex;
// justify-content: space-around;
// align-items: center;
flex:1;
// flex:1;
text-align: center;
padding: 0 6%;
justify-content: flex-start;
.content-wrap {
position: relative;
width: 33%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.content-wrap-class {
position: absolute;
top: -10px;
left: 25px;
left: 56px;
font-size: 10px;
width: 18px;
height: 18px;
......
......@@ -34,7 +34,7 @@
placeholder="请输入6~20位密码"
maxlength="20"
oninput="value=value.replace(/[\u4E00-\u9FA5]/g,'')"
@blur="passwordCheck"
>
<img v-if="user_password" :src="openEye" class="right-icon" @click="changeType" >
</div>
......@@ -42,7 +42,7 @@
<img src="../assets/login/pass.png" class="left-icon" >
<input
v-model="confirm" :type="pwdType" oninput="value=value.replace(/[\u4E00-\u9FA5]/g,'')" placeholder="请重新输入密码"
@blur="confirmCheck" >
>
<img v-if="confirm" :src="openEye" class="right-icon" @click="changeType" >
</div>
<div class="button submit" @click="submit">注册</div>
......@@ -182,37 +182,42 @@ export default {
vm.confirmPassword = true
}
},
submit () {
async submit () {
let vm = this
if (!vm.phoneNumberFlag) {
hlsPopup.showLongCenter('请输入手机号!')
} else if (vm.verifiedCode !== vm.captchaKey) {
hlsPopup.showLongCenter('验证码错误!')
} else if (!vm.passwordFlag) {
} else if (!vm.user_password) {
hlsPopup.showLongCenter('请输入密码!')
} else if (!vm.confirmPassword) {
} else if (!vm.confirm) {
hlsPopup.showLongCenter('请确认密码!')
} else {
let url = process.env.basePath + 'register'
let md5passwprd = CryptoJS.MD5(vm.user_password)
.toString()
.toUpperCase()
let params = {
master: {
phone: vm.phone_number,
password: md5passwprd,
},
}
hlsHttp.post(url, params).then(function (res) {
if (res.result === 'S') {
hlsPopup.showLongCenter('注册成功')
setTimeout(function () {
vm.$router.push('login')
}, 100)
} else {
hlsPopup.showLongCenter(res.message)
await vm.passwordCheck()
await vm.confirmCheck()
if(vm.passwordFlag && vm.confirmPassword){
let url = process.env.basePath + 'register'
let md5passwprd = CryptoJS.MD5(vm.user_password)
.toString()
.toUpperCase()
let params = {
master: {
phone: vm.phone_number,
password: md5passwprd,
},
}
})
hlsHttp.post(url, params).then(function (res) {
if (res.result === 'S') {
hlsPopup.showLongCenter('注册成功')
setTimeout(function () {
vm.$router.push('login')
}, 100)
} else {
hlsPopup.showLongCenter(res.message)
}
})
}
}
},
returnLogin () {
......
......@@ -436,41 +436,100 @@ export default {
beforeRouteEnter (to, from, next) {
// 绑定查询入口
next(vm => {
vm.list = {}
vm.multiBpType = {}
vm.upload_list = [] // 上传图片列表
vm.dowload_list = [] // 下载图片列表
vm.img_url = {}
vm.baseInfo = {}
vm.idCardFront = '' // 身份证正面图片
vm.idCardBack = '' // 身份证反面图片
vm.idCardFrontSp = '' // 配偶身份证正面图片
vm.idCardBackSp = '' // 配偶身份证反面图片
vm.idCardFrontUrlFlag = false // 身份证正面图片查看标识,为false则用查询出来的,为true则用拍照出来的
vm.idCardBackUrlFlag = false // 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm.idCardFrontSpUrlFlag = false // 配偶身份证正面图片,为false则用查询出来的,为true则用拍照出来的
vm.idCardBackSpUrlFlag = false // 配偶身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm.cddItemList = [] // 资料清单列表
vm.idCardFrontCheck_id = '' // 身份证正面check_id
vm.idCardBackCheck_id = '' // 身份证反面check_id
vm.idCardFrontSpCheck_id = '' // 配偶身份证正面check_id
vm.idCardBackSpCheck_id = '' // 配偶身份证反面check_id
vm.idCardFrontAttachmentId = '' // 身份证正面AttachmentId
vm.idCardBackAttachmentId = '' // 身份证反面AttachmentId
vm.idCardFrontSpAttachmentId = '' // 配偶身份证正面AttachmentId
vm.idCardBackSpAttachmentId = '' // 配偶身份证反面AttachmentId
vm.idCardFrontEditFlag = false // 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.idCardBackEditFlag = false // 身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.idCardFrontSpEditFlag = false // 配偶身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.idCardBackSpEditFlag = false // 配偶身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.isClear = false
if (from.fullPath === '/tab/my-info') {
vm.list = {}
vm.multiBpType = {}
vm.upload_list = [] // 上传图片列表
vm.dowload_list = [] // 下载图片列表
vm.img_url = {}
vm.baseInfo = {}
vm.idCardFront = '' // 身份证正面图片
vm.idCardBack = '' // 身份证反面图片
vm.idCardFrontSp = '' // 配偶身份证正面图片
vm.idCardBackSp = '' // 配偶身份证反面图片
vm.idCardFrontUrlFlag = false // 身份证正面图片查看标识,为false则用查询出来的,为true则用拍照出来的
vm.idCardBackUrlFlag = false // 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm.idCardFrontSpUrlFlag = false // 配偶身份证正面图片,为false则用查询出来的,为true则用拍照出来的
vm.idCardBackSpUrlFlag = false // 配偶身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm.cddItemList = [] // 资料清单列表
vm.idCardFrontCheck_id = '' // 身份证正面check_id
vm.idCardBackCheck_id = '' // 身份证反面check_id
vm.idCardFrontSpCheck_id = '' // 配偶身份证正面check_id
vm.idCardBackSpCheck_id = '' // 配偶身份证反面check_id
vm.idCardFrontAttachmentId = '' // 身份证正面AttachmentId
vm.idCardBackAttachmentId = '' // 身份证反面AttachmentId
vm.idCardFrontSpAttachmentId = '' // 配偶身份证正面AttachmentId
vm.idCardBackSpAttachmentId = '' // 配偶身份证反面AttachmentId
vm.idCardFrontEditFlag = false // 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.idCardBackEditFlag = false // 身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.idCardFrontSpEditFlag = false // 配偶身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.idCardBackSpEditFlag = false // 配偶身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.isClear = false
vm.from = true
vm.basicInfoQuery()
vm.loadItemList() // 附件查询
} else if (from.name === 'UserBind') {
vm.baseInfo.bp_class = vm.$route.params.bp_class
vm.list = {}
vm.multiBpType = {
bp_type_n: '',
bp_type: '',
}
vm.upload_list = [] // 上传图片列表
vm.dowload_list = [] // 下载图片列表
vm.img_url = {}
vm.baseInfo = {
bp_type_n: '',
academic_background_n: '',
marital_status_n: '',
bp_type: '',
bp_class: vm.$route.params.bp_class,
bp_name: '',
province_name: '',
province_id: '',
city_name: '',
city_id: '',
id_card_no: null,
id_card_date_from: '', // 身份证有效期从
id_card_date_to: '', // 身份证有效期到
cell_phone: window.localStorage.getItem('user_phone'),
living_address: '',
address_on_resident_booklit: '',
marital_status: '',
academic_background: '',
bp_name_sp: '',
id_card_no_sp: '', // 配偶身份证号
id_card_date_from_sp: '', // 配偶身份证有效期从
id_card_date_to_sp: '', // 配偶身份证有效期到
district_id: '',
district_name: '',
spouse_phone: '',
working_place_sp: '',
address_sp: '',
user_phone: window.localStorage.user_phone,
}
vm.idCardFront = '' // 身份证正面图片
vm.idCardBack = '' // 身份证反面图片
vm.idCardFrontSp = '' // 配偶身份证正面图片
vm.idCardBackSp = '' // 配偶身份证反面图片
vm.idCardFrontUrlFlag = false // 身份证正面图片查看标识,为false则用查询出来的,为true则用拍照出来的
vm.idCardBackUrlFlag = false // 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm.idCardFrontSpUrlFlag = false // 配偶身份证正面图片,为false则用查询出来的,为true则用拍照出来的
vm.idCardBackSpUrlFlag = false // 配偶身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm.cddItemList = [] // 资料清单列表
vm.idCardFrontCheck_id = '' // 身份证正面check_id
vm.idCardBackCheck_id = '' // 身份证反面check_id
vm.idCardFrontSpCheck_id = '' // 配偶身份证正面check_id
vm.idCardBackSpCheck_id = '' // 配偶身份证反面check_id
vm.idCardFrontAttachmentId = '' // 身份证正面AttachmentId
vm.idCardBackAttachmentId = '' // 身份证反面AttachmentId
vm.idCardFrontSpAttachmentId = '' // 配偶身份证正面AttachmentId
vm.idCardBackSpAttachmentId = '' // 配偶身份证反面AttachmentId
vm.idCardFrontEditFlag = false // 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.idCardBackEditFlag = false // 身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.idCardFrontSpEditFlag = false // 配偶身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.idCardBackSpEditFlag = false // 配偶身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.isClear = false
//vm.baseInfo.bp_class = vm.$route.params.bp_class
}
})
},
......
......@@ -99,8 +99,20 @@ export default {
},
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'NPBaseInfo' && window.localStorage.from) {
vm.invoiceInfo = {}
if (from.name === 'NPBaseInfo') {
vm.invoiceInfo = {
bp_id: null,
bp_class: null,
taxpayer_type_n: '',
invoice_kind_n: '',
taxpayer_type: '',
invoice_kind: '',
invoice_title: '',
invoice_adds: '',
invoice_tel: '',
open_bank: '',
open_account: '',
}
vm.getInvoice()
}
})
......
This diff is collapsed.
......@@ -106,8 +106,19 @@ export default {
watch: {},
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'EnterpriseNew' && vm.$route.params.from) {
vm.invoiceInfo = {}
if (from.name === 'EnterpriseNew') {
vm.invoiceInfo = {
invoice_kind: '',
invoice_kind_n: '',
taxpayer_type: '',
invoice_title: '',
taxpayer_type_n: '',
organization_code: '',
invoice_adds: '',
invoice_tel: '',
open_bank: '',
open_account: '',
}
vm.invoiceInfo.invoice_title = vm.$route.params.bp_name
vm.invoiceInfo.organization_code = vm.$route.params.organization_code
vm.bp_id = vm.$route.params.bp_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment