liting2017 6 years ago
parent
commit
88d33c3a4f

+ 0 - 2
js/component/account/setAccount/expert.jsx

@@ -130,7 +130,6 @@ const Expert = React.createClass({
 				if(thisData.auditStatus=='3'){
 					authenticationState=(thisData.expert-1).toString()
 				}   
-				console.log(authenticationState)
 				this.setState({
 					InformationId: thisData.id,
                     InformationUid: thisData.uid,
@@ -364,7 +363,6 @@ const Expert = React.createClass({
 				span: 14
 			}
 		};
-		console.log(this.state.authenticationState)
 		const theData = this.state.data || [];
 		return (
 			<div className="unit-wrap">

+ 1 - 1
js/component/administration/business/businessCategory.jsx

@@ -243,7 +243,7 @@ const BusinessCategory=Form.create()(React.createClass({
             dataList.name=this.state.name;
             dataList.summary=this.state.summary;
             dataList.imgUrl=thePictureUrl;
-            dataList.module=this.state.moduleNumber;
+            dataList.module=this.state.moduleNumber?this.state.moduleNumber:'0';
             dataList.nextModule=this.state.modules;
         }else{
             dataList.id=this.state.id;

+ 1 - 1
package.json

@@ -12,7 +12,7 @@
     "buildtest": "node bin/clean.js && webpack --progress --colors --env.deploy test",
     "buildstage": "node bin/clean.js && webpack --progress --colors --env.deploy stage",
     "pro": "node bin/clean.js && webpack --progress --colors --env.deploy prod",
-    "dev": "webpack-dev-server --port 80  --devtool eval --progress --colors --hot --content-base build --env.deploy dev --env.watch watch"
+    "dev": "webpack-dev-server --port 8088 --devtool eval --progress --colors --hot --content-base build --env.deploy dev --env.watch watch"
   },
   "repository": {
     "type": "git",

+ 1 - 1
webpack-dll.config.js

@@ -10,7 +10,7 @@ let theme = {
   '@link-color': '#58a3ff'
 };
 module.exports = (function () {
-	let staticHost = 'http://192.168.1.188';    
+	let staticHost = 'http://192.168.1.188:8088';    
     switch (argv.env.deploy) {
         case 'test':
             staticHost = 'http://statics.jishutao.com';

+ 2 - 2
webpack.config.js

@@ -115,7 +115,7 @@ module.exports = (function () {
         }));
     }
 
-    let staticHost = 'http://192.168.1.188';    
+    let staticHost = 'http://192.168.1.188:8088';    
     switch (argv.env.deploy) {
         case 'test':
             staticHost = 'http://statics.jishutao.com';
@@ -151,7 +151,7 @@ module.exports = (function () {
         devServer: {
             disableHostCheck: true,
             host: '192.168.1.188',
-            port: 80,
+            port: 8088,
             allowedHosts: ['127.0.0.1','192.168.1.165'],
             headers: {
                 "Access-Control-Allow-Origin": "*"

+ 6 - 6
webpack/entry.config.js

@@ -10,28 +10,28 @@ module.exports = {
     'admin/index': './js/admin/index.js',
   },
   watch: {
-    'user/index': ['webpack-dev-server/client?http://192.168.1.188', // WebpackDevServer host and port
+    'user/index': ['webpack-dev-server/client?http://192.168.1.188:8088', // WebpackDevServer host and port
       'webpack/hot/only-dev-server',
       './js/user/index.js'
     ],
-    'user/login': ['webpack-dev-server/client?http://192.168.1.188', // WebpackDevServer host and port
+    'user/login': ['webpack-dev-server/client?http://192.168.1.188:8088', // WebpackDevServer host and port
       'webpack/hot/only-dev-server',
       './js/user/login.js'
     ],
-    'user/signIn': ['webpack-dev-server/client?http://192.168.1.188', // WebpackDevServer host and port
+    'user/signIn': ['webpack-dev-server/client?http://192.168.1.188:8088', // WebpackDevServer host and port
       'webpack/hot/only-dev-server',
       './js/user/signIn.js'
     ],
-    'user/account/index': ['webpack-dev-server/client?http://192.168.1.188', // WebpackDevServer host and port
+    'user/account/index': ['webpack-dev-server/client?http://192.168.1.188:8088', // WebpackDevServer host and port
       'webpack/hot/only-dev-server',
       './js/user/account/index.js'
     ],
     //admin
-    'admin/login': ['webpack-dev-server/client?http://192.168.1.188', // WebpackDevServer host and port
+    'admin/login': ['webpack-dev-server/client?http://192.168.1.188:8088', // WebpackDevServer host and port
     'webpack/hot/only-dev-server',
     './js/user/adminLogin.js'
     ],
-    'admin/index': ['webpack-dev-server/client?http://192.168.1.188', // WebpackDevServer host and port
+    'admin/index': ['webpack-dev-server/client?http://192.168.1.188:8088', // WebpackDevServer host and port
       'webpack/hot/only-dev-server',
       './js/admin/index.js'
     ]