Xrt.js 1.8 KB
Newer Older
liaoxing committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
export default class Xrt {
  constructor() {
    this.data = {
      // inr: "",
      // extkey: "",
      // nam: "",
      // txt: "",
      // uil: "",
      // ver: "",
      // etgextkey: "",
      inr:"",
      cur:"",
      buyrat:"",
      midrat:"",
      selrat:"",
      xrttim:"",
      // midrat:"",
      // selrat:"",
      // buyrat:"",
      sel1rat:"",
      buy1rat:"",
      ttrrat:"",
      odrrat:"",
      resrat:"",
      rebrat:"",
      ibrrat:"",
    };
  }
}

export const Pattern = {
  cur: [
WH committed
33
    { type: "string", trigger: "blur" },
liaoxing committed
34 35 36
    { max: 8, message: "最大长度8个字符", trigger: "blur" },
  ],
  midrat: [
WH committed
37
    { type: "string", trigger: "blur" },
liaoxing committed
38 39 40
    { max: 8, message: "最大长度8位", trigger: "blur" },
  ],
  selrat: [
WH committed
41
    { type: "string", trigger: "blur" },
liaoxing committed
42 43 44
    { max: 8, message: "最大长度8位", trigger: "blur" },
  ],
  buyrat: [
WH committed
45
    { type: "string", trigger: "blur" },
liaoxing committed
46 47 48
    { max: 8, message: "最大长度8位", trigger: "blur" },
  ],
  sel1rat: [
WH committed
49
    { type: "string", trigger: "blur" },
liaoxing committed
50 51 52
    { max: 8, message: "最大长度8位", trigger: "blur" },
  ],
  buy1rat: [
WH committed
53
    { type: "string", trigger: "blur" },
liaoxing committed
54 55 56
    { max: 8, message: "最大长度8位", trigger: "blur" },
  ],
  ttrrat: [
WH committed
57
    { type: "string", trigger: "blur" },
liaoxing committed
58 59 60
    { max: 8, message: "最大长度8位", trigger: "blur" },
  ],
  odrrat: [
WH committed
61
    { type: "string", trigger: "blur" },
liaoxing committed
62 63 64
    { max: 8, message: "最大长度8位", trigger: "blur" },
  ],
  resrat: [
WH committed
65
    { type: "string", trigger: "blur" },
liaoxing committed
66 67 68
    { max: 8, message: "最大长度8位", trigger: "blur" },
  ],
  rebrat: [
WH committed
69
    { type: "string", trigger: "blur" },
liaoxing committed
70 71 72
    { max: 8, message: "最大长度8位", trigger: "blur" },
  ],
  ibrrat: [
WH committed
73
    { type: "string", trigger: "blur" },
liaoxing committed
74 75 76 77 78 79 80
    { max: 8, message: "最大长度8位", trigger: "blur" },
  ],
  
}


;