0
0

jjjs.js 811 B

123456789101112131415161718192021222324252627
  1. // if ($(this).hasClass("pureText") == true && $(this).is('[module]') == true) {
  2. // console.log($(this).attr("QRcodeDedetaileID"));
  3. var iframeWindow = window['iframe1'];
  4. iframeWindow.QRcodePureText();
  5. // }else if ($(this).hasClass("imageTexts") == true && $(this).is('[module]') == true) {
  6. // var iframeWindow = window['iframe2'];
  7. // iframeWindow.QRcodeImageText();
  8. // }
  9. parent.location.reload();
  10. lay-verify="required"
  11. <button class="layui-btn" lay-submit lay-filter="formQRcode">提交</button>
  12. form.on('submit(formQRcode)', function(){
  13. return false;
  14. });
  15. form.verify({
  16. linkverify: function(value, item){
  17. if(!new RegExp("(https|http)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]").test(value)){
  18. return '请输入合法的链接地址';
  19. }
  20. }
  21. });