1、后台首页动态获取铭飞官网的消息、展示和点击跳转

2、修复栏目管理编辑页面的栏目关键字、栏目描述、自定义链接无法保存空值
This commit is contained in:
走散在时光里 2020-01-09 15:10:56 +08:00
parent b392260a2c
commit b170311e29
2 changed files with 23 additions and 5 deletions

View File

@ -96,10 +96,10 @@
<if test="categorySort != null">category_sort=#{categorySort},</if>
<if test="categoryListUrl != null and categoryListUrl != ''">category_list_url=#{categoryListUrl},</if>
<if test="categoryUrl != null and categoryUrl != ''">category_url=#{categoryUrl},</if>
<if test="categoryKeyword != null and categoryKeyword != ''">category_keyword=#{categoryKeyword},</if>
<if test="categoryDescrip != null and categoryDescrip != ''">category_descrip=#{categoryDescrip},</if>
<if test="categoryKeyword != null ">category_keyword=#{categoryKeyword},</if>
<if test="categoryDescrip != null ">category_descrip=#{categoryDescrip},</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="categoryDatetime != null">category_datetime=#{categoryDatetime},</if>
<if test="categoryManagerId != null">category_manager_id=#{categoryManagerId},</if>

View File

@ -212,12 +212,12 @@
</div>
</div>
<div class="class-56" >
<div class="class-57" >
<div class="class-57" @click="openMCMSNews">
<div class="class-58" >
<div class="class-59" >
</div>
<div class="class-60">
铭飞商城多商户功能现已正式上线试...
{{ msNewsLast }}
</div>
</div>
</div>
@ -432,6 +432,8 @@
},
data: {
base:ms.base,
msNewsLast: '',
msNewsPath: ''
},
methods: {
jumpArtcleManager(){
@ -493,8 +495,23 @@
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(){
this.getNewsLast()
}
})
</script>
@ -1243,6 +1260,7 @@
}
.class-57
{
cursor: pointer;
color:#333333;
outline:none;
outline-offset:-1px;