add.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <form id="form" action="{:url('card/add')}">
  2. <div class="titlebar"><i class="iconfont icon-iconset0280"></i>奖励政策 <span class="fn-f12 gray">针对开通会员的推荐人奖励</span></div>
  3. <table class="formtable">
  4. <tr><th>直推¥:</th><td><input class="input" datatype="npot" type="text" name="relation_l1" value="" /></td></tr>
  5. <tr><th>间推¥:</th><td><input class="input" datatype="npot" type="text" name="relation_l2" value="" /></td></tr>
  6. </table>
  7. <div class="titlebar"><i class="iconfont icon-edit"></i>优惠券信息</div>
  8. <table class="formtable">
  9. <th>所属好店:</th>
  10. <td>
  11. <input readonly="readonly" id="store_id" class="readonly input w100" type="text" name="store_id" value="" />
  12. <button url="{:url('smartbc/card/selectStore',['input' => 'store_id'])}" type="button" class="selectid button"><i class="iconfont icon-my_icon"></i>选择用户</button>
  13. <button url="" type="button" class="reviewStore button button-blue"><i class="iconfont icon-search_icon"></i>预览</button>
  14. </td>
  15. </tr>
  16. <tr>
  17. <th>绑定优惠券:</th>
  18. <td>
  19. <input datatype="n" readonly="readonly" id="coupon_id" class="readonly input w100" type="text" name="coupon_id" />
  20. <button url="{:url('smartbc/card/selectConpon',['input' => 'coupon_id'])}" type="button" class="selectConpon button"><i class="iconfont icon-discount"></i>绑定优惠券</button>
  21. </td>
  22. </tr>
  23. <tr><th>付款金额(元):</th><td><input class="input w100" datatype="npot" type="text" name="price" value="" /></td></tr>
  24. <tr><th>优惠券数量:</th><td><input class="input w100" datatype="n" type="text" name="coupon_num" value="" /></td></tr>
  25. <tr><th>活动名称:</th><td><input class="input" datatype="*" type="text" name="name" /></td></tr>
  26. <tr><th>使用须知:</th><td><div class="w600"><textarea class="input w300 ui-mieditor" datatype="*" type="text" name="tips" /></textarea></div></td></tr>
  27. <tr><th></th><td><input type="submit" value="确定" class="button button-blue submit" /><input type="reset" value="重置" class="button button-blank"/></td></tr>
  28. </table>
  29. </form>
  30. <script type="text/javascript">
  31. Do('base','layer','form','editor', function () {
  32. $('#form').isForm({'upload':'{:url("system/passport.common/upload")}'});
  33. $(".selectid").win();
  34. $(".reviewStore").click(function(){
  35. var id = $("#store_id").val();
  36. if(id==null || id=="" || id=='undefined'){
  37. parent.layer.alert('没有选择所属好店')
  38. }else{
  39. $(this).popup({'url':'{:url("smartbc/store/review")}?id='+id})
  40. }
  41. });
  42. $(".selectConpon").click(function(){
  43. var id = $("#store_id").val();
  44. if(id==null || id=="" || id=='undefined'){
  45. parent.layer.alert('没有选择所属好店')
  46. }else{
  47. $(this).popup({'url':'{:url("smartbc/card/selectConpon")}?input=coupon_id&store_id='+id});
  48. }
  49. });
  50. })
  51. </script>