|
@@ -1337,69 +1337,75 @@ function setPosition (e,dom,setHighter){
|
|
|
* 2体征颜色单独处理不需要设置
|
|
|
*/
|
|
|
const setFontColorSize = (flg,pacs) => {
|
|
|
- const classNameSelect = ['largeFontSize','middleFontSize','simpleFontSize','simpleLightColor','simpleColor','selectColor']
|
|
|
- const state = store.getState();
|
|
|
- let readConfig = state.typeConfig.readConfig
|
|
|
- let mainType = readConfig==-1?state.typeConfig.typeConfig:readConfig;
|
|
|
- let font = mainType[3],colour = mainType[4],classStr = '';
|
|
|
- if(font == 1&&colour == 1){//字体加大颜色加深
|
|
|
- if(flg == 2){
|
|
|
- if(pacs == 1){
|
|
|
- classStr = `largeFontSize pdright`
|
|
|
- }else if(pacs == 2){
|
|
|
- classStr = `largeFontSize widthChangeed`
|
|
|
- }else if(pacs == 3){
|
|
|
- classStr = `largeFontSize middleImg`
|
|
|
- }else if(pacs == 4){
|
|
|
- classStr = `largeFontSize titleWidth`
|
|
|
- }else if(pacs == 5){
|
|
|
- classStr = `largeFontSize specialSize`
|
|
|
+ // setTimeout(() => {
|
|
|
+ const classNameSelect = ['largeFontSize','middleFontSize','simpleFontSize','simpleLightColor','simpleColor','selectColor']
|
|
|
+ const state = store.getState();
|
|
|
+ let readConfig = state.typeConfig.readConfig
|
|
|
+ let mainType = readConfig==-1?state.typeConfig.typeConfig:readConfig;
|
|
|
+ setInterval(()=>{
|
|
|
+ readConfig = state.typeConfig.readConfig
|
|
|
+ mainType = readConfig==-1?state.typeConfig.typeConfig:readConfig;
|
|
|
+ },300)
|
|
|
+ let font = mainType[3],colour = mainType[4],classStr = '';
|
|
|
+ if(font == 1&&colour == 1){//字体加大颜色加深
|
|
|
+ if(flg == 2){
|
|
|
+ if(pacs == 1){
|
|
|
+ classStr = `largeFontSize pdright`
|
|
|
+ }else if(pacs == 2){
|
|
|
+ classStr = `largeFontSize widthChangeed`
|
|
|
+ }else if(pacs == 3){
|
|
|
+ classStr = `largeFontSize middleImg`
|
|
|
+ }else if(pacs == 4){
|
|
|
+ classStr = `largeFontSize titleWidth`
|
|
|
+ }else if(pacs == 5){
|
|
|
+ classStr = `largeFontSize specialSize`
|
|
|
+ }else{
|
|
|
+ classStr = `largeFontSize`
|
|
|
+ }
|
|
|
+ }else if(flg == 1){
|
|
|
+ classStr = `selectColor largeFontSize`
|
|
|
}else{
|
|
|
- classStr = `largeFontSize`
|
|
|
+ classStr = `selectColor largeFontSize`
|
|
|
}
|
|
|
- }else if(flg == 1){
|
|
|
- classStr = `selectColor largeFontSize`
|
|
|
- }else{
|
|
|
- classStr = `selectColor largeFontSize`
|
|
|
- }
|
|
|
- }else if(font == 0&&colour == 1){//标准字体颜色加黑
|
|
|
- if(flg == 2){
|
|
|
- classStr = `simpleFontSize`
|
|
|
- }else if(flg == 1){
|
|
|
- classStr = `selectColor simpleFontSize`
|
|
|
- }else{
|
|
|
- classStr = `selectColor simpleFontSize`
|
|
|
- }
|
|
|
- }else if(font == 1&&colour == 0){//大字体标准颜色
|
|
|
- if(flg == 2){
|
|
|
- if(pacs == 1){
|
|
|
- classStr = `largeFontSize pdright`
|
|
|
- }else if(pacs == 2){
|
|
|
- classStr = `largeFontSize widthChangeed`
|
|
|
- }else if(pacs == 3){
|
|
|
- classStr = `largeFontSize middleImg`
|
|
|
- }else if(pacs == 4){
|
|
|
- classStr = `largeFontSize titleWidth`
|
|
|
- }else if(pacs == 5){
|
|
|
- classStr = `largeFontSize specialSize`
|
|
|
+ }else if(font == 0&&colour == 1){//标准字体颜色加黑
|
|
|
+ if(flg == 2){
|
|
|
+ classStr = `simpleFontSize`
|
|
|
+ }else if(flg == 1){
|
|
|
+ classStr = `selectColor simpleFontSize`
|
|
|
}else{
|
|
|
- classStr = `largeFontSize`
|
|
|
+ classStr = `selectColor simpleFontSize`
|
|
|
+ }
|
|
|
+ }else if(font == 1&&colour == 0){//大字体标准颜色
|
|
|
+ if(flg == 2){
|
|
|
+ if(pacs == 1){
|
|
|
+ classStr = `largeFontSize pdright`
|
|
|
+ }else if(pacs == 2){
|
|
|
+ classStr = `largeFontSize widthChangeed`
|
|
|
+ }else if(pacs == 3){
|
|
|
+ classStr = `largeFontSize middleImg`
|
|
|
+ }else if(pacs == 4){
|
|
|
+ classStr = `largeFontSize titleWidth`
|
|
|
+ }else if(pacs == 5){
|
|
|
+ classStr = `largeFontSize specialSize`
|
|
|
+ }else{
|
|
|
+ classStr = `largeFontSize`
|
|
|
+ }
|
|
|
+ }else if(flg == 1){
|
|
|
+ classStr = `simpleLightColor largeFontSize`
|
|
|
+ }else{
|
|
|
+ classStr = `simpleColor largeFontSize`
|
|
|
+ }
|
|
|
+ }else{//都是标准的
|
|
|
+ if(flg == 2){
|
|
|
+ classStr = `simpleFontSize`
|
|
|
+ }else if(flg == 1){
|
|
|
+ classStr = `simpleLightColor simpleFontSize`
|
|
|
+ }else{
|
|
|
+ classStr = `simpleColor simpleFontSize`
|
|
|
}
|
|
|
- }else if(flg == 1){
|
|
|
- classStr = `simpleLightColor largeFontSize`
|
|
|
- }else{
|
|
|
- classStr = `simpleColor largeFontSize`
|
|
|
- }
|
|
|
- }else{//都是标准的
|
|
|
- if(flg == 2){
|
|
|
- classStr = `simpleFontSize`
|
|
|
- }else if(flg == 1){
|
|
|
- classStr = `simpleLightColor simpleFontSize`
|
|
|
- }else{
|
|
|
- classStr = `simpleColor simpleFontSize`
|
|
|
}
|
|
|
- }
|
|
|
- return classStr;
|
|
|
+ return classStr;
|
|
|
+ // }, 0);
|
|
|
}
|
|
|
module.exports = {
|
|
|
getIds,
|