common.js 613 B

12345678910111213141516171819202122232425262728
  1. // 处理多次点击
  2. function noMultipleClicks(methods) {
  3. let that = this;
  4. if (that.noClick) {
  5. that.noClick= false;
  6. // methods();
  7. setTimeout(function () {
  8. that.noClick= true;
  9. }, 2000)
  10. } else {
  11. uni.showToast({
  12. title: '请勿重复点击',
  13. duration: 2000,
  14. icon: 'none'
  15. })
  16. }
  17. }
  18. // const websiteUrl = 'https://qhome.usky.cn';
  19. // const BASE_URL = 'https://qhome.usky.cn/USKYZHAF/USKYZHAF.php/Home/'
  20. //导出
  21. export default {
  22. noMultipleClicks,//禁止多次点击
  23. // websiteUrl,
  24. // BASE_URL
  25. }