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

Commit 450fcc92 authored by jiangxiulong's avatar jiangxiulong

Merge remote-tracking branch 'origin/dev_20211205' into dev_20211205

parents 8f02edaa e7210141
......@@ -427,6 +427,7 @@
<div class="pop_inner">
<input type="hidden" class="parentsIndex"/>
<input type="hidden" class="childIndex"/>
<input type="hidden" class="pop_oper"/>
<!-- <div class="col-sm-10">-->
<!-- <input type="text" id="coupeAdd_title" name="coupeAdd_title" placeholder="券标题"/>-->
<!-- </div>-->
......@@ -470,7 +471,7 @@
</div>
<div class="radio-box goods_track">
<label for="radio2" onclick="coupetType(this)">
<input type="radio" id="coupetypr3" class="coupeAddVal" name="coupe_type" value="4"/>折扣券
<input type="radio" id="coupetypr4" class="coupeAddVal" name="coupe_type" value="4"/>折扣券
</label>
</div>
</div>
......@@ -482,7 +483,7 @@
<div class="coupetypr_search">
<div class="remote_wrapper" style="position: relative;">
<input name="ids" type="hidden">
<input type="text" id="remoteSearch">
<input type="text" id="remoteSearch" placeholder="请选择券">
</div>
</div>
</div>
......@@ -576,6 +577,20 @@
});
});
// 远程搜索券
$('#remoteSearch').remoteSearchPerformance({
ajax:{
url: candyfix + "/list",
type: "post"
},
chose: function(text,val){
window.couponId = val;
$('.user_rules').show();
coupenDetail(val, 1);
// document.getElementsByName("ids")[0].value = val;
}
});
function tabChange (num) {
window.localStorage.setItem('tabActive', num);
}
......@@ -638,8 +653,6 @@
var mrightsId = this.mrightsId;
var couponId = this.couponId;
console.log(this.couponId);
var MembercoupenData = {
busiType: Number(busiType),
couType: Number(busiType) == 3 ? 101 : Number(couType),
......@@ -655,8 +668,11 @@
valFace: valFace ? valFace : 1,
valOver: valOver ? valOver : 1,
valMinus: valMinus ? valMinus : 1,
oper: 1
oper: $('.pop_oper').val()
};
if ($('.pop_oper').val() == 3) {
MembercoupenData.operCouponId = this.operCouponId;
}
$.operate.saveModalBody(prefix + "/edit_coupon", JSON.stringify(MembercoupenData), function () {
$('.coupe_pop').hide();
$('.cover_pop').hide();
......@@ -707,16 +723,8 @@
}
}
// 远程搜索券
$('#remoteSearch').remoteSearchPerformance({
ajax:{
url: candyfix + "/list",
type: "post"
},
chose: function(text,val){
window.couponId = val;
$('.user_rules').show();
// document.getElementsByName("ids")[0].value = val;
// 券详情
function coupenDetail (val, num) {
$.ajax({
url: candyfix + "/info",
async: false,
......@@ -741,13 +749,13 @@
} else if (coupenData.busiType == 3) {
$('.user_rules .rules_inner').text('全部演出');
}
if (num == 3) {
$('#remoteSearch').val(coupenData.title);
$('.user_rules').show();
}
})
},
success: function(){
}
})
}
// 权益图片上传
function icon (obj, num) {
$('.coverFunNum').val(num);
......@@ -819,6 +827,7 @@
function addCoupes (obj) {
var addItemIndex = $('.member-coupes').index($(obj));
$('.parentsIndex').val(addItemIndex);
$('.pop_oper').val(1);
$('.coupe_pop').show();
}
......@@ -845,8 +854,15 @@
var valOver = parentObj.find('#mrcvalOver').val();
var valMinus = parentObj.find('#mrcvalMinus').val();
if (this.typeCoupe == 4) {
$('#coupetypr4').parent().parent().parent().show();
} else {
$('#coupetypr4').parent().parent().parent().hide();
}
this.mrightsId = mrightsId;
this.couponId = couponId;
this.operCouponId = couponId;
$('#eventAmt').val(eventAmt);
$('#valOver').val(valOver);
......@@ -890,6 +906,8 @@
busiName: '优先购'
}]
}
$('.pop_oper').val(3);
coupenDetail(couponId, 3);
$('.coupe_pop').show();
}
......
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