Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-portal-fe into develop
Showing
4 changed files
with
6 additions
and
52 deletions
@@ -321,7 +321,7 @@ edit.prototype={ | @@ -321,7 +321,7 @@ edit.prototype={ | ||
321 | }; | 321 | }; |
322 | callback&&callback(options); | 322 | callback&&callback(options); |
323 | $.ajax(options); | 323 | $.ajax(options); |
324 | - return false; | 324 | + //return false; |
325 | }, | 325 | }, |
326 | __listen:function(key,o,callback){ | 326 | __listen:function(key,o,callback){ |
327 | var __self=this; | 327 | var __self=this; |
@@ -80,7 +80,9 @@ var g = new common.grid({ | @@ -80,7 +80,9 @@ var g = new common.grid({ | ||
80 | {display: "内容", name: "content"}, | 80 | {display: "内容", name: "content"}, |
81 | {display: "频道", name: "channelNames"}, | 81 | {display: "频道", name: "channelNames"}, |
82 | {display: "链接", name: "url", render: function (item) { | 82 | {display: "链接", name: "url", render: function (item) { |
83 | - return '<a href="'+item.url+'">'+item.url+'</a>' | 83 | + |
84 | + var url = item.url?item.url:""; | ||
85 | + return '<a href="'+item.url+'" target="_blank"> '+url+'</a>' //'+item.url?item.url:""+' | ||
84 | }}, | 86 | }}, |
85 | {display: "状态", name: "status", render: function (item) { | 87 | {display: "状态", name: "status", render: function (item) { |
86 | if (item.status === StatusEnum.ON) { | 88 | if (item.status === StatusEnum.ON) { |
@@ -278,7 +280,7 @@ function searchWordOp (prefix, url, item) { | @@ -278,7 +280,7 @@ function searchWordOp (prefix, url, item) { | ||
278 | common.dialog.confirm(prefix+templ.title, common.util.__template( t.join(""), item), function () { | 280 | common.dialog.confirm(prefix+templ.title, common.util.__template( t.join(""), item), function () { |
279 | 281 | ||
280 | // | 282 | // |
281 | - a.submit(url,function(option){ | 283 | + return a.submit(url,function(option){ |
282 | option.success=function(res){ | 284 | option.success=function(res){ |
283 | res=res.data; | 285 | res=res.data; |
284 | if(res.code=="200"){ | 286 | if(res.code=="200"){ |
1 | -<div class="modal-content"> | ||
2 | - <div class="modal-header"> | ||
3 | - <h4 class="modal-title"></h4> | ||
4 | - </div> | ||
5 | - <div class="modal-body"> | ||
6 | - <div class="form-group"> | ||
7 | - <label class="col-sm-2"><font style="color:red;">*</font>内容</label> | ||
8 | - <div class="col-sm-2"> | ||
9 | - <input type="text" id="content" name="content" value="" class="form-control"> | ||
10 | - </div> | ||
11 | - </div> | ||
12 | - <div class="form-group"> | ||
13 | - <label class="col-sm-2"><font style="color:red;">*</font>开始时间</label> | ||
14 | - <div class="col-sm-2"> | ||
15 | - <input type="text" id="content" name="content" value="" class="form-control"> | ||
16 | - </div> | ||
17 | - </div> | ||
18 | - <div class="form-group"> | ||
19 | - <label class="col-sm-2"><font style="color:red;">*</font>结束时间</label> | ||
20 | - <div class="col-sm-2"> | ||
21 | - <input type="text" id="content" name="content" value="" class="form-control"> | ||
22 | - </div> | ||
23 | - </div> | ||
24 | - <div class="form-group"> | ||
25 | - <label class="col-sm-2"><font style="color:red;">*</font>状态</label> | ||
26 | - <div class="col-sm-2"> | ||
27 | - <input type="radio" name="status" checked="" value="2">启用 | ||
28 | - <input type="radio" name="status" value="1">禁用 | ||
29 | - </div> | ||
30 | - </div> | ||
31 | - <div class="form-group"> | ||
32 | - <label class="col-sm-2">添加人</label> | ||
33 | - <div class="col-sm-2">22</div> | ||
34 | - </div> | ||
35 | - <div class="form-group"> | ||
36 | - <label class="col-sm-2">添加时间</label> | ||
37 | - <div class="col-sm-2">2015-01-11</div> | ||
38 | - </div> | ||
39 | - <div class="form-group"> | ||
40 | - <label class="col-sm-2">修改人</label> | ||
41 | - <div class="col-sm-2">232</div> | ||
42 | - </div> | ||
43 | - <div class="form-group"> | ||
44 | - <label class="col-sm-2">修改时间</label> | ||
45 | - <div class="col-sm-2">2015-06-12</div> | ||
46 | - </div> | ||
47 | - </div> | ||
48 | -</div> |
@@ -101,7 +101,7 @@ | @@ -101,7 +101,7 @@ | ||
101 | <div class="form-group"> | 101 | <div class="form-group"> |
102 | <label for="url" class="col-sm-2 control-label"> 链接</label> | 102 | <label for="url" class="col-sm-2 control-label"> 链接</label> |
103 | <div class="col-sm-10"> | 103 | <div class="col-sm-10"> |
104 | - <input type="text" name="" value="{url}" id="url" class="form-control" value="" required="required" pattern="" title=""> | 104 | + <input type="text" name="" value="{url}" id="url" class="form-control" value="" pattern="" title=""> |
105 | </div> | 105 | </div> |
106 | </div> | 106 | </div> |
107 | </script> | 107 | </script> |
-
Please register or login to post a comment