Authored by liuyue

品牌合作模式

@@ -155,7 +155,9 @@ common.edit.ajaxfileupload("#upload-input", { @@ -155,7 +155,9 @@ common.edit.ajaxfileupload("#upload-input", {
155 $('.file-name').text($('#upload-input').val().replace("C:\\fakepath\\", "")); 155 $('.file-name').text($('#upload-input').val().replace("C:\\fakepath\\", ""));
156 }, 156 },
157 onComplete: function(response) { 157 onComplete: function(response) {
158 - loadModal.close(); 158 + if (loadModal) {
  159 + loadModal.close();
  160 + }
159 if (response.code == 200) { 161 if (response.code == 200) {
160 var li = ''; 162 var li = '';
161 163
@@ -264,8 +264,9 @@ common.edit.ajaxfileupload("#upload-input", { @@ -264,8 +264,9 @@ common.edit.ajaxfileupload("#upload-input", {
264 $('.file-name').text($('#upload-input').val().replace("C:\\fakepath\\", "")); 264 $('.file-name').text($('#upload-input').val().replace("C:\\fakepath\\", ""));
265 }, 265 },
266 onComplete: function(response) { 266 onComplete: function(response) {
267 - console.log(response);  
268 - loadModal.close(); 267 + if (loadModal) {
  268 + loadModal.close();
  269 + }
269 if (response.code == 200) { 270 if (response.code == 200) {
270 var data = response.data, 271 var data = response.data,
271 li = ''; 272 li = '';
@@ -281,6 +282,8 @@ common.edit.ajaxfileupload("#upload-input", { @@ -281,6 +282,8 @@ common.edit.ajaxfileupload("#upload-input", {
281 } else { 282 } else {
282 common.util.__tip(response.message, 'warning'); 283 common.util.__tip(response.message, 'warning');
283 } 284 }
  285 +
  286 +
284 } 287 }
285 }); 288 });
286 289
@@ -13,7 +13,7 @@ var config = { @@ -13,7 +13,7 @@ var config = {
13 redis: null, 13 redis: null,
14 apiKey: 'sd4H1ecAqlp', 14 apiKey: 'sd4H1ecAqlp',
15 15
16 - domain: 'http://192.168.102.214:8081/platform', 16 + domain: 'http://192.168.102.202:8088/platform',
17 loggers: { 17 loggers: {
18 api: { 18 api: {
19 level: 'verbose', 19 level: 'verbose',
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 </div> 13 </div>
14 </div> 14 </div>
15 <div class="form-group"> 15 <div class="form-group">
16 - <label class="col-sm-2 control-label">店铺类型</label> 16 + <label class="col-sm-2 control-label">促销活动类型</label>
17 <div class="col-sm-3"> 17 <div class="col-sm-3">
18 <select id="type1" class="form-control"> 18 <select id="type1" class="form-control">
19 <option value="1">vip累计金额翻倍</option> 19 <option value="1">vip累计金额翻倍</option>