记得上下班打卡 | git大法好,push需谨慎

创建积分活动+优先购

parent 4dfb3997
...@@ -117,8 +117,8 @@ ...@@ -117,8 +117,8 @@
<div id="detailsFormList" class="details-form-list" style="display: none"> <div id="detailsFormList" class="details-form-list" style="display: none">
<!--奖品详情--> <!--奖品详情-->
<div class="details-pop-inner"> <div class="details-pop-inner">
<button type="button" class="btn btn-primary" onclick="addCouponShow()">添加</button> <button type="button" class="btn btn-primary" onclick="addCouponShow()">添加优惠券</button>
<button type="button" class="btn btn-primary" onclick="closeCouponShow()">关闭窗口</button> <button type="button" class="btn btn-warning" onclick="closeCouponShow()">关闭窗口</button>
<hr> <hr>
<div class="coupon-select" style="display: none"> <div class="coupon-select" style="display: none">
<div class="scope_application"> <div class="scope_application">
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
align: 'center', align: 'center',
title: '奖品类型', title: '奖品类型',
formatter: function(value, row, index) { formatter: function(value, row, index) {
let arr = ['积分', '优惠券', '实物', '登登登VIP']; let arr = ['积分', '优惠券', '实物', '登登登VIP', '优先购买券'];
let str = ''; let str = '';
arr.forEach((item,i)=> { arr.forEach((item,i)=> {
i++ i++
...@@ -769,6 +769,10 @@ ...@@ -769,6 +769,10 @@
} }
// 添加优惠券 // 添加优惠券
function addCouponFun () { function addCouponFun () {
if (!nowCouponSelect.couponId) {
this.alert('请先选择优惠券');
return;
}
let postData = { let postData = {
"couponId": nowCouponSelect.couponId, "couponId": nowCouponSelect.couponId,
"couponTitle": nowCouponSelect.title, "couponTitle": nowCouponSelect.title,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment