resend.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <div class="eject_con" style="overflow: visible;">
  2. <form id="add_form" action="{:url('Membervrorder/resend')}" method="post">
  3. <input type="hidden" name="order_id" value="{$Request.param.order_id}" />
  4. <div class="alert">
  5. <ul>
  6. <li>{$Think.lang.store_exchange_code1}</li>
  7. <li>{$Think.lang.store_exchange_code2|raw}</li>
  8. </ul>
  9. </div>
  10. <dl style="overflow: visible;">
  11. <dt><i class="required">*</i>{$Think.lang.store_receiving_phone}:</dt>
  12. <dd>
  13. <div class="parentCls"><input class="text w200" name="buyer_phone" type="text" id=buyer_phone value="{$Request.param.buyer_phone}" autocomplete="off" autofocus="autofocus" maxlength="11" /></div>
  14. <span></span>
  15. </dd>
  16. </dl>
  17. <div class="bottom">
  18. <input type="submit" id="submit" class="submit" value="{$Think.lang.confirm_sending}" />
  19. <a class="dsm-btn ml5" href="javascript:DialogManager.close('vr_code_resend');">{$Think.lang.ds_cancel}</a>
  20. </div>
  21. </form>
  22. </div>
  23. <script>
  24. $(document).ready(function(){
  25. $('#submit').on('click',function(){
  26. $('#add_form').submit();
  27. });
  28. $("#add_form").validate({
  29. onkeyup: false,
  30. submitHandler:function(form){
  31. ds_ajaxpost('add_form');
  32. },
  33. rules: {
  34. buyer_phone : {
  35. required : true,
  36. digits : true,
  37. minlength : 11
  38. }
  39. },
  40. messages: {
  41. buyer_phone : {
  42. required : "<i class='iconfont'>&#xe64c;</i>{$Think.lang.fill_mobile_number}",
  43. digits : "<i class='iconfont'>&#xe64c;</i>{$Think.lang.correct_fill_mobile_number}",
  44. minlength : "<i class='iconfont'>&#xe64c;</i>{$Think.lang.correct_fill_mobile_number}"
  45. }
  46. }
  47. });
  48. });
  49. </script>