Authored by tanling

微信卡券

... ... @@ -60,6 +60,10 @@ module.exports = function (app) {
// 更新第三方信息
app.post("/coupon/updateCouponsUseRule", "CouponList_updateCouponsUseRule");
// 更新微信卡券H5链接
app.post("/coupon/updateH5Link", "CouponList_updateH5Link");
//清除指定商品
app.post("/coupon/cleanPrdLimit", "CouponList_cleanPrdLimit");
};
\ No newline at end of file
... ...
... ... @@ -99,6 +99,15 @@ module.exports = {
publicNumberType: {type: Number}
}
},
updateH5Link: {
title: "更新微信卡券H5链接",
url: "/coupon/updateH5Link",
params: {
h5Link: {type: String},
cardId: {type: String},
publicNumberCode: {type: Number}
}
},
cleanPrdLimit : {
title: "清除指定商品",
url: "/coupon/cleanPrdLimit",
... ...
... ... @@ -5,6 +5,7 @@
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body" style="padding-bottom: 0">
<a id="add-btn" href="/market/couponList/add" class="btn btn-success "><i class="fa fa-plus"></i> 添加优惠券</a>
<a id="updateh5-btn" href="javascript:;" class="btn btn-success "><i class="fa fa-plus"></i> 定制卡券h5链接</a>
</div>
<div class="panel-body">
<div class="row">
... ... @@ -321,13 +322,40 @@
<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="0" {{if publicNumberType == 1}}selected{{/if}}>有货YOHOBUY 订阅号</option>
<option value="3" {{if publicNumberType == 3}}selected{{/if}}>有货潮流志微信 订阅号</option>
</select>
</div>
</div>
</div>
</script>
<script id="h5Link-template" type="text/template" charset="utf-8">
<div class="row" id="h5LinkForm">
<div class="form-group">
<label class="col-sm-2 control-label">微信公众号</label>
<div class="col-sm-8">
<select name="publicNumberCode" id="publicNumberCode" tabindex="-1" class="form-control" style="width: 200px;">
<option value="0" {{if publicNumberCode == 1}}selected{{/if}}>有货YOHOBUY 订阅号</option>
<option value="3" {{if publicNumberCode == 3}}selected{{/if}}>有货潮流志微信 订阅号</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">卡券ID</label>
<div class="col-sm-8">
<input id="cardId" class="form-control panel-input" value="{{thirdId}}" type="text" placeholder="卡券ID">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">H5链接</label>
<div class="col-sm-8">
<input id="h5Link" class="form-control panel-input" value="{{h5Link}}" type="text" placeholder="h5链接">
</div>
</div>
</div>
</script>
<%include '../../../common/views/__ui/footer'%>
... ...