Browse Source

增加广告跳转地址

HW 4 years ago
parent
commit
4702e9da73

+ 1 - 1
README.md

@@ -1,4 +1,4 @@
-科德官网管理后台(通用版本) 除了湖南 广州 广西 石家庄的官网管理
+科德官网管理后台(通用版本)
 
 
 <!-- 项目生产环境打包 -->

+ 1 - 0
js/component/administration/business/activity/index.jsx

@@ -83,6 +83,7 @@ class Activity extends Component{
                     title: "公司",
                     dataIndex: "locations",
                     key: "locations",
+                    width:150,
                     render: r => {
                         let text = '';
                         r && r.map((v,i)=>(

+ 35 - 3
js/component/administration/business/advertisementList.jsx

@@ -230,9 +230,20 @@ const AdvertisementList = Form.create()(
             }
           },
           {
+            title: "跳转地址",
+            dataIndex: "jumpUrl",
+            key: "jumpUrl",
+            render: r => {
+              return (
+                  <span>{r === 'javascript:;' ? '' : r}</span>
+              )
+            }
+          },
+          {
             title: "公司",
             dataIndex: "locations",
             key: "locations",
+            width:150,
             render: r => {
               let text = '';
               r && r.map((v,i)=>(
@@ -360,6 +371,7 @@ const AdvertisementList = Form.create()(
           this.setState({
             id: thisdata.id,
             title: thisdata.title,
+            jumpUrl: thisdata.jumpUrl === 'javascript:;' ? undefined : thisdata.jumpUrl,
             bannerUrl: thisdata.bannerUrl
               ? splitUrl(thisdata.bannerUrl, ",", globalConfig.avatarUploadHost)
               : [],
@@ -490,7 +502,8 @@ const AdvertisementList = Form.create()(
           bannerUrl: this.state.bannerUrl
             ? this.state.bannerUrl[0].response.data
             : undefined,
-          title: this.state.title
+          title: this.state.title,
+          jumpUrl: this.state.jumpUrl || 'javascript:;',
         },
         success: function(data) {
           let theArr = [];
@@ -536,7 +549,8 @@ const AdvertisementList = Form.create()(
           bannerUrl: this.state.bannerUrl
             ? this.state.bannerUrl[0].response.data
             : undefined,
-          title: this.state.title
+          title: this.state.title,
+          jumpUrl: this.state.jumpUrl || 'javascript:;',
         },
         success: function(data) {
           let theArr = [];
@@ -564,6 +578,7 @@ const AdvertisementList = Form.create()(
       this.setState({
         bannerUrl: undefined,
         title: undefined,
+        jumpUrl: undefined,
         sortNumber: undefined,
         display: 1,
         position: "0",
@@ -742,6 +757,23 @@ const AdvertisementList = Form.create()(
                     </div>
                     <div className="clearfix">
                       <FormItem
+                          className="half-item"
+                          labelCol={{ span: 8 }}
+                          wrapperCol={{ span: 12 }}
+                          label="跳转地址"
+                      >
+                        <Input
+                            placeholder="请输入跳转地址"
+                            value={this.state.jumpUrl}
+                            onChange={e => {
+                              this.setState({ jumpUrl: e.target.value });
+                            }}
+                            style={{ width: "240px" }}
+                        />
+                      </FormItem>
+                    </div>
+                    <div className="clearfix">
+                      <FormItem
                         className="half-item"
                         labelCol={{ span: 8 }}
                         wrapperCol={{ span: 12 }}
@@ -816,7 +848,7 @@ const AdvertisementList = Form.create()(
                         fileList={this.getOrgCodeUrl}
                         pictureUrl={this.state.bannerUrl}
                       />
-                      <p>图片建议:要清晰。</p>
+                      <p>建议尺寸:1920X680 图片建议:要清晰。</p>
                     </FormItem>
                   </div>
                   <div className="clearfix">

+ 2 - 1
js/component/administration/business/buyList.jsx

@@ -247,6 +247,7 @@ const BuyList = Form.create()(
             title: "公司",
             dataIndex: "locations",
             key: "locations",
+            width:150,
             render: r => {
               let text = '';
               r && r.map((v,i)=>(
@@ -910,7 +911,7 @@ const BuyList = Form.create()(
                       fileList={this.getOrgCodeUrl}
                       pictureUrl={this.state.pictureUrl}
                     />
-                    <p>图片建议:要清晰。</p>
+                    <p>建议尺寸:248X189 图片建议:要清晰。</p>
                   </FormItem>
                 </div>
 

+ 1 - 0
js/component/administration/business/customers.jsx

@@ -130,6 +130,7 @@ const Customers = Form.create()(
             title: "公司",
             dataIndex: "location",
             key: "location",
+            width:150,
             render: r => {
                 return(
                     getCompanyName(r)

+ 2 - 1
js/component/administration/business/firmList.jsx

@@ -251,6 +251,7 @@ const FirmList = Form.create()(
             title: "公司",
             dataIndex: "locations",
             key: "locations",
+            width:150,
             render: r => {
               let text = '';
               r && r.map((v,i)=>(
@@ -862,7 +863,7 @@ const FirmList = Form.create()(
                         fileList={this.getOrgCodeUrl}
                         pictureUrl={this.state.pictureUrl}
                       />
-                      <p>图片建议:要清晰。</p>
+                      <p>建议尺寸:345X200 图片建议:要清晰。</p>
                     </FormItem>
                   </div>
                   <div className="clearfix">

+ 2 - 0
js/component/administration/business/proservlist.jsx

@@ -241,6 +241,7 @@ const Proservlist = Form.create()(
             title: "公司",
             dataIndex: "locations",
             key: "locations",
+            width:150,
             render: r => {
               let text = '';
               r && r.map((v,i)=>(
@@ -790,6 +791,7 @@ const Proservlist = Form.create()(
                         fileList={this.getOrgCodeUrl}
                         pictureUrl={this.state.pictureUrl}
                       />
+                      <p>建议尺寸:250X86</p>
                     </FormItem>
                   </div>
                   <div className="clearfix">

+ 1 - 0
js/component/administration/business/talentsList.jsx

@@ -230,6 +230,7 @@ const TalentsList = Form.create()(
             title: "公司",
             dataIndex: "locations",
             key: "locations",
+            width:150,
             render: r => {
               let text = '';
               r && r.map((v,i)=>(

+ 1 - 0
js/component/common/configure.jsx

@@ -2,6 +2,7 @@ const companyList = [
     {value:0,label:'广西'}  ,
     {value:1,label:'广州'}  ,
     {value:2,label:'石家庄'}  ,
+    {value:3,label:'北京'}  ,
 ];
 
 function getCompanyName(value){

+ 2 - 2
package.json

@@ -1,13 +1,13 @@
 {
   "name": "afanti",
-  "version": "1.0.2",
+  "version": "1.0.3",
   "description": "",
   "main": "index.js",
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1",
     "dlldev": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy dev --env.host 'http://127.0.0.1'",
     "dlltest": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy test --env.host 'http://static.jishutao.com'",
-    "dllpro": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy prod --env.host 'http://kedejs.jishutao.com'",
+    "dllpro": "webpack --progress --colors --config ./webpack-dll.config.js --env.deploy prod --env.host 'http://count.jishutao.com'",
     "build": "node bin/clean.js && webpack --progress --colors --env.deploy dev",
     "buildtest": "node --max-old-space-size=8192 bin/clean.js && webpack --progress --colors --env.deploy test",
     "buildstage": "node bin/clean.js && webpack --progress --colors --env.deploy stage",

+ 1 - 1
webpack-dll.config.js

@@ -16,7 +16,7 @@ module.exports = (function () {
             staticHost = 'http://statics.jishutao.com';
             break;
         case 'prod':
-            staticHost = 'http://kedejs.jishutao.com';
+            staticHost = 'http://count.jishutao.com';
             break;
         default:
             break;

+ 2 - 2
webpack.config.js

@@ -31,7 +31,7 @@ module.exports = (function () {
             jumlApi = 'http://uat.jishutao.com'
             break
         case 'prod':
-            jumlApi = 'http://bm.jishutao.com'
+            jumlApi = 'http://count.jishutao.com'
             break
         default:
             break
@@ -141,7 +141,7 @@ module.exports = (function () {
             staticHost = 'http://static.jishutao.com'
             break
         case 'prod':
-            staticHost = 'http://kedejs.jishutao.com'
+            staticHost = 'http://count.jishutao.com'
             break
         default:
             break