|
|
@@ -261,6 +261,7 @@ const reducerRoutes=(state,action)=>{
|
|
|
//sport 配置
|
|
|
let bbConf=null;
|
|
|
let popFirst=0;
|
|
|
+ let showInstall=0;
|
|
|
if (conf){
|
|
|
if (!!conf.hall)hallServerUrl=conf.hall;
|
|
|
if (!!conf.DOLLAR)global.DOLLAR=conf.DOLLAR;
|
|
|
@@ -292,10 +293,11 @@ const reducerRoutes=(state,action)=>{
|
|
|
if (!!conf.loginOpen)loginOpen=conf.loginOpen;
|
|
|
if (!!conf.registerOpen)registerOpen=conf.registerOpen;
|
|
|
if (!!conf.popFirst)popFirst=conf.popFirst;
|
|
|
+ if (!!conf.showInstall)showInstall=conf.showInstall;
|
|
|
}
|
|
|
//favorites
|
|
|
// let favorites=getFavorites(json.favorites);
|
|
|
- Object.assign(state, {routes:state.routes,asyncRoutes:data,styles,blocks,...generData,isLogin:isLogin,userInfo,hallServerUrl,promoteInstall,guest,upgradeBonus,popWheel,popBindPhone,firstBonus,openRelief,bbConf,accountLogin,area,loginOpen,registerOpen,popFirst});
|
|
|
+ Object.assign(state, {routes:state.routes,asyncRoutes:data,styles,blocks,...generData,isLogin:isLogin,userInfo,hallServerUrl,promoteInstall,guest,upgradeBonus,popWheel,popBindPhone,firstBonus,openRelief,bbConf,accountLogin,area,loginOpen,registerOpen,popFirst,showInstall});
|
|
|
// Object.assign(state, {routes:state.routes,asyncRoutes:data,styles:styles,blocks:blocks,...generData,isLogin:isLogin,userInfo:userInfo,hallServerUrl:hallServerUrl,promoteInstall:promoteInstall,guest:guest,upgradeBonus:upgradeBonus});
|
|
|
}
|
|
|
}
|
|
|
@@ -636,7 +638,8 @@ export const Main=createSlice({
|
|
|
area:0,
|
|
|
loginOpen:"",
|
|
|
registerOpen:"",
|
|
|
- popFirst:0
|
|
|
+ popFirst:0,
|
|
|
+ showInstall:0
|
|
|
},
|
|
|
reducers: {
|
|
|
logout:(state, action)=>{
|
|
|
@@ -986,6 +989,9 @@ export const getRegisterOpen=(state)=>{
|
|
|
export const getPopFirst=(state)=>{
|
|
|
return state.main.popFirst;
|
|
|
}
|
|
|
+export const getShowInstall=(state)=>{
|
|
|
+ return state.main.showInstall;
|
|
|
+}
|
|
|
//数据获取
|
|
|
export default Main.reducer;
|
|
|
|