Authored by LiQZ

页面调整

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