// ////////////////////////// Coupons start ////////////////////////////
// Add an event to the conditional selection box
function inputFuJia() {
hideLable();
$.each($("input[id^='fujia_']"), function(i, lable) {
$(lable).click(function() {
if (this.name == 'mian') {
$("#fujialab_FF").hide();
$("#fujialab_FQ").hide();
}
if (this.checked == true) {
$("#fujialab_" + this.value).show();
} else {
$("#fujialab_" + this.value).hide();
}
});
});
}
// Hide all settings
function hideLable() {
$.each($("label[id^='fujialab_']"), function(i, lable) {
$(lable).hide();
});
}
// Stitching labels
function addFQ() {
// Check the coupons that have been added
var obj = new Object();
obj.additionalValues = $("#fujialab_FQ_value").val();
obj.additionalCounts = $("#fujialab_FQ_count").val();
if (obj.additionalValues != '' && obj.additionalCounts != '') {
clearTable();
doAjax({
url : appPath
+ '/page/ecPromoteRuleGoodsGNewAct/getCouponTypeListByIds',
type : 'post',
data : obj,
success : function(data) {
if (data != null) {
var html = "";
$
.each(
data,
function(i, coup) {
html += "<tr class=\"selectedArea\">"
+ "<td><a class=\"easyui-linkbutton deleteArea\" href=\"javascript:void(0)\" iconCls=\"icon-cancel\" > Delete </a></td>"
+ "<td>"
+ coup.COUPON_TYPE_NO
+ " <input type= \"hidden\" name=\"FQ_couponTypeId\" value=\""
+ coup.COUPON_TYPE_ID
+ "\"> </td>"
+ "<td>"
+ coup.COUPON_TYPE_NAME
+ "</td>"
+ "<td>"
+ coup.COUPON_FEE
+ "<input type = \"hidden\" name = \"FQ_couponFee\" value = \""
+ coup.COUPON_FEE
+ "\"></td>"
+ "<td><input type=\"text\" maxlength = \"4\" name=\"FQ_amount\" value=\""
+ coup.NUMBER
+ "\" style=\"width:50px;\" /></td>"
+ "</tr>";
});
$("#selectConputTbl").append(html);
}
}
});
}
$('#addFQ').window({
title : " Return coupon ",
iconCls : 'icon-add',
width : 500,
height : 350,
left : 100,
modal : true,
shadow : true,
collapsible : false,
minimizable : false,
maximizable : false
});
$('#addFQ').window('move', {
top : 150
});
$('#addFQ').window('open');
}

jquery More related articles on marketing system

  1. jquery Our marketing system ( Member promotion )

    var appPath = getAppPath(); var cnt = 0; var loadCnt = 0; $(function() { $("#opreateHtml") ...

  2. jquery Our marketing system ( Compensation records )

    var appPath = getAppPath(); $(function(){ $("#opreateHtml").window("close"); $(& ...

  3. .net core and WPF Develop shengxunwei online customer service and marketing system : Overall system architecture

    This series of articles details the use of .net core and WPF Development Shengxunwei online customer service and marketing system The process of . This product has been mature, stable and put into commercial use . Online demo environment :https://kf.shengxunwei.com Be careful ...

  4. 9 month 19 Number -9 month 21 Fengning dam on the grassland line - Marketing system - Jingdong internal Forum - Powered by Discuz!

    9 month 19 Number -9 month 21 Fengning dam on the grassland line - Marketing system - Jingdong internal Forum - Powered by Discuz! 9 month 19 Number -9 month 21 Fengning dam on the grassland line   [ Replication link ]

  5. GitHub Open source : Shengxunwei wechat marketing system ( Third party wechat platform ) Full source code

    GitHub:https://github.com/iccb1013/Sheng.WeixinConstruction Shengxunwei wechat marketing system development practice series shengxunwei wechat marketing system development practice :(1) Function design and architecture design ...

  6. Shengxunwei wechat marketing system development practice :(4) Source code structure description And Installation and deployment instructions ( Complete open source in Github)

    GitHub:https://github.com/iccb1013/Sheng.WeixinConstruction Because personal energy and time are limited , No more updates to existing code , However, wechat interface is relatively stable , It has been tested to ...

  7. Shengxunwei wechat marketing system development practice :(3) Function introduction and some experience of this project promotion process ( Complete open source in Github)

    GitHub:https://github.com/iccb1013/Sheng.WeixinConstruction Because personal energy and time are limited , No more updates to existing code , However, wechat interface is relatively stable , It has been tested to ...

  8. 【 Open source sharing 】 Wechat marketing system ( Third party wechat platform )github Open source

    Shengxunwei wechat marketing system ( Wechat third party platform ) Online experience :http://wxcm.eeipo.cn/ Open source address GitHub:https://github.com/iccb1013/Sheng.WeixinCons ...

  9. Shengxunwei wechat marketing system development practice : Wechat interface .NET encapsulation

    GitHub:https://github.com/iccb1013/Sheng.WeixinConstruction Because personal energy and time are limited , No more updates to existing code , However, wechat interface is relatively stable , It has been tested to ...

Random recommendation

  1. Visual Studio Code preview Ver 0.3.0 Try it out

    When you start reading this article , Please don't put Visual Studio Code and .net.Windows Think of it together , because VS Code It's a cross platform , Support 30 Multi language code editor . No matter you are .Net.Java ...

  2. Ubuntu View in 32 still 64

    install ubuntu stay pc On , Not recommended in 32 position pc install 64 Bit operating system ,64 position pc install 32 Bit operating system Method / step   1 Press ctrl+shift+t Shortcut key , Open the terminal , Input sudo uname --m , Press down ...

  3. MySql Data operation class

    /// <summary> /// MySqlHelper Summary description of . /// </summary> public class MySqlHelper { public st ...

  4. Three ViewController The similarities and differences of jump

    - (void)presentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)flag comple ...

  5. 【 Programming skills 】NSTimer The use of the class

    Create a Timer + scheduledTimerWithTimeInterval: invocation: repeats: + (NSTimer *)scheduledTimerWithTim ...

  6. C# Use of threads (1)

    I just started to learn how to use threads today , Record the learning process and the new ones . Create thread : It's simple , Just declare her and provide her with a method delegate at the start of the thread : Thread termination : Use Abort and Join Method to implement : Abort Method : For permanent ...

  7. coming , bro !__ Binary deployment kubernetes1.11.7 colony

    Kubernetes Container cluster management Kubernetes Introduce Kubernetes yes Google stay 2014 year 6 An open source container cluster management system , Use Go Language development ,Kubernetes Also called K8S.K8S yes Go ...

  8. PAT (Basic Level) Practice ( chinese )1004 Results ranking (20 branch )

    Topic link :https://pintia.cn/problem-sets/994805260223102976/problems/994805321640296448 #include <iost ...

  9. linux git pull/push Prompt to input the exemption setting of account password

    1. First cd Go to the root , perform git config --global credential.helper store command [[email protected] ~]# git config --global ...

  10. PHP Optimize —— From language to business

    It's often said php Slow speed , In fact, the speed difference at the language level is compared with the actual business , Not in an order of magnitude . The bottleneck in business is often io, instead of CPU. 0x0 Language grammar Single and double quotes Single quotation marks do not parse variables in a string , And double quotes resolve ...