p500-acount 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { createI18n as x } from "vue-i18n";
2
- import { createElementBlock as u, openBlock as l, createElementVNode as a, normalizeStyle as y, Fragment as S, renderList as I, normalizeClass as w, withDirectives as b, toDisplayString as h, vShow as P, createCommentVNode as v, renderSlot as D, resolveComponent as f, createBlock as T, mergeProps as R, createVNode as g, withCtx as V, createTextVNode as N, withModifiers as M } from "vue";
3
- import F from "jsencrypt";
4
- var q = { zh: { serviceLang: "zh_CN", mobileReg: "^0[1-9]\\d{8}$" }, vi: { serviceLang: "vi_VN", mobileReg: "^0[1-9]\\d{8}$" }, id: { serviceLang: "id_ID", mobileReg: "^08\\d{8,11}$" } };
1
+ import { createI18n as R } from "vue-i18n";
2
+ import { createElementBlock as d, openBlock as u, createElementVNode as a, normalizeStyle as S, Fragment as T, renderList as E, normalizeClass as w, withDirectives as b, toDisplayString as m, vShow as y, createCommentVNode as v, renderSlot as D, resolveComponent as f, createBlock as P, mergeProps as x, createVNode as p, withCtx as _, createTextVNode as N, withModifiers as M } from "vue";
3
+ import q from "jsencrypt";
4
+ var F = { zh: { serviceLang: "zh_CN", mobileReg: "^0[1-9]\\d{8}$" }, vi: { serviceLang: "vi_VN", mobileReg: "^0[1-9]\\d{8}$" }, id: { serviceLang: "id_ID", mobileReg: "^08\\d{8,11}$" } };
5
5
  const O = typeof uni < "u" && uni.request;
6
6
  if (!O)
7
7
  try {
@@ -28,8 +28,8 @@ if (!O)
28
28
  //真正的uni.request需要的是header, 而fetch需要的是headers
29
29
  body: t.body
30
30
  }).then((e) => {
31
- var n, i;
32
- return (n = t.complete) == null || n.call(t), e.ok ? e.json() : (i = t.fail) == null ? void 0 : i.call(t, { message: `HTTP error! Status: ${e.status}` });
31
+ var n, s;
32
+ return (n = t.complete) == null || n.call(t), e.ok ? e.json() : (s = t.fail) == null ? void 0 : s.call(t, { message: `HTTP error! Status: ${e.status}` });
33
33
  }).then((e) => {
34
34
  var n;
35
35
  (n = t.success) == null || n.call(t, { statusCode: 200, data: e });
@@ -39,15 +39,15 @@ if (!O)
39
39
  } catch {
40
40
  }
41
41
  const B = (t, e, n = 10) => {
42
- const i = { data: e, _timeout: +/* @__PURE__ */ new Date() + n * 60 * 1e3 };
43
- uni.setStorageSync(t, i);
42
+ const s = { data: e, _timeout: +/* @__PURE__ */ new Date() + n * 60 * 1e3 };
43
+ uni.setStorageSync(t, s);
44
44
  }, U = (t) => {
45
45
  const e = uni.getStorageSync(t);
46
46
  if (e) {
47
- const { data: n, _timeout: i } = e;
48
- if (!i)
47
+ const { data: n, _timeout: s } = e;
48
+ if (!s)
49
49
  return e;
50
- if (+/* @__PURE__ */ new Date() <= i)
50
+ if (+/* @__PURE__ */ new Date() <= s)
51
51
  return n;
52
52
  uni.removeStorageSync(t);
53
53
  }
@@ -59,15 +59,15 @@ const B = (t, e, n = 10) => {
59
59
  header: t.header,
60
60
  url: t.urlPrefix + t.url
61
61
  };
62
- return new Promise((n, i) => {
63
- t.dialog.showLoading(), new Promise((o, s) => {
64
- if (e.fail = s, e.complete = () => {
62
+ return new Promise((n, s) => {
63
+ t.dialog.showLoading(), new Promise((o, i) => {
64
+ if (e.fail = i, e.complete = () => {
65
65
  t.dialog.hideLoading();
66
66
  }, e.success = (r) => {
67
- const { statusCode: m, data: p = {} } = r, { message: c, code: d } = p, _ = p.data;
68
- if (m == 200)
69
- return d && d != 200 ? s({ message: c, code: d }) : (t.cache && B(t.url, _), o(_));
70
- s({ message: c });
67
+ const { statusCode: h, data: g = {} } = r, { message: c, code: l } = g, L = g.data;
68
+ if (h == 200)
69
+ return l && l != 200 ? i({ message: c, code: l }) : (t.cache && B(t.url, L), o(L));
70
+ i({ message: c });
71
71
  }, t.cache) {
72
72
  const r = U(t.url);
73
73
  if (r)
@@ -75,7 +75,7 @@ const B = (t, e, n = 10) => {
75
75
  }
76
76
  uni.request(e);
77
77
  }).then(n).catch(({ message: o = "" }) => {
78
- o && t.dialog.showMessage(o), i();
78
+ o && t.dialog.showMessage(o), s();
79
79
  });
80
80
  });
81
81
  };
@@ -86,7 +86,8 @@ class X {
86
86
  * @param {Number} devicePlatform 客户端类型标识
87
87
  * @param {Object} dialog 弹框方法对象
88
88
  */
89
- setOptions(e, n, i, o) {
89
+ setOptions(e, n, s, o) {
90
+ const i = typeof navigator < "u" ? navigator.userAgent : "";
90
91
  this.normalOption = {
91
92
  dialog: o,
92
93
  method: "GET",
@@ -94,9 +95,9 @@ class X {
94
95
  header: {
95
96
  "Content-Type": "application/json",
96
97
  "X-Requested-With": "XMLHttpRequest",
97
- lang: q[e].serviceLang,
98
+ lang: F[e].serviceLang,
98
99
  // 接口所需语言标识
99
- DevicePlatform: i || (/mobile|nokia|iphone|ipad|android|samsung|htc|blackberry|webos|ipod/i.test(navigator.userAgent) ? 2 : 1),
100
+ DevicePlatform: s || (/mobile|nokia|iphone|ipad|android|samsung|htc|blackberry|webos|ipod/i.test(i) ? 2 : 1),
100
101
  appver: "spread",
101
102
  Authorization: ""
102
103
  }
@@ -165,13 +166,13 @@ class X {
165
166
  return k(Object.assign({}, this.normalOption, { url: "register", method: "POST", data: e }));
166
167
  }
167
168
  }
168
- const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mobile no.", Y = "Pasword", H = "Confirm password", G = "Enter invitation code ", J = "(Required)", Z = "(Non- Required)", Q = "Username must be 8–16 letters or numbers.", ee = "Username or mobile", te = "Enter 8-16 characters of letters or numbers", ne = "Incorrect password", oe = "Remember", se = "Forget password?", ie = "Signup", ae = "Please drag the slider to complete the puzzle", re = "Verification passed", ce = "Verification failed, please try again", le = "Swipe right", ue = "Tips", de = "Confirm", he = "I am 18 and above and I have read and agreed to the ", me = "term and conditions", ge = "Term", pe = "Account ready, ", fe = "login now", ve = {
169
+ const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mobile no.", H = "Pasword", Y = "Confirm password", G = "Enter invitation code ", J = "(Required)", Z = "(Non- Required)", Q = "Username must be 8–16 letters or numbers.", ee = "Username or mobile", te = "Enter 8-16 characters of letters or numbers", ne = "Incorrect password", oe = "Remember", ie = "Forget password?", se = "Signup", ae = "Please drag the slider to complete the puzzle", re = "Verification passed", ce = "Verification failed, please try again", le = "Swipe right", ue = "Tips", de = "Confirm", he = "I am 18 and above and I have read and agreed to the ", me = "term and conditions", ge = "Term", pe = "Account ready, ", fe = "login now", ve = {
169
170
  register: j,
170
171
  login: W,
171
172
  userPh: K,
172
173
  loginNamePh: z,
173
- pwdPh: Y,
174
- confirmPwdPh: H,
174
+ pwdPh: H,
175
+ confirmPwdPh: Y,
175
176
  inviteCodePh: G,
176
177
  required: J,
177
178
  rnRequired: Z,
@@ -180,8 +181,8 @@ const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mo
180
181
  pwdEr: te,
181
182
  confirmPwdEr: ne,
182
183
  remember: oe,
183
- forgetPwd: se,
184
- toRegister: ie,
184
+ forgetPwd: ie,
185
+ toRegister: se,
185
186
  captchaTitle: ae,
186
187
  captchaCheckSuccess: re,
187
188
  captchaCheckFail: ce,
@@ -193,39 +194,39 @@ const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mo
193
194
  pactTitle: ge,
194
195
  hasUserName: pe,
195
196
  goLogin: fe
196
- }, ke = "注册", we = "登录", Ce = "请输入用户名", be = "请输入账号或手机号", Pe = "请输入密码", ye = "请确认密码", $e = "请输入邀请码", Se = "(必填)", Te = "(非必填)", _e = "请输入8~16位英文及数字组合", Ie = "请输入用户名或手机号码", Le = "请输入8~16个英文或数字", Ee = "确认密码输入错误", Ve = "记住账号", Ae = "忘记密码?", xe = "立即注册", De = "请拖动滑块完成拼图", Re = "验证通过", Ne = "验证失败,请重新尝试", Me = "向右滑动", Fe = "温馨提示", qe = "确认", Oe = "我已满18岁并且已阅读", Be = "《规则条款》", Ue = "规则条款", Xe = "已有账号,", je = "立即登录", We = {
197
+ }, ke = "注册", we = "登录", Ce = "请输入用户名", Pe = "请输入账号或手机号", be = "请输入密码", ye = "请确认密码", Se = "请输入邀请码", Te = "(必填)", $e = "(非必填)", Le = "请输入8~16位英文及数字组合", Ee = "请输入用户名或手机号码", Ie = "请输入8~16个英文或数字", Ve = "确认密码输入错误", _e = "记住账号", Ae = "忘记密码?", Re = "立即注册", De = "请拖动滑块完成拼图", xe = "验证通过", Ne = "验证失败,请重新尝试", Me = "向右滑动", qe = "温馨提示", Fe = "确认", Oe = "我已满18岁并且已阅读", Be = "《规则条款》", Ue = "规则条款", Xe = "已有账号,", je = "立即登录", We = {
197
198
  register: ke,
198
199
  login: we,
199
200
  userPh: Ce,
200
- loginNamePh: be,
201
- pwdPh: Pe,
201
+ loginNamePh: Pe,
202
+ pwdPh: be,
202
203
  confirmPwdPh: ye,
203
- inviteCodePh: $e,
204
- required: Se,
205
- rnRequired: Te,
206
- userEr: _e,
207
- loginNameEr: Ie,
208
- pwdEr: Le,
209
- confirmPwdEr: Ee,
210
- remember: Ve,
204
+ inviteCodePh: Se,
205
+ required: Te,
206
+ rnRequired: $e,
207
+ userEr: Le,
208
+ loginNameEr: Ee,
209
+ pwdEr: Ie,
210
+ confirmPwdEr: Ve,
211
+ remember: _e,
211
212
  forgetPwd: Ae,
212
- toRegister: xe,
213
+ toRegister: Re,
213
214
  captchaTitle: De,
214
- captchaCheckSuccess: Re,
215
+ captchaCheckSuccess: xe,
215
216
  captchaCheckFail: Ne,
216
217
  captchaMoveText: Me,
217
- popupTitle: Fe,
218
- confirmText: qe,
218
+ popupTitle: qe,
219
+ confirmText: Fe,
219
220
  pact1: Oe,
220
221
  pact2: Be,
221
222
  pactTitle: Ue,
222
223
  hasUserName: Xe,
223
224
  goLogin: je
224
- }, Ke = "Đăng ký", ze = "Đăng nhập", Ye = "Vui lòng nhập tên đăng nhập", He = "Vui lòng nhập tên đăng nhập hoặc sđt", Ge = "Vui lòng nhập mật khẩu", Je = "Vui lòng xác nhận mật khẩu", Ze = "Vui lòng nhập mã mời ", Qe = "(Bắt buộc)", et = "(không bắt buộc)", tt = "Vui lòng nhập 8 đến 16 ký tự chữ và số", nt = "Vui lòng nhập tên đăng nhập hoặc sđt", ot = "Vui lòng nhập 8~16 kỹ tự chữ và số", st = "Xác nhận mật khẩu sai", it = "Ghi nhớ", at = "Quên mật khẩu?", rt = "Đăng ký ngay", ct = "Vui lòng kéo thanh trượt để hoàn thành câu đố", lt = "Xác minh đã được thông qua", ut = "Xác minh không thành công, vui lòng thử lại", dt = "Vuốt sang phải", ht = "Lời nhắc", mt = "Xác nhận", gt = "Tôi trên 18 tuổi và đã đọc ", pt = "Điều khoản và điều kiện", ft = "Các điều khoản và điều kiện", vt = "Đã có tài khoản,", kt = "đăng nhập ngay", wt = {
225
+ }, Ke = "Đăng ký", ze = "Đăng nhập", He = "Vui lòng nhập tên đăng nhập", Ye = "Vui lòng nhập tên đăng nhập hoặc sđt", Ge = "Vui lòng nhập mật khẩu", Je = "Vui lòng xác nhận mật khẩu", Ze = "Vui lòng nhập mã mời ", Qe = "(Bắt buộc)", et = "(không bắt buộc)", tt = "Vui lòng nhập 8 đến 16 ký tự chữ và số", nt = "Vui lòng nhập tên đăng nhập hoặc sđt", ot = "Vui lòng nhập 8~16 kỹ tự chữ và số", it = "Xác nhận mật khẩu sai", st = "Ghi nhớ", at = "Quên mật khẩu?", rt = "Đăng ký ngay", ct = "Vui lòng kéo thanh trượt để hoàn thành câu đố", lt = "Xác minh đã được thông qua", ut = "Xác minh không thành công, vui lòng thử lại", dt = "Vuốt sang phải", ht = "Lời nhắc", mt = "Xác nhận", gt = "Tôi trên 18 tuổi và đã đọc ", pt = "Điều khoản và điều kiện", ft = "Các điều khoản và điều kiện", vt = "Đã có tài khoản,", kt = "đăng nhập ngay", wt = {
225
226
  register: Ke,
226
227
  login: ze,
227
- userPh: Ye,
228
- loginNamePh: He,
228
+ userPh: He,
229
+ loginNamePh: Ye,
229
230
  pwdPh: Ge,
230
231
  confirmPwdPh: Je,
231
232
  inviteCodePh: Ze,
@@ -234,8 +235,8 @@ const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mo
234
235
  userEr: tt,
235
236
  loginNameEr: nt,
236
237
  pwdEr: ot,
237
- confirmPwdEr: st,
238
- remember: it,
238
+ confirmPwdEr: it,
239
+ remember: st,
239
240
  forgetPwd: at,
240
241
  toRegister: rt,
241
242
  captchaTitle: ct,
@@ -249,27 +250,27 @@ const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mo
249
250
  pactTitle: ft,
250
251
  hasUserName: vt,
251
252
  goLogin: kt
252
- }, Ct = "Daftar", bt = "Masuk", Pt = "Ketik Username", yt = "Username atau Nomor WA", $t = "Sandi", St = "Konfirmasi Sandi", Tt = "Kode Undangan ", _t = "(Wajib)", It = "(opsional)", Lt = "8 - 16 Digit Kombinasi Huruf Dan Angka", Et = "Username atau Nomor WA", Vt = "8 - 16 Digit Kombinasi Huruf Dan Angka", At = "Sandi Salah!", xt = "Ingat", Dt = "Lupa Sandi?", Rt = "Daftar", Nt = "Silakan tarik slider untuk menyelesaikan puzzle", Mt = "Verifikasi berhasil", Ft = "Verifikasi gagal, coba lagi", qt = "Geser ke kanan", Ot = "Perhatian!", Bt = "Konfirmasi", Ut = "Saya Berumur Diatas 18 Tahun Dan Membaca ", Xt = "S&K Berlaku", jt = "Syarat & Ketentuan", Wt = "Akun Aktif, ", Kt = "Login Sekarang", zt = {
253
+ }, Ct = "Daftar", Pt = "Masuk", bt = "Ketik Username", yt = "Username atau Nomor WA", St = "Sandi", Tt = "Konfirmasi Sandi", $t = "Kode Undangan ", Lt = "(Wajib)", Et = "(opsional)", It = "8 - 16 Digit Kombinasi Huruf Dan Angka", Vt = "Username atau Nomor WA", _t = "8 - 16 Digit Kombinasi Huruf Dan Angka", At = "Sandi Salah!", Rt = "Ingat", Dt = "Lupa Sandi?", xt = "Daftar", Nt = "Silakan tarik slider untuk menyelesaikan puzzle", Mt = "Verifikasi berhasil", qt = "Verifikasi gagal, coba lagi", Ft = "Geser ke kanan", Ot = "Perhatian!", Bt = "Konfirmasi", Ut = "Saya Berumur Diatas 18 Tahun Dan Membaca ", Xt = "S&K Berlaku", jt = "Syarat & Ketentuan", Wt = "Akun Aktif, ", Kt = "Login Sekarang", zt = {
253
254
  register: Ct,
254
- login: bt,
255
- userPh: Pt,
255
+ login: Pt,
256
+ userPh: bt,
256
257
  loginNamePh: yt,
257
- pwdPh: $t,
258
- confirmPwdPh: St,
259
- inviteCodePh: Tt,
260
- required: _t,
261
- rnRequired: It,
262
- userEr: Lt,
263
- loginNameEr: Et,
264
- pwdEr: Vt,
258
+ pwdPh: St,
259
+ confirmPwdPh: Tt,
260
+ inviteCodePh: $t,
261
+ required: Lt,
262
+ rnRequired: Et,
263
+ userEr: It,
264
+ loginNameEr: Vt,
265
+ pwdEr: _t,
265
266
  confirmPwdEr: At,
266
- remember: xt,
267
+ remember: Rt,
267
268
  forgetPwd: Dt,
268
- toRegister: Rt,
269
+ toRegister: xt,
269
270
  captchaTitle: Nt,
270
271
  captchaCheckSuccess: Mt,
271
- captchaCheckFail: Ft,
272
- captchaMoveText: qt,
272
+ captchaCheckFail: qt,
273
+ captchaMoveText: Ft,
273
274
  popupTitle: Ot,
274
275
  confirmText: Bt,
275
276
  pact1: Ut,
@@ -277,20 +278,20 @@ const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mo
277
278
  pactTitle: jt,
278
279
  hasUserName: Wt,
279
280
  goLogin: Kt
280
- }, Yt = {
281
+ }, Ht = {
281
282
  en: ve,
282
283
  zh: We,
283
284
  vi: wt,
284
285
  id: zt
285
- }, Ht = () => x({
286
+ }, Yt = () => R({
286
287
  locale: "vi",
287
288
  // 用户提供的语言
288
289
  fallbackLocale: "en",
289
- messages: Yt
290
+ messages: Ht
290
291
  }), Gt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAACoAQMAAABZmE+jAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAACJJREFUaN7twTEBAAAAwiD7p7bGDmAAAAAAAAAAAAAAQN4BK/gAAcTOpHoAAAAASUVORK5CYII=", C = (t, e) => {
291
292
  const n = t.__vccOpts || t;
292
- for (const [i, o] of e)
293
- n[i] = o;
293
+ for (const [s, o] of e)
294
+ n[s] = o;
294
295
  return n;
295
296
  }, Jt = {
296
297
  name: "paBanner",
@@ -300,8 +301,6 @@ const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mo
300
301
  return {
301
302
  skeletonImg: Gt,
302
303
  //占位图片
303
- isUni: !uni.__IS_MY_UNI_POLYFILL__,
304
- //是否为uni环境
305
304
  currentIndex: 0,
306
305
  //当前显示轮博下标
307
306
  isSliding: !1,
@@ -338,23 +337,23 @@ const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mo
338
337
  },
339
338
  /*停止自动轮播*/
340
339
  stopAutoPlay() {
341
- clearInterval(this.timer);
340
+ clearInterval(this.timer), this.timer = null;
342
341
  },
343
342
  /*获取轮博项的偏移值*/
344
343
  getItemOffset(t) {
345
344
  const e = t - this.currentIndex, n = this.list.length * 100;
346
- let i = t * 100;
347
- return e > 1 && (i -= n), e < -1 && (i += n), i;
345
+ let s = t * 100;
346
+ return e > 1 && (s -= n), e < -1 && (s += n), s;
348
347
  },
349
348
  /*轮博切换*/
350
349
  slide(t) {
351
- const e = this.currentIndex + t, n = this.list.length - 1, i = e < 0 ? n : e > n ? 0 : e;
352
- this.startSliding(), this.currentIndex = i;
350
+ const e = this.currentIndex + t, n = this.list.length - 1, s = e < 0 ? n : e > n ? 0 : e;
351
+ this.startSliding(), this.currentIndex = s;
353
352
  },
354
353
  /*轮播标记处理*/
355
354
  startSliding() {
356
355
  this.isSliding = !0, setTimeout(() => {
357
- this.isSliding = !1;
356
+ this.isSliding = !1, this.timer == null && this.startAutoPlay();
358
357
  }, 500);
359
358
  },
360
359
  /**
@@ -368,15 +367,15 @@ const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mo
368
367
  return Math.round(e.pageX);
369
368
  let n = e.changedTouches || e.targetTouches || [];
370
369
  if (n.length > 0) {
371
- const i = n[0];
372
- return "pageX" in i ? Math.round(i.pageX) : Math.round(i.clientX);
370
+ const s = n[0];
371
+ return "pageX" in s ? Math.round(s.pageX) : Math.round(s.clientX);
373
372
  }
374
373
  return 0;
375
374
  },
376
375
  /*Start*/
377
376
  onStart(t) {
378
377
  const e = this.getCurrentCoordinate(t);
379
- if (this.startX = e, t.type == "mousedown")
378
+ if (this.stopAutoPlay(), this.startX = e, t.type == "mousedown")
380
379
  try {
381
380
  document.addEventListener("mousemove", this.onMove), document.addEventListener("mouseup", this.onEnd);
382
381
  } catch {
@@ -385,8 +384,8 @@ const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mo
385
384
  /*Move*/
386
385
  onMove(t) {
387
386
  t == null || t.preventDefault(), t.touches && t.touches.length > 0 && (t = t.touches[0]);
388
- const e = this.getCurrentCoordinate(t), n = this.startX, i = e - n;
389
- this.moveWidth = i;
387
+ const e = this.getCurrentCoordinate(t), n = this.startX, s = e - n;
388
+ this.moveWidth = s;
390
389
  },
391
390
  /*End*/
392
391
  onEnd(t) {
@@ -403,55 +402,49 @@ const j = "Signup", W = "Login", K = "Enter username", z = "Enter username or mo
403
402
  return /^http/.test(t) ? this.$emit("bannerClick", { type: "third", url: t }) : /^promotion\//.test(t) ? this.$emit("bannerClick", { type: "promo", promoId: t.split("/")[1] }) : this.$emit("bannerClick", { type: "router", routerName: t });
404
403
  }
405
404
  }
406
- }, Zt = { class: "pa-banner" }, Qt = { class: "pa-banner-inner" }, en = ["src"], tn = ["src"], nn = ["onClick"], on = { class: "pa-ndicators" };
407
- function sn(t, e, n, i, o, s) {
408
- return l(), u("div", Zt, [
405
+ }, Zt = { class: "pa-banner" }, Qt = { class: "pa-banner-inner" }, en = ["src"], tn = ["onClick"], nn = { class: "pa-ndicators" };
406
+ function on(t, e, n, s, o, i) {
407
+ return u(), d("div", Zt, [
409
408
  a("div", Qt, [
410
- o.isUni ? (l(), u("image", {
411
- key: 0,
412
- class: "pa-banner-skeleton",
413
- src: o.skeletonImg,
414
- mode: "widthFix"
415
- }, null, 8, en)) : (l(), u("img", {
416
- key: 1,
409
+ a("img", {
417
410
  class: "pa-banner-skeleton",
418
411
  src: o.skeletonImg
419
- }, null, 8, tn)),
412
+ }, null, 8, en),
420
413
  a("div", {
421
414
  class: "pa-carousel",
422
- onTouchstart: e[0] || (e[0] = (...r) => s.onStart && s.onStart(...r)),
423
- onTouchmove: e[1] || (e[1] = (...r) => s.onMove && s.onMove(...r)),
424
- onTouchend: e[2] || (e[2] = (...r) => s.onEnd && s.onEnd(...r)),
425
- onMousedown: e[3] || (e[3] = (...r) => s.onStart && s.onStart(...r))
415
+ onTouchstart: e[0] || (e[0] = (...r) => i.onStart && i.onStart(...r)),
416
+ onTouchmove: e[1] || (e[1] = (...r) => i.onMove && i.onMove(...r)),
417
+ onTouchend: e[2] || (e[2] = (...r) => i.onEnd && i.onEnd(...r)),
418
+ onMousedown: e[3] || (e[3] = (...r) => i.onStart && i.onStart(...r))
426
419
  }, [
427
420
  a("div", {
428
421
  class: "pa-banner-track",
429
- style: y({
422
+ style: S({
430
423
  transform: `translateX(calc(-${o.currentIndex * 100}% + ${o.moveWidth}px))`,
431
424
  transitionDuration: o.isSliding ? "500ms" : "0ms"
432
425
  })
433
426
  }, [
434
- (l(!0), u(S, null, I(o.list, (r, m) => (l(), u("div", {
435
- key: m,
427
+ (u(!0), d(T, null, E(o.list, (r, h) => (u(), d("div", {
428
+ key: h,
436
429
  class: "pa-banner-item",
437
- onClick: (p) => s.handlerClick(r.href),
438
- style: y({
430
+ onClick: (g) => i.handlerClick(r.href),
431
+ style: S({
439
432
  backgroundImage: `url(${r.url})`,
440
- transform: `translateX(${s.getItemOffset(m)}%)`
433
+ transform: `translateX(${i.getItemOffset(h)}%)`
441
434
  })
442
- }, null, 12, nn))), 128))
435
+ }, null, 12, tn))), 128))
443
436
  ], 4),
444
- a("div", on, [
445
- (l(!0), u(S, null, I(o.list, (r, m) => (l(), u("div", {
446
- key: m,
447
- class: w(["pa-indicator", { active: m === o.currentIndex }])
437
+ a("div", nn, [
438
+ (u(!0), d(T, null, E(o.list, (r, h) => (u(), d("div", {
439
+ key: h,
440
+ class: w(["pa-indicator", { active: h === o.currentIndex }])
448
441
  }, null, 2))), 128))
449
442
  ])
450
443
  ], 32)
451
444
  ])
452
445
  ]);
453
446
  }
454
- const an = /* @__PURE__ */ C(Jt, [["render", sn]]), rn = {
447
+ const sn = /* @__PURE__ */ C(Jt, [["render", on]]), an = {
455
448
  name: "paDialog",
456
449
  inject: ["$t"],
457
450
  emits: ["update:modelValue"],
@@ -466,34 +459,34 @@ const an = /* @__PURE__ */ C(Jt, [["render", sn]]), rn = {
466
459
  message: String
467
460
  //消息内容
468
461
  }
469
- }, cn = { class: "pa-dialog" }, ln = {
462
+ }, rn = { class: "pa-dialog" }, cn = {
470
463
  key: 0,
471
464
  class: "pa-message"
472
- }, un = { class: "pa-message-title" }, dn = { class: "pa-message-box" }, hn = { class: "pa-message-contx" }, mn = { class: "pa-message-btnbox" }, gn = {
465
+ }, ln = { class: "pa-message-title" }, un = { class: "pa-message-box" }, dn = { class: "pa-message-contx" }, hn = { class: "pa-message-btnbox" }, mn = {
473
466
  key: 1,
474
467
  class: "pa-loading"
475
- }, pn = /* @__PURE__ */ a("div", { class: "pa-loading-bg" }, null, -1), fn = [
476
- pn
468
+ }, gn = /* @__PURE__ */ a("div", { class: "pa-loading-bg" }, null, -1), pn = [
469
+ gn
477
470
  ];
478
- function vn(t, e, n, i, o, s) {
479
- return b((l(), u("div", cn, [
480
- n.type ? (l(), u("div", ln, [
481
- a("p", un, h(s.$t("popupTitle")), 1),
482
- a("div", dn, [
483
- a("p", hn, h(n.message), 1)
471
+ function fn(t, e, n, s, o, i) {
472
+ return b((u(), d("div", rn, [
473
+ n.type ? (u(), d("div", cn, [
474
+ a("p", ln, m(i.$t("popupTitle")), 1),
475
+ a("div", un, [
476
+ a("p", dn, m(n.message), 1)
484
477
  ]),
485
- a("div", mn, [
478
+ a("div", hn, [
486
479
  a("div", {
487
480
  class: "pa-message-btn",
488
481
  onClick: e[0] || (e[0] = (r) => t.$emit("update:modelValue", n.modelValue - 1))
489
- }, h(s.$t("confirmText")), 1)
482
+ }, m(i.$t("confirmText")), 1)
490
483
  ])
491
- ])) : (l(), u("div", gn, fn))
484
+ ])) : (u(), d("div", mn, pn))
492
485
  ], 512)), [
493
- [P, n.modelValue >= 1]
486
+ [y, n.modelValue >= 1]
494
487
  ]);
495
488
  }
496
- const kn = /* @__PURE__ */ C(rn, [["render", vn]]), wn = {
489
+ const vn = /* @__PURE__ */ C(an, [["render", fn]]), kn = {
497
490
  name: "paFormItem",
498
491
  emits: ["update:modelValue"],
499
492
  inject: ["paForm"],
@@ -545,11 +538,11 @@ const kn = /* @__PURE__ */ C(rn, [["render", vn]]), wn = {
545
538
  return this.errorMsg = n, !n;
546
539
  }
547
540
  }
548
- }, Cn = { class: "pa-form-item" }, bn = { class: "pa-input-content" }, Pn = ["placeholder", "disabled", "value", "type"];
549
- function yn(t, e, n, i, o, s) {
550
- return l(), u("div", Cn, [
551
- a("div", bn, [
552
- n.prefixIcon ? (l(), u("i", {
541
+ }, wn = { class: "pa-form-item" }, Cn = { class: "pa-input-content" }, Pn = ["placeholder", "disabled", "value", "type"];
542
+ function bn(t, e, n, s, o, i) {
543
+ return u(), d("div", wn, [
544
+ a("div", Cn, [
545
+ n.prefixIcon ? (u(), d("i", {
553
546
  key: 0,
554
547
  class: w(["iconfont pa-prefix-icon", n.prefixIcon])
555
548
  }, null, 2)) : v("", !0),
@@ -559,10 +552,10 @@ function yn(t, e, n, i, o, s) {
559
552
  disabled: n.disabled,
560
553
  value: n.modelValue,
561
554
  type: o.showPassword ? "text" : o.realType,
562
- onInput: e[0] || (e[0] = (...r) => s.handleInput && s.handleInput(...r)),
563
- onFocusOnce: e[1] || (e[1] = (...r) => s.handlerFocus && s.handlerFocus(...r))
555
+ onInput: e[0] || (e[0] = (...r) => i.handleInput && i.handleInput(...r)),
556
+ onFocusOnce: e[1] || (e[1] = (...r) => i.handlerFocus && i.handlerFocus(...r))
564
557
  }, null, 40, Pn),
565
- n.type == "password" && n.modelValue ? (l(), u("i", {
558
+ n.type == "password" && n.modelValue ? (u(), d("i", {
566
559
  key: 1,
567
560
  class: w(["iconfont", o.showPassword ? "icon-eye-slash-filled" : "icon-eye-filled"]),
568
561
  onClick: e[2] || (e[2] = (r) => o.showPassword = !o.showPassword)
@@ -570,18 +563,18 @@ function yn(t, e, n, i, o, s) {
570
563
  ]),
571
564
  a("p", {
572
565
  class: w(["pa-form-item--error", { active: o.errorMsg }])
573
- }, h(o.errorMsg), 3)
566
+ }, m(o.errorMsg), 3)
574
567
  ]);
575
568
  }
576
- const $n = /* @__PURE__ */ C(wn, [["render", yn]]), Sn = {
569
+ const yn = /* @__PURE__ */ C(kn, [["render", bn]]), Sn = {
577
570
  name: "paCheckbox",
578
571
  emits: ["update:modelValue"],
579
572
  props: {
580
573
  modelValue: Boolean
581
574
  }
582
575
  }, Tn = { class: "iconfont icon-checked" };
583
- function _n(t, e, n, i, o, s) {
584
- return l(), u("div", {
576
+ function $n(t, e, n, s, o, i) {
577
+ return u(), d("div", {
585
578
  class: "pa-checkbox",
586
579
  onClick: e[0] || (e[0] = (r) => t.$emit("update:modelValue", !n.modelValue))
587
580
  }, [
@@ -589,18 +582,18 @@ function _n(t, e, n, i, o, s) {
589
582
  class: w(["pa-checkbox--input", { active: n.modelValue }])
590
583
  }, [
591
584
  b(a("i", Tn, null, 512), [
592
- [P, n.modelValue]
585
+ [y, n.modelValue]
593
586
  ])
594
587
  ], 2),
595
588
  D(t.$slots, "default")
596
589
  ]);
597
590
  }
598
- const In = /* @__PURE__ */ C(Sn, [["render", _n]]), Ln = (t, e) => {
591
+ const Ln = /* @__PURE__ */ C(Sn, [["render", $n]]), En = (t, e) => {
599
592
  const n = t.__vccOpts || t;
600
- for (const [i, o] of e)
601
- n[i] = o;
593
+ for (const [s, o] of e)
594
+ n[s] = o;
602
595
  return n;
603
- }, En = {
596
+ }, In = {
604
597
  name: "BehaviorCaptcha",
605
598
  emits: ["update:modelValue", "success"],
606
599
  props: {
@@ -670,8 +663,8 @@ const In = /* @__PURE__ */ C(Sn, [["render", _n]]), Ln = (t, e) => {
670
663
  generate() {
671
664
  var t;
672
665
  this.imgSrc = "", this.generateFun && (this.showLoading = !0, this.checkStatus = null, this.genError = !1, (t = this.generateFun) == null || t.call(this).then((e) => {
673
- const { captcha: n = {}, id: i } = e, { checkParams: o } = this;
674
- this.imgSrc = n.backgroundImage, this.tempImgSrc = n.templateImage, o.id = i, o.track.startTime = /* @__PURE__ */ new Date(), o.track.trackList = [];
666
+ const { captcha: n = {}, id: s } = e, { checkParams: o } = this;
667
+ this.imgSrc = n.backgroundImage, this.tempImgSrc = n.templateImage, o.id = s, o.track.startTime = /* @__PURE__ */ new Date(), o.track.trackList = [];
675
668
  }).catch((e) => {
676
669
  this.genError = !0;
677
670
  }).finally((e) => {
@@ -711,8 +704,8 @@ const In = /* @__PURE__ */ C(Sn, [["render", _n]]), Ln = (t, e) => {
711
704
  onStart(t) {
712
705
  if (this.showLoading || this.checkStatus)
713
706
  return;
714
- const e = this.getCurrentCoordinate(t), n = e.x, i = e.y, { startTime: o, trackList: s } = this.checkParams.track;
715
- if (this.startX = n, this.startY = i, s.push({
707
+ const e = this.getCurrentCoordinate(t), n = e.x, s = e.y, { startTime: o, trackList: i } = this.checkParams.track;
708
+ if (this.startX = n, this.startY = s, i.push({
716
709
  x: 0,
717
710
  y: 0,
718
711
  type: "down",
@@ -728,25 +721,25 @@ const In = /* @__PURE__ */ C(Sn, [["render", _n]]), Ln = (t, e) => {
728
721
  if (this.showLoading || this.checkStatus)
729
722
  return;
730
723
  t == null || t.preventDefault(), t.touches && t.touches.length > 0 && (t = t.touches[0]);
731
- const e = this.getCurrentCoordinate(t), n = e.x, i = e.y, { startX: o, startY: s } = this, { startTime: r, trackList: m } = this.checkParams.track, p = 245;
732
- let c = n - o, d = i - s;
733
- m.push({
724
+ const e = this.getCurrentCoordinate(t), n = e.x, s = e.y, { startX: o, startY: i } = this, { startTime: r, trackList: h } = this.checkParams.track, g = 245;
725
+ let c = n - o, l = s - i;
726
+ h.push({
734
727
  x: c,
735
- y: d,
728
+ y: l,
736
729
  type: "move",
737
730
  t: (/* @__PURE__ */ new Date()).getTime() - r.getTime()
738
- }), c = Math.min(Math.max(c, 0), p), this.moveWidth = c;
731
+ }), c = Math.min(Math.max(c, 0), g), this.moveWidth = c;
739
732
  },
740
733
  /*End*/
741
734
  onEnd(t) {
742
735
  if (this.showLoading || this.checkStatus)
743
736
  return;
744
737
  const e = this.getCurrentCoordinate(t);
745
- let n = e.x, i = e.y;
746
- const { startX: o, startY: s } = this, { startTime: r, trackList: m } = this.checkParams.track;
747
- if (m.push({
738
+ let n = e.x, s = e.y;
739
+ const { startX: o, startY: i } = this, { startTime: r, trackList: h } = this.checkParams.track;
740
+ if (h.push({
748
741
  x: n - o,
749
- y: i - s,
742
+ y: s - i,
750
743
  type: "up",
751
744
  t: (/* @__PURE__ */ new Date()).getTime() - r.getTime()
752
745
  }), this.checkParams.track.stopTime = /* @__PURE__ */ new Date(), t.type == "mouseup")
@@ -757,45 +750,45 @@ const In = /* @__PURE__ */ C(Sn, [["render", _n]]), Ln = (t, e) => {
757
750
  this.check();
758
751
  }
759
752
  }
760
- }, Vn = { class: "behavior-captcha" }, An = { class: "content" }, xn = { class: "captcha-topbox" }, Dn = { class: "title" }, Rn = { class: "captcha-imgbox" }, Nn = { class: "flash-box" }, Mn = { class: "loading-box" }, Fn = ["src"], qn = ["src"], On = {
753
+ }, Vn = { class: "behavior-captcha" }, _n = { class: "content" }, An = { class: "captcha-topbox" }, Rn = { class: "title" }, Dn = { class: "captcha-imgbox" }, xn = { class: "flash-box" }, Nn = { class: "loading-box" }, Mn = ["src"], qn = ["src"], Fn = {
761
754
  key: 1,
762
755
  class: "check-tip"
763
- }, Bn = { class: "check-tip-inner" }, Un = { class: "tip-txt" }, Xn = {
756
+ }, On = { class: "check-tip-inner" }, Bn = { class: "tip-txt" }, Un = {
764
757
  key: 2,
765
758
  class: "big-flash"
766
- }, jn = { class: "captcha-movebox" }, Wn = { class: "move-bg" }, Kn = { class: "move-txt" };
767
- function zn(t, e, n, i, o, s) {
768
- return b((l(), u("div", Vn, [
769
- a("div", An, [
770
- a("div", xn, [
771
- a("p", Dn, h(n.textData.title || "请拖动滑块完成拼图"), 1),
759
+ }, Xn = { class: "captcha-movebox" }, jn = { class: "move-bg" }, Wn = { class: "move-txt" };
760
+ function Kn(t, e, n, s, o, i) {
761
+ return b((u(), d("div", Vn, [
762
+ a("div", _n, [
763
+ a("div", An, [
764
+ a("p", Rn, m(n.textData.title || "请拖动滑块完成拼图"), 1),
772
765
  a("i", {
773
766
  class: "font-icon close",
774
767
  onClick: e[0] || (e[0] = (r) => t.$emit("update:modelValue", !1))
775
768
  })
776
769
  ]),
777
- a("div", Rn, [
778
- a("div", Nn, [
770
+ a("div", Dn, [
771
+ a("div", xn, [
779
772
  b(a("i", {
780
773
  class: "font-icon flash",
781
- onClick: e[1] || (e[1] = (...r) => s.generate && s.generate(...r))
774
+ onClick: e[1] || (e[1] = (...r) => i.generate && i.generate(...r))
782
775
  }, null, 512), [
783
- [P, !(o.showLoading || o.checkStatus || o.genError)]
776
+ [y, !(o.showLoading || o.checkStatus || o.genError)]
784
777
  ])
785
778
  ]),
786
- b(a("div", Mn, e[7] || (e[7] = [
779
+ b(a("div", Nn, e[7] || (e[7] = [
787
780
  a("i", { class: "loading" }, null, -1)
788
781
  ]), 512), [
789
- [P, o.showLoading]
782
+ [y, o.showLoading]
790
783
  ]),
791
- o.imgSrc ? (l(), u(S, { key: 0 }, [
784
+ o.imgSrc ? (u(), d(T, { key: 0 }, [
792
785
  a("img", {
793
786
  class: "captcha-img",
794
787
  src: o.imgSrc
795
- }, null, 8, Fn),
788
+ }, null, 8, Mn),
796
789
  a("div", {
797
790
  class: "temp-img-box",
798
- style: y(`transform: translate(${o.moveWidth}px, 0);`)
791
+ style: S(`transform: translate(${o.moveWidth}px, 0);`)
799
792
  }, [
800
793
  a("img", {
801
794
  class: "temp-img",
@@ -803,52 +796,52 @@ function zn(t, e, n, i, o, s) {
803
796
  }, null, 8, qn)
804
797
  ], 4)
805
798
  ], 64)) : v("", !0),
806
- o.checkStatus ? (l(), u("div", On, [
807
- a("div", Bn, [
799
+ o.checkStatus ? (u(), d("div", Fn, [
800
+ a("div", On, [
808
801
  a("i", {
809
802
  class: w(["font-icon", o.checkStatus])
810
803
  }, null, 2),
811
- a("p", Un, h(o.checkStatus == "success" ? n.textData.checkSuccess || "验证通过" : n.textData.checkFail || "验证失败,请重新尝试"), 1)
804
+ a("p", Bn, m(o.checkStatus == "success" ? n.textData.checkSuccess || "验证通过" : n.textData.checkFail || "验证失败,请重新尝试"), 1)
812
805
  ])
813
806
  ])) : v("", !0),
814
- o.genError ? (l(), u("div", Xn, [
807
+ o.genError ? (u(), d("div", Un, [
815
808
  a("i", {
816
809
  class: "font-icon flash",
817
- onClick: e[2] || (e[2] = (...r) => s.generate && s.generate(...r))
810
+ onClick: e[2] || (e[2] = (...r) => i.generate && i.generate(...r))
818
811
  })
819
812
  ])) : v("", !0)
820
813
  ]),
821
- a("div", jn, [
814
+ a("div", Xn, [
822
815
  e[9] || (e[9] = a("div", { class: "move-shadow" }, null, -1)),
823
816
  a("div", {
824
817
  class: "move-mask",
825
- style: y(`width: ${o.moveWidth}px`)
818
+ style: S(`width: ${o.moveWidth}px`)
826
819
  }, null, 4),
827
820
  a("div", {
828
821
  class: "move-btn-box",
829
- onTouchstart: e[3] || (e[3] = (...r) => s.onStart && s.onStart(...r)),
830
- onTouchmove: e[4] || (e[4] = (...r) => s.onMove && s.onMove(...r)),
831
- onTouchend: e[5] || (e[5] = (...r) => s.onEnd && s.onEnd(...r)),
832
- onMousedown: e[6] || (e[6] = (...r) => s.onStart && s.onStart(...r))
822
+ onTouchstart: e[3] || (e[3] = (...r) => i.onStart && i.onStart(...r)),
823
+ onTouchmove: e[4] || (e[4] = (...r) => i.onMove && i.onMove(...r)),
824
+ onTouchend: e[5] || (e[5] = (...r) => i.onEnd && i.onEnd(...r)),
825
+ onMousedown: e[6] || (e[6] = (...r) => i.onStart && i.onStart(...r))
833
826
  }, e[8] || (e[8] = [
834
827
  a("div", { class: "move-btn" }, [
835
828
  a("i", { class: "font-icon right" })
836
829
  ], -1)
837
830
  ]), 32),
838
- a("div", Wn, [
839
- a("p", Kn, h(n.textData.moveText || "向右滑动"), 1)
831
+ a("div", jn, [
832
+ a("p", Wn, m(n.textData.moveText || "向右滑动"), 1)
840
833
  ])
841
834
  ])
842
835
  ])
843
836
  ], 512)), [
844
- [P, n.modelValue]
837
+ [y, n.modelValue]
845
838
  ]);
846
839
  }
847
- const Yn = /* @__PURE__ */ Ln(En, [["render", zn]]), Hn = {
840
+ const zn = /* @__PURE__ */ En(In, [["render", Kn]]), Hn = {
848
841
  name: "paBehaviorCaptcha",
849
842
  inject: ["$t", "api"],
850
843
  components: {
851
- BehaviorCaptcha: Yn
844
+ BehaviorCaptcha: zn
852
845
  },
853
846
  computed: {
854
847
  captchaTextData() {
@@ -872,16 +865,16 @@ const Yn = /* @__PURE__ */ Ln(En, [["render", zn]]), Hn = {
872
865
  }
873
866
  }
874
867
  };
875
- function Gn(t, e, n, i, o, s) {
868
+ function Yn(t, e, n, s, o, i) {
876
869
  const r = f("behavior-captcha");
877
- return l(), T(r, R(t.$attrs, {
878
- textData: s.captchaTextData,
879
- generateFun: s.generateFun,
880
- checkFun: s.checkFun
870
+ return u(), P(r, x(t.$attrs, {
871
+ textData: i.captchaTextData,
872
+ generateFun: i.generateFun,
873
+ checkFun: i.checkFun
881
874
  }), null, 16, ["textData", "generateFun", "checkFun"]);
882
875
  }
883
- const Jn = /* @__PURE__ */ C(Hn, [["render", Gn]]);
884
- var Zn = { zh: { serviceLang: "zh_CN", mobileReg: "^0[1-9]\\d{8}$" }, vi: { serviceLang: "vi_VN", mobileReg: "^0[1-9]\\d{8}$" }, id: { serviceLang: "id_ID", mobileReg: "^08\\d{8,11}$" } };
876
+ const Gn = /* @__PURE__ */ C(Hn, [["render", Yn]]);
877
+ var Jn = { zh: { serviceLang: "zh_CN", mobileReg: "^0[1-9]\\d{8}$" }, vi: { serviceLang: "vi_VN", mobileReg: "^0[1-9]\\d{8}$" }, id: { serviceLang: "id_ID", mobileReg: "^08\\d{8,11}$" } };
885
878
  const A = {
886
879
  name: "myFormBox",
887
880
  inject: ["$t", "api"],
@@ -889,9 +882,9 @@ const A = {
889
882
  return { paForm: this };
890
883
  },
891
884
  components: {
892
- acountFormItem: $n,
893
- acountCheckbox: In,
894
- acountBehaviorCaptcha: Jn
885
+ acountFormItem: yn,
886
+ acountCheckbox: Ln,
887
+ acountBehaviorCaptcha: Gn
895
888
  },
896
889
  data() {
897
890
  return {
@@ -902,12 +895,12 @@ const A = {
902
895
  computed: {
903
896
  // 验证规则
904
897
  formRule() {
905
- const t = /^[a-zA-Z][a-zA-Z0-9]{7,15}$/, e = /^[a-zA-Z0-9]{8,16}$/, n = new RegExp(Zn[this.region].mobileReg), { $t: i, isLogin: o } = this;
898
+ const t = /^[a-zA-Z][a-zA-Z0-9]{7,15}$/, e = /^[a-zA-Z0-9]{8,16}$/, n = new RegExp(Jn[this.region].mobileReg), { $t: s, isLogin: o } = this;
906
899
  return {
907
- loginName: (s) => t.test(s) || o && n.test(s) ? "" : i(o ? "loginNameEr" : "userEr"),
908
- password: (s) => e.test(s) ? "" : i("pwdEr"),
909
- cfmPassword: (s) => e.test(s) && s == this.formData.password ? "" : i("confirmPwdEr"),
910
- inviteCodeTop: (s) => this._inviteCodeRequired ? s ? "" : i("inviteCodePh") : ""
900
+ loginName: (i) => t.test(i) || o && n.test(i) ? "" : s(o ? "loginNameEr" : "userEr"),
901
+ password: (i) => e.test(i) ? "" : s("pwdEr"),
902
+ cfmPassword: (i) => e.test(i) && i == this.formData.password ? "" : s("confirmPwdEr"),
903
+ inviteCodeTop: (i) => this._inviteCodeRequired ? i ? "" : s("inviteCodePh") : ""
911
904
  };
912
905
  }
913
906
  },
@@ -919,8 +912,8 @@ const A = {
919
912
  validateAll() {
920
913
  const { childrens: t } = this;
921
914
  return t.reduce((e, n) => {
922
- const i = n.validate();
923
- return e && i;
915
+ const s = n.validate();
916
+ return e && s;
924
917
  }, !0);
925
918
  },
926
919
  /*提交按钮点击处理*/
@@ -932,16 +925,16 @@ const A = {
932
925
  return this.api.getPublicKey().then((e) => {
933
926
  if (!e)
934
927
  return Promise.reject();
935
- const n = new F();
928
+ const n = new q();
936
929
  n.setPublicKey(e);
937
- const i = Object.assign({}, t), o = /^loginname$/i, s = /password|phone/i;
938
- for (let r in i)
939
- i.hasOwnProperty(r) && (o.test(r) ? i[r] = n.encrypt(i[r].toLowerCase()) : s.test(r) && (i[r] = n.encrypt(i[r])));
940
- return i;
930
+ const s = Object.assign({}, t), o = /^loginname$/i, i = /password|phone/i;
931
+ for (let r in s)
932
+ s.hasOwnProperty(r) && (o.test(r) ? s[r] = n.encrypt(s[r].toLowerCase()) : i.test(r) && (s[r] = n.encrypt(s[r])));
933
+ return s;
941
934
  });
942
935
  }
943
936
  }
944
- }, Qn = {
937
+ }, Zn = {
945
938
  mixins: [A],
946
939
  emits: ["forgetPwd", "toggleLinkClick", "loginSuccess"],
947
940
  props: {
@@ -968,40 +961,40 @@ const A = {
968
961
  submit({ id: t }) {
969
962
  const e = Object.assign({ captchaId: t }, this.formData);
970
963
  this.getEncryptionData(e).then((n) => {
971
- n.account = n.loginName, delete n.loginName, this.api.login(n).then((i) => {
972
- this.remember ? uni.setStorageSync("remember_username", this.formData.loginName) : uni.removeStorageSync("remember_username"), this.$emit("loginSuccess", i);
973
- }).catch((i) => {
964
+ n.account = n.loginName, delete n.loginName, this.api.login(n).then((s) => {
965
+ this.remember ? uni.setStorageSync("remember_username", this.formData.loginName) : uni.removeStorageSync("remember_username"), this.$emit("loginSuccess", s);
966
+ }).catch((s) => {
974
967
  this.formData.password = "";
975
968
  });
976
969
  }).catch((n) => {
977
970
  });
978
971
  }
979
972
  }
980
- }, eo = { class: "pa-form" }, to = /* @__PURE__ */ a("input", {
973
+ }, Qn = { class: "pa-form" }, eo = /* @__PURE__ */ a("input", {
981
974
  type: "password",
982
975
  autocomplete: "off",
983
976
  class: "pa-hidden-input"
984
- }, null, -1), no = /* @__PURE__ */ a("input", {
977
+ }, null, -1), to = /* @__PURE__ */ a("input", {
985
978
  type: "text",
986
979
  autocomplete: "off",
987
980
  class: "pa-hidden-input"
988
- }, null, -1), oo = { class: "pa-form-footer-actions" }, so = {
981
+ }, null, -1), no = { class: "pa-form-footer-actions" }, oo = {
989
982
  key: 0,
990
983
  class: "pa-toggle-link"
991
984
  };
992
- function io(t, e, n, i, o, s) {
993
- const r = f("acount-form-item"), m = f("acount-checkbox"), p = f("acount-behavior-captcha");
994
- return l(), u("div", eo, [
985
+ function io(t, e, n, s, o, i) {
986
+ const r = f("acount-form-item"), h = f("acount-checkbox"), g = f("acount-behavior-captcha");
987
+ return u(), d("div", Qn, [
988
+ eo,
995
989
  to,
996
- no,
997
- g(r, {
990
+ p(r, {
998
991
  modelValue: o.formData.loginName,
999
992
  "onUpdate:modelValue": e[0] || (e[0] = (c) => o.formData.loginName = c),
1000
993
  rule: t.formRule.loginName,
1001
994
  placeholder: t.$t("loginNamePh"),
1002
995
  prefixIcon: "icon-user"
1003
996
  }, null, 8, ["modelValue", "rule", "placeholder"]),
1004
- g(r, {
997
+ p(r, {
1005
998
  modelValue: o.formData.password,
1006
999
  "onUpdate:modelValue": e[1] || (e[1] = (c) => o.formData.password = c),
1007
1000
  rule: t.formRule.password,
@@ -1009,40 +1002,40 @@ function io(t, e, n, i, o, s) {
1009
1002
  prefixIcon: "icon-password",
1010
1003
  type: "password"
1011
1004
  }, null, 8, ["modelValue", "rule", "placeholder"]),
1012
- a("div", oo, [
1013
- g(m, {
1005
+ a("div", no, [
1006
+ p(h, {
1014
1007
  class: "pa-remeber-me",
1015
1008
  modelValue: o.remember,
1016
1009
  "onUpdate:modelValue": e[2] || (e[2] = (c) => o.remember = c)
1017
1010
  }, {
1018
- default: V(() => [
1019
- N(h(t.$t("remember")), 1)
1011
+ default: _(() => [
1012
+ N(m(t.$t("remember")), 1)
1020
1013
  ]),
1021
1014
  _: 1
1022
1015
  }, 8, ["modelValue"]),
1023
1016
  a("div", {
1024
1017
  class: "pa-forget-pwd",
1025
1018
  onClick: e[3] || (e[3] = (c) => t.$emit("forgetPwd"))
1026
- }, h(t.$t("forgetPwd")), 1)
1019
+ }, m(t.$t("forgetPwd")), 1)
1027
1020
  ]),
1028
1021
  a("div", {
1029
1022
  class: "pa-form-btn",
1030
1023
  onClick: e[4] || (e[4] = (...c) => t.submitHandler && t.submitHandler(...c))
1031
- }, h(t.$t("login")), 1),
1032
- n.showToggleLink ? (l(), u("div", so, [
1024
+ }, m(t.$t("login")), 1),
1025
+ n.showToggleLink ? (u(), d("div", oo, [
1033
1026
  a("p", {
1034
1027
  class: "pa-text-btn",
1035
1028
  onClick: e[5] || (e[5] = (c) => t.$emit("toggleLinkClick"))
1036
- }, h(t.$t("toRegister")), 1)
1029
+ }, m(t.$t("toRegister")), 1)
1037
1030
  ])) : v("", !0),
1038
- g(p, {
1031
+ p(g, {
1039
1032
  modelValue: t.showCaptcha,
1040
1033
  "onUpdate:modelValue": e[6] || (e[6] = (c) => t.showCaptcha = c),
1041
- onSuccess: s.submit
1034
+ onSuccess: i.submit
1042
1035
  }, null, 8, ["modelValue", "onSuccess"])
1043
1036
  ]);
1044
1037
  }
1045
- const ao = /* @__PURE__ */ C(Qn, [["render", io]]), ro = {
1038
+ const so = /* @__PURE__ */ C(Zn, [["render", io]]), ao = {
1046
1039
  mixins: [A],
1047
1040
  emits: ["toggleLinkClick", "pact", "registerSuccess"],
1048
1041
  props: {
@@ -1113,44 +1106,44 @@ const ao = /* @__PURE__ */ C(Qn, [["render", io]]), ro = {
1113
1106
  submit({ id: t }) {
1114
1107
  const e = Object.assign({ captchaId: t }, this.formData);
1115
1108
  this.getEncryptionData(e).then((n) => {
1116
- !this._inviteCodeRequired && this.serviceInviteCode && !n.inviteCodeTop && (n.inviteCodeTop = this.serviceInviteCode), this.api.register(n).then((i) => {
1117
- this.$emit("registerSuccess", i);
1118
- }).catch((i) => {
1109
+ !this._inviteCodeRequired && this.serviceInviteCode && !n.inviteCodeTop && (n.inviteCodeTop = this.serviceInviteCode), this.api.register(n).then((s) => {
1110
+ this.$emit("registerSuccess", s);
1111
+ }).catch((s) => {
1119
1112
  });
1120
1113
  }).catch((n) => {
1121
1114
  });
1122
1115
  }
1123
1116
  }
1124
- }, co = { class: "pa-form" }, lo = /* @__PURE__ */ a("input", {
1117
+ }, ro = { class: "pa-form" }, co = /* @__PURE__ */ a("input", {
1125
1118
  type: "password",
1126
1119
  autocomplete: "off",
1127
1120
  class: "pa-hidden-input"
1128
- }, null, -1), uo = /* @__PURE__ */ a("input", {
1121
+ }, null, -1), lo = /* @__PURE__ */ a("input", {
1129
1122
  type: "text",
1130
1123
  autocomplete: "off",
1131
1124
  class: "pa-hidden-input"
1132
- }, null, -1), ho = { class: "pa-form-footer-actions" }, mo = {
1125
+ }, null, -1), uo = { class: "pa-form-footer-actions" }, ho = {
1133
1126
  key: 0,
1134
1127
  class: "pa-toggle-link"
1135
- }, go = {
1128
+ }, mo = {
1136
1129
  key: 1,
1137
1130
  class: "pa-pact-popup"
1138
- }, po = { class: "pa-pact-popup-head" }, fo = /* @__PURE__ */ a("i", { class: "iconfont icon-back" }, null, -1), vo = [
1139
- fo
1140
- ], ko = { class: "pa-pact-popup-title" }, wo = ["src"];
1141
- function Co(t, e, n, i, o, s) {
1142
- const r = f("acount-form-item"), m = f("acount-checkbox"), p = f("acount-behavior-captcha");
1143
- return l(), u("div", co, [
1131
+ }, go = { class: "pa-pact-popup-head" }, po = /* @__PURE__ */ a("i", { class: "iconfont icon-back" }, null, -1), fo = [
1132
+ po
1133
+ ], vo = { class: "pa-pact-popup-title" }, ko = ["src"];
1134
+ function wo(t, e, n, s, o, i) {
1135
+ const r = f("acount-form-item"), h = f("acount-checkbox"), g = f("acount-behavior-captcha");
1136
+ return u(), d("div", ro, [
1137
+ co,
1144
1138
  lo,
1145
- uo,
1146
- g(r, {
1139
+ p(r, {
1147
1140
  modelValue: o.formData.loginName,
1148
1141
  "onUpdate:modelValue": e[0] || (e[0] = (c) => o.formData.loginName = c),
1149
1142
  rule: t.formRule.loginName,
1150
1143
  placeholder: t.$t("userPh"),
1151
1144
  prefixIcon: "icon-user"
1152
1145
  }, null, 8, ["modelValue", "rule", "placeholder"]),
1153
- g(r, {
1146
+ p(r, {
1154
1147
  modelValue: o.formData.password,
1155
1148
  "onUpdate:modelValue": e[1] || (e[1] = (c) => o.formData.password = c),
1156
1149
  rule: t.formRule.password,
@@ -1158,7 +1151,7 @@ function Co(t, e, n, i, o, s) {
1158
1151
  prefixIcon: "icon-password",
1159
1152
  type: "password"
1160
1153
  }, null, 8, ["modelValue", "rule", "placeholder"]),
1161
- g(r, {
1154
+ p(r, {
1162
1155
  modelValue: o.formData.cfmPassword,
1163
1156
  "onUpdate:modelValue": e[2] || (e[2] = (c) => o.formData.cfmPassword = c),
1164
1157
  rule: t.formRule.cfmPassword,
@@ -1166,27 +1159,27 @@ function Co(t, e, n, i, o, s) {
1166
1159
  prefixIcon: "icon-password",
1167
1160
  type: "password"
1168
1161
  }, null, 8, ["modelValue", "rule", "placeholder"]),
1169
- g(r, {
1162
+ p(r, {
1170
1163
  modelValue: o.formData.inviteCodeTop,
1171
1164
  "onUpdate:modelValue": e[3] || (e[3] = (c) => o.formData.inviteCodeTop = c),
1172
1165
  rule: t.formRule.inviteCodeTop,
1173
- placeholder: s.inviteCodePh,
1166
+ placeholder: i.inviteCodePh,
1174
1167
  disabled: !!n.inviteCode,
1175
1168
  prefixIcon: "icon-invite"
1176
1169
  }, null, 8, ["modelValue", "rule", "placeholder", "disabled"]),
1177
- a("div", ho, [
1178
- g(m, {
1170
+ a("div", uo, [
1171
+ p(h, {
1179
1172
  class: "pa-remeber-me",
1180
1173
  modelValue: o.agreePact,
1181
1174
  "onUpdate:modelValue": e[5] || (e[5] = (c) => o.agreePact = c)
1182
1175
  }, {
1183
- default: V(() => [
1176
+ default: _(() => [
1184
1177
  a("div", null, [
1185
- a("span", null, h(t.$t("pact1")), 1),
1178
+ a("span", null, m(t.$t("pact1")), 1),
1186
1179
  a("span", {
1187
1180
  class: "pa-underline-text",
1188
- onClick: e[4] || (e[4] = M((...c) => s.readPact && s.readPact(...c), ["stop"]))
1189
- }, h(t.$t("pact2")), 1)
1181
+ onClick: e[4] || (e[4] = M((...c) => i.readPact && i.readPact(...c), ["stop"]))
1182
+ }, m(t.$t("pact2")), 1)
1190
1183
  ])
1191
1184
  ]),
1192
1185
  _: 1
@@ -1195,47 +1188,47 @@ function Co(t, e, n, i, o, s) {
1195
1188
  a("div", {
1196
1189
  class: w(["pa-form-btn", { disabled: !o.agreePact }]),
1197
1190
  onClick: e[6] || (e[6] = (c) => t.submitHandler(o.agreePact))
1198
- }, h(t.$t("register")), 3),
1199
- n.showToggleLink ? (l(), u("div", mo, [
1200
- a("span", null, h(t.$t("hasUserName")), 1),
1191
+ }, m(t.$t("register")), 3),
1192
+ n.showToggleLink ? (u(), d("div", ho, [
1193
+ a("span", null, m(t.$t("hasUserName")), 1),
1201
1194
  a("span", {
1202
1195
  class: "pa-text-btn",
1203
1196
  onClick: e[7] || (e[7] = (c) => t.$emit("toggleLinkClick"))
1204
- }, h(t.$t("goLogin")), 1)
1197
+ }, m(t.$t("goLogin")), 1)
1205
1198
  ])) : v("", !0),
1206
- g(p, {
1199
+ p(g, {
1207
1200
  modelValue: t.showCaptcha,
1208
1201
  "onUpdate:modelValue": e[8] || (e[8] = (c) => t.showCaptcha = c),
1209
- onSuccess: s.submit
1202
+ onSuccess: i.submit
1210
1203
  }, null, 8, ["modelValue", "onSuccess"]),
1211
- n.insideShowPact && o.showPactPopup && s.pactSrc ? (l(), u("div", go, [
1212
- a("div", po, [
1204
+ n.insideShowPact && o.showPactPopup && i.pactSrc ? (u(), d("div", mo, [
1205
+ a("div", go, [
1213
1206
  a("div", {
1214
1207
  class: "pa-back-button",
1215
1208
  onClick: e[9] || (e[9] = (c) => o.showPactPopup = !1)
1216
- }, vo),
1217
- a("p", ko, h(t.$t("pactTitle")), 1)
1209
+ }, fo),
1210
+ a("p", vo, m(t.$t("pactTitle")), 1)
1218
1211
  ]),
1219
1212
  a("iframe", {
1220
1213
  class: "pa-pact-iframe",
1221
- src: s.pactSrc
1222
- }, null, 8, wo)
1214
+ src: i.pactSrc
1215
+ }, null, 8, ko)
1223
1216
  ])) : v("", !0)
1224
1217
  ]);
1225
1218
  }
1226
- const bo = /* @__PURE__ */ C(ro, [["render", Co]]), $ = Ht(), L = new X(), Po = {
1219
+ const Co = /* @__PURE__ */ C(ao, [["render", wo]]), $ = Yt(), I = new X(), Po = {
1227
1220
  name: "P500Acount",
1228
1221
  emits: ["back", "pact", "bannerClick", "forgetPwd", "toggleLinkClick", "loginSuccess", "registerSuccess"],
1229
1222
  components: {
1230
- acountBanner: an,
1231
- acountDialog: kn,
1232
- acountLoginForm: ao,
1233
- acountRegisterForm: bo
1223
+ acountBanner: sn,
1224
+ acountDialog: vn,
1225
+ acountLoginForm: so,
1226
+ acountRegisterForm: Co
1234
1227
  },
1235
1228
  provide() {
1236
1229
  return {
1237
1230
  $t: $.global.t,
1238
- api: L
1231
+ api: I
1239
1232
  };
1240
1233
  },
1241
1234
  props: {
@@ -1283,7 +1276,7 @@ const bo = /* @__PURE__ */ C(ro, [["render", Co]]), $ = Ht(), L = new X(), Po =
1283
1276
  created() {
1284
1277
  $.global.locale = this.region;
1285
1278
  const { showLoading: t, hideLoading: e, showMessage: n } = this;
1286
- L.setOptions(this.region, this.apiDomain, this.devicePlatform, { showLoading: t, hideLoading: e, showMessage: n });
1279
+ I.setOptions(this.region, this.apiDomain, this.devicePlatform, { showLoading: t, hideLoading: e, showMessage: n });
1287
1280
  },
1288
1281
  data() {
1289
1282
  return {
@@ -1311,65 +1304,84 @@ const bo = /* @__PURE__ */ C(ro, [["render", Co]]), $ = Ht(), L = new X(), Po =
1311
1304
  this.dialogType = 1, this.dialogCount++, this.dialogMsg = t;
1312
1305
  }
1313
1306
  }
1314
- }, yo = { class: "pa-acount" }, $o = {
1307
+ }, bo = { class: "pa-acount" }, yo = {
1315
1308
  key: 0,
1316
1309
  class: "pa-acount-page"
1317
1310
  }, So = /* @__PURE__ */ a("i", { class: "iconfont icon-back" }, null, -1), To = [
1318
1311
  So
1319
- ], _o = { class: "pa-logo-box" }, Io = { class: "pa-pageform" }, Lo = { class: "pa-page-title" };
1320
- function Eo(t, e, n, i, o, s) {
1321
- const r = f("acount-banner"), m = f("acount-login-form"), p = f("acount-register-form"), c = f("acount-dialog");
1322
- return l(), u("div", yo, [
1323
- n.page ? (l(), u("div", $o, [
1324
- n.showBackBtn ? (l(), u("div", {
1312
+ ], $o = { class: "pa-logo-box" }, Lo = { class: "pa-pageform" }, Eo = { class: "pa-page-title" };
1313
+ function Io(t, e, n, s, o, i) {
1314
+ const r = f("acount-banner"), h = f("acount-login-form"), g = f("acount-register-form"), c = f("acount-dialog");
1315
+ return u(), d("div", bo, [
1316
+ n.page ? (u(), d("div", yo, [
1317
+ n.showBackBtn ? (u(), d("div", {
1325
1318
  key: 0,
1326
1319
  class: "pa-back-button",
1327
- onClick: e[0] || (e[0] = (d) => t.$emit("back"))
1320
+ onClick: e[0] || (e[0] = (l) => t.$emit("back"))
1328
1321
  }, To)) : v("", !0),
1329
- a("div", _o, [
1322
+ a("div", $o, [
1330
1323
  a("i", {
1331
1324
  class: w(["pa-logo", n.region + "_logo"])
1332
1325
  }, null, 2)
1333
1326
  ]),
1334
- g(r, {
1335
- onBannerClick: e[1] || (e[1] = (d) => t.$emit("bannerClick", d))
1327
+ p(r, {
1328
+ onBannerClick: e[1] || (e[1] = (l) => t.$emit("bannerClick", l))
1336
1329
  }),
1337
- a("div", Io, [
1338
- a("div", Lo, h(o.pageTitle), 1),
1339
- n.type == "login" ? (l(), T(m, {
1330
+ a("div", Lo, [
1331
+ a("div", Eo, m(o.pageTitle), 1),
1332
+ n.type == "login" ? (u(), P(h, {
1340
1333
  key: 0,
1341
1334
  showToggleLink: n.showToggleLink,
1342
1335
  region: n.region,
1343
- onForgetPwd: e[2] || (e[2] = (d) => t.$emit("forgetPwd", d)),
1344
- onToggleLinkClick: e[3] || (e[3] = (d) => t.$emit("toggleLinkClick", d)),
1345
- onLoginSuccess: e[4] || (e[4] = (d) => t.$emit("loginSuccess", d))
1346
- }, null, 8, ["showToggleLink", "region"])) : n.type == "register" ? (l(), T(p, {
1336
+ onForgetPwd: e[2] || (e[2] = (l) => t.$emit("forgetPwd", l)),
1337
+ onToggleLinkClick: e[3] || (e[3] = (l) => t.$emit("toggleLinkClick", l)),
1338
+ onLoginSuccess: e[4] || (e[4] = (l) => t.$emit("loginSuccess", l))
1339
+ }, null, 8, ["showToggleLink", "region"])) : n.type == "register" ? (u(), P(g, {
1347
1340
  key: 1,
1348
1341
  region: n.region,
1349
1342
  inviteCode: n.inviteCode,
1350
1343
  inviteCodeRequired: n.inviteCodeRequired,
1351
1344
  showToggleLink: n.showToggleLink,
1352
1345
  insideShowPact: n.insideShowPact,
1353
- onToggleLinkClick: e[5] || (e[5] = (d) => t.$emit("toggleLinkClick", d)),
1354
- onPact: e[6] || (e[6] = (d) => t.$emit("pact", d)),
1355
- onRegisterSuccess: e[7] || (e[7] = (d) => t.$emit("registerSuccess", d))
1346
+ onToggleLinkClick: e[5] || (e[5] = (l) => t.$emit("toggleLinkClick", l)),
1347
+ onPact: e[6] || (e[6] = (l) => t.$emit("pact", l)),
1348
+ onRegisterSuccess: e[7] || (e[7] = (l) => t.$emit("registerSuccess", l))
1356
1349
  }, null, 8, ["region", "inviteCode", "inviteCodeRequired", "showToggleLink", "insideShowPact"])) : v("", !0)
1357
1350
  ])
1358
- ])) : v("", !0),
1359
- g(c, {
1351
+ ])) : (u(), d(T, { key: 1 }, [
1352
+ n.type == "login" ? (u(), P(h, {
1353
+ key: 0,
1354
+ showToggleLink: n.showToggleLink,
1355
+ region: n.region,
1356
+ onForgetPwd: e[8] || (e[8] = (l) => t.$emit("forgetPwd", l)),
1357
+ onToggleLinkClick: e[9] || (e[9] = (l) => t.$emit("toggleLinkClick", l)),
1358
+ onLoginSuccess: e[10] || (e[10] = (l) => t.$emit("loginSuccess", l))
1359
+ }, null, 8, ["showToggleLink", "region"])) : n.type == "register" ? (u(), P(g, {
1360
+ key: 1,
1361
+ region: n.region,
1362
+ inviteCode: n.inviteCode,
1363
+ inviteCodeRequired: n.inviteCodeRequired,
1364
+ showToggleLink: n.showToggleLink,
1365
+ insideShowPact: n.insideShowPact,
1366
+ onToggleLinkClick: e[11] || (e[11] = (l) => t.$emit("toggleLinkClick", l)),
1367
+ onPact: e[12] || (e[12] = (l) => t.$emit("pact", l)),
1368
+ onRegisterSuccess: e[13] || (e[13] = (l) => t.$emit("registerSuccess", l))
1369
+ }, null, 8, ["region", "inviteCode", "inviteCodeRequired", "showToggleLink", "insideShowPact"])) : v("", !0)
1370
+ ], 64)),
1371
+ p(c, {
1360
1372
  modelValue: o.dialogCount,
1361
- "onUpdate:modelValue": e[8] || (e[8] = (d) => o.dialogCount = d),
1373
+ "onUpdate:modelValue": e[14] || (e[14] = (l) => o.dialogCount = l),
1362
1374
  type: o.dialogType,
1363
1375
  message: o.dialogMsg
1364
1376
  }, null, 8, ["modelValue", "type", "message"])
1365
1377
  ]);
1366
1378
  }
1367
- const E = /* @__PURE__ */ C(Po, [["render", Eo]]), Do = {
1379
+ const V = /* @__PURE__ */ C(Po, [["render", Io]]), Ro = {
1368
1380
  install: (t) => {
1369
- t.component(E.name, E);
1381
+ t.component(V.name, V);
1370
1382
  }
1371
1383
  };
1372
1384
  export {
1373
- E as P500Acount,
1374
- Do as default
1385
+ V as P500Acount,
1386
+ Ro as default
1375
1387
  };