Commit 94c03ffa authored by 786817560's avatar 786817560

'修改localstorage'

parent 4e28425c
......@@ -2,7 +2,7 @@
* @Description: In User Settings Edit
* @Author: liuxin
* @Date: 2019-09-19 09:18:14
* @LastEditTime: 2019-09-27 13:21:31
* @LastEditTime: 2019-09-27 19:02:48
* @LastEditors: Please set LastEditors
-->
<template>
......@@ -161,7 +161,7 @@
</bottom-tab>
<h-modal ref="modal" v-model="showModalValue" position="bottom" cus-class="sign-modal">
<h-view>
<div class="modal-content">
<h-content class="modal-content">
<notify v-model="show1" content="请输入本人的银行卡" type="warning" class="notice" />
<notify v-model="show2" content="请输入完整字段" type="warning" class="notice" />
<notify v-model="show3" content="添加成功" type="success" class="notice" />
......@@ -188,7 +188,7 @@
<input slot="content" v-model="bank.bank_branch_name" placeholder="请输入支行名称" >
</item>
</list-item>
</div>
</h-content>
</h-view>
<bottom-tab class="add-box">
<tab-button class="add-card" @click.native="addBankInfo">添加</tab-button>
......@@ -812,7 +812,6 @@ export default {
display: none;
}
.modal-content {
width: 100%;
height: 75%;
position: absolute;
top: 25%;
......
......@@ -2,7 +2,7 @@
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-19 09:31:19
* @LastEditTime: 2019-09-27 18:11:48
* @LastEditTime: 2019-09-27 19:00:59
* @LastEditors: Please set LastEditors
-->
<template>
......@@ -209,7 +209,7 @@
<tab-button class="save" @click.native="verified">保存</tab-button>
</bottom-tab>
<h-modal ref="modal" v-model="showModalValue" position="bottom" cus-class="enterprise--modal">
<h-view>
<h-view class="tras">
<div class="modal-content">
<div class="modal-content-add-top">
<span>添加银行卡</span>
......@@ -386,7 +386,8 @@ export default {
methods: {
getBankInfo () {
let vm = this
let bpId = window.localStorage.getItem('user_id')
// let bpId = window.localStorage.getItem('user_id')
let bpId = vm.bp_id
let url = process.env.basePath + 'bp_bank_query'
let param = {
bp_id: bpId,
......@@ -403,7 +404,8 @@ export default {
let url = $config.basePath + 'bp_bind_submit'
let param = {
master: {
bp_id: window.localStorage.getItem('user_id'),
// bp_id: window.localStorage.getItem('user_id'),
bp_id: this.bp_id,
company_id: '2145',
},
}
......@@ -659,8 +661,8 @@ export default {
if (res.result === 'S') {
vm.hlsPopup.hideLoading()
vm.hlsPopup.showSuccess('保存成功')
window.localStorage.setItem('user_id', res.bp_id)
window.sessionStorage.setItem('user_id', res.bp_id)
// window.localStorage.setItem('user_id', res.bp_id)
// window.sessionStorage.setItem('user_id', res.bp_id)
vm.bp_id = res.bp_id
}
})
......@@ -1043,7 +1045,7 @@ export default {
color: #fff;
}
}
.modal {
.tras {
background-color: rgba(0, 0, 0, 0) !important;
}
</style>
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