Showing
3 changed files
with
10 additions
and
4 deletions
@@ -140,7 +140,7 @@ edit.prototype = { | @@ -140,7 +140,7 @@ edit.prototype = { | ||
140 | if ("mp4,rmvb,avi,mov".indexOf(ext) > -1) { | 140 | if ("mp4,rmvb,avi,mov".indexOf(ext) > -1) { |
141 | Temp += '<video width="76" height="80" src="' + src + '"></video>'; | 141 | Temp += '<video width="76" height="80" src="' + src + '"></video>'; |
142 | } else { | 142 | } else { |
143 | - Temp += '<img width="76" height="80" src="' + src + '">'; | 143 | + Temp += '<img width="76" height="80" src="' + src + '?imageView2/2/w/76/h/80">'; |
144 | } | 144 | } |
145 | } else { | 145 | } else { |
146 | Temp += '+'; | 146 | Temp += '+'; |
@@ -180,7 +180,7 @@ edit.prototype = { | @@ -180,7 +180,7 @@ edit.prototype = { | ||
180 | if (ext == "mp4") { | 180 | if (ext == "mp4") { |
181 | _w.prepend('<video width="76" height="80" src="' + response.data + '"></video>'); | 181 | _w.prepend('<video width="76" height="80" src="' + response.data + '"></video>'); |
182 | } else { | 182 | } else { |
183 | - _w.prepend('<img width="76" height="80" src="' + response.data + '">'); | 183 | + _w.prepend('<img width="76" height="80" src="' + response.data + '?imageView2/2/w/76/h/80">'); |
184 | } | 184 | } |
185 | } | 185 | } |
186 | $(this).attr("value", response.data); | 186 | $(this).attr("value", response.data); |
@@ -173,6 +173,12 @@ function plusStarOP(prefix, url, item) { | @@ -173,6 +173,12 @@ function plusStarOP(prefix, url, item) { | ||
173 | "bucket" : "plustar" | 173 | "bucket" : "plustar" |
174 | }); | 174 | }); |
175 | 175 | ||
176 | + a.on("validate",function(){ | ||
177 | + if(imgArr.length==0){ | ||
178 | + return "请上传banner图"; | ||
179 | + } | ||
180 | + }); | ||
181 | + | ||
176 | common.dialog.confirm(prefix+'品牌', common.util.__template2($("#template").html(), item), function () { | 182 | common.dialog.confirm(prefix+'品牌', common.util.__template2($("#template").html(), item), function () { |
177 | 183 | ||
178 | // | 184 | // |
@@ -16,12 +16,12 @@ var config = { | @@ -16,12 +16,12 @@ var config = { | ||
16 | //domain:'http://172.16.6.140:8088/platform', // Object | 16 | //domain:'http://172.16.6.140:8088/platform', // Object |
17 | //domain: 'http://172.16.6.236:8088/platform',// 钱军 | 17 | //domain: 'http://172.16.6.236:8088/platform',// 钱军 |
18 | // domain:'http://172.16.6.176:8088/platform',// 王书生 | 18 | // domain:'http://172.16.6.176:8088/platform',// 王书生 |
19 | - domain:'http://172.16.6.141:9090/',// 赵琪 | 19 | + // domain:'http://172.16.6.141:9090/',// 赵琪 |
20 | // domain: 'http://172.16.6.214:8088/platform',//陈超 | 20 | // domain: 'http://172.16.6.214:8088/platform',//陈超 |
21 | //http://172.16.6.124:8088/platform/product/queryAllProductAttr | 21 | //http://172.16.6.124:8088/platform/product/queryAllProductAttr |
22 | //domain: 'http://172.16.6.146:8088/platform', //玛丽 | 22 | //domain: 'http://172.16.6.146:8088/platform', //玛丽 |
23 | //domain:'http://172.16.6.157:8080/yohobuy-platform-web',//葛超 | 23 | //domain:'http://172.16.6.157:8080/yohobuy-platform-web',//葛超 |
24 | - // domain: 'http://192.168.102.216:8086/platform', | 24 | + domain: 'http://192.168.102.216:8086/platform', |
25 | //domain: 'http://192.168.102.202:8088/platform', | 25 | //domain: 'http://192.168.102.202:8088/platform', |
26 | //domain:'http://172.16.6.120:8088/platform',//曹艳 | 26 | //domain:'http://172.16.6.120:8088/platform',//曹艳 |
27 | //domain:'http://172.16.6.231:8080/platform',//王伟 | 27 | //domain:'http://172.16.6.231:8080/platform',//王伟 |
-
Please register or login to post a comment