Authored by LiQZ

页面调整

@@ -241,7 +241,7 @@ @@ -241,7 +241,7 @@
241 <label class="col-sm-2 control-label">第三方类型 </label> 241 <label class="col-sm-2 control-label">第三方类型 </label>
242 <div class="col-sm-8"> 242 <div class="col-sm-8">
243 <input type="hidden" name="couponId" id="couponId" value="{{couponId}}"/> 243 <input type="hidden" name="couponId" id="couponId" value="{{couponId}}"/>
244 - <select name="thirdType" id="thirdType" tabindex="-1" class="select2-offscreen" style="width: 100px;"> 244 + <select name="thirdType" id="thirdType" {{if thirdType == 1}}disabled{{/if}} tabindex="-1" class="select2-offscreen" style="width: 100px;">
245 <option value="1" {{if thirdType == 1}}selected{{/if}}>微信</option> 245 <option value="1" {{if thirdType == 1}}selected{{/if}}>微信</option>
246 <option value="2" {{if thirdType == 2}}selected{{/if}}>支付宝</option> 246 <option value="2" {{if thirdType == 2}}selected{{/if}}>支付宝</option>
247 <option value="3" {{if thirdType != 1 && thirdType != 2}}selected{{/if}}>微博</option> 247 <option value="3" {{if thirdType != 1 && thirdType != 2}}selected{{/if}}>微博</option>
@@ -251,7 +251,7 @@ @@ -251,7 +251,7 @@
251 <div class="form-group"> 251 <div class="form-group">
252 <label class="col-sm-2 control-label">第三方 ID</label> 252 <label class="col-sm-2 control-label">第三方 ID</label>
253 <div class="col-sm-8"> 253 <div class="col-sm-8">
254 - <input id="thirdId" class="form-control panel-input" value="{{thirdId}}" type="text" placeholder="第三方 ID"> 254 + <input id="thirdId" class="form-control panel-input" value="{{thirdId}}" {{if thirdType == 1}}readonly{{/if}} type="text" placeholder="第三方 ID">
255 </div> 255 </div>
256 </div> 256 </div>
257 </div> 257 </div>
@@ -396,12 +396,12 @@ $(document).on('click', '.operation-third', function() { @@ -396,12 +396,12 @@ $(document).on('click', '.operation-third', function() {
396 return false; 396 return false;
397 }); 397 });
398 398
399 - e.on("validate", function() {  
400 - var thirdId = $("#baseform").find("#thirdId").val();  
401 - if ($.trim(thirdId).length == 0) {  
402 - return "请输入第三方 ID";  
403 - }  
404 - }); 399 + // e.on("validate", function() {
  400 + // var thirdId = $("#baseform").find("#thirdId").val();
  401 + // if ($.trim(thirdId).length == 0) {
  402 + // return "请输入第三方 ID";
  403 + // }
  404 + // });
405 405
406 e.init(); 406 e.init();
407 407