卖家红点

This commit is contained in:
李志鹏
2026-06-03 17:33:13 +08:00
parent 3519eeffd7
commit 10b632572a
2 changed files with 13 additions and 2 deletions

View File

@@ -19,12 +19,14 @@ interface Seller {
isSeller: boolean,
applyStatus: number | null,
designerInfo: DesignerInfo,
firstEnter: boolean,
}
const seller: Module<Seller, RootState> = {
namespaced: true,
state: {
isSeller: false,
firstEnter: false,
applyStatus: null,
designerInfo: {
shopName: "--",
@@ -38,6 +40,9 @@ const seller: Module<Seller, RootState> = {
},
},
mutations: {
set_firstEnter(state: Seller, value: boolean) {
state.firstEnter = value
},
set_isSeller(state: Seller, value: boolean) {
state.isSeller = value
},
@@ -77,7 +82,8 @@ const seller: Module<Seller, RootState> = {
actions: {
get_isSeller({ commit }) {
Https.axiosGet(Https.httpUrls.checkSellerDesigner).then(rv => {
commit('set_isSeller', !!rv)
commit('set_isSeller', !!rv.hasQualification)
commit('set_firstEnter', !rv.firstEnter)
})
},
async get_designerInfo({ commit }) {