publicData.js 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Created by chen on 2017/5/8.
  3. */
  4. // window.pageUrl="http://192.168.2.184:8040/api.php?c=index&a=";
  5. // window.pageImg="http://192.168.2.184:8040";
  6. // window.pageUrl="http://renwu.v3.icarui.com/api.php?c=index&a=";
  7. // window.pageImg="http://renwu.v3.icarui.com";
  8. // window.pageUrl="http://122.14.192.140:8080/index.php/shopapp/";
  9. // window.pageImg="http://122.14.192.140:8080/";
  10. window.pageUrl="http://app.56port.com/index.php/shopapp/";
  11. window.pageImg="http://app.56port.com";
  12. window.corporateName="宁波自由港投资中心(有限合伙)";
  13. window.corporateAccount="3901200009200083382";
  14. window.accountName="中国工商银行宁波保税区支行";
  15. function toHtml(str) {
  16. var a="<",b=">",c=" ",text=str;
  17. if(text.match(a)) {
  18. toChange(a,"<")
  19. }
  20. if(text.match(b)) {
  21. toChange(b,">")
  22. }
  23. if(text.match(c)) {
  24. toChange(c," ")
  25. }
  26. function toChange(type,type1) {
  27. text=text.replace(type,type1);
  28. if(text.match(type)) {
  29. toChange(type,type1)
  30. }
  31. }
  32. return text;
  33. }