【新增】支付弹窗和修复bug
This commit is contained in:
@@ -15,7 +15,8 @@ export default new Vuex.Store({
|
||||
activeDlgShow: false,
|
||||
showSheinAlert: false,
|
||||
showTemuAlert: false,
|
||||
userInfo: {}
|
||||
userInfo: {},
|
||||
labelInfo: {}
|
||||
},
|
||||
|
||||
mutations: {
|
||||
@@ -54,6 +55,9 @@ export default new Vuex.Store({
|
||||
},
|
||||
setTemuAlertShow(state, flag) {
|
||||
state.showTemuAlert = flag
|
||||
},
|
||||
setLabelInfo(state, info) {
|
||||
state.info = info
|
||||
}
|
||||
},
|
||||
|
||||
@@ -66,8 +70,21 @@ export default new Vuex.Store({
|
||||
resolve(res.data)
|
||||
}
|
||||
})
|
||||
this.getLabelInfo()
|
||||
})
|
||||
},
|
||||
|
||||
getLabelInfo(store) {
|
||||
return new Promise(resolve => {
|
||||
request.post('/api/userExtend/getLabelDetail').then(res => {
|
||||
if (res.code === 0) {
|
||||
store.commit('setLabelInfo', res.data)
|
||||
resolve(res.data)
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
SignOut(store, isClear) {
|
||||
if (isClear) {
|
||||
store.commit('logout')
|
||||
|
||||
Reference in New Issue
Block a user