Showing
6 changed files
with
32 additions
and
26 deletions
@@ -176,32 +176,38 @@ $(document).on('click', 'input[name="brandType"]', function () { | @@ -176,32 +176,38 @@ $(document).on('click', 'input[name="brandType"]', function () { | ||
176 | 176 | ||
177 | function plusStarOP(prefix, url, item) { | 177 | function plusStarOP(prefix, url, item) { |
178 | 178 | ||
179 | - | ||
180 | - | ||
181 | var a = new common.edit('#templete-top'); | 179 | var a = new common.edit('#templete-top'); |
182 | common.dialog.confirm(prefix+'品牌', common.util.__template2($("#template").html(), item), function () { | 180 | common.dialog.confirm(prefix+'品牌', common.util.__template2($("#template").html(), item), function () { |
183 | 181 | ||
184 | - return a.submit(url,function(option){ | ||
185 | - //设置图片 | ||
186 | - if(imgArr.length) { | ||
187 | - option.data.activityImg = imgArr.toString(); | ||
188 | - } | ||
189 | - imgArr = []; | ||
190 | - option.success=function(res){ | ||
191 | - res=res.data; | ||
192 | - if(res.code=="200"){ | ||
193 | - a.$tip("提交成功", function() { | ||
194 | - g.reload(); | ||
195 | - }, 'growl-success'); | ||
196 | - }else{ | 182 | + console.log('type' + $('#brandType').val()); |
183 | + var type = $('#brandType').val(); | ||
184 | + if(type) { | ||
185 | + return a.submit(url,function(option){ | ||
186 | + //设置图片 | ||
187 | + if(imgArr.length) { | ||
188 | + option.data.activityImg = imgArr.toString(); | ||
189 | + } | ||
190 | + imgArr = []; | ||
191 | + option.success=function(res){ | ||
192 | + res=res.data; | ||
193 | + if(res.code=="200"){ | ||
194 | + a.$tip("提交成功", function() { | ||
195 | + g.reload(); | ||
196 | + }, 'growl-success'); | ||
197 | + }else{ | ||
198 | + a.$tip(res.message); | ||
199 | + } | ||
200 | + return false; | ||
201 | + }; | ||
202 | + option.error=function(res){ | ||
197 | a.$tip(res.message); | 203 | a.$tip(res.message); |
198 | } | 204 | } |
199 | - return false; | ||
200 | - }, | ||
201 | - option.error=function(res){ | ||
202 | - a.$tip(res.message); | ||
203 | - } | ||
204 | - }); | 205 | + }); |
206 | + } else { | ||
207 | + a.$tip('类型不能为空'); | ||
208 | + return; | ||
209 | + } | ||
210 | + | ||
205 | 211 | ||
206 | }); | 212 | }); |
207 | 213 |
@@ -687,7 +687,7 @@ $(document).on("change", "#maxSortId", function () { | @@ -687,7 +687,7 @@ $(document).on("change", "#maxSortId", function () { | ||
687 | if ($(this).val() == TypeAToT[name]) { | 687 | if ($(this).val() == TypeAToT[name]) { |
688 | $(":radio[name=coverImageType]").prop("checked", false); | 688 | $(":radio[name=coverImageType]").prop("checked", false); |
689 | $(this).prop("checked", true); | 689 | $(this).prop("checked", true); |
690 | - $("#articleGender").val($(this).val()); | 690 | + $("#coverImageType").val($(this).val()); |
691 | } | 691 | } |
692 | }); | 692 | }); |
693 | }); | 693 | }); |
@@ -89,7 +89,7 @@ var g = new common.grid({ | @@ -89,7 +89,7 @@ var g = new common.grid({ | ||
89 | render: function (item) { | 89 | render: function (item) { |
90 | 90 | ||
91 | item.coverImage = common.util.__template(item.coverImage, {mode: 2, width: 100, height: 100}); | 91 | item.coverImage = common.util.__template(item.coverImage, {mode: 2, width: 100, height: 100}); |
92 | - return '<img src="' + item.coverImage + '" width="100" height="60"/>' | 92 | + return '<img src="' + item.coverImage + '" width="100" />' |
93 | } | 93 | } |
94 | }, { | 94 | }, { |
95 | display: '文章标题', | 95 | display: '文章标题', |
1 | -exports.staticDir = {"test":{"path":"/dist"},"preview":{"path":"http://cdn.yoho.cn/yohobuy-portal/4.3.5","md5":""},"production":{"path":"http://cdn.yoho.cn/yohobuy-portal/4.3.5","md5":""}} | ||
1 | +exports.staticDir = {"test":{"path":"/dist"},"preview":{"path":"http://cdn.yoho.cn/yohobuy-portal/4.3.6","md5":""},"production":{"path":"http://cdn.yoho.cn/yohobuy-portal/4.3.6","md5":""}} |
@@ -74,7 +74,7 @@ | @@ -74,7 +74,7 @@ | ||
74 | <label>女</label> | 74 | <label>女</label> |
75 | <input type="radio" value="3" name="articleGender" checked> | 75 | <input type="radio" value="3" name="articleGender" checked> |
76 | <label>通用</label> | 76 | <label>通用</label> |
77 | - <input type="hidden" value="[[articleGender]]" id="articleGender" for="radio" required/> | 77 | + <input type="hidden" value="[[articleGender||3]]" id="articleGender" for="radio" required/> |
78 | </div> | 78 | </div> |
79 | </div> | 79 | </div> |
80 | <div class="form-group"> | 80 | <div class="form-group"> |
-
Please register or login to post a comment