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

Commit 3674358a authored by liuran's avatar liuran

修改会员基础信息

parent 607b73fe
......@@ -425,17 +425,17 @@
</div>
<div class="radio-box">
<label for="radio2" onclick="radioType(this)">
<input type="radio" id="coupeAdd2" class="coupeAddVal" onclick="radioType(this)" name="coupeAdd_type" value="1"/>演出
<input type="radio" id="coupeAdd2" class="coupeAddVal" name="coupeAdd_type" value="1"/>演出
</label>
</div>
<div class="radio-box">
<label for="radio2" onclick="radioType(this)">
<input type="radio" id="coupeAdd3" class="coupeAddVal" onclick="radioType(this)" name="coupeAdd_type" value="2"/>商品
<input type="radio" id="coupeAdd3" class="coupeAddVal" name="coupeAdd_type" value="2"/>商品
</label>
</div>
<div class="radio-box">
<label for="radio2" onclick="radioType(this)">
<input type="radio" id="coupeAdd4" class="coupeAddVal" onclick="radioType(this)" name="coupeAdd_type" value="3"/>优先购买
<input type="radio" id="coupeAdd4" class="coupeAddVal" name="coupeAdd_type" value="3"/>优先购买
</label>
</div>
</div>
......@@ -560,17 +560,29 @@
} else {
var coupeTitle = $('#coupeAdd_title').val();
var busiType = this.typeRadio;
if (this.typeRadio == 0 || this.typeRadio == 1 || this.typeRadio == 3) {
var couponRuleList = [{
if (this.typeRadio == 0) {
var couponRuleList = [{
useScope: 100,
busiName: '全部演出'
busiName: '全场'
}]
} else if ( this.typeRadio == 1) {
var couponRuleList = [{
useScope: 90,
busiName: '演出'
}]
} else if ( this.typeRadio == 2) {
var couponRuleList = [{
useScope: 80,
busiName: '商品'
}]
} else {
var couponRuleList = [{
useScope: 100,
busiName: '全部商品'
useScope: 90,
busiName: '优先购'
}]
}
if (this.typeRadio == 3) {
var eventAmt = $('#eventAmt').val();
var overlay = this.overlay;
......@@ -617,7 +629,11 @@
// 类别
function radioType (obj) {
console.log(obj)
var typeRadio = $(obj).find('input').val();
$(obj).parent().parent().find('input').removeAttr('checked');
$(obj).find('input').attr('checked', true);
this.typeRadio = typeRadio;
if (typeRadio == 3) {
$('.alltrack').hide();
......@@ -664,17 +680,29 @@
var valOver = thisVal.find('#mrcvalOver').val();
var valMinus = thisVal.find('#mrcvalMinus').val();
// var mrightsId =
if (busiType == 0 || busiType == 1 || busiType == 3) {
var couponRuleList = [{
if (busiType == 0) {
var couponRuleList = [{
useScope: 100,
busiName: '全部演出'
busiName: '全场'
}]
} else if ( busiType == 1) {
var couponRuleList = [{
useScope: 90,
busiName: '演出'
}]
} else if ( busiType == 3 ) {
var couponRuleList = [{
useScope: 80,
busiName: '商品'
}]
} else {
var couponRuleList = [{
useScope: 100,
busiName: '全部商品'
useScope: 90,
busiName: '优先购'
}]
}
var MembercoupenData = {
busiType: busiType,
couType: couType == 3 ? 101 : couType,
......@@ -750,15 +778,25 @@
$('.coupetypr_discount').show();
}
if (this.typeRadio == 0 || this.typeRadio == 1 || this.typeRadio == 3) {
var couponRuleList = [{
if (this.typeRadio == 0) {
var couponRuleList = [{
useScope: 100,
busiName: '全部演出'
busiName: '全场'
}]
} else if ( this.typeRadio == 1) {
var couponRuleList = [{
useScope: 90,
busiName: '演出'
}]
} else if ( this.typeRadio == 2) {
var couponRuleList = [{
useScope: 80,
busiName: '商品'
}]
} else {
var couponRuleList = [{
useScope: 100,
busiName: '全部商品'
useScope: 90,
busiName: '优先购'
}]
}
......
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