【新增】支付弹窗和修复bug

This commit is contained in:
yanran200830
2024-10-30 17:29:21 +08:00
parent 4b6e221369
commit 4bfb4c2d1a
5 changed files with 250 additions and 106 deletions

View File

@@ -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')