@uxda/appkit 4.1.23 → 4.1.25

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/appkit.css CHANGED
@@ -623,14 +623,14 @@ page {
623
623
  top: 11px;
624
624
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCA0MiA0MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggb3BhY2l0eT0iMC4wMSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MSA0MUgxVjFINDFWNDFaIiBmaWxsPSIjRDhEOEQ4IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utb3BhY2l0eT0iMC4wMSIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTIzLjM1NjEgMjAuOTk5OUwzMy45NjM3IDMxLjYwNzJDMzQuNjE0NiAzMi4yNTgxIDM0LjYxNDYgMzMuMzEzNCAzMy45NjM3IDMzLjk2NDJDMzMuMzQyNSAzNC41ODU1IDMyLjM1MjcgMzQuNjEzOCAzMS42OTc5IDM0LjA0ODlMMjAuOTk5NCAyMy4zNTY2TDEwLjM5MzUgMzMuOTY0MkM5Ljc0MjY1IDM0LjYxNTEgOC42ODczOCAzNC42MTUxIDguMDM2NSAzMy45NjQyQzcuNDE1MTkgMzMuMzQyOSA3LjM4Njk3IDMyLjM1MzIgNy45NTE3OSAzMS42OTg0TDE4LjY0MjggMjAuOTk5OUw4LjAzNjUgMTAuMzk0QzcuMzg1NjMgOS43NDMxNCA3LjM4NTYzIDguNjg3ODcgOC4wMzY1IDguMDM2OTlDOC42NTc3OSA3LjQxNTY4IDkuNjQ3NTQgNy4zODc0NiAxMC4zMDIzIDcuOTUyMjdMMjAuOTk5NCAxOC42NDMzTDMxLjYwNjcgOC4wMzY5OUMzMi4yNTc2IDcuMzg2MTIgMzMuMzEyOSA3LjM4NjEyIDMzLjk2MzcgOC4wMzY5OUMzNC41ODUgOC42NTgyOCAzNC42MTMzIDkuNjQ4MDMgMzQuMDQ4NSAxMC4zMDI4TDIzLjM1NjEgMjAuOTk5OVoiIGZpbGw9IiMxNzFBMUQiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS1vcGFjaXR5PSIwLjAxIi8+Cjwvc3ZnPgo=");
625
625
  }
626
- .appkit-date-filter {
626
+ .consumption-date-filter {
627
627
  height: 100%;
628
628
  display: flex;
629
629
  flex-direction: column;
630
630
  width: 100%;
631
631
  position: relative;
632
632
  }
633
- .appkit-date-filter .date-filter-header {
633
+ .consumption-date-filter .date-filter-header {
634
634
  text-align: center;
635
635
  height: 44px;
636
636
  line-height: 44px;
@@ -638,42 +638,42 @@ page {
638
638
  font-size: 17px;
639
639
  background-color: #f5f5f5;
640
640
  }
641
- .appkit-date-filter .content {
641
+ .consumption-date-filter .content {
642
642
  flex: 1;
643
643
  margin: 15px;
644
644
  overflow-y: scroll;
645
645
  color: #353535;
646
646
  font-size: 13px;
647
647
  }
648
- .appkit-date-filter .content .title {
648
+ .consumption-date-filter .content .title {
649
649
  opacity: 0.6;
650
650
  line-height: 18px;
651
651
  }
652
- .appkit-date-filter .content .info {
652
+ .consumption-date-filter .content .info {
653
653
  display: grid;
654
654
  grid-template-columns: 1fr 1fr 1fr;
655
655
  grid-gap: 10px;
656
656
  margin: 10px 0;
657
657
  }
658
- .appkit-date-filter .content .info .item {
658
+ .consumption-date-filter .content .info .item {
659
659
  height: 30px;
660
660
  line-height: 30px;
661
661
  border: 1px solid #ccc;
662
662
  border-radius: 6px;
663
663
  text-align: center;
664
664
  }
665
- .appkit-date-filter .content .info .current {
665
+ .consumption-date-filter .content .info .current {
666
666
  border: 1px solid;
667
667
  border-image-source: linear-gradient(180deg, rgba(239, 208, 130, 0.8) 0%, rgba(255, 185, 120, 0.8) 100%);
668
668
  background: linear-gradient(180deg, rgba(239, 208, 130, 0.8) 0%, rgba(255, 185, 120, 0.8) 100%), linear-gradient(180deg, #fff7e3 0%, #fefde6 100%);
669
669
  }
670
- .appkit-date-filter .buttons {
671
- margin: 32px 15px 0 15px;
670
+ .consumption-date-filter .buttons {
671
+ margin: 0 15px;
672
672
  display: flex;
673
673
  justify-content: space-between;
674
674
  align-items: center;
675
675
  }
676
- .appkit-date-filter .buttons .btn {
676
+ .consumption-date-filter .buttons .btn {
677
677
  flex: 1;
678
678
  height: 40px;
679
679
  line-height: 40px;
@@ -684,22 +684,22 @@ page {
684
684
  font-size: 16px;
685
685
  border-radius: 6px;
686
686
  }
687
- .appkit-date-filter .buttons .confirm {
687
+ .consumption-date-filter .buttons .confirm {
688
688
  margin-left: 11px;
689
689
  color: #000;
690
690
  border: none;
691
691
  background: linear-gradient(90deg, #ffebc1 0%, #ffd7a7 52.29%, #ffb875 100%);
692
692
  }
693
- .appkit-date-filter .time {
693
+ .consumption-date-filter .time {
694
694
  display: flex;
695
695
  justify-content: flex-start;
696
696
  align-items: center;
697
697
  margin: 10px 0 30px 0;
698
698
  }
699
- .appkit-date-filter .time .line {
699
+ .consumption-date-filter .time .line {
700
700
  margin: 0 8px;
701
701
  }
702
- .appkit-date-filter .time .item {
702
+ .consumption-date-filter .time .item {
703
703
  height: 30px;
704
704
  line-height: 30px;
705
705
  padding: 0 15px;
@@ -710,16 +710,13 @@ page {
710
710
  background: rgba(245, 245, 245, 0.8);
711
711
  border-radius: 6px;
712
712
  }
713
- .appkit-date-filter .time .current {
713
+ .consumption-date-filter .time .current {
714
714
  border: 1px solid #353535;
715
715
  }
716
- .appkit-date-filter .bottom {
716
+ .consumption-date-filter .bottom {
717
717
  height: 32px;
718
718
  background: #fff;
719
719
  }
720
- .nut-overlay.date-filter-picker-overlay {
721
- height: 100vh;
722
- }
723
720
  .consumption-rules .title {
724
721
  line-height: 16px;
725
722
  font-weight: 500;
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import '@nutui/nutui-taro/dist/packages/griditem/style/css';
7
7
  import Taro, { useDidShow, useRouter } from '@tarojs/taro';
8
8
  import '@nutui/nutui-taro/dist/packages/popup/style/css';
9
9
  import { isIdentityCard, isMobilePhone } from 'validator';
10
- import { NsForm, NsInput, NsButton, NsIcon, usePopup, useNutshell } from '@uxda/nutshell/taro';
10
+ import { NsForm, NsInput, NsButton, NsIcon, useNutshell } from '@uxda/nutshell/taro';
11
11
  import debounce from 'lodash/debounce';
12
12
  import '@nutui/nutui-taro/dist/packages/dialog/style/css';
13
13
  import '@nutui/nutui-taro/dist/packages/datepicker/style/css';
@@ -723,7 +723,6 @@ const appKitOptions = {
723
723
  tenant: () => "",
724
724
  token: () => "",
725
725
  tempToken: () => "",
726
- tempAppcode: () => "",
727
726
  baseUrl: () => "",
728
727
  401() {
729
728
  },
@@ -1403,7 +1402,7 @@ var script$A = /* @__PURE__ */ defineComponent({
1403
1402
  state.selected = selected;
1404
1403
  };
1405
1404
  onMounted(() => {
1406
- const $http = useHttp$2({ Appcode: props.app, Tenant: props.tenant });
1405
+ const $http = useHttp$2({ Appcode: props.app !== "cloudkitPro" ? props.app : "", Tenant: props.tenant });
1407
1406
  $http.get(endpoints.\u83B7\u53D6\u5145\u503C\u91D1\u989D\u5217\u8868, {
1408
1407
  app: props.app,
1409
1408
  tenant: props.tenant
@@ -2235,7 +2234,7 @@ var script$u = /* @__PURE__ */ defineComponent({
2235
2234
 
2236
2235
  script$u.__file = "src/balance/components/ConsumptionFilter.vue";
2237
2236
 
2238
- const _hoisted_1$s = { class: "appkit-date-filter" };
2237
+ const _hoisted_1$s = { class: "consumption-date-filter" };
2239
2238
  const _hoisted_2$o = /* @__PURE__ */ createElementVNode(
2240
2239
  "div",
2241
2240
  { class: "date-filter-header" },
@@ -2275,7 +2274,7 @@ var script$t = /* @__PURE__ */ defineComponent({
2275
2274
  emits: ["complete", "reset"],
2276
2275
  setup(__props, { emit: __emit }) {
2277
2276
  const props = __props;
2278
- const emit = __emit, state = usePopup();
2277
+ const emit = __emit;
2279
2278
  watch(
2280
2279
  () => `${props.from}${props.to}`,
2281
2280
  () => {
@@ -2289,10 +2288,6 @@ var script$t = /* @__PURE__ */ defineComponent({
2289
2288
  const minDate = ref();
2290
2289
  const maxDate = ref(/* @__PURE__ */ new Date());
2291
2290
  const datePickerOpen = ref(false);
2292
- state.beforeClose = () => {
2293
- datePickerOpen.value = false;
2294
- return true;
2295
- };
2296
2291
  function reset() {
2297
2292
  emit("reset");
2298
2293
  }
@@ -2311,11 +2306,6 @@ var script$t = /* @__PURE__ */ defineComponent({
2311
2306
  result.to = time;
2312
2307
  }
2313
2308
  datePickerOpen.value = false;
2314
- state.couldClose = true;
2315
- }
2316
- function onDatePickerCancel() {
2317
- datePickerOpen.value = false;
2318
- state.couldClose = true;
2319
2309
  }
2320
2310
  function switchDateInput(shift) {
2321
2311
  if (shift === "from") {
@@ -2328,7 +2318,6 @@ var script$t = /* @__PURE__ */ defineComponent({
2328
2318
  focusedDate.value = new Date(result[shift]);
2329
2319
  focused.value = shift;
2330
2320
  datePickerOpen.value = true;
2331
- state.couldClose = false;
2332
2321
  }
2333
2322
  return (_ctx, _cache) => {
2334
2323
  const _component_nut_date_picker = DatePicker;
@@ -2374,10 +2363,8 @@ var script$t = /* @__PURE__ */ defineComponent({
2374
2363
  _hoisted_7$6,
2375
2364
  createVNode(_component_nut_popup, {
2376
2365
  visible: datePickerOpen.value,
2377
- "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => datePickerOpen.value = $event),
2378
- class: "appkit-date-filter-picker-popup",
2379
- position: "bottom",
2380
- "overlay-class": "appkit-date-filter-picker-overlay"
2366
+ "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => datePickerOpen.value = $event),
2367
+ position: "bottom"
2381
2368
  }, {
2382
2369
  default: withCtx(() => [
2383
2370
  createVNode(_component_nut_date_picker, {
@@ -2387,7 +2374,7 @@ var script$t = /* @__PURE__ */ defineComponent({
2387
2374
  "max-date": maxDate.value,
2388
2375
  "is-show-chinese": false,
2389
2376
  "three-dimensional": false,
2390
- onCancel: onDatePickerCancel,
2377
+ onCancel: _cache[3] || (_cache[3] = ($event) => datePickerOpen.value = false),
2391
2378
  onConfirm: onDatePickerComplete
2392
2379
  }, null, 8, ["modelValue", "min-date", "max-date"])
2393
2380
  ]),
@@ -3263,17 +3250,12 @@ var script$n = /* @__PURE__ */ defineComponent({
3263
3250
  const $n = useNutshell();
3264
3251
  const model = useModel(__props, "modelValue");
3265
3252
  const openDateRangePicker = () => {
3266
- const child = ref();
3267
3253
  $n.sheet({
3268
3254
  component: script$t,
3269
- ref: child,
3270
3255
  props: {
3271
3256
  from: model.value.from,
3272
3257
  to: model.value.to
3273
3258
  },
3274
- modal: true,
3275
- // 不允许点击 overlay 关闭弹窗
3276
- mask: true,
3277
3259
  onComplete(result) {
3278
3260
  model.value = {
3279
3261
  from: result.from,
@@ -7824,10 +7806,6 @@ const $app = {
7824
7806
  const appKitOptions = useAppKitOptions();
7825
7807
  appKitOptions.tempToken = token;
7826
7808
  },
7827
- setTempAppcode: (appcode) => {
7828
- const appKitOptions = useAppKitOptions();
7829
- appKitOptions.tempAppcode = appcode;
7830
- },
7831
7809
  requestPayment: (options) => {
7832
7810
  },
7833
7811
  invokeRecharge: (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.1.23",
3
+ "version": "4.1.25",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",