Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
b170311e
Commit
b170311e
authored
Jan 09, 2020
by
走散在时光里
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、后台首页动态获取铭飞官网的消息、展示和点击跳转
2、修复栏目管理编辑页面的栏目关键字、栏目描述、自定义链接无法保存空值
parent
b392260a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
ICategoryDao.xml
src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml
+3
-3
main.ftl
src/main/webapp/WEB-INF/manager/main.ftl
+20
-2
No files found.
src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml
View file @
b170311e
...
@@ -96,10 +96,10 @@
...
@@ -96,10 +96,10 @@
<if
test=
"categorySort != null"
>
category_sort=#{categorySort},
</if>
<if
test=
"categorySort != null"
>
category_sort=#{categorySort},
</if>
<if
test=
"categoryListUrl != null and categoryListUrl != ''"
>
category_list_url=#{categoryListUrl},
</if>
<if
test=
"categoryListUrl != null and categoryListUrl != ''"
>
category_list_url=#{categoryListUrl},
</if>
<if
test=
"categoryUrl != null and categoryUrl != ''"
>
category_url=#{categoryUrl},
</if>
<if
test=
"categoryUrl != null and categoryUrl != ''"
>
category_url=#{categoryUrl},
</if>
<if
test=
"categoryKeyword != null
and categoryKeyword != ''
"
>
category_keyword=#{categoryKeyword},
</if>
<if
test=
"categoryKeyword != null "
>
category_keyword=#{categoryKeyword},
</if>
<if
test=
"categoryDescrip != null
and categoryDescrip != ''
"
>
category_descrip=#{categoryDescrip},
</if>
<if
test=
"categoryDescrip != null "
>
category_descrip=#{categoryDescrip},
</if>
<if
test=
"categoryImg != null and categoryImg != ''"
>
category_img=#{categoryImg},
</if>
<if
test=
"categoryImg != null and categoryImg != ''"
>
category_img=#{categoryImg},
</if>
<if
test=
"categoryDiyUrl != null
and categoryDiyUrl != ''
"
>
category_diy_url=#{categoryDiyUrl},
</if>
<if
test=
"categoryDiyUrl != null"
>
category_diy_url=#{categoryDiyUrl},
</if>
<if
test=
"mdiyModelId != null and mdiyModelId != ''"
>
mdiy_model_id=#{mdiyModelId},
</if>
<if
test=
"mdiyModelId != null and mdiyModelId != ''"
>
mdiy_model_id=#{mdiyModelId},
</if>
<if
test=
"categoryDatetime != null"
>
category_datetime=#{categoryDatetime},
</if>
<if
test=
"categoryDatetime != null"
>
category_datetime=#{categoryDatetime},
</if>
<if
test=
"categoryManagerId != null"
>
category_manager_id=#{categoryManagerId},
</if>
<if
test=
"categoryManagerId != null"
>
category_manager_id=#{categoryManagerId},
</if>
...
...
src/main/webapp/WEB-INF/manager/main.ftl
View file @
b170311e
...
@@ -212,12 +212,12 @@
...
@@ -212,12 +212,12 @@
</div>
</div>
</div>
</div>
<div
class=
"class-56"
>
<div
class=
"class-56"
>
<div
class=
"class-57"
>
<div
class=
"class-57"
@
click=
"openMCMSNews"
>
<div
class=
"class-58"
>
<div
class=
"class-58"
>
<div
class=
"class-59"
>
<div
class=
"class-59"
>
</div>
</div>
<div
class=
"class-60"
>
<div
class=
"class-60"
>
铭飞商城多商户功能现已正式上线试...
{{ msNewsLast }}
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -432,6 +432,8 @@
...
@@ -432,6 +432,8 @@
},
},
data
:
{
data
:
{
base
:
ms
.
base
,
base
:
ms
.
base
,
msNewsLast
:
''
,
msNewsPath
:
''
},
},
methods
:
{
methods
:
{
jumpArtcleManager
(){
jumpArtcleManager
(){
...
@@ -493,8 +495,23 @@
...
@@ -493,8 +495,23 @@
window
.
open
(
"http://wpa.qq.com/msgrd?v=3&uin=3336073455&site=qq&menu=yes"
);
window
.
open
(
"http://wpa.qq.com/msgrd?v=3&uin=3336073455&site=qq&menu=yes"
);
},
},
//打开铭飞消息页面
openMCMSNews
(){
window
.
open
(
this
.
msNewsPath
);
},
getNewsLast
(){
var
that
=
this
;
axios
.
create
({
withCredentials
:
true
}).
get
(
"https://ms.mingsoft.net/cms/content/list.do?contentCategoryId=202"
).
then
(
function
(
res
){
console
.
log
(
res
.
data
.
data
.
rows
[
0
]);
that
.
msNewsLast
=
res
.
data
.
data
.
rows
[
0
].
contentTitle
.
toString
();
that
.
msNewsPath
=
'https://ms.mingsoft.net/html/1/203/202/'
+
res
.
data
.
data
.
rows
[
0
].
id
+
'.html'
})
}
},
},
created
(){
created
(){
this
.
getNewsLast
()
}
}
})
})
</script>
</script>
...
@@ -1243,6 +1260,7 @@
...
@@ -1243,6 +1260,7 @@
}
}
.class-57
.class-57
{
{
cursor
:
pointer
;
color
:
#333333
;
color
:
#333333
;
outline
:
none
;
outline
:
none
;
outline-offset
:
-1px
;
outline-offset
:
-1px
;
...
...
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