liting2017 7 vuotta sitten
vanhempi
commit
0839b0843a

+ 42 - 0
src/css/news/agreement.css

@@ -0,0 +1,42 @@
+*{
+	margin: 0;padding: 0;
+}
+.text-box{
+	margin: 0 auto;
+	max-width: 768px;
+	padding: 20px 15px 50px;
+}
+.text-box h3{
+	font-weight: normal;
+	font-size: 14px;
+	text-align: center;
+	margin-bottom: 15px;
+}
+.text-box div p{
+	text-align: justify;
+	font-size: 12px;
+	color: #3C3C3C;
+	line-height: 20px;
+	margin-bottom: 5px;
+}
+.text-box div{
+	color: #3C3C3C;
+	font-size: 12px;
+	text-align: justify;
+	margin-bottom: 10px;
+}
+.text-box h4{
+	font-size: 14px;
+	font-weight: normal;
+	color: #3C3C3C;
+}
+
+
+
+
+
+
+
+
+
+

+ 2 - 0
src/js/news/agreement.js

@@ -0,0 +1,2 @@
+import '../../css/news/agreement.css';
+

+ 1 - 1
src/js/news/appCognizance.js

@@ -6,7 +6,7 @@ $(function(){
 	var https=window.location.href;
 	var index=https.indexOf('id=');
 	var idtt = https.substr(index+3);
-	var ids=idtt.split('#tt')
+	var ids=idtt.split('#tt');
 	//数据获取
 	function DataList(){
 		if(idtt){

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 63 - 0
template/news/agreement.html


+ 6 - 0
webpack.config.js

@@ -193,6 +193,12 @@ module.exports = (function () {
             template: './template/news/appCognizance.html',
             chunks: ['news/appCognizance', 'vendors']
         }),
+        new HtmlWebpackPlugin({
+            title: '注册协议',
+            filename: 'html/news/agreement.html',
+            template: './template/news/agreement.html',
+            chunks: ['news/agreement', 'vendors']
+        }),
     ];
     if (!isDev) {
         //这个使用uglifyJs压缩你的js代码

+ 6 - 1
webpack/entry.config.js

@@ -27,7 +27,8 @@ module.exports = {
         'service/highTechCognizance': './src/js/service/highTechCognizance.js',
         //newsApp
         'news/newsDetailApp': './src/js/news/newsDetailApp.js',
-        'news/appCognizance': './src/js/news/appCognizance.js'
+        'news/appCognizance': './src/js/news/appCognizance.js',
+        'news/agreement': './src/js/news/agreement.js'
     },
     watch: {
         'index': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
@@ -139,6 +140,10 @@ module.exports = {
         'news/appCognizance': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
             'webpack/hot/only-dev-server',
             './src/js/news/appCognizance.js'
+        ],
+        'news/agreement': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
+            'webpack/hot/only-dev-server',
+            './src/js/news/agreement.js'
         ]
 
     }