@uxda/appkit 4.3.37 → 4.3.39

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.
package/dist/index.js CHANGED
@@ -3563,11 +3563,11 @@ const isIOS = () => {
3563
3563
  return false;
3564
3564
  };
3565
3565
 
3566
- const CUSTOM_RECHARGE_AMOUNT_MIN = 1e4;
3567
- const CUSTOM_RECHARGE_AMOUNT_MAX = 5e4;
3566
+ const CUSTOM_RECHARGE_AMOUNT_MIN = 100;
3567
+ const CUSTOM_RECHARGE_AMOUNT_MAX = 1e4;
3568
3568
  const CUSTOM_RECHARGE_AMOUNT_ITEM = {
3569
3569
  token: "\u81EA\u5B9A\u4E49",
3570
- amount: "1W \u8D77\u5145",
3570
+ amount: "100 \u8D77\u5145",
3571
3571
  custom: true
3572
3572
  };
3573
3573
  function appendCustomAmountOption(items, shouldAppendCustom = true) {
@@ -3588,10 +3588,10 @@ function validateCustomRechargeAmount(value) {
3588
3588
  return { valid: false, message: "\u8BF7\u8F93\u5165\u6574\u6570\u5145\u503C\u91D1\u989D" };
3589
3589
  }
3590
3590
  if (amount < CUSTOM_RECHARGE_AMOUNT_MIN) {
3591
- return { valid: false, message: "\u5145\u503C\u91D1\u989D\u4E0D\u80FD\u4F4E\u4E8E10000\u5143" };
3591
+ return { valid: false, message: "\u5145\u503C\u91D1\u989D\u4E0D\u80FD\u4F4E\u4E8E100\u5143" };
3592
3592
  }
3593
3593
  if (amount > CUSTOM_RECHARGE_AMOUNT_MAX) {
3594
- return { valid: false, message: "\u5145\u503C\u91D1\u989D\u4E0D\u80FD\u9AD8\u4E8E50000\u5143" };
3594
+ return { valid: false, message: "\u5145\u503C\u91D1\u989D\u4E0D\u80FD\u9AD8\u4E8E10000\u5143" };
3595
3595
  }
3596
3596
  return { valid: true, amount };
3597
3597
  }
@@ -3787,7 +3787,7 @@ var script$E = /* @__PURE__ */ defineComponent({
3787
3787
  class: "custom-amount-control",
3788
3788
  type: "number",
3789
3789
  value: state.customAmountText,
3790
- placeholder: "\u6700\u4F4E1w\u5143\u8D77,\u6700\u9AD85w\u5143",
3790
+ placeholder: "\u6700\u4F4E 100 \u5143\u8D77",
3791
3791
  "placeholder-class": "custom-amount-placeholder",
3792
3792
  "placeholder-style": "color: #b8b8b8; font-size: 26px; font-weight: 700;",
3793
3793
  inputmode: "numeric",
@@ -5454,12 +5454,12 @@ var script$t = /* @__PURE__ */ defineComponent({
5454
5454
  ])
5455
5455
  ]),
5456
5456
  createVNode(script$u),
5457
- createCommentVNode(' <div class="rights-card" v-if="bdxLiteRight">\n <div class="title">\u5317\u6597\u661FLite\u6743\u76CA</div>\n <div class="list">\n <div class="item star-item">\n <div class="item-count">\n <span>{{ formatAmount(bdxLiteRight.count || 0) }}</span><span>{{ bdxLiteRight.unit }}</span>\n </div>\n <div class="item-title">\n <div>{{ bdxLiteRight.title }}\u6B21\u6570</div>\n <div class="item-title-button" v-if="!isAppEnv || (isAppEnv && !isIOS())">\n <div v-track-click @click="gotoTrade(bdxLiteRight)">\u5317\u6597\u661FLite\u5145\u503C</div>\n <img class="button-icon" src="https://cdn.ddjf.com/static/images/bpms-workBench/button-hg.svg" />\n </div>\n </div>\n </div>\n </div>\n </div> '),
5457
+ createCommentVNode(' <div class="rights-card" v-if="bdxLiteRight">\n <div class="title">\u98CE\u63A7\u4E2A\u4EBA\u98CE\u9669Lite\u6743\u76CA</div>\n <div class="list">\n <div class="item star-item">\n <div class="item-count">\n <span>{{ formatAmount(bdxLiteRight.count || 0) }}</span><span>{{ bdxLiteRight.unit }}</span>\n </div>\n <div class="item-title">\n <div>{{ bdxLiteRight.title }}\u6B21\u6570</div>\n <div class="item-title-button" v-if="!isAppEnv || (isAppEnv && !isIOS())">\n <div v-track-click @click="gotoTrade(bdxLiteRight)">\u98CE\u63A7\u4E2A\u4EBA\u98CE\u9669Lite\u5145\u503C</div>\n <img class="button-icon" src="https://cdn.ddjf.com/static/images/bpms-workBench/button-hg.svg" />\n </div>\n </div>\n </div>\n </div>\n </div> '),
5458
5458
  bdxProRight.value ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
5459
5459
  _cache[15] || (_cache[15] = createElementVNode(
5460
5460
  "div",
5461
5461
  { class: "title" },
5462
- "\u5317\u6597\u661FPro\u6743\u76CA",
5462
+ "\u98CE\u63A7\u4E2A\u4EBA\u98CE\u9669Pro\u6743\u76CA",
5463
5463
  -1
5464
5464
  /* CACHED */
5465
5465
  )),
@@ -5494,7 +5494,7 @@ var script$t = /* @__PURE__ */ defineComponent({
5494
5494
  onClick: _cache[1] || (_cache[1] = ($event) => gotoTrade(bdxProRight.value))
5495
5495
  }, [..._cache[13] || (_cache[13] = [
5496
5496
  createTextVNode(
5497
- "\u5317\u6597\u661FPro\u5145\u503C",
5497
+ "\u98CE\u63A7\u4E2A\u4EBA\u98CE\u9669Pro\u5145\u503C",
5498
5498
  -1
5499
5499
  /* CACHED */
5500
5500
  )
@@ -5520,7 +5520,7 @@ var script$t = /* @__PURE__ */ defineComponent({
5520
5520
  _cache[18] || (_cache[18] = createElementVNode(
5521
5521
  "div",
5522
5522
  { class: "title" },
5523
- "\u6D41\u6C34\u667A\u62A5\u6743\u76CA",
5523
+ "\u98CE\u63A7\u6D41\u6C34\u667A\u62A5\u6743\u76CA",
5524
5524
  -1
5525
5525
  /* CACHED */
5526
5526
  )),
@@ -5555,7 +5555,7 @@ var script$t = /* @__PURE__ */ defineComponent({
5555
5555
  onClick: _cache[2] || (_cache[2] = ($event) => gotoTrade(bdxBillRight.value))
5556
5556
  }, [..._cache[16] || (_cache[16] = [
5557
5557
  createTextVNode(
5558
- "\u6D41\u6C34\u667A\u62A5\u5145\u503C",
5558
+ "\u98CE\u63A7\u6D41\u6C34\u667A\u62A5\u5145\u503C",
5559
5559
  -1
5560
5560
  /* CACHED */
5561
5561
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.3.37",
3
+ "version": "4.3.39",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
  <Tip />
25
25
  <!-- <div class="rights-card" v-if="bdxLiteRight">
26
- <div class="title">北斗星Lite权益</div>
26
+ <div class="title">风控个人风险Lite权益</div>
27
27
  <div class="list">
28
28
  <div class="item star-item">
29
29
  <div class="item-count">
@@ -32,7 +32,7 @@
32
32
  <div class="item-title">
33
33
  <div>{{ bdxLiteRight.title }}次数</div>
34
34
  <div class="item-title-button" v-if="!isAppEnv || (isAppEnv && !isIOS())">
35
- <div v-track-click @click="gotoTrade(bdxLiteRight)">北斗星Lite充值</div>
35
+ <div v-track-click @click="gotoTrade(bdxLiteRight)">风控个人风险Lite充值</div>
36
36
  <img class="button-icon" src="https://cdn.ddjf.com/static/images/bpms-workBench/button-hg.svg" />
37
37
  </div>
38
38
  </div>
@@ -40,7 +40,7 @@
40
40
  </div>
41
41
  </div> -->
42
42
  <div class="rights-card" v-if="bdxProRight">
43
- <div class="title">北斗星Pro权益</div>
43
+ <div class="title">风控个人风险Pro权益</div>
44
44
  <div class="list">
45
45
  <div class="item star-item">
46
46
  <div class="item-count">
@@ -49,7 +49,7 @@
49
49
  <div class="item-title">
50
50
  <div>{{ bdxProRight.title }}次数</div>
51
51
  <div class="item-title-button" v-if="!isAppEnv || (isAppEnv && !isIOS())">
52
- <div v-track-click @click="gotoTrade(bdxProRight)">北斗星Pro充值</div>
52
+ <div v-track-click @click="gotoTrade(bdxProRight)">风控个人风险Pro充值</div>
53
53
  <img class="button-icon" src="https://cdn.ddjf.com/static/images/bpms-workBench/button-hg.svg" />
54
54
  </div>
55
55
  </div>
@@ -57,7 +57,7 @@
57
57
  </div>
58
58
  </div>
59
59
  <div class="rights-card" v-if="bdxBillRight">
60
- <div class="title">流水智报权益</div>
60
+ <div class="title">风控流水智报权益</div>
61
61
  <div class="list">
62
62
  <div class="item star-item">
63
63
  <div class="item-count">
@@ -66,7 +66,7 @@
66
66
  <div class="item-title">
67
67
  <div>{{ bdxBillRight.title }}次数</div>
68
68
  <div class="item-title-button" v-if="!isAppEnv || (isAppEnv && !isIOS())">
69
- <div v-track-click @click="gotoTrade(bdxBillRight)">流水智报充值</div>
69
+ <div v-track-click @click="gotoTrade(bdxBillRight)">风控流水智报充值</div>
70
70
  <img class="button-icon" src="https://cdn.ddjf.com/static/images/bpms-workBench/button-hg.svg" />
71
71
  </div>
72
72
  </div>
@@ -13,7 +13,7 @@
13
13
  class="custom-amount-control"
14
14
  type="number"
15
15
  :value="state.customAmountText"
16
- placeholder="最低1w元起,最高5w元"
16
+ placeholder="最低 100 元起"
17
17
  placeholder-class="custom-amount-placeholder"
18
18
  placeholder-style="color: #b8b8b8; font-size: 26px; font-weight: 700;"
19
19
  inputmode="numeric"
@@ -27,18 +27,18 @@ assert.equal(withCustom[2].custom, true)
27
27
  assert.equal(withCustom[2].token, '自定义')
28
28
 
29
29
  assert.equal(resolveRechargeAmount(withCustom, 0, ''), 150)
30
- assert.equal(resolveRechargeAmount(withCustom, 2, '10000'), CUSTOM_RECHARGE_AMOUNT_MIN)
31
- assert.equal(resolveRechargeAmount(withCustom, 2, '50000'), CUSTOM_RECHARGE_AMOUNT_MAX)
30
+ assert.equal(resolveRechargeAmount(withCustom, 2, '100'), CUSTOM_RECHARGE_AMOUNT_MIN)
31
+ assert.equal(resolveRechargeAmount(withCustom, 2, '10000'), CUSTOM_RECHARGE_AMOUNT_MAX)
32
32
  assert.equal(normalizeCustomRechargeAmountInput('100001'), '100001')
33
33
  assert.equal(normalizeCustomRechargeAmountInput('10.5a00'), '10500')
34
34
 
35
- assert.deepEqual(validateCustomRechargeAmount('9999'), {
35
+ assert.deepEqual(validateCustomRechargeAmount('99'), {
36
36
  valid: false,
37
- message: '充值金额不能低于10000元',
37
+ message: '充值金额不能低于100元',
38
38
  })
39
- assert.deepEqual(validateCustomRechargeAmount('50001'), {
39
+ assert.deepEqual(validateCustomRechargeAmount('10001'), {
40
40
  valid: false,
41
- message: '充值金额不能高于50000元',
41
+ message: '充值金额不能高于10000元',
42
42
  })
43
43
  assert.deepEqual(validateCustomRechargeAmount('abc'), {
44
44
  valid: false,
@@ -1,5 +1,5 @@
1
- export const CUSTOM_RECHARGE_AMOUNT_MIN = 10000
2
- export const CUSTOM_RECHARGE_AMOUNT_MAX = 50000
1
+ export const CUSTOM_RECHARGE_AMOUNT_MIN = 100
2
+ export const CUSTOM_RECHARGE_AMOUNT_MAX = 10000
3
3
 
4
4
  export type RechargeAmountItem = {
5
5
  token: number | string
@@ -13,7 +13,7 @@ export type CustomAmountValidation =
13
13
 
14
14
  export const CUSTOM_RECHARGE_AMOUNT_ITEM: RechargeAmountItem = {
15
15
  token: '自定义',
16
- amount: '1W 起充',
16
+ amount: '100 起充',
17
17
  custom: true,
18
18
  }
19
19
 
@@ -41,11 +41,11 @@ export function validateCustomRechargeAmount(value: string | number | undefined
41
41
  }
42
42
 
43
43
  if (amount < CUSTOM_RECHARGE_AMOUNT_MIN) {
44
- return { valid: false, message: '充值金额不能低于10000元' }
44
+ return { valid: false, message: '充值金额不能低于100元' }
45
45
  }
46
46
 
47
47
  if (amount > CUSTOM_RECHARGE_AMOUNT_MAX) {
48
- return { valid: false, message: '充值金额不能高于50000元' }
48
+ return { valid: false, message: '充值金额不能高于10000元' }
49
49
  }
50
50
 
51
51
  return { valid: true, amount }