瀏覽代碼

增加广告链接跳转

HW 4 年之前
父節點
當前提交
2345b1db46

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

@@ -132,6 +132,7 @@ const AdvertisementList = Form.create()(
                 key: i + 1,
                 id: thisdata.id,
                 title: thisdata.title,
+                jumpUrl: thisdata.jumpUrl,
                 bannerUrl: thisdata.bannerUrl,
                 sort: thisdata.sort,
                 display: thisdata.display,
@@ -233,6 +234,11 @@ const AdvertisementList = Form.create()(
             }
           },
           {
+            title: "跳转链接",
+            dataIndex: "jumpUrl",
+            key: "jumpUrl"
+          },
+          {
             title: "是否显示",
             dataIndex: "display",
             key: "display",
@@ -340,6 +346,7 @@ const AdvertisementList = Form.create()(
           this.setState({
             id: thisdata.id,
             title: thisdata.title,
+            jumpUrl: thisdata.jumpUrl,
             bannerUrl: thisdata.bannerUrl
               ? splitUrl(thisdata.bannerUrl, ",", globalConfig.avatarUploadHost)
               : [],
@@ -462,7 +469,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 || undefined,
         },
         success: function(data) {
           let theArr = [];
@@ -502,7 +510,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 || undefined,
         },
         success: function(data) {
           let theArr = [];
@@ -529,6 +538,7 @@ const AdvertisementList = Form.create()(
       this.setState({
         bannerUrl: undefined,
         title: undefined,
+        jumpUrl: undefined,
         sortNumber: undefined,
         display: 1,
         position: "0"
@@ -685,6 +695,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 }}
@@ -730,7 +757,7 @@ const AdvertisementList = Form.create()(
                         fileList={this.getOrgCodeUrl}
                         pictureUrl={this.state.bannerUrl}
                       />
-                      <p>图片建议:要清晰。</p>
+                      <p>图片尺寸:1920X680  图片建议:要清晰。</p>
                     </FormItem>
                   </div>
                   <div className="clearfix">

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

@@ -836,7 +836,7 @@ const BuyList = Form.create()(
                       fileList={this.getOrgCodeUrl}
                       pictureUrl={this.state.pictureUrl}
                     />
-                    <p>图片建议:要清晰。</p>
+                    <p><div>建议尺寸:248X189</div> 图片建议:要清晰。</p>
                   </FormItem>
                 </div>
 

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

@@ -795,7 +795,7 @@ const FirmList = Form.create()(
                         fileList={this.getOrgCodeUrl}
                         pictureUrl={this.state.pictureUrl}
                       />
-                      <p>图片建议:要清晰。</p>
+                      <p>建议尺寸:345X200 图片建议:要清晰。</p>
                     </FormItem>
                   </div>
                   <div className="clearfix">

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

@@ -723,6 +723,7 @@ const Proservlist = Form.create()(
                         fileList={this.getOrgCodeUrl}
                         pictureUrl={this.state.pictureUrl}
                       />
+                      <p>建议尺寸:250X86</p>
                     </FormItem>
                   </div>
                   <div className="clearfix">

+ 9 - 2
js/component/richTextEditors.jsx

@@ -140,7 +140,14 @@ const Editors = React.createClass({
         ];
         return (
             <div>
-                <ReactQuill theme="snow" value={this.state.value} modules={modules} formats={formats} placeholder='请填写内容!' onChange={this.handleRichText} />
+                <ReactQuill
+                    theme="snow"
+                    value={this.state.value}
+                    modules={modules}
+                    formats={formats}
+                    placeholder='请填写内容!'
+                    onChange={this.handleRichText}
+                />
                 <input type="file" name="fileToUpload" id="fileToUpload" placeholder='请填写内容!' style={{ "display": "none" }} />
                  <input type="file" name="fileToUploadVideo" id="fileToUploadVideo" placeholder='请填写视频!' style={{ "display": "none" }} />
             </div>
@@ -148,4 +155,4 @@ const Editors = React.createClass({
     },
 });
 
-export default Editors;
+export default Editors;

+ 1 - 1
js/user/signIn.js

@@ -25,4 +25,4 @@ ReactDOM.render(
         <LoginFooter />
     </div>,
     document.getElementById('root')
-)
+)

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "afanti",
-  "version": "1.0.2",
+  "version": "1.0.3",
   "description": "",
   "main": "index.js",
   "scripts": {