| | |
| | | parent.layer.close(window.parent.TCoupon.layerIndex); |
| | | } |
| | | |
| | | function ajax(serverCouponId, value, remark) { |
| | | var ajax = new $ax(Feng.ctxPath + "/couponServer/examine", function (data) { |
| | | Feng.success("审核成功!"); |
| | | window.parent.TCoupon.table.refresh(); |
| | | couponInfoDlg.close(); |
| | | }, function (data) { |
| | | Feng.error("审核失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.setData({ |
| | | couponServerId: serverCouponId, |
| | | state: value, |
| | | remark: remark |
| | | }); |
| | | ajax.start(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 兑换方式1 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 关闭此对话框 |
| | | * 提交 |
| | | */ |
| | | couponInfoDlg.addSubmitCoupon = function () { |
| | | var value = $('input:radio:checked').val(); |
| | | let couponServerId = $("#serverCouponId").val(); |
| | | let remark = $('#detail').val() |
| | | if (value == 1) { |
| | | //提交信息 |
| | | ajax(couponServerId, value, remark) |
| | | } else { |
| | | if (!remark) { |
| | | Feng.error("请输入拒绝理由!"); |
| | | return; |
| | | } |
| | | ajax(couponServerId, value, remark) |
| | | couponInfoDlg.addSubmit = function () { |
| | | var userType = $('#userType').val(); |
| | | var prescription = $('#prescription').val(); |
| | | var illustrate = $('#illustrate').val(); |
| | | var distributionMethod = $('#distributionMethod').val(); |
| | | var prescription = $('#prescription').val(); |
| | | if (userType === '1'){ |
| | | |
| | | } |
| | | var couponName = $('#name').val; |
| | | var couponName = $('#name').val; |
| | | var couponName = $('#name').val; |
| | | var couponName = $('#name').val; |
| | | var couponName = $('#name').val; |
| | | var couponName = $('#name').val; |
| | | var couponName = $('#name').val; |
| | | var couponName = $('#name').val; |
| | | var couponName = $('#name').val; |
| | | var couponName = $('#name').val; |
| | | |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | $(function () { |
| | | getProvince(null); |
| | | |
| | | radio1(); |
| | | var userType = $('#userType').val(); |
| | | if (userType === '1'){ |
| | | // 兑换方式 |
| | | $('#exchangeType').show(); |
| | | $('#needAmount').show(); |
| | | $('#needIntegral').show(); |
| | | // 图片 |
| | | $('#app').show(); |
| | | $('#app1').show(); |
| | | // 适用范围 |
| | | $('#belongsCon').show(); |
| | | $('#belongsNationwide').show(); |
| | | $('#belongsCity').show(); |
| | | $('#belongsStore').show(); |
| | | } |
| | | if (userType === '2'){ |
| | | $('#needIntegral').show(); |
| | | $('#belongsCon').show(); |
| | | $('#belongsStore').show(); |
| | | $('#storeSelect').show(); |
| | | } |
| | | }); |