Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

level_add.htm 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="overflow-y: scroll;">
  3. <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
  4. <div id="append_parent"></div>
  5. <div id="ajaxwaitid"></div>
  6. <div class="page">
  7. <div class="fixed-bar">
  8. <div class="item-title"><a class="back_xin" href="{:url('Member/level_index')}" title="返回"><i class="iconfont e-fanhui"></i></a></a>
  9. <div class="subject">
  10. <h3>会员中心 - 新增级别</h3>
  11. <h5></h5>
  12. </div>
  13. </div>
  14. </div>
  15. <!-- 操作说明 -->
  16. <div id="explanation" class="explanation">
  17. <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
  18. <h4 title="提示相关设置操作时应注意的要点">提示</h4>
  19. <span title="收起提示" id="explanationZoom" style="display: block;"></span>
  20. </div>
  21. <ul>
  22. <li>由于会员升级是以等级值由低向高升级的,因此增加组别时需注意此值的设置。</li>
  23. <li>如果你增加新的会员组的等级值低于10,将自动被视为普通的注册会员。</li>
  24. </ul>
  25. </div>
  26. <form class="form-horizontal" id="postForm" action="{:url('Member/level_add')}" method="post">
  27. <div class="ncap-form-default">
  28. <dl class="row">
  29. <dt class="tit">
  30. <label for="level_name"><em>*</em>级别名称</label>
  31. </dt>
  32. <dd class="opt">
  33. <input type="text" name="level_name" id="level_name" class="input-txt">
  34. <p class="notic"></p>
  35. </dd>
  36. </dl>
  37. <!-- <dl class="row">
  38. <dt class="tit">
  39. <label for="amount"><em>*</em>消费额度</label>
  40. </dt>
  41. <dd class="opt">
  42. <input type="text" name="amount" id="amount" class="input-txt">
  43. <p class="notic">设置会员等级所需要的消费额度,单位:元</p>
  44. </dd>
  45. </dl>
  46. <dl class="row">
  47. <dt class="tit">
  48. <label for="discount"><em>*</em>折扣率</label>
  49. </dt>
  50. <dd class="opt">
  51. <input type="text" name="discount" id="discount" class="input-txt">
  52. <p class="notic">折扣率单位为百分比,如输入90,表示该会员等级的会员可以以商品原价的90%购买</p>
  53. </dd>
  54. </dl> -->
  55. <dl class="row">
  56. <dt class="tit">
  57. <label for="discount"><em>*</em>会员等级值</label>
  58. </dt>
  59. <dd class="opt">
  60. <input type="text" name="level_value" id="level_value" class="input-txt" onkeyup="this.value=this.value.replace(/[^0-9]/g,'');">
  61. <p class="notic">只输入数字,更多说明请阅读上方提示</p>
  62. </dd>
  63. </dl>
  64. <div class="bot">
  65. <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  66. </div>
  67. </div>
  68. </form>
  69. </div>
  70. <script type="text/javascript">
  71. // 判断输入框是否为空
  72. function checkForm(){
  73. if($('input[name=level_name]').val() == ''){
  74. showErrorMsg('级别名称不能为空!');
  75. $('input[name=level_name]').focus();
  76. return false;
  77. }
  78. if($('input[name=level_value]').val() == ''){
  79. showErrorMsg('会员等级值不能为空!');
  80. $('input[name=level_value]').focus();
  81. return false;
  82. }
  83. // if($('input[name=amount]').val() == ''){
  84. // showErrorMsg('消费额度不能为空!');
  85. // $('input[name=amount]').focus();
  86. // return false;
  87. // }
  88. // if($('input[name=discount]').val() == ''){
  89. // showErrorMsg('折扣率不能为空!');
  90. // $('input[name=discount]').focus();
  91. // return false;
  92. // }
  93. layer_loading('正在处理');
  94. $('#postForm').submit();
  95. }
  96. </script>
  97. {include file="public/footer" /}