From 84111c4e73fb6e092e8ce0342350d55b7c12a294 Mon Sep 17 00:00:00 2001
From: yinxr <2273460044@qq.com>
Date: Sat, 26 Jan 2019 18:52:55 +0800
Subject: [PATCH] Signed-off-by: yinxr <2273460044@qq.com>
---
.../WEB-INF/manager/include/head-file.ftl | 4 +
.../WEB-INF/manager/mweixin/article/index.ftl | 62 +++++----
.../webapp/WEB-INF/manager/mweixin/menu.ftl | 5 +-
.../webapp/WEB-INF/manager/mweixin/weixin.ftl | 1 +
src/main/webapp/static/mweixin/article.less | 130 +++++++++++++-----
src/main/webapp/static/mweixin/css/app.css | 2 +-
.../webapp/static/mweixin/css/article.css | 83 ++++++++++-
7 files changed, 220 insertions(+), 67 deletions(-)
diff --git a/src/main/webapp/WEB-INF/manager/include/head-file.ftl b/src/main/webapp/WEB-INF/manager/include/head-file.ftl
index ab4b1116..2d3a7a5a 100644
--- a/src/main/webapp/WEB-INF/manager/include/head-file.ftl
+++ b/src/main/webapp/WEB-INF/manager/include/head-file.ftl
@@ -24,6 +24,10 @@
+
+
+
+
diff --git a/src/main/webapp/WEB-INF/manager/mweixin/article/index.ftl b/src/main/webapp/WEB-INF/manager/mweixin/article/index.ftl
index e0f16900..73023cb7 100644
--- a/src/main/webapp/WEB-INF/manager/mweixin/article/index.ftl
+++ b/src/main/webapp/WEB-INF/manager/mweixin/article/index.ftl
@@ -1,16 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
+
@@ -30,23 +20,33 @@
-
+
-
+
+ 添加封面
-
-
-
+
+
+
-
-
+
+
-
-
+
+
+
@@ -77,13 +77,15 @@
basicTitle: '没有奇迹,国足0-3不敌伊朗止步八强!',
basicThumbnailsl: 'https://img03.sogoucdn.com/app/a/100520091/20190125113148'
}],
- titleWordNumber: '', //图文标题剩余字数
- authorWordNumber: '', //图文作者剩余字数
+ titleWordNumber: 64, //图文标题剩余字数
+ authorWordNumber: 8, //图文作者剩余字数
+ descWordNumber:54,//摘要
editor: null, //富文本实例
- },
- watch: {
- subArticleList: function (n, o) {
- console.log('n', n);
+ articleForm:{
+ basicTitle:'',//标题
+ articleAuthor:'',//作者
+ basicDescription:'', //摘要
+ articleContent:'', //正文
}
},
methods: {
@@ -93,6 +95,10 @@
basicTitle: '新增文章标题',
basicThumbnailsl: 'https://img03.sogoucdn.com/app/a/100520091/20190125113148'
})
+ },
+ // 计算剩余字数
+ resetWordNum:function(type){
+
}
},
mounted: function () {
@@ -122,8 +128,8 @@
zIndex: 10000,
elementPathEnabled: false,
wordCount: false,
- initialFrameWidth: 600,
- initialFrameHeight: 240,
+ initialFrameWidth: '100%',
+ initialFrameHeight: 500,
});
this.editor.ready(function () {
var a = $("#ueditor_0").contents()[0].activeElement;
diff --git a/src/main/webapp/WEB-INF/manager/mweixin/menu.ftl b/src/main/webapp/WEB-INF/manager/mweixin/menu.ftl
index 939d7367..920def15 100644
--- a/src/main/webapp/WEB-INF/manager/mweixin/menu.ftl
+++ b/src/main/webapp/WEB-INF/manager/mweixin/menu.ftl
@@ -52,7 +52,10 @@
}, {
title: '关键词回复'
}]
- }, ], //左侧导航列表
+ },{
+ title:'新建图文'
+ }
+ ], //左侧导航列表
menuActive: '图文', //选中
}
})
diff --git a/src/main/webapp/WEB-INF/manager/mweixin/weixin.ftl b/src/main/webapp/WEB-INF/manager/mweixin/weixin.ftl
index 3602a7a6..159bf5fa 100644
--- a/src/main/webapp/WEB-INF/manager/mweixin/weixin.ftl
+++ b/src/main/webapp/WEB-INF/manager/mweixin/weixin.ftl
@@ -13,5 +13,6 @@
+