Update 19.11.2022
This commit is contained in:
29
HTML/gcphone/src/store/modules/bank.js
Normal file
29
HTML/gcphone/src/store/modules/bank.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import PhoneAPI from './../../PhoneAPI'
|
||||
|
||||
const state = {
|
||||
bankAmont: '0'
|
||||
}
|
||||
|
||||
const getters = {
|
||||
bankAmont: ({ bankAmont }) => bankAmont
|
||||
}
|
||||
|
||||
const actions = {
|
||||
sendpara ({ state }, { id, amount }) {
|
||||
PhoneAPI.callEvent('gcphone:bankTransfer', {id, amount})
|
||||
}
|
||||
}
|
||||
|
||||
const mutations = {
|
||||
SET_BANK_AMONT (state, bankAmont) {
|
||||
state.bankAmont = bankAmont
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
state,
|
||||
getters,
|
||||
actions,
|
||||
mutations
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user