You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

66 lines
1.9 KiB

/* 银行系统 */
export default {
namespaced: true,
state: {/* 管理柜台状态 */
showPop: false,// 弹框
popText:'钱箱',
fullScreen:false,// 银行系统是否全屏
showGoods: false, // 物品栏的展开和关闭
goods:[// 物品栏的物品
{
name:'身份证',
src:require('@/assets/img/goods/idcard.png'),
id:'a'
},
{
name:'身份证复印件',
src:require('@/assets/img/idCard-copy-sm.png'),
id:'b'
},
{
name:'开户申请书',
src:require('@/assets/img/goods/khsqs.png'),
id:'c'
},
{
name:'现金',
src:require('@/assets/img/goods/cash-sm.png'),
id:'d'
},
{
name:'存款凭条',
src:require('@/assets/img/goods/ckpt.png'),
id:'e'
},
],
},
mutations: {
changeFullscreen:(state,val) => {
state.fullScreen = val
},
changePop:(state,val)=>{
state.showPop = val.show
state.popText = val.text
state.id = val.id
if(!val.text.includes('密码') && val.show) {
state.showGoods = true;
}
},
changeGoods:(state,obj)=>{/* 赋值/push/删除 */
if(obj.goods&&obj.goods.length>0){
state.goods = obj.goods
}else if(obj.push&&obj.push.length>0){
state.goods.push(...obj.push)
}else if(typeof(obj.splice)===Number ){
state.goods.splice(obj.splice,1)
}
},
// 物品栏的展开和关闭
changeShowGoods(state, judge) {
state.showGoods = judge
}
},
actions: {
}
}