@uxda/appkit 4.3.2 → 4.3.3
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/.eslintrc.mjs +7 -7
- package/COMPONENT_USAGE.md +1523 -1523
- package/PROJECT_DOCS.md +142 -142
- package/README.md +187 -187
- package/babel.config.js +12 -12
- package/dist/appkit.css +56 -25
- package/dist/assets/asset-DcH8Kg-2 +1 -0
- package/dist/index.js +194 -205
- package/package.json +79 -82
- package/project.config.json +15 -15
- package/project.tt.json +13 -13
- package/rollup.config.mjs +78 -78
- package/src/Appkit.ts +72 -72
- package/src/balance/api/endpoints.ts +133 -133
- package/src/balance/api/index.ts +118 -118
- package/src/balance/components/AccountView.vue +770 -770
- package/src/balance/components/BalanceCard.vue +210 -210
- package/src/balance/components/BalanceReminder.vue +84 -84
- package/src/balance/components/ConsumptionFilter.vue +218 -218
- package/src/balance/components/ConsumptionRules.vue +68 -68
- package/src/balance/components/DateFilter.vue +259 -259
- package/src/balance/components/DateRange.vue +111 -111
- package/src/balance/components/ListFilter.vue +62 -62
- package/src/balance/components/ListFilterPicker.vue +191 -191
- package/src/balance/components/PromoterCard.vue +307 -307
- package/src/balance/components/SecondBalance.vue +77 -77
- package/src/balance/components/Tip.vue +45 -45
- package/src/balance/components/index.ts +8 -8
- package/src/balance/types.ts +99 -99
- package/src/components/bt-cropper/index.vue +730 -730
- package/src/components/bt-cropper/utils/calcCropper.js +42 -42
- package/src/components/bt-cropper/utils/calcImagePosition.js +23 -23
- package/src/components/bt-cropper/utils/calcImageSize.js +37 -37
- package/src/components/bt-cropper/utils/calcPointDistance.js +12 -12
- package/src/components/bt-cropper/utils/calcRightAndBottom.js +7 -7
- package/src/components/bt-cropper/utils/ratio.js +3 -3
- package/src/components/bt-cropper/utils/tools.js +25 -25
- package/src/components/dd-area/index.vue +225 -225
- package/src/components/dd-icon/doc.md +21 -21
- package/src/components/dd-icon/index.vue +23 -23
- package/src/components/dd-notice-bar/index.vue +78 -78
- package/src/components/dd-search/doc.md +34 -34
- package/src/components/dd-search/index.vue +168 -168
- package/src/components/dd-selector/index.vue +124 -124
- package/src/components/dd-skeleton/doc.md +19 -19
- package/src/components/dd-skeleton/index.vue +36 -36
- package/src/global.ts +6 -6
- package/src/index.ts +101 -101
- package/src/main.scss +1 -1
- package/src/notice/api/endpoints.ts +54 -54
- package/src/notice/api/index.ts +121 -121
- package/src/notice/components/NoticeBanner.vue +247 -247
- package/src/notice/components/NoticeEntry.vue +99 -99
- package/src/notice/components/NoticeList.vue +311 -311
- package/src/notice/components/NoticeList2.vue +398 -240
- package/src/notice/components/NoticePopup.vue +163 -163
- package/src/notice/components/index.ts +6 -6
- package/src/notice/components/useCommonList.ts +86 -86
- package/src/notice/components/useNotice.ts +35 -35
- package/src/notice/index.ts +1 -1
- package/src/notice/types.ts +25 -25
- package/src/payment/api/config.ts +7 -7
- package/src/payment/api/endpoints.ts +96 -98
- package/src/payment/api/index.ts +107 -108
- package/src/payment/components/AmountPicker.vue +90 -90
- package/src/payment/components/RechargeResult.vue +69 -68
- package/src/payment/components/RechargeView.vue +191 -191
- package/src/payment/components/RightsPicker.vue +105 -105
- package/src/payment/components/TradeView.vue +363 -523
- package/src/payment/components/UserAgreement.vue +234 -234
- package/src/payment/components/index.ts +22 -22
- package/src/payment/index.ts +5 -5
- package/src/payment/services/index.ts +16 -16
- package/src/payment/services/invoke-recharge.ts +25 -25
- package/src/payment/services/request-payment.ts +130 -132
- package/src/payment/types.ts +33 -34
- package/src/register/components/SelfRegistration.vue +233 -233
- package/src/register/components/index.ts +2 -2
- package/src/scenarios/components/SharePoster.vue +364 -364
- package/src/scenarios/components/index.ts +2 -2
- package/src/scenarios/components/poster-paste.vue +93 -93
- package/src/scenarios/components/share-poster.md +273 -273
- package/src/shared/components/AppDrawer.vue +53 -53
- package/src/shared/components/AppVerify.vue +128 -128
- package/src/shared/components/DeviceVersion.vue +78 -78
- package/src/shared/components/EmptyView.vue +33 -33
- package/src/shared/components/OcrBusinessLicense.vue +137 -138
- package/src/shared/components/OcrIcon.vue +229 -229
- package/src/shared/components/PageHeader.vue +84 -84
- package/src/shared/components/index.ts +8 -8
- package/src/shared/composables/index.ts +9 -9
- package/src/shared/composables/useAmount.ts +46 -46
- package/src/shared/composables/useCountdown.ts +46 -46
- package/src/shared/composables/useCrypto.ts +76 -76
- package/src/shared/composables/useDeviceEnv.ts +26 -26
- package/src/shared/composables/useDragBox.ts +97 -97
- package/src/shared/composables/useEncode.ts +43 -43
- package/src/shared/composables/useLogger.ts +144 -144
- package/src/shared/composables/useSafeArea.ts +46 -46
- package/src/shared/composables/useTabbar.ts +24 -24
- package/src/shared/composables/useUpload.ts +61 -61
- package/src/shared/composables/useValidator.ts +32 -32
- package/src/shared/composables/useWxAuth.ts +48 -48
- package/src/shared/http/Http.ts +148 -149
- package/src/shared/http/index.ts +1 -1
- package/src/shared/http/types.ts +163 -163
- package/src/shared/index.ts +9 -9
- package/src/shared/tracking/directives/index.ts +40 -40
- package/src/shared/tracking/examples/page-tracking-template.vue +27 -27
- package/src/shared/weixin/index.ts +9 -9
- package/src/shared/weixin/jssdk.ts +103 -103
- package/src/shared/weixin/payment.ts +38 -38
- package/src/styles/vars.scss +3 -3
- package/src/user/api/endpoints.ts +17 -17
- package/src/user/api/index.ts +123 -123
- package/src/user/components/LoginSetting.vue +114 -114
- package/src/user/components/UserAuth.vue +218 -218
- package/src/user/components/UserBinding.vue +277 -277
- package/src/user/components/UserBindingSuccess.vue +80 -80
- package/src/user/components/UserEntry.vue +139 -139
- package/src/user/components/UserFeedback.vue +427 -427
- package/src/user/components/UserFeedbackEntry.vue +175 -175
- package/src/user/components/UserHeadCrop.vue +65 -65
- package/src/user/components/UserInfo.vue +709 -709
- package/src/user/components/UserResourceEmpty.vue +75 -75
- package/src/user/components/index.ts +23 -23
- package/src/user/index.ts +1 -1
- package/src/utils/utils.ts +33 -33
- package/tsconfig.json +30 -30
- package/types/global.d.ts +22 -22
- package/types/vue.d.ts +10 -10
- package/src/shared/components/OcrBank.vue +0 -229
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Grid, GridItem, Popup, ActionSheet, Checkbox, Button, Dialog, DatePicker, Form, FormItem, RadioGroup, Radio, Ellipsis, Skeleton, Cell, Input, Steps, Step } from '@nutui/nutui-taro';
|
|
2
2
|
import '@nutui/nutui-taro/dist/packages/button/style/css';
|
|
3
3
|
import '@nutui/nutui-taro/dist/packages/checkbox/style/css';
|
|
4
|
-
import { defineComponent, reactive,
|
|
4
|
+
import { defineComponent, reactive, createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createTextVNode, ref, computed, onUnmounted, resolveDirective, createCommentVNode, withDirectives, renderSlot, createVNode, normalizeStyle, unref, isRef, onMounted, createStaticVNode, watch, vShow, mergeModels, useModel, resolveComponent, vModelText, watchPostEffect, withModifiers } from 'vue';
|
|
5
5
|
import '@nutui/nutui-taro/dist/packages/grid/style/css';
|
|
6
6
|
import '@nutui/nutui-taro/dist/packages/griditem/style/css';
|
|
7
7
|
import Taro, { showModal, getSystemInfoSync, getMenuButtonBoundingClientRect, uploadFile, request as request$1, showToast, chooseMedia, chooseMessageFile, showLoading, hideLoading, getStorageSync, setStorageSync, getSystemInfo, getNetworkType, getEnv, getAccountInfoSync, getPerformance, onAppHide, useDidShow, onAppShow, onNetworkStatusChange, useRouter } from '@tarojs/taro';
|
|
@@ -9,7 +9,7 @@ import '@nutui/nutui-taro/dist/packages/popup/style/css';
|
|
|
9
9
|
import isMobilePhone from 'validator/es/lib/isMobilePhone';
|
|
10
10
|
import isIdentityCard from 'validator/es/lib/isIdentityCard';
|
|
11
11
|
import qs from 'qs';
|
|
12
|
-
import { NsForm, NsInput, NsButton, NsIcon, usePopup, useNutshell, NsButtonGroup, usePaging, NsPage, NsTabs,
|
|
12
|
+
import { NsForm, NsInput, NsButton, NsIcon, usePopup, useNutshell, NsButtonGroup, usePaging, NsPage, NsTabs, NsPageContent, NsSkeleton, NsRepeator, NsCard, NsEmpty, NsCheckbox } from '@uxda/nutshell/taro';
|
|
13
13
|
import '@nutui/nutui-taro/dist/packages/actionsheet/style/css';
|
|
14
14
|
import pako from 'pako';
|
|
15
15
|
import dsBridge from 'dsbridge';
|
|
@@ -657,8 +657,8 @@ script$K.__file = "src/shared/components/AppDrawer.vue";
|
|
|
657
657
|
const _hoisted_1$D = { class: "app-verify column" };
|
|
658
658
|
const _hoisted_2$s = { class: "caption" };
|
|
659
659
|
const _hoisted_3$m = { class: "number" };
|
|
660
|
-
const _hoisted_4$
|
|
661
|
-
const _hoisted_5$
|
|
660
|
+
const _hoisted_4$i = { class: "form-btn" };
|
|
661
|
+
const _hoisted_5$e = {
|
|
662
662
|
key: 1,
|
|
663
663
|
class: "caption"
|
|
664
664
|
};
|
|
@@ -738,7 +738,7 @@ var script$J = /* @__PURE__ */ defineComponent({
|
|
|
738
738
|
method: (value) => value.length === 6
|
|
739
739
|
}]
|
|
740
740
|
}, null, 8, ["modelValue", "rules"]),
|
|
741
|
-
createElementVNode("div", _hoisted_4$
|
|
741
|
+
createElementVNode("div", _hoisted_4$i, [
|
|
742
742
|
!sent.value ? withDirectives((openBlock(), createBlock(
|
|
743
743
|
unref(NsButton),
|
|
744
744
|
{
|
|
@@ -757,7 +757,7 @@ var script$J = /* @__PURE__ */ defineComponent({
|
|
|
757
757
|
]) : createCommentVNode("v-if", true),
|
|
758
758
|
sent.value ? (openBlock(), createElementBlock(
|
|
759
759
|
"div",
|
|
760
|
-
_hoisted_5$
|
|
760
|
+
_hoisted_5$e,
|
|
761
761
|
toDisplayString(countdown.value) + "s\u540E\u91CD\u65B0\u53D1\u9001",
|
|
762
762
|
1
|
|
763
763
|
/* TEXT */
|
|
@@ -1501,7 +1501,6 @@ const request = (config) => {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
}).catch((e) => {
|
|
1503
1503
|
console.log("request.catch===", e);
|
|
1504
|
-
reject(e);
|
|
1505
1504
|
});
|
|
1506
1505
|
});
|
|
1507
1506
|
};
|
|
@@ -1560,6 +1559,15 @@ function isApp() {
|
|
|
1560
1559
|
var __defProp = Object.defineProperty;
|
|
1561
1560
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1562
1561
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1562
|
+
var TrackingEventType = /* @__PURE__ */ ((TrackingEventType2) => {
|
|
1563
|
+
TrackingEventType2["PAGE_VIEW"] = "page_view";
|
|
1564
|
+
TrackingEventType2["PAGE_LEAVE"] = "page_leave";
|
|
1565
|
+
TrackingEventType2["APP_DEVICE_INFO"] = "app_device_info";
|
|
1566
|
+
TrackingEventType2["CLICK"] = "click";
|
|
1567
|
+
TrackingEventType2["CUSTOM"] = "custom";
|
|
1568
|
+
return TrackingEventType2;
|
|
1569
|
+
})(TrackingEventType || {});
|
|
1570
|
+
const { PAGE_VIEW, PAGE_LEAVE, CLICK, CUSTOM, APP_DEVICE_INFO } = TrackingEventType;
|
|
1563
1571
|
const DEFAULT_CONFIG = {
|
|
1564
1572
|
enabled: true,
|
|
1565
1573
|
debug: false,
|
|
@@ -2695,11 +2703,9 @@ const endpointsList$2 = {
|
|
|
2695
2703
|
certificateNo: params.user,
|
|
2696
2704
|
accountAuthFlag: params.accountAuthFlag || false,
|
|
2697
2705
|
channelCode: params.channelCode || null,
|
|
2698
|
-
payFinishJumpUrl: params.payFinishJumpUrl || null
|
|
2699
|
-
useCloudBean: params.useCloudBean || false
|
|
2706
|
+
payFinishJumpUrl: params.payFinishJumpUrl || null
|
|
2700
2707
|
}),
|
|
2701
2708
|
transform: (data) => {
|
|
2702
|
-
console.log(data, "data-----");
|
|
2703
2709
|
let json = null;
|
|
2704
2710
|
try {
|
|
2705
2711
|
json = JSON.parse(data.prePayStr);
|
|
@@ -2767,7 +2773,6 @@ const vendor$2 = {
|
|
|
2767
2773
|
title: data.msg,
|
|
2768
2774
|
icon: "none"
|
|
2769
2775
|
});
|
|
2770
|
-
reject(data.msg);
|
|
2771
2776
|
}
|
|
2772
2777
|
}).catch((e) => {
|
|
2773
2778
|
reject(e);
|
|
@@ -2931,8 +2936,6 @@ const requestBrandWCPayByBean = (params, Appcode = "") => {
|
|
|
2931
2936
|
}
|
|
2932
2937
|
});
|
|
2933
2938
|
}
|
|
2934
|
-
}).catch(() => {
|
|
2935
|
-
resolve(false);
|
|
2936
2939
|
});
|
|
2937
2940
|
});
|
|
2938
2941
|
};
|
|
@@ -2961,7 +2964,7 @@ const isIOS = () => {
|
|
|
2961
2964
|
const _hoisted_1$B = { class: "view recharge-view" };
|
|
2962
2965
|
const _hoisted_2$r = { class: "flex-grow" };
|
|
2963
2966
|
const _hoisted_3$l = { class: "amount-footer" };
|
|
2964
|
-
const _hoisted_4$
|
|
2967
|
+
const _hoisted_4$h = { class: "agreement" };
|
|
2965
2968
|
var script$E = /* @__PURE__ */ defineComponent({
|
|
2966
2969
|
__name: "RechargeView",
|
|
2967
2970
|
props: {
|
|
@@ -3065,7 +3068,7 @@ var script$E = /* @__PURE__ */ defineComponent({
|
|
|
3065
3068
|
}, null, 8, ["items", "selected"])
|
|
3066
3069
|
]),
|
|
3067
3070
|
createElementVNode("view", _hoisted_3$l, [
|
|
3068
|
-
createElementVNode("view", _hoisted_4$
|
|
3071
|
+
createElementVNode("view", _hoisted_4$h, [
|
|
3069
3072
|
createVNode(_component_nut_checkbox, {
|
|
3070
3073
|
modelValue: state.agreed,
|
|
3071
3074
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.agreed = $event)
|
|
@@ -3138,7 +3141,7 @@ const _hoisted_3$k = {
|
|
|
3138
3141
|
key: 0,
|
|
3139
3142
|
class: "caption"
|
|
3140
3143
|
};
|
|
3141
|
-
const _hoisted_4$
|
|
3144
|
+
const _hoisted_4$g = {
|
|
3142
3145
|
key: 1,
|
|
3143
3146
|
class: "caption"
|
|
3144
3147
|
};
|
|
@@ -3179,7 +3182,7 @@ var script$C = /* @__PURE__ */ defineComponent({
|
|
|
3179
3182
|
),
|
|
3180
3183
|
__props.payMethod == "bean" ? (openBlock(), createElementBlock("div", _hoisted_3$k, "\u6743\u76CA\u5DF2\u5230\u8D26")) : (openBlock(), createElementBlock(
|
|
3181
3184
|
"div",
|
|
3182
|
-
_hoisted_4$
|
|
3185
|
+
_hoisted_4$g,
|
|
3183
3186
|
toDisplayString(views[__props.type][1]) + "\u5C06\u57281\u5206\u949F\u4E4B\u5185\u5230\u8D26",
|
|
3184
3187
|
1
|
|
3185
3188
|
/* TEXT */
|
|
@@ -3326,8 +3329,8 @@ const _hoisted_3$i = {
|
|
|
3326
3329
|
key: 0,
|
|
3327
3330
|
class: "bean-buy"
|
|
3328
3331
|
};
|
|
3329
|
-
const _hoisted_4$
|
|
3330
|
-
const _hoisted_5$
|
|
3332
|
+
const _hoisted_4$f = { class: "left" };
|
|
3333
|
+
const _hoisted_5$d = {
|
|
3331
3334
|
key: 0,
|
|
3332
3335
|
class: "amount"
|
|
3333
3336
|
};
|
|
@@ -3337,25 +3340,17 @@ const _hoisted_6$9 = {
|
|
|
3337
3340
|
};
|
|
3338
3341
|
const _hoisted_7$6 = { class: "amount" };
|
|
3339
3342
|
const _hoisted_8$5 = ["src"];
|
|
3340
|
-
const _hoisted_9$4 = {
|
|
3341
|
-
key: 0,
|
|
3342
|
-
class: "balance-warning"
|
|
3343
|
-
};
|
|
3343
|
+
const _hoisted_9$4 = { class: "amount-footer" };
|
|
3344
3344
|
const _hoisted_10$3 = {
|
|
3345
|
-
key: 1,
|
|
3346
|
-
class: "balance-warning-tip"
|
|
3347
|
-
};
|
|
3348
|
-
const _hoisted_11$3 = { class: "amount-footer" };
|
|
3349
|
-
const _hoisted_12$3 = {
|
|
3350
3345
|
key: 0,
|
|
3351
3346
|
class: "agreement"
|
|
3352
3347
|
};
|
|
3353
|
-
const
|
|
3354
|
-
const
|
|
3355
|
-
const
|
|
3348
|
+
const _hoisted_11$3 = { class: "buy-amount" };
|
|
3349
|
+
const _hoisted_12$3 = { class: "left" };
|
|
3350
|
+
const _hoisted_13$2 = { class: "amount" };
|
|
3351
|
+
const _hoisted_14$2 = { class: "item" };
|
|
3352
|
+
const _hoisted_15$2 = { class: "item" };
|
|
3356
3353
|
const _hoisted_16$2 = { class: "item" };
|
|
3357
|
-
const _hoisted_17$2 = { class: "item" };
|
|
3358
|
-
const _hoisted_18$2 = { class: "item" };
|
|
3359
3354
|
var script$A = /* @__PURE__ */ defineComponent({
|
|
3360
3355
|
__name: "TradeView",
|
|
3361
3356
|
props: {
|
|
@@ -3388,28 +3383,8 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3388
3383
|
state.selected = selected;
|
|
3389
3384
|
selectBean.value = false;
|
|
3390
3385
|
};
|
|
3391
|
-
const extraPaymentAmount = computed(() => {
|
|
3392
|
-
if (!selectBean.value || !amounts.value[state.selected]) {
|
|
3393
|
-
return 0;
|
|
3394
|
-
}
|
|
3395
|
-
const paymentAmount = amounts.value[state.selected].paymentAmount || 0;
|
|
3396
|
-
const currentBalance = balance.value || 0;
|
|
3397
|
-
return Math.max(0, paymentAmount - currentBalance);
|
|
3398
|
-
});
|
|
3399
3386
|
const currentAmount = computed(() => {
|
|
3400
|
-
|
|
3401
|
-
return 0;
|
|
3402
|
-
}
|
|
3403
|
-
if (selectBean.value) {
|
|
3404
|
-
if (balance.value < amounts.value[state.selected].paymentAmount) {
|
|
3405
|
-
return extraPaymentAmount.value;
|
|
3406
|
-
}
|
|
3407
|
-
return 0;
|
|
3408
|
-
}
|
|
3409
|
-
return amounts.value[state.selected].paymentAmount || 0;
|
|
3410
|
-
});
|
|
3411
|
-
const isCombinedPayment = computed(() => {
|
|
3412
|
-
return selectBean.value && amounts.value[state.selected] && balance.value < amounts.value[state.selected].paymentAmount;
|
|
3387
|
+
return amounts.value[state.selected] && !selectBean.value ? amounts.value[state.selected].paymentAmount : 0;
|
|
3413
3388
|
});
|
|
3414
3389
|
onMounted(() => {
|
|
3415
3390
|
const $http = useHttp$2({ Appcode: props.headerApp, Tenant: props.tenant });
|
|
@@ -3423,28 +3398,24 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3423
3398
|
const showDialog = ref(false);
|
|
3424
3399
|
async function beanPay() {
|
|
3425
3400
|
const $http = useHttp$2({ Appcode: props.headerApp, Tenant: props.tenant });
|
|
3426
|
-
|
|
3427
|
-
const response = await $http.post(
|
|
3428
|
-
`/payment/paymentCaseConfig/purchase/${amounts.value[state.selected].id}`
|
|
3429
|
-
);
|
|
3401
|
+
$http.post(`/payment/paymentCaseConfig/purchase/${amounts.value[state.selected].id}`).then((response) => {
|
|
3430
3402
|
if (response) {
|
|
3431
3403
|
showDialog.value = false;
|
|
3432
3404
|
emit("complete", { result: response, type: "bean" });
|
|
3433
3405
|
} else {
|
|
3434
3406
|
showToast({
|
|
3435
|
-
title: response
|
|
3407
|
+
title: response.message,
|
|
3436
3408
|
icon: "none"
|
|
3437
3409
|
});
|
|
3438
3410
|
}
|
|
3439
|
-
}
|
|
3440
|
-
showToast({
|
|
3441
|
-
title: error?.message || "\u652F\u4ED8\u5931\u8D25",
|
|
3442
|
-
icon: "none"
|
|
3443
|
-
});
|
|
3444
|
-
}
|
|
3411
|
+
});
|
|
3445
3412
|
}
|
|
3446
|
-
|
|
3447
|
-
if (
|
|
3413
|
+
const onPayClick = () => {
|
|
3414
|
+
if (selectBean.value) {
|
|
3415
|
+
showDialog.value = true;
|
|
3416
|
+
return;
|
|
3417
|
+
}
|
|
3418
|
+
if (!selectBean.value && !state.agreed) {
|
|
3448
3419
|
showToast({
|
|
3449
3420
|
title: "\u8BF7\u52FE\u9009\u300A\u5927\u9053\u4E91\u5E73\u53F0\u4E91\u8C46\u5145\u503C\u534F\u8BAE\u300B",
|
|
3450
3421
|
icon: "none"
|
|
@@ -3463,75 +3434,40 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3463
3434
|
}
|
|
3464
3435
|
requestBrandWCPayByBean({
|
|
3465
3436
|
caseConfigId: amounts.value[state.selected].id,
|
|
3466
|
-
amount:
|
|
3437
|
+
amount: amounts.value[state.selected].paymentAmount,
|
|
3467
3438
|
app: "loankitMp",
|
|
3468
3439
|
tenant: props.tenant,
|
|
3469
3440
|
accountAuthFlag: false,
|
|
3470
3441
|
channelCode: "centergzh",
|
|
3471
3442
|
payFinishJumpUrl: props.payFinishJumpUrl,
|
|
3472
|
-
fromMini: !!params.from
|
|
3473
|
-
useCloudBean: isCombinedPayment.value
|
|
3443
|
+
fromMini: !!params.from
|
|
3474
3444
|
}).then((result) => {
|
|
3445
|
+
console.log(result, "------requestBrandWCPay");
|
|
3475
3446
|
state.buttonLoading = false;
|
|
3476
3447
|
if (typeof result === "boolean" && result) {
|
|
3477
3448
|
window.location.href = props.payFinishJumpUrl;
|
|
3478
3449
|
} else {
|
|
3479
|
-
emit("complete", {
|
|
3480
|
-
result,
|
|
3481
|
-
type: isCombinedPayment.value ? "combined" : "wePay"
|
|
3482
|
-
});
|
|
3450
|
+
emit("complete", { result, type: "wePay" });
|
|
3483
3451
|
}
|
|
3484
|
-
}).catch((error) => {
|
|
3485
|
-
state.buttonLoading = false;
|
|
3486
|
-
showToast({
|
|
3487
|
-
title: error.message || "\u652F\u4ED8\u5931\u8D25",
|
|
3488
|
-
icon: "none"
|
|
3489
|
-
});
|
|
3490
3452
|
});
|
|
3491
3453
|
} else {
|
|
3492
3454
|
wx.login({
|
|
3493
3455
|
success({ code }) {
|
|
3494
|
-
requestPaymentByBean(
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
},
|
|
3502
|
-
props.headerApp
|
|
3503
|
-
).then((result) => {
|
|
3456
|
+
requestPaymentByBean({
|
|
3457
|
+
caseConfigId: amounts.value[state.selected].id,
|
|
3458
|
+
amount: amounts.value[state.selected].paymentAmount,
|
|
3459
|
+
app: props.app,
|
|
3460
|
+
tenant: props.tenant,
|
|
3461
|
+
user: code
|
|
3462
|
+
}, props.headerApp).then((result) => {
|
|
3504
3463
|
state.buttonLoading = false;
|
|
3505
3464
|
if (result) {
|
|
3506
|
-
emit("complete", {
|
|
3507
|
-
result: true,
|
|
3508
|
-
type: isCombinedPayment.value ? "combined" : "wePay"
|
|
3509
|
-
});
|
|
3465
|
+
emit("complete", { result: true, type: "wePay" });
|
|
3510
3466
|
}
|
|
3511
|
-
}).catch((error) => {
|
|
3512
|
-
state.buttonLoading = false;
|
|
3513
|
-
showToast({
|
|
3514
|
-
title: error.message || "\u652F\u4ED8\u5931\u8D25",
|
|
3515
|
-
icon: "none"
|
|
3516
|
-
});
|
|
3517
|
-
});
|
|
3518
|
-
},
|
|
3519
|
-
fail() {
|
|
3520
|
-
state.buttonLoading = false;
|
|
3521
|
-
showToast({
|
|
3522
|
-
title: "\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",
|
|
3523
|
-
icon: "none"
|
|
3524
3467
|
});
|
|
3525
3468
|
}
|
|
3526
3469
|
});
|
|
3527
3470
|
}
|
|
3528
|
-
}
|
|
3529
|
-
const onPayClick = () => {
|
|
3530
|
-
if (selectBean.value && !isCombinedPayment.value) {
|
|
3531
|
-
showDialog.value = true;
|
|
3532
|
-
return;
|
|
3533
|
-
}
|
|
3534
|
-
proceedWechatPayment();
|
|
3535
3471
|
};
|
|
3536
3472
|
return (_ctx, _cache) => {
|
|
3537
3473
|
const _component_nut_checkbox = Checkbox;
|
|
@@ -3546,7 +3482,7 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3546
3482
|
onChange: onAmountSelect
|
|
3547
3483
|
}, null, 8, ["items", "selected"]),
|
|
3548
3484
|
amounts.value[state.selected] ? (openBlock(), createElementBlock("div", _hoisted_3$i, [
|
|
3549
|
-
createElementVNode("div", _hoisted_4$
|
|
3485
|
+
createElementVNode("div", _hoisted_4$f, [
|
|
3550
3486
|
_cache[4] || (_cache[4] = createElementVNode(
|
|
3551
3487
|
"div",
|
|
3552
3488
|
{ class: "title" },
|
|
@@ -3554,28 +3490,29 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3554
3490
|
-1
|
|
3555
3491
|
/* CACHED */
|
|
3556
3492
|
)),
|
|
3557
|
-
!selectBean.value
|
|
3493
|
+
!selectBean.value ? (openBlock(), createElementBlock(
|
|
3558
3494
|
"div",
|
|
3559
|
-
_hoisted_5$
|
|
3560
|
-
"
|
|
3495
|
+
_hoisted_5$d,
|
|
3496
|
+
"\u4F59\u989D " + toDisplayString(unref(formatAmount)(balance.value || 0)),
|
|
3561
3497
|
1
|
|
3562
3498
|
/* TEXT */
|
|
3563
3499
|
)) : (openBlock(), createElementBlock(
|
|
3564
3500
|
"div",
|
|
3565
3501
|
_hoisted_6$9,
|
|
3566
|
-
"
|
|
3502
|
+
"\u6263\u51CF\u540E\u4F59\u989D " + toDisplayString(unref(formatAmount)(balance.value - amounts.value[state.selected].paymentAmount)),
|
|
3567
3503
|
1
|
|
3568
3504
|
/* TEXT */
|
|
3569
3505
|
))
|
|
3570
3506
|
]),
|
|
3571
|
-
|
|
3507
|
+
balance.value >= amounts.value[state.selected].paymentAmount ? (openBlock(), createElementBlock("div", {
|
|
3508
|
+
key: 0,
|
|
3572
3509
|
class: "right",
|
|
3573
3510
|
onClick: _cache[0] || (_cache[0] = ($event) => selectBean.value = !selectBean.value)
|
|
3574
3511
|
}, [
|
|
3575
3512
|
createElementVNode(
|
|
3576
3513
|
"div",
|
|
3577
3514
|
_hoisted_7$6,
|
|
3578
|
-
"
|
|
3515
|
+
"-" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].paymentAmount || 0)),
|
|
3579
3516
|
1
|
|
3580
3517
|
/* TEXT */
|
|
3581
3518
|
),
|
|
@@ -3583,20 +3520,12 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3583
3520
|
class: "icon",
|
|
3584
3521
|
src: selectBean.value ? "https://cdn.ddjf.com/static/images/appkit/select.svg" : "https://cdn.ddjf.com/static/images/appkit/not-select.svg"
|
|
3585
3522
|
}, null, 8, _hoisted_8$5)
|
|
3586
|
-
]),
|
|
3587
|
-
isCombinedPayment.value ? (openBlock(), createElementBlock(
|
|
3588
|
-
"div",
|
|
3589
|
-
_hoisted_9$4,
|
|
3590
|
-
" \u4E91\u8C46\u4F59\u989D\u4E0D\u8DB3,\u8FD8\u9700\u989D\u5916\u652F\u4ED8" + toDisplayString(unref(formatAmount)(extraPaymentAmount.value)) + "\u5143 ",
|
|
3591
|
-
1
|
|
3592
|
-
/* TEXT */
|
|
3593
|
-
)) : createCommentVNode("v-if", true)
|
|
3523
|
+
])) : createCommentVNode("v-if", true)
|
|
3594
3524
|
])) : createCommentVNode("v-if", true),
|
|
3595
|
-
isCombinedPayment.value ? (openBlock(), createElementBlock("div", _hoisted_10$3, " \u8BF7\u5728\u652F\u4ED8\u5B8C\u6210\u524D\u786E\u4FDD\u5143\u8C46\u4F59\u989D\u4E0D\u88AB\u6D88\u8017,\u5426\u5219\u672C\u6B21\u6743\u76CA\u53EF\u80FD\u8D2D\u4E70\u5931\u8D25 ")) : createCommentVNode("v-if", true),
|
|
3596
3525
|
renderSlot(_ctx.$slots, "banner")
|
|
3597
3526
|
]),
|
|
3598
|
-
createElementVNode("view",
|
|
3599
|
-
!selectBean.value
|
|
3527
|
+
createElementVNode("view", _hoisted_9$4, [
|
|
3528
|
+
!selectBean.value ? (openBlock(), createElementBlock("view", _hoisted_10$3, [
|
|
3600
3529
|
createVNode(_component_nut_checkbox, {
|
|
3601
3530
|
modelValue: state.agreed,
|
|
3602
3531
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.agreed = $event)
|
|
@@ -3624,14 +3553,14 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3624
3553
|
/* STABLE */
|
|
3625
3554
|
}, 8, ["modelValue"])
|
|
3626
3555
|
])) : createCommentVNode("v-if", true),
|
|
3627
|
-
createElementVNode("div",
|
|
3628
|
-
createElementVNode("div",
|
|
3556
|
+
createElementVNode("div", _hoisted_11$3, [
|
|
3557
|
+
createElementVNode("div", _hoisted_12$3, [
|
|
3629
3558
|
_cache[8] || (_cache[8] = createTextVNode(
|
|
3630
3559
|
" \u5F85\u652F\u4ED8\uFF1A ",
|
|
3631
3560
|
-1
|
|
3632
3561
|
/* CACHED */
|
|
3633
3562
|
)),
|
|
3634
|
-
createElementVNode("span",
|
|
3563
|
+
createElementVNode("span", _hoisted_13$2, [
|
|
3635
3564
|
_cache[7] || (_cache[7] = createElementVNode(
|
|
3636
3565
|
"i",
|
|
3637
3566
|
null,
|
|
@@ -3682,22 +3611,22 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3682
3611
|
[
|
|
3683
3612
|
createElementVNode(
|
|
3684
3613
|
"div",
|
|
3685
|
-
|
|
3686
|
-
"
|
|
3614
|
+
_hoisted_14$2,
|
|
3615
|
+
"\u4E91\u8C46\u6263\u51CF\uFF1A" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].paymentAmount || 0)),
|
|
3687
3616
|
1
|
|
3688
3617
|
/* TEXT */
|
|
3689
3618
|
),
|
|
3690
3619
|
createElementVNode(
|
|
3691
3620
|
"div",
|
|
3692
|
-
|
|
3693
|
-
"
|
|
3621
|
+
_hoisted_15$2,
|
|
3622
|
+
"\u6743\u76CA\u589E\u52A0\uFF1A" + toDisplayString(unref(formatAmount)(amounts.value[state.selected].priceRightNum || 0)) + "\u7B14",
|
|
3694
3623
|
1
|
|
3695
3624
|
/* TEXT */
|
|
3696
3625
|
),
|
|
3697
3626
|
createElementVNode(
|
|
3698
3627
|
"div",
|
|
3699
|
-
|
|
3700
|
-
"
|
|
3628
|
+
_hoisted_16$2,
|
|
3629
|
+
"\u6263\u51CF\u540E\u4E91\u8C46\u4F59\u989D\uFF1A" + toDisplayString(unref(formatAmount)(balance.value - amounts.value[state.selected].paymentAmount)),
|
|
3701
3630
|
1
|
|
3702
3631
|
/* TEXT */
|
|
3703
3632
|
)
|
|
@@ -3727,8 +3656,8 @@ const components = {
|
|
|
3727
3656
|
const _hoisted_1$w = { class: "account-card" };
|
|
3728
3657
|
const _hoisted_2$n = { class: "card" };
|
|
3729
3658
|
const _hoisted_3$h = { class: "card-row" };
|
|
3730
|
-
const _hoisted_4$
|
|
3731
|
-
const _hoisted_5$
|
|
3659
|
+
const _hoisted_4$e = { class: "card-row-left" };
|
|
3660
|
+
const _hoisted_5$c = { class: "bean-nums number" };
|
|
3732
3661
|
const _hoisted_6$8 = { class: "card-row-right" };
|
|
3733
3662
|
var script$z = /* @__PURE__ */ defineComponent({
|
|
3734
3663
|
__name: "BalanceCard",
|
|
@@ -3775,7 +3704,7 @@ var script$z = /* @__PURE__ */ defineComponent({
|
|
|
3775
3704
|
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
3776
3705
|
createElementVNode("div", _hoisted_2$n, [
|
|
3777
3706
|
createElementVNode("div", _hoisted_3$h, [
|
|
3778
|
-
createElementVNode("div", _hoisted_4$
|
|
3707
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
3779
3708
|
_cache[0] || (_cache[0] = createElementVNode(
|
|
3780
3709
|
"div",
|
|
3781
3710
|
{ class: "bean-box" },
|
|
@@ -3793,7 +3722,7 @@ var script$z = /* @__PURE__ */ defineComponent({
|
|
|
3793
3722
|
)),
|
|
3794
3723
|
createElementVNode(
|
|
3795
3724
|
"div",
|
|
3796
|
-
_hoisted_5$
|
|
3725
|
+
_hoisted_5$c,
|
|
3797
3726
|
toDisplayString(unref(formatAmount)(balance.value.total || 0)),
|
|
3798
3727
|
1
|
|
3799
3728
|
/* TEXT */
|
|
@@ -3828,7 +3757,7 @@ var script$z = /* @__PURE__ */ defineComponent({
|
|
|
3828
3757
|
])
|
|
3829
3758
|
])
|
|
3830
3759
|
]),
|
|
3831
|
-
createCommentVNode(' <div class="line"></div>\n <div class="card-row">\n <div class="card-row-left desc">\u6743\u76CA\u4F7F\u7528\u65F6\u81EA\u52A8\u6263\u51CF\u4E91\u8C46</div>\n <div class="card-row-right">\n <div class="pay" v-track-click @click="gotoRecharge">\n <div>\u5145\u503C</div>\n <img\n class="pay-icon"\n src="https://cdn.ddjf.com/static/images/bpms-workBench/bean-right.png"\n />\n </div>\n </div>\n </div> ')
|
|
3760
|
+
createCommentVNode(' <div class="line"></div>\r\n <div class="card-row">\r\n <div class="card-row-left desc">\u6743\u76CA\u4F7F\u7528\u65F6\u81EA\u52A8\u6263\u51CF\u4E91\u8C46</div>\r\n <div class="card-row-right">\r\n <div class="pay" v-track-click @click="gotoRecharge">\r\n <div>\u5145\u503C</div>\r\n <img\r\n class="pay-icon"\r\n src="https://cdn.ddjf.com/static/images/bpms-workBench/bean-right.png"\r\n />\r\n </div>\r\n </div>\r\n </div> ')
|
|
3832
3761
|
])
|
|
3833
3762
|
]);
|
|
3834
3763
|
};
|
|
@@ -3855,8 +3784,8 @@ const consumptionDirections = ["\u5168\u90E8", "\u6536\u5165", "\u652F\u51FA"];
|
|
|
3855
3784
|
const _hoisted_1$v = { class: "consumption-filter" };
|
|
3856
3785
|
const _hoisted_2$m = { class: "consumption-filter-content" };
|
|
3857
3786
|
const _hoisted_3$g = { class: "title" };
|
|
3858
|
-
const _hoisted_4$
|
|
3859
|
-
const _hoisted_5$
|
|
3787
|
+
const _hoisted_4$d = { class: "info" };
|
|
3788
|
+
const _hoisted_5$b = ["onClick"];
|
|
3860
3789
|
const _hoisted_6$7 = { class: "consumption-filter-btn spa-between" };
|
|
3861
3790
|
var script$y = /* @__PURE__ */ defineComponent({
|
|
3862
3791
|
__name: "ConsumptionFilter",
|
|
@@ -3935,7 +3864,7 @@ var script$y = /* @__PURE__ */ defineComponent({
|
|
|
3935
3864
|
1
|
|
3936
3865
|
/* TEXT */
|
|
3937
3866
|
),
|
|
3938
|
-
createElementVNode("div", _hoisted_4$
|
|
3867
|
+
createElementVNode("div", _hoisted_4$d, [
|
|
3939
3868
|
(openBlock(true), createElementBlock(
|
|
3940
3869
|
Fragment,
|
|
3941
3870
|
null,
|
|
@@ -3944,7 +3873,7 @@ var script$y = /* @__PURE__ */ defineComponent({
|
|
|
3944
3873
|
onClick: () => onFilterSectionClick(index, it.code),
|
|
3945
3874
|
class: normalizeClass([getItemClass(index, it.code), "info-item"]),
|
|
3946
3875
|
key: i
|
|
3947
|
-
}, toDisplayString(typeof it === "string" ? it : it.name), 11, _hoisted_5$
|
|
3876
|
+
}, toDisplayString(typeof it === "string" ? it : it.name), 11, _hoisted_5$b);
|
|
3948
3877
|
}),
|
|
3949
3878
|
128
|
|
3950
3879
|
/* KEYED_FRAGMENT */
|
|
@@ -3994,7 +3923,7 @@ script$y.__file = "src/balance/components/ConsumptionFilter.vue";
|
|
|
3994
3923
|
const _hoisted_1$u = { class: "appkit-date-filter" };
|
|
3995
3924
|
const _hoisted_2$l = { class: "content" };
|
|
3996
3925
|
const _hoisted_3$f = { class: "time" };
|
|
3997
|
-
const _hoisted_4$
|
|
3926
|
+
const _hoisted_4$c = { class: "buttons spa-between" };
|
|
3998
3927
|
var script$x = /* @__PURE__ */ defineComponent({
|
|
3999
3928
|
__name: "DateFilter",
|
|
4000
3929
|
props: {
|
|
@@ -4117,7 +4046,7 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
4117
4046
|
)
|
|
4118
4047
|
])
|
|
4119
4048
|
]),
|
|
4120
|
-
createElementVNode("div", _hoisted_4$
|
|
4049
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
4121
4050
|
createElementVNode("div", {
|
|
4122
4051
|
class: "btn",
|
|
4123
4052
|
onClick: reset
|
|
@@ -4293,8 +4222,8 @@ script$u.__file = "src/balance/components/Tip.vue";
|
|
|
4293
4222
|
const _hoisted_1$q = { class: "account-view" };
|
|
4294
4223
|
const _hoisted_2$k = { class: "scroll-content" };
|
|
4295
4224
|
const _hoisted_3$e = { class: "row jusify-right" };
|
|
4296
|
-
const _hoisted_4$
|
|
4297
|
-
const _hoisted_5$
|
|
4225
|
+
const _hoisted_4$b = { class: "balance" };
|
|
4226
|
+
const _hoisted_5$a = { class: "bean-box spa-between" };
|
|
4298
4227
|
const _hoisted_6$6 = { class: "bean-counts spa-between" };
|
|
4299
4228
|
const _hoisted_7$5 = { class: "counts number" };
|
|
4300
4229
|
const _hoisted_8$4 = {
|
|
@@ -4556,8 +4485,8 @@ var script$t = /* @__PURE__ */ defineComponent({
|
|
|
4556
4485
|
[_directive_track_click]
|
|
4557
4486
|
])
|
|
4558
4487
|
]),
|
|
4559
|
-
createElementVNode("div", _hoisted_4$
|
|
4560
|
-
createElementVNode("div", _hoisted_5$
|
|
4488
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
4489
|
+
createElementVNode("div", _hoisted_5$a, [
|
|
4561
4490
|
_cache[9] || (_cache[9] = createElementVNode(
|
|
4562
4491
|
"div",
|
|
4563
4492
|
{ class: "bean-img" },
|
|
@@ -5030,8 +4959,8 @@ script$t.__file = "src/balance/components/AccountView.vue";
|
|
|
5030
4959
|
const _hoisted_1$p = { class: "balance-reminder" };
|
|
5031
4960
|
const _hoisted_2$j = { class: "body" };
|
|
5032
4961
|
const _hoisted_3$d = { class: "footer" };
|
|
5033
|
-
const _hoisted_4$
|
|
5034
|
-
const _hoisted_5$
|
|
4962
|
+
const _hoisted_4$a = { class: "col" };
|
|
4963
|
+
const _hoisted_5$9 = { class: "col" };
|
|
5035
4964
|
var script$s = /* @__PURE__ */ defineComponent({
|
|
5036
4965
|
__name: "BalanceReminder",
|
|
5037
4966
|
props: {
|
|
@@ -5072,7 +5001,7 @@ var script$s = /* @__PURE__ */ defineComponent({
|
|
|
5072
5001
|
)
|
|
5073
5002
|
]),
|
|
5074
5003
|
createElementVNode("div", _hoisted_3$d, [
|
|
5075
|
-
createElementVNode("div", _hoisted_4$
|
|
5004
|
+
createElementVNode("div", _hoisted_4$a, [
|
|
5076
5005
|
createVNode(_component_nut_button, {
|
|
5077
5006
|
class: "cancel-button",
|
|
5078
5007
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", false)),
|
|
@@ -5089,7 +5018,7 @@ var script$s = /* @__PURE__ */ defineComponent({
|
|
|
5089
5018
|
/* STABLE */
|
|
5090
5019
|
})
|
|
5091
5020
|
]),
|
|
5092
|
-
createElementVNode("div", _hoisted_5$
|
|
5021
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
5093
5022
|
withDirectives((openBlock(), createBlock(_component_nut_button, {
|
|
5094
5023
|
block: "",
|
|
5095
5024
|
class: "recharge-button",
|
|
@@ -5227,8 +5156,8 @@ script$r.__file = "src/balance/components/DateRange.vue";
|
|
|
5227
5156
|
const _hoisted_1$n = { class: "list-filter-picker" };
|
|
5228
5157
|
const _hoisted_2$i = { class: "list-filter-picker-content" };
|
|
5229
5158
|
const _hoisted_3$c = { class: "title" };
|
|
5230
|
-
const _hoisted_4$
|
|
5231
|
-
const _hoisted_5$
|
|
5159
|
+
const _hoisted_4$9 = { class: "info" };
|
|
5160
|
+
const _hoisted_5$8 = ["onClick"];
|
|
5232
5161
|
const _hoisted_6$5 = { class: "list-filter-picker-btn spa-between" };
|
|
5233
5162
|
var script$q = /* @__PURE__ */ defineComponent({
|
|
5234
5163
|
__name: "ListFilterPicker",
|
|
@@ -5305,7 +5234,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
5305
5234
|
1
|
|
5306
5235
|
/* TEXT */
|
|
5307
5236
|
),
|
|
5308
|
-
createElementVNode("div", _hoisted_4$
|
|
5237
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
5309
5238
|
(openBlock(true), createElementBlock(
|
|
5310
5239
|
Fragment,
|
|
5311
5240
|
null,
|
|
@@ -5314,7 +5243,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
5314
5243
|
onClick: () => onFilterSectionClick(item.name, it.value),
|
|
5315
5244
|
class: normalizeClass([getItemClass(item.name, it.value), "info-item"]),
|
|
5316
5245
|
key: i
|
|
5317
|
-
}, toDisplayString(typeof it === "string" ? it : it.label), 11, _hoisted_5$
|
|
5246
|
+
}, toDisplayString(typeof it === "string" ? it : it.label), 11, _hoisted_5$8);
|
|
5318
5247
|
}),
|
|
5319
5248
|
128
|
|
5320
5249
|
/* KEYED_FRAGMENT */
|
|
@@ -5430,8 +5359,8 @@ const _hoisted_1$m = {
|
|
|
5430
5359
|
};
|
|
5431
5360
|
const _hoisted_2$h = { class: "promoter-card-hd-num number" };
|
|
5432
5361
|
const _hoisted_3$b = ["src"];
|
|
5433
|
-
const _hoisted_4$
|
|
5434
|
-
const _hoisted_5$
|
|
5362
|
+
const _hoisted_4$8 = { class: "promoter-card-ft" };
|
|
5363
|
+
const _hoisted_5$7 = {
|
|
5435
5364
|
key: 0,
|
|
5436
5365
|
class: "promoter-card-ft-item"
|
|
5437
5366
|
};
|
|
@@ -5589,8 +5518,8 @@ var script$o = /* @__PURE__ */ defineComponent({
|
|
|
5589
5518
|
])), [
|
|
5590
5519
|
[_directive_track_click]
|
|
5591
5520
|
]) : createCommentVNode("v-if", true),
|
|
5592
|
-
createElementVNode("div", _hoisted_4$
|
|
5593
|
-
__props.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
5521
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
5522
|
+
__props.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
|
|
5594
5523
|
__props.\u663E\u793A\u4E0B\u7EA7\u5206\u9500\u5546 ? (openBlock(), createElementBlock(
|
|
5595
5524
|
Fragment,
|
|
5596
5525
|
{ key: 0 },
|
|
@@ -6032,8 +5961,8 @@ script$l.__file = "src/components/dd-selector/index.vue";
|
|
|
6032
5961
|
const _hoisted_1$j = { class: "self-registration" };
|
|
6033
5962
|
const _hoisted_2$f = { class: "self-registration-body" };
|
|
6034
5963
|
const _hoisted_3$a = ["src"];
|
|
6035
|
-
const _hoisted_4$
|
|
6036
|
-
const _hoisted_5$
|
|
5964
|
+
const _hoisted_4$7 = { class: "self-registration__input" };
|
|
5965
|
+
const _hoisted_5$6 = { class: "self-registration-bottom" };
|
|
6037
5966
|
var script$k = /* @__PURE__ */ defineComponent({
|
|
6038
5967
|
__name: "SelfRegistration",
|
|
6039
5968
|
props: {
|
|
@@ -6193,7 +6122,7 @@ var script$k = /* @__PURE__ */ defineComponent({
|
|
|
6193
6122
|
required: ""
|
|
6194
6123
|
}, {
|
|
6195
6124
|
default: withCtx(() => [
|
|
6196
|
-
createElementVNode("div", _hoisted_4$
|
|
6125
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
6197
6126
|
withDirectives(createElementVNode(
|
|
6198
6127
|
"input",
|
|
6199
6128
|
{
|
|
@@ -6344,7 +6273,7 @@ var script$k = /* @__PURE__ */ defineComponent({
|
|
|
6344
6273
|
/* STABLE */
|
|
6345
6274
|
})
|
|
6346
6275
|
]),
|
|
6347
|
-
createElementVNode("div", _hoisted_5$
|
|
6276
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
6348
6277
|
withDirectives((openBlock(), createBlock(_component_nut_button, {
|
|
6349
6278
|
block: "",
|
|
6350
6279
|
type: "primary",
|
|
@@ -6655,7 +6584,7 @@ var script$i = /* @__PURE__ */ defineComponent({
|
|
|
6655
6584
|
emits: ["detail", "close", "view", "popup", "hasBanner"],
|
|
6656
6585
|
setup(__props, { emit: __emit }) {
|
|
6657
6586
|
const props = __props;
|
|
6658
|
-
const {
|
|
6587
|
+
const { noticeClick } = useNotice();
|
|
6659
6588
|
const bannerMessages = ref([]);
|
|
6660
6589
|
const popMessages = ref([]);
|
|
6661
6590
|
const activeKey = ref(0);
|
|
@@ -7108,8 +7037,8 @@ const _hoisted_3$7 = {
|
|
|
7108
7037
|
key: 0,
|
|
7109
7038
|
class: "wrapper"
|
|
7110
7039
|
};
|
|
7111
|
-
const _hoisted_4$
|
|
7112
|
-
const _hoisted_5$
|
|
7040
|
+
const _hoisted_4$6 = ["onClick"];
|
|
7041
|
+
const _hoisted_5$5 = { class: "time" };
|
|
7113
7042
|
const _hoisted_6$3 = {
|
|
7114
7043
|
key: 0,
|
|
7115
7044
|
class: "notice-list-label"
|
|
@@ -7242,7 +7171,7 @@ var script$f = /* @__PURE__ */ defineComponent({
|
|
|
7242
7171
|
createElementVNode("div", null, [
|
|
7243
7172
|
createElementVNode(
|
|
7244
7173
|
"div",
|
|
7245
|
-
_hoisted_5$
|
|
7174
|
+
_hoisted_5$5,
|
|
7246
7175
|
toDisplayString(formatMinutes(item.receiveTime)),
|
|
7247
7176
|
1
|
|
7248
7177
|
/* TEXT */
|
|
@@ -7299,7 +7228,7 @@ var script$f = /* @__PURE__ */ defineComponent({
|
|
|
7299
7228
|
/* CLASS */
|
|
7300
7229
|
)
|
|
7301
7230
|
])
|
|
7302
|
-
], 10, _hoisted_4$
|
|
7231
|
+
], 10, _hoisted_4$6)), [
|
|
7303
7232
|
[_directive_track_click, "\u6D88\u606F\u8BE6\u60C5"]
|
|
7304
7233
|
]);
|
|
7305
7234
|
}),
|
|
@@ -7341,16 +7270,21 @@ var script$f = /* @__PURE__ */ defineComponent({
|
|
|
7341
7270
|
|
|
7342
7271
|
script$f.__file = "src/notice/components/NoticeList.vue";
|
|
7343
7272
|
|
|
7344
|
-
const _hoisted_1$d =
|
|
7273
|
+
const _hoisted_1$d = ["onClick"];
|
|
7274
|
+
const _hoisted_2$9 = {
|
|
7275
|
+
key: 0,
|
|
7276
|
+
class: "custom-title-dot"
|
|
7277
|
+
};
|
|
7278
|
+
const _hoisted_3$6 = {
|
|
7345
7279
|
key: 0,
|
|
7346
7280
|
class: "read-all"
|
|
7347
7281
|
};
|
|
7348
|
-
const
|
|
7282
|
+
const _hoisted_4$5 = {
|
|
7349
7283
|
key: 0,
|
|
7350
7284
|
class: "news-item-title-icon",
|
|
7351
|
-
src: "https://cdn.ddjf.com/static/images/
|
|
7285
|
+
src: "https://cdn.ddjf.com/static/images/fnfundkit/ic_msg_system_notice.png"
|
|
7352
7286
|
};
|
|
7353
|
-
const
|
|
7287
|
+
const _hoisted_5$4 = { class: "news-item-time" };
|
|
7354
7288
|
var script$e = /* @__PURE__ */ defineComponent({
|
|
7355
7289
|
__name: "NoticeList2",
|
|
7356
7290
|
props: {
|
|
@@ -7361,9 +7295,28 @@ var script$e = /* @__PURE__ */ defineComponent({
|
|
|
7361
7295
|
emits: ["itemClick"],
|
|
7362
7296
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
7363
7297
|
const props = __props;
|
|
7298
|
+
const tabList = ref([
|
|
7299
|
+
{
|
|
7300
|
+
label: "\u5168\u90E8",
|
|
7301
|
+
value: "\u5168\u90E8"
|
|
7302
|
+
},
|
|
7303
|
+
{
|
|
7304
|
+
label: "\u4E1A\u52A1\u6D88\u606F",
|
|
7305
|
+
value: "\u4E1A\u52A1\u6D88\u606F"
|
|
7306
|
+
},
|
|
7307
|
+
{
|
|
7308
|
+
label: "\u7CFB\u7EDF\u516C\u544A",
|
|
7309
|
+
value: "\u7CFB\u7EDF\u516C\u544A"
|
|
7310
|
+
},
|
|
7311
|
+
{
|
|
7312
|
+
label: "\u672A\u8BFB",
|
|
7313
|
+
value: "\u672A\u8BFB"
|
|
7314
|
+
}
|
|
7315
|
+
]);
|
|
7364
7316
|
const $http = useHttp$1(), \u663E\u793A\u9AA8\u67B6\u5C4F = ref(true);
|
|
7365
7317
|
useDidShow(() => {
|
|
7366
7318
|
nextPage(1);
|
|
7319
|
+
getNotice();
|
|
7367
7320
|
});
|
|
7368
7321
|
const state = reactive({
|
|
7369
7322
|
search: "",
|
|
@@ -7416,6 +7369,7 @@ var script$e = /* @__PURE__ */ defineComponent({
|
|
|
7416
7369
|
}
|
|
7417
7370
|
function itemClick(item) {
|
|
7418
7371
|
read(item);
|
|
7372
|
+
getNotice();
|
|
7419
7373
|
emits("itemClick", item);
|
|
7420
7374
|
}
|
|
7421
7375
|
function read(item) {
|
|
@@ -7443,9 +7397,24 @@ var script$e = /* @__PURE__ */ defineComponent({
|
|
|
7443
7397
|
});
|
|
7444
7398
|
});
|
|
7445
7399
|
} finally {
|
|
7400
|
+
getNotice();
|
|
7446
7401
|
hideLoading();
|
|
7447
7402
|
}
|
|
7448
7403
|
}
|
|
7404
|
+
const noticeShow = ref(false);
|
|
7405
|
+
async function getNotice() {
|
|
7406
|
+
const appkitOptions = useAppKitOptions();
|
|
7407
|
+
const $http2 = useHttp$1();
|
|
7408
|
+
$http2.get("/cas/msg/count-unread", {
|
|
7409
|
+
deviceType: 2,
|
|
7410
|
+
appCode: props.app,
|
|
7411
|
+
tenantId: appkitOptions.tenant(),
|
|
7412
|
+
userId: props.userId
|
|
7413
|
+
}).then((result) => {
|
|
7414
|
+
if (typeof result === "object") return;
|
|
7415
|
+
noticeShow.value = result > 0;
|
|
7416
|
+
});
|
|
7417
|
+
}
|
|
7449
7418
|
const emits = __emit;
|
|
7450
7419
|
__expose({
|
|
7451
7420
|
readAll
|
|
@@ -7461,7 +7430,7 @@ var script$e = /* @__PURE__ */ defineComponent({
|
|
|
7461
7430
|
class: normalizeClass(["tabContainer", { inH5: unref(isWeb)() }])
|
|
7462
7431
|
},
|
|
7463
7432
|
[
|
|
7464
|
-
createCommentVNode(' <ns-
|
|
7433
|
+
createCommentVNode(' <ns-tabs\r\n v-model="state.tab"\r\n fill="#fff"\r\n square\r\n size="xl"\r\n style="height: 46px"\r\n @change="onTabChange"\r\n >\r\n <ns-tabs-item key="\u5168\u90E8" tab="\u5168\u90E8"></ns-tabs-item>\r\n <ns-tabs-item key="\u4E1A\u52A1\u6D88\u606F" tab="\u4E1A\u52A1\u6D88\u606F"></ns-tabs-item>\r\n <ns-tabs-item key="\u7CFB\u7EDF\u516C\u544A" tab="\u7CFB\u7EDF\u516C\u544A"></ns-tabs-item>\r\n <ns-tabs-item key="\u672A\u8BFB" tab="\u672A\u8BFB"></ns-tabs-item>\r\n </ns-tabs> '),
|
|
7465
7434
|
createVNode(unref(NsTabs), {
|
|
7466
7435
|
modelValue: state.tab,
|
|
7467
7436
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.tab = $event),
|
|
@@ -7469,30 +7438,50 @@ var script$e = /* @__PURE__ */ defineComponent({
|
|
|
7469
7438
|
square: "",
|
|
7470
7439
|
size: "xl",
|
|
7471
7440
|
style: { "height": "46px" },
|
|
7472
|
-
|
|
7441
|
+
class: "news-tab",
|
|
7442
|
+
items: tabList.value
|
|
7473
7443
|
}, {
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7444
|
+
titles: withCtx(() => [
|
|
7445
|
+
(openBlock(true), createElementBlock(
|
|
7446
|
+
Fragment,
|
|
7447
|
+
null,
|
|
7448
|
+
renderList(tabList.value, (item) => {
|
|
7449
|
+
return openBlock(), createElementBlock("div", {
|
|
7450
|
+
class: normalizeClass([{ customLine: state.tab === item.value }, "nut-tabs__titles-item custom-tab-item"]),
|
|
7451
|
+
key: item.value,
|
|
7452
|
+
onClick: ($event) => {
|
|
7453
|
+
state.tab = item.value;
|
|
7454
|
+
onTabChange();
|
|
7455
|
+
}
|
|
7456
|
+
}, [
|
|
7457
|
+
createElementVNode(
|
|
7458
|
+
"div",
|
|
7459
|
+
{
|
|
7460
|
+
class: normalizeClass(["custom-title", { active: state.tab === item.value }])
|
|
7461
|
+
},
|
|
7462
|
+
[
|
|
7463
|
+
createElementVNode(
|
|
7464
|
+
"div",
|
|
7465
|
+
null,
|
|
7466
|
+
toDisplayString(item.label),
|
|
7467
|
+
1
|
|
7468
|
+
/* TEXT */
|
|
7469
|
+
),
|
|
7470
|
+
item.value === "\u672A\u8BFB" && noticeShow.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, " \u2022\u2022\u2022 ")) : createCommentVNode("v-if", true)
|
|
7471
|
+
],
|
|
7472
|
+
2
|
|
7473
|
+
/* CLASS */
|
|
7474
|
+
)
|
|
7475
|
+
], 10, _hoisted_1$d);
|
|
7476
|
+
}),
|
|
7477
|
+
128
|
|
7478
|
+
/* KEYED_FRAGMENT */
|
|
7479
|
+
))
|
|
7491
7480
|
]),
|
|
7492
7481
|
_: 1
|
|
7493
7482
|
/* STABLE */
|
|
7494
|
-
}, 8, ["modelValue"]),
|
|
7495
|
-
state.list.length > 0 ? (openBlock(), createElementBlock("div",
|
|
7483
|
+
}, 8, ["modelValue", "items"]),
|
|
7484
|
+
state.list.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
7496
7485
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
7497
7486
|
class: "btn",
|
|
7498
7487
|
onClick: readAll
|
|
@@ -7549,7 +7538,7 @@ var script$e = /* @__PURE__ */ defineComponent({
|
|
|
7549
7538
|
class: "news-item-title"
|
|
7550
7539
|
},
|
|
7551
7540
|
[
|
|
7552
|
-
item.\u662F\u516C\u544A ? (openBlock(), createElementBlock("img",
|
|
7541
|
+
item.\u662F\u516C\u544A ? (openBlock(), createElementBlock("img", _hoisted_4$5)) : createCommentVNode("v-if", true),
|
|
7553
7542
|
createTextVNode(
|
|
7554
7543
|
" " + toDisplayString(item.\u6807\u9898),
|
|
7555
7544
|
1
|
|
@@ -7570,7 +7559,7 @@ var script$e = /* @__PURE__ */ defineComponent({
|
|
|
7570
7559
|
}, null, 8, ["style", "content"]),
|
|
7571
7560
|
createElementVNode(
|
|
7572
7561
|
"div",
|
|
7573
|
-
|
|
7562
|
+
_hoisted_5$4,
|
|
7574
7563
|
toDisplayString(item.\u65F6\u95F4),
|
|
7575
7564
|
1
|
|
7576
7565
|
/* TEXT */
|