Commit 07075474 authored by 786817560's avatar 786817560

'修改localstorage'

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