Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sass-admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj_app
sass-admin
Commits
1a57bc75
Commit
1a57bc75
authored
Dec 17, 2024
by
潘本斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7618c2ba
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
209 additions
and
105 deletions
+209
-105
src/common/Layout/Header/index.js
+3
-2
src/pages/SystemManagement/Banner/editBanner.jsx
+113
-70
src/pages/SystemManagement/Banner/index.jsx
+30
-16
src/pages/SystemManagement/Information/index.jsx
+46
-4
src/pages/SystemManagement/Site/Door/indexPage/mobile.jsx
+12
-8
src/pages/SystemManagement/Site/Door/indexPage/mobilePlugin/AddMenu.jsx
+3
-3
src/pages/SystemManagement/Site/Door/previewIndexPage/mobile.jsx
+0
-0
src/services/serve.js
+2
-2
src/static/imgs/1logo.png
+0
-0
No files found.
src/common/Layout/Header/index.js
View file @
1a57bc75
...
@@ -10,7 +10,7 @@ import SelectLang from "./SelectLang";
...
@@ -10,7 +10,7 @@ import SelectLang from "./SelectLang";
}
}
import
HeaderDropdown
from
"./HeaderDropdown"
;
import
HeaderDropdown
from
"./HeaderDropdown"
;
// import cookie from "react-cookies";bug-12952-cwj
// import cookie from "react-cookies";bug-12952-cwj
import
headerLogo
from
"../../../static/imgs/
headerL
ogo.png"
;
import
headerLogo
from
"../../../static/imgs/
1l
ogo.png"
;
class
Header
extends
PureComponent
{
class
Header
extends
PureComponent
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -88,7 +88,8 @@ class Header extends PureComponent {
...
@@ -88,7 +88,8 @@ class Header extends PureComponent {
<
div
className
=
{
styles
.
logo
}
>
<
div
className
=
{
styles
.
logo
}
>
<
img
<
img
className
=
{
styles
.
image
}
className
=
{
styles
.
image
}
src
=
{
nav
.
logo
?
nav
.
logo
:
headerLogo
}
// src={nav.logo ? nav.logo : headerLogo}
src
=
{
headerLogo
}
/
>
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/pages/SystemManagement/Banner/editBanner.jsx
View file @
1a57bc75
...
@@ -22,8 +22,8 @@ class EditBanner extends Component {
...
@@ -22,8 +22,8 @@ class EditBanner extends Component {
useRatio
:
[],
useRatio
:
[],
moduleType
:
{},
moduleType
:
{},
selecteditem
:
{},
selecteditem
:
{},
recordLink4
:
''
,
recordLink4
:
""
,
currentTerminalData
:[],
currentTerminalData
:
[],
};
};
this
.
columns
=
[
this
.
columns
=
[
{
{
...
@@ -35,51 +35,53 @@ class EditBanner extends Component {
...
@@ -35,51 +35,53 @@ class EditBanner extends Component {
}
}
componentDidMount
()
{
componentDidMount
()
{
const
{
currentModule
,
currentRecord
}
=
this
.
props
const
{
currentModule
,
currentRecord
}
=
this
.
props
;
this
.
getList
(
currentModule
.
moduleName
,
currentRecord
);
this
.
getList
(
currentModule
.
moduleName
,
currentRecord
);
this
.
switchRatio
();
this
.
switchRatio
();
this
.
initModuleType
();
this
.
initModuleType
();
}
}
getList
=
(
bannerName
,
currentRecord
)
=>
{
getList
=
(
bannerName
,
currentRecord
)
=>
{
let
prodectType
=
""
;
let
prodectType
=
""
;
let
{
checkValue
}
=
this
.
state
;
let
{
checkValue
}
=
this
.
state
;
this
.
setState
({
this
.
setState
({
recordLink4
:
currentRecord
.
homeType
recordLink4
:
currentRecord
.
homeType
,
})
});
if
(
bannerName
==
"项目"
){
if
(
bannerName
==
"项目"
)
{
prodectType
=
3
prodectType
=
3
;
}
else
if
(
bannerName
==
"课程"
){
}
else
if
(
bannerName
==
"课程"
)
{
prodectType
=
1
prodectType
=
1
;
}
else
if
(
bannerName
==
"新闻资讯"
){
}
else
if
(
bannerName
==
"新闻资讯"
)
{
prodectType
=
5
prodectType
=
5
;
}
else
if
(
bannerName
==
"营销"
){
}
else
if
(
bannerName
==
"营销"
)
{
prodectType
=
6
prodectType
=
6
;
}
else
if
(
bannerName
==
"专辑"
){
}
else
if
(
bannerName
==
"专辑"
)
{
prodectType
=
7
prodectType
=
7
;
}
else
if
(
bannerName
==
"首页"
){
}
else
if
(
bannerName
==
"首页"
)
{
if
(
checkValue
){
if
(
checkValue
)
{
prodectType
=
checkValue
;
prodectType
=
checkValue
;
}
else
if
(
currentRecord
.
homeType
){
}
else
if
(
currentRecord
.
homeType
)
{
prodectType
=
currentRecord
.
homeType
prodectType
=
currentRecord
.
homeType
;
}
}
else
{
else
{
prodectType
=
8
;
//类型8 是根据后台商量类型8(属于首页没有选择类型传递8,后台会归类到外链类型)
prodectType
=
8
//类型8 是根据后台商量类型8(属于首页没有选择类型传递8,后台会归类到外链类型)
}
}
}
}
this
.
props
.
getBannerContent
({
"type"
:
prodectType
},(
res
)
=>
{
this
.
props
.
getBannerContent
({
type
:
prodectType
},
res
=>
{
let
bannerOnRow
=
""
;
let
bannerOnRow
=
""
;
bannerOnRow
=
res
.
records
.
find
(
item
=>
{
bannerOnRow
=
res
.
records
.
find
(
item
=>
{
return
item
.
id
==
currentRecord
.
linkUrl
return
item
.
id
==
currentRecord
.
linkUrl
;
})
});
this
.
setState
({
this
.
setState
(
selectedRowKeys
:[
currentRecord
.
linkUrl
],
{
bannerType
:
currentRecord
.
homeType
,
selectedRowKeys
:
[
currentRecord
.
linkUrl
]
,
bannerOnRow
:
bannerOnRow
bannerType
:
currentRecord
.
homeType
,
},()
=>
{
bannerOnRow
:
bannerOnRow
,
console
.
log
(
'344444 '
,
this
.
state
.
bannerOnRow
);
},
})
()
=>
{
})
console
.
log
(
"344444 "
,
this
.
state
.
bannerOnRow
);
}
}
);
});
};
initModuleType
=
()
=>
{
initModuleType
=
()
=>
{
let
{
currentModule
=
{},
editType
,
currentRecord
}
=
this
.
props
;
let
{
currentModule
=
{},
editType
,
currentRecord
}
=
this
.
props
;
if
(
editType
==
"look"
||
editType
==
"edit"
)
{
if
(
editType
==
"look"
||
editType
==
"edit"
)
{
...
@@ -143,27 +145,38 @@ class EditBanner extends Component {
...
@@ -143,27 +145,38 @@ class EditBanner extends Component {
if
(
err
)
{
if
(
err
)
{
return
;
return
;
}
}
let
{
imgTitle
,
logoUrl
,
homeType
,
linkUrl
,
addTime
}
=
values
;
let
{
imgTitle
,
imgTitleSub
,
imgSource
,
logoUrl
,
homeType
,
linkUrl
,
addTime
,
}
=
values
;
let
param
=
{
let
param
=
{
addTime
:
moment
(
addTime
).
toJSON
(),
//
addTime: moment(addTime).toJSON(),
bannerName
:
currentModule
.
moduleName
,
bannerName
:
currentModule
.
moduleName
,
bannerPath
:
logoUrl
,
bannerPath
:
logoUrl
,
homeType
:
homeType
,
//
homeType: homeType,
imgTitle
:
imgTitle
,
imgTitle
:
imgTitle
,
linkUrl
:
linkUrl
||
this
.
state
.
selectedRows
&&
this
.
state
.
selectedRows
[
0
][
"id"
],
//bug-liyuan 当类型不是外链时,此字段为业务id
imgTitleSub
:
imgTitleSub
,
imgSource
:
imgSource
,
linkUrl
:
linkUrl
||
(
this
.
state
.
selectedRows
&&
this
.
state
.
selectedRows
[
0
][
"id"
]),
//bug-liyuan 当类型不是外链时,此字段为业务id
logoUrl
:
logoUrl
,
logoUrl
:
logoUrl
,
terminalId
:
terminalId
,
terminalId
:
terminalId
,
};
};
if
(
editType
==
"edit"
)
{
if
(
editType
==
"edit"
)
{
param
.
id
=
currentRecord
.
id
;
param
.
id
=
currentRecord
.
id
;
this
.
props
.
updateBanner
(
param
,
()
=>
{
this
.
props
.
updateBanner
(
param
,
()
=>
{
this
.
props
.
reGetBannerList
();
this
.
props
.
reGetBannerList
();
this
.
props
.
cancelEditBanner
();
this
.
props
.
cancelEditBanner
();
});
});
}
else
{
}
else
{
param
.
id
=
currentRecord
.
id
;
this
.
props
.
addBanner
(
param
,
()
=>
{
this
.
props
.
addBanner
(
param
,
()
=>
{
this
.
props
.
reGetBannerList
();
this
.
props
.
reGetBannerList
();
this
.
props
.
cancelEditBanner
();
this
.
props
.
cancelEditBanner
();
...
@@ -217,7 +230,7 @@ class EditBanner extends Component {
...
@@ -217,7 +230,7 @@ class EditBanner extends Component {
// pageNo:pageNo, 接目前口不支持分页20200529
// pageNo:pageNo, 接目前口不支持分页20200529
// pageSize: pageSize
// pageSize: pageSize
};
};
this
.
props
.
getBannerContent
(
param
)
this
.
props
.
getBannerContent
(
param
)
;
};
};
// 关联内容改变
// 关联内容改变
...
@@ -226,12 +239,12 @@ class EditBanner extends Component {
...
@@ -226,12 +239,12 @@ class EditBanner extends Component {
selecteditem
:
record
,
selecteditem
:
record
,
});
});
};
};
onSelectChange
=
(
selectedRowKeys
,
selectedRows
)
=>
{
onSelectChange
=
(
selectedRowKeys
,
selectedRows
)
=>
{
this
.
setState
({
selectedRowKeys
,
selectedRows
:
selectedRows
})
this
.
setState
({
selectedRowKeys
,
selectedRows
:
selectedRows
});
}
}
;
//使用递归的方式实现数组、对象的深拷贝
//使用递归的方式实现数组、对象的深拷贝
deepClone
=
(
obj
)
=>
{
deepClone
=
obj
=>
{
//判断拷贝的要进行深拷贝的是数组还是对象,是数组的话进行数组拷贝,对象的话进行对象拷贝
//判断拷贝的要进行深拷贝的是数组还是对象,是数组的话进行数组拷贝,对象的话进行对象拷贝
var
objClone
=
Array
.
isArray
(
obj
)
?
[]
:
{};
var
objClone
=
Array
.
isArray
(
obj
)
?
[]
:
{};
//进行深拷贝的不能为空,并且是对象或者是
//进行深拷贝的不能为空,并且是对象或者是
...
@@ -247,7 +260,7 @@ class EditBanner extends Component {
...
@@ -247,7 +260,7 @@ class EditBanner extends Component {
}
}
}
}
return
objClone
;
return
objClone
;
}
};
render
()
{
render
()
{
console
.
log
(
"this.props=EditBanner="
,
this
.
props
);
console
.
log
(
"this.props=EditBanner="
,
this
.
props
);
console
.
log
(
"this.state=EditBanner="
,
this
.
state
);
console
.
log
(
"this.state=EditBanner="
,
this
.
state
);
...
@@ -260,8 +273,13 @@ class EditBanner extends Component {
...
@@ -260,8 +273,13 @@ class EditBanner extends Component {
bannerContentList
,
bannerContentList
,
bannerContentTotal
,
bannerContentTotal
,
}
=
this
.
props
;
}
=
this
.
props
;
console
.
log
(
"currentElaine:"
,
currentTerminal
)
console
.
log
(
"currentElaine:"
,
currentTerminal
);
let
{
useRatio
=
[],
moduleType
=
{},
selectedRowKeys
,
currentTerminalData
}
=
this
.
state
;
let
{
useRatio
=
[],
moduleType
=
{},
selectedRowKeys
,
currentTerminalData
,
}
=
this
.
state
;
const
{
getFieldDecorator
}
=
form
;
const
{
getFieldDecorator
}
=
form
;
const
formItemLayout
=
{
const
formItemLayout
=
{
labelCol
:
{
labelCol
:
{
...
@@ -280,14 +298,14 @@ class EditBanner extends Component {
...
@@ -280,14 +298,14 @@ class EditBanner extends Component {
const
rowSelection
=
{
const
rowSelection
=
{
type
:
"radio"
,
type
:
"radio"
,
onChange
:
this
.
onSelectChange
,
onChange
:
this
.
onSelectChange
,
selectedRowKeys
:
selectedRowKeys
,
selectedRowKeys
:
selectedRowKeys
,
}
}
;
console
.
log
(
moduleType
+
'moduleTypemoduleType'
)
console
.
log
(
moduleType
+
"moduleTypemoduleType"
);
currentTerminalData
=
this
.
deepClone
(
currentTerminal
);
currentTerminalData
=
this
.
deepClone
(
currentTerminal
);
//bug 12862 与令业约定-1为空选项
//bug 12862 与令业约定-1为空选项
if
(
currentTerminal
.
modules
[
0
].
id
!==-
1
)
{
if
(
currentTerminal
.
modules
[
0
].
id
!==
-
1
)
{
currentTerminalData
.
modules
.
unshift
({
"id"
:
-
1
,
"moduleName"
:
"请选择类型"
})
currentTerminalData
.
modules
.
unshift
({
id
:
-
1
,
moduleName
:
"请选择类型"
});
}
}
return
(
return
(
<
Modal
<
Modal
...
@@ -312,9 +330,21 @@ class EditBanner extends Component {
...
@@ -312,9 +330,21 @@ class EditBanner extends Component {
required
:
true
,
required
:
true
,
message
:
"请输入图片标题"
,
message
:
"请输入图片标题"
,
},
},
{
max
:
10
,
message
:
"图片标题对多1
0个字符!"
},
{
max
:
20
,
message
:
"图片标题最多2
0个字符!"
},
],
],
})(<
Input
maxLength=
{
10
}
disabled=
{
editType
==
"look"
}
/>)
}
})(<
Input
maxLength=
{
20
}
disabled=
{
editType
==
"look"
}
/>)
}
</
FormItem
>
<
FormItem
label=
"副标题:"
{
...
formItemLayout
}
>
{
getFieldDecorator
(
"imgTitleSub"
,
{
initialValue
:
currentRecord
.
imgTitleSub
,
rules
:
[
{
required
:
true
,
message
:
"请输入副标题"
,
},
{
max
:
20
,
message
:
"图片副标题最多20个字符!"
},
],
})(<
Input
maxLength=
{
20
}
disabled=
{
editType
==
"look"
}
/>)
}
</
FormItem
>
</
FormItem
>
<
FormItem
label=
"选择缩略图:"
{
...
formItemLayoutImg
}
>
<
FormItem
label=
"选择缩略图:"
{
...
formItemLayoutImg
}
>
{
getFieldDecorator
(
"logoUrl"
,
{
{
getFieldDecorator
(
"logoUrl"
,
{
...
@@ -331,7 +361,18 @@ class EditBanner extends Component {
...
@@ -331,7 +361,18 @@ class EditBanner extends Component {
/>
/>
)
}
)
}
</
FormItem
>
</
FormItem
>
<
FormItem
label=
"图片来源:"
{
...
formItemLayout
}
>
{
getFieldDecorator
(
"imgSource"
,
{
initialValue
:
currentRecord
.
imgSource
,
rules
:
[
{
required
:
false
,
message
:
"请输入图片来源"
,
},
{
max
:
10
,
message
:
"图片来源最多10个字符!"
},
],
})(<
Input
maxLength=
{
10
}
disabled=
{
editType
==
"look"
}
/>)
}
</
FormItem
>
{
moduleType
.
id
===
4
&&
(
{
moduleType
.
id
===
4
&&
(
<
FormItem
label=
"链接地址:"
{
...
formItemLayout
}
>
<
FormItem
label=
"链接地址:"
{
...
formItemLayout
}
>
{
getFieldDecorator
(
"linkUrl"
,
{
{
getFieldDecorator
(
"linkUrl"
,
{
...
@@ -348,7 +389,7 @@ class EditBanner extends Component {
...
@@ -348,7 +389,7 @@ class EditBanner extends Component {
})(<
Input
disabled=
{
editType
==
"look"
}
/>)
}
})(<
Input
disabled=
{
editType
==
"look"
}
/>)
}
</
FormItem
>
</
FormItem
>
)
}
)
}
<
FormItem
label=
"指定上架时间:"
{
...
formItemLayout
}
>
{
/*
<FormItem label="指定上架时间:" {...formItemLayout}>
{getFieldDecorator("addTime", {
{getFieldDecorator("addTime", {
initialValue: moment(currentRecord.addTime),
initialValue: moment(currentRecord.addTime),
rules: [{ required: true, message: "请选择指定上架时间!" }],
rules: [{ required: true, message: "请选择指定上架时间!" }],
...
@@ -392,9 +433,11 @@ class EditBanner extends Component {
...
@@ -392,9 +433,11 @@ class EditBanner extends Component {
</Option>
</Option>
</Select>
</Select>
)}
)}
</
FormItem
>
</FormItem>
*/
}
</
Form
>
</
Form
>
{
moduleType
.
id
!==
0
&&
moduleType
.
id
!=-
1
&&
moduleType
.
moduleName
&&
{
moduleType
.
id
!==
0
&&
moduleType
.
id
!=
-
1
&&
moduleType
.
moduleName
&&
moduleType
.
id
!==
4
&&
moduleType
.
id
!==
4
&&
editType
!==
"look"
&&
(
editType
!==
"look"
&&
(
<
div
>
<
div
>
...
@@ -414,12 +457,12 @@ class EditBanner extends Component {
...
@@ -414,12 +457,12 @@ class EditBanner extends Component {
/>
/>
</
div
>
</
div
>
)
}
)
}
{
{
editType
==
"look"
&&
this
.
state
.
recordLink4
!=
"4"
&&
(
editType
==
"look"
&&
this
.
state
.
recordLink4
!=
"4"
&&
<
p
style=
{
{
marginLeft
:
"40px"
}
}
>
<
p
style=
{
{
marginLeft
:
"40px"
}
}
>
<
h5
style=
{
{
display
:
"inline-block"
}
}
>
已选择:
</
h5
>
{
this
.
state
.
bannerOnRow
?
this
.
state
.
bannerOnRow
.
name
:
'上线啦'
}
<
h5
style=
{
{
display
:
"inline-block"
}
}
>
已选择:
</
h5
>
{
this
.
state
.
bannerOnRow
?
this
.
state
.
bannerOnRow
.
name
:
"上线啦"
}
</
p
>
</
p
>
}
)
}
</
Modal
>
</
Modal
>
);
);
}
}
...
...
src/pages/SystemManagement/Banner/index.jsx
View file @
1a57bc75
...
@@ -37,24 +37,24 @@ class Banner extends React.PureComponent {
...
@@ -37,24 +37,24 @@ class Banner extends React.PureComponent {
terminalName
:
"移动端"
,
terminalName
:
"移动端"
,
modules
:
[
modules
:
[
{
moduleName
:
"首页"
,
id
:
0
},
{
moduleName
:
"首页"
,
id
:
0
},
{
moduleName
:
"项目"
,
id
:
3
},
// { moduleName: "项目", id: 3 },
{
moduleName
:
"课程"
,
id
:
1
},
// { moduleName: "课程", id: 1 },
{
moduleName
:
"新闻资讯"
,
id
:
5
},
// { moduleName: "新闻资讯", id: 5 },
{
moduleName
:
"营销"
,
id
:
6
},
// { moduleName: "营销", id: 6 },
{
moduleName
:
"专辑"
,
id
:
7
},
// { moduleName: "专辑", id: 7 },
],
},
{
id
:
2
,
terminalName
:
"PC"
,
modules
:
[
{
moduleName
:
"首页"
,
id
:
0
},
{
moduleName
:
"项目"
,
id
:
3
},
{
moduleName
:
"课程"
,
id
:
1
},
{
moduleName
:
"新闻资讯"
,
id
:
5
},
{
moduleName
:
"专辑"
,
id
:
7
},
],
],
},
},
// {
// id: 2,
// terminalName: "PC",
// modules: [
// { moduleName: "首页", id: 0 },
// { moduleName: "项目", id: 3 },
// { moduleName: "课程", id: 1 },
// { moduleName: "新闻资讯", id: 5 },
// { moduleName: "专辑", id: 7 },
// ],
// },
];
];
this
.
state
=
{
this
.
state
=
{
listRecords
:
[],
listRecords
:
[],
...
@@ -85,6 +85,20 @@ class Banner extends React.PureComponent {
...
@@ -85,6 +85,20 @@ class Banner extends React.PureComponent {
},
},
},
},
{
{
title
:
"副标题"
,
dataIndex
:
"imgTitleSub"
,
key
:
"imgTitleSub"
,
// width: 300,
align
:
"left"
,
render
:
text
=>
{
return
(
<
div
title=
{
text
}
style=
{
{
...
textOver
,
maxWidth
:
300
}
}
>
{
text
}
</
div
>
);
},
},
{
title
:
"图片"
,
title
:
"图片"
,
dataIndex
:
"bannerPath"
,
dataIndex
:
"bannerPath"
,
key
:
"bannerPath"
,
key
:
"bannerPath"
,
...
...
src/pages/SystemManagement/Information/index.jsx
View file @
1a57bc75
...
@@ -785,9 +785,50 @@ class Information extends React.Component {
...
@@ -785,9 +785,50 @@ class Information extends React.Component {
render
()
{
render
()
{
//树形控件
//树形控件
const
loopss
=
data
=>
data
.
map
(
item
=>
{
if
(
item
.
childClassifyNews
&&
item
.
childClassifyNews
.
length
)
{
return
(
<
TreeNode
key=
{
item
.
key
+
item
.
id
}
className=
{
Styles
.
treeTtitle
}
title=
{
<
Item
data=
{
item
}
type=
{
""
}
parentID=
{
this
.
state
.
ificationList
}
postAddNewsLists=
{
this
.
AddNewsList
}
postEditNewsLists=
{
this
.
EditNewsLists
}
newsDelete=
{
this
.
onNewsDelete
}
onTableList=
{
this
.
onTableList
}
/>
}
>
{
loopss
(
item
.
childClassifyNews
)
}
</
TreeNode
>
);
}
return
(
<
TreeNode
className=
{
Styles
.
treeTtitle
}
key=
{
item
.
key
+
item
.
id
}
title=
{
<
Item
data=
{
item
}
type=
{
""
}
parentID=
{
this
.
state
.
ificationList
}
postAddNewsLists=
{
this
.
AddNewsList
}
postEditNewsLists=
{
this
.
EditNewsLists
}
newsDelete=
{
this
.
onNewsDelete
}
onTableList=
{
this
.
onTableList
}
/>
}
/>
);
});
const
loops
=
data
=>
const
loops
=
data
=>
data
.
map
(
item
=>
{
data
.
map
(
item
=>
{
if
(
item
.
data
&&
item
.
data
.
length
)
{
if
(
item
.
childClassifyNews
&&
item
.
childClassifyNews
.
length
)
{
return
(
return
(
<
TreeNode
<
TreeNode
key=
{
item
.
key
+
item
.
id
}
key=
{
item
.
key
+
item
.
id
}
...
@@ -804,7 +845,7 @@ class Information extends React.Component {
...
@@ -804,7 +845,7 @@ class Information extends React.Component {
/>
/>
}
}
>
>
{
loops
(
item
.
data
)
}
{
loops
s
(
item
.
childClassifyNews
)
}
</
TreeNode
>
</
TreeNode
>
);
);
}
}
...
@@ -833,6 +874,7 @@ class Information extends React.Component {
...
@@ -833,6 +874,7 @@ class Information extends React.Component {
<
TreeNode
<
TreeNode
className=
{
Styles
.
treeTtitle
}
className=
{
Styles
.
treeTtitle
}
key=
{
item
.
key
+
item
.
id
}
key=
{
item
.
key
+
item
.
id
}
// chaildren={item.childClassifyNews}
title=
{
title=
{
<
Item
<
Item
data=
{
item
}
data=
{
item
}
...
@@ -984,7 +1026,7 @@ class Information extends React.Component {
...
@@ -984,7 +1026,7 @@ class Information extends React.Component {
<
Row
>
<
Row
>
<
Col
<
Col
span=
{
6
}
span=
{
8
}
style=
{
{
style=
{
{
padding
:
"20px"
,
padding
:
"20px"
,
border
:
"1px solid #d9d9d9"
,
border
:
"1px solid #d9d9d9"
,
...
@@ -1002,7 +1044,7 @@ class Information extends React.Component {
...
@@ -1002,7 +1044,7 @@ class Information extends React.Component {
{
loop
(
this
.
state
.
ificationList
)
}
{
loop
(
this
.
state
.
ificationList
)
}
</
Tree
>
</
Tree
>
</
Col
>
</
Col
>
<
Col
span=
{
1
8
}
style=
{
{
paddingLeft
:
"20px"
}
}
>
<
Col
span=
{
1
6
}
style=
{
{
paddingLeft
:
"20px"
}
}
>
<
Table
<
Table
dataSource=
{
this
.
state
.
record
.
records
}
dataSource=
{
this
.
state
.
record
.
records
}
columns=
{
columns
}
columns=
{
columns
}
...
...
src/pages/SystemManagement/Site/Door/indexPage/mobile.jsx
View file @
1a57bc75
...
@@ -29,7 +29,7 @@ class Mobile extends Component {
...
@@ -29,7 +29,7 @@ class Mobile extends Component {
coucedata
:
[],
coucedata
:
[],
};
};
}
}
componentDidMount
()
{
}
componentDidMount
()
{}
render
()
{
render
()
{
let
{
templateList
=
[],
homeId
,
siteId
}
=
this
.
props
.
homeInfo
;
let
{
templateList
=
[],
homeId
,
siteId
}
=
this
.
props
.
homeInfo
;
...
@@ -45,10 +45,10 @@ class Mobile extends Component {
...
@@ -45,10 +45,10 @@ class Mobile extends Component {
<
div
className=
{
Styles
.
mobileContainer
}
>
<
div
className=
{
Styles
.
mobileContainer
}
>
<
Banner
terminalId=
{
this
.
props
.
terminalId
}
/>
<
Banner
terminalId=
{
this
.
props
.
terminalId
}
/>
<
Classify
/>
<
Classify
/>
<
Announcement
/>
{
/* <Announcement /> */
}
{
/* 暂时写死 * task915 ; 确认写死...*/
}
{
/* 暂时写死 * task915 ; 确认写死...*/
}
<
CalendarTask
/>
{
/* <CalendarTask /> */
}
<
UserReport
terminalId=
{
this
.
props
.
terminalId
}
/>
{
/* <UserReport terminalId={this.props.terminalId} /> */
}
{
// values:首页功能模块列表,课程,项目,讲师
{
// values:首页功能模块列表,课程,项目,讲师
values
.
map
((
key
,
index
)
=>
{
values
.
map
((
key
,
index
)
=>
{
switch
(
key
.
moduleType
)
{
switch
(
key
.
moduleType
)
{
...
@@ -174,7 +174,8 @@ class Mobile extends Component {
...
@@ -174,7 +174,8 @@ class Mobile extends Component {
);
);
}
}
case
11
:
case
11
:
return
<
NewsList
return
(
<
NewsList
keys=
{
key
.
moduleType
}
keys=
{
key
.
moduleType
}
title=
{
key
.
moduleName
}
title=
{
key
.
moduleName
}
key=
{
index
}
key=
{
index
}
...
@@ -182,8 +183,10 @@ class Mobile extends Component {
...
@@ -182,8 +183,10 @@ class Mobile extends Component {
isFirst=
{
index
==
0
?
true
:
false
}
isFirst=
{
index
==
0
?
true
:
false
}
isLast=
{
index
==
values
.
length
-
1
?
true
:
false
}
isLast=
{
index
==
values
.
length
-
1
?
true
:
false
}
/>
/>
);
case
12
:
case
12
:
return
<
PayContentList
return
(
<
PayContentList
keys=
{
key
.
moduleType
}
keys=
{
key
.
moduleType
}
title=
{
key
.
moduleName
}
title=
{
key
.
moduleName
}
key=
{
index
}
key=
{
index
}
...
@@ -191,6 +194,7 @@ class Mobile extends Component {
...
@@ -191,6 +194,7 @@ class Mobile extends Component {
isFirst=
{
index
==
0
?
true
:
false
}
isFirst=
{
index
==
0
?
true
:
false
}
isLast=
{
index
==
values
.
length
-
1
?
true
:
false
}
isLast=
{
index
==
values
.
length
-
1
?
true
:
false
}
/>
/>
);
default
:
default
:
//公共模块(专辑或其他类型,和产品商量一下设计一样)
//公共模块(专辑或其他类型,和产品商量一下设计一样)
...
@@ -219,9 +223,9 @@ class Mobile extends Component {
...
@@ -219,9 +223,9 @@ class Mobile extends Component {
"Object.keys(this.props.homeData).length"
,
"Object.keys(this.props.homeData).length"
,
Object
.
keys
(
this
.
props
.
homeData
).
length
Object
.
keys
(
this
.
props
.
homeData
).
length
)
}
)
}
{
Object
.
keys
(
this
.
props
.
homeData
).
length
==
0
&&
(
{
/* {
Object.keys(this.props.homeData).length == 0 && (
<AddModule homeId={homeId} siteId={siteId} />
<AddModule homeId={homeId} siteId={siteId} />
)
}
)}
*/
}
{
/*配置底部导航*/
}
{
/*配置底部导航*/
}
<
FooterNav
/>
<
FooterNav
/>
...
...
src/pages/SystemManagement/Site/Door/indexPage/mobilePlugin/AddMenu.jsx
View file @
1a57bc75
...
@@ -147,6 +147,7 @@ class AddMenu extends Component {
...
@@ -147,6 +147,7 @@ class AddMenu extends Component {
showName
:
values
.
showName
,
showName
:
values
.
showName
,
relationFuncName
:
values
.
relationFuncName
,
relationFuncName
:
values
.
relationFuncName
,
relationFuncCode
:
dicItem
.
length
>
0
?
dicItem
[
0
].
code
:
""
,
relationFuncCode
:
dicItem
.
length
>
0
?
dicItem
[
0
].
code
:
""
,
relationId
:
dicItem
.
length
>
0
?
dicItem
[
0
].
id
:
""
,
// relationFuncName: this.props.firstItem[this.state.value1].name,
// relationFuncName: this.props.firstItem[this.state.value1].name,
relationFuncUrl
:
relationFuncUrl
:
values
.
relationFuncName
===
"外链"
?
values
.
relationFuncUrl
:
""
,
//schiffer.ji
values
.
relationFuncName
===
"外链"
?
values
.
relationFuncUrl
:
""
,
//schiffer.ji
...
@@ -155,7 +156,7 @@ class AddMenu extends Component {
...
@@ -155,7 +156,7 @@ class AddMenu extends Component {
imgPath
:
this
.
state
.
imgPath
,
imgPath
:
this
.
state
.
imgPath
,
homeId
:
""
,
//没有取得在classify 组件128行取添加
homeId
:
""
,
//没有取得在classify 组件128行取添加
// relationId:this.state.id,
// relationId:this.state.id,
relationId
:
values
.
relationId
?
values
.
relationId
:
this
.
state
.
id
,
//
relationId: values.relationId ? values.relationId : this.state.id,
relationNum
:
values
.
rankType
?
values
.
rankType
.
join
(
","
)
:
""
,
relationNum
:
values
.
rankType
?
values
.
rankType
.
join
(
","
)
:
""
,
// relationFuncCode:this.props.firstItem[this.state.value1].code?this.props.firstItem[this.state.value1].code:this.props.curNaviObj.relationFuncCode,
// relationFuncCode:this.props.firstItem[this.state.value1].code?this.props.firstItem[this.state.value1].code:this.props.curNaviObj.relationFuncCode,
};
};
...
@@ -191,7 +192,6 @@ class AddMenu extends Component {
...
@@ -191,7 +192,6 @@ class AddMenu extends Component {
// let form = this.props.form;
// let form = this.props.form;
// form.setFieldsValue({ showName: e, relationFuncUrl: '' });
// form.setFieldsValue({ showName: e, relationFuncUrl: '' });
// }
// }
console
.
log
(
"e月eeeeeeeeeeeeeeee"
,
e
);
this
.
setState
({
this
.
setState
({
selectFlag
:
true
,
selectFlag
:
true
,
value1
:
op
.
key
,
value1
:
op
.
key
,
...
@@ -341,7 +341,7 @@ class AddMenu extends Component {
...
@@ -341,7 +341,7 @@ class AddMenu extends Component {
})(
})(
// <div>11</div>
// <div>11</div>
<
Select
<
Select
key=
{
'all'
}
key=
{
"all"
}
onChange=
{
key
=>
{
onChange=
{
key
=>
{
console
.
log
(
"926"
,
key
);
console
.
log
(
"926"
,
key
);
this
.
setState
({
CaseLibraryId
:
key
});
this
.
setState
({
CaseLibraryId
:
key
});
...
...
src/pages/SystemManagement/Site/Door/previewIndexPage/mobile.jsx
View file @
1a57bc75
src/services/serve.js
View file @
1a57bc75
...
@@ -5,8 +5,8 @@ let baseUrl = "";
...
@@ -5,8 +5,8 @@ let baseUrl = "";
if
(
location
.
host
.
includes
(
"localhost"
))
{
if
(
location
.
host
.
includes
(
"localhost"
))
{
// baseUrl = IP + '/admin';
// baseUrl = IP + '/admin';
baseUrl
=
"http://10.23.1.180:8090"
;
//
baseUrl = "http://10.23.1.180:8090";
// baseUrl="http://dev.mg.kmelearning.com
";
baseUrl
=
"http://192.168.1.106:8090
"
;
}
}
const
service
=
{
const
service
=
{
...
...
src/static/imgs/1logo.png
0 → 100644
View file @
1a57bc75
4.51 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment