Authored by xuhongyun

build

... ... @@ -408,8 +408,12 @@ webpackJsonp([74],[
// });
e.init();
new common.dropDown({ el: "#thirdType" });
if (item.couponsUseRuleVo.thirdType == '1'){
$("#weixin").show();
}else{
$("#weixin").hide();
}
});
// 查看操作记录
... ... @@ -426,6 +430,15 @@ webpackJsonp([74],[
getOperationRecords(couponId);
});
$(document).on('change','#thirdType', function () {
var title = $(this).val();
if (title == '1'){
$("#weixin").show();
}else{
$("#weixin").hide();
}
});
function getOperationRecords(couponId) {
common.util.__ajax({
url: '/coupon/getOperationRecords',
... ...
... ... @@ -88,7 +88,8 @@ module.exports = {
params: {
couponId: {type: Number},
thirdType: {type: Number},
thirdId: {type: String}
thirdId: {type: String},
publicNumberType: {type: Number}
}
}
}
... ...
... ... @@ -254,6 +254,15 @@
<input id="thirdId" class="form-control panel-input" value="{{thirdId}}" {{if thirdType == 1}}readonly{{/if}} type="text" placeholder="第三方 ID">
</div>
</div>
<div class="form-group" id="weixin" style="display: none">
<label class="col-sm-2 control-label">微信公众号</label>
<div class="col-sm-8">
<select name="publicNumberType" id="publicNumberType" tabindex="-1" class="form-control" style="width: 200px;">
<option value="0" {{if publicNumberType == 0}}selected{{/if}}>有货YOHOBUY 订阅号</option>
<option value="3" {{if publicNumberType == 3}}selected{{/if}}>有货潮流志微信 订阅号</option>
</select>
</div>
</div>
</div>
</script>
<%include '../../common/__ui/footer'%>
... ...