@uxda/appkit 4.2.32 → 4.2.36
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
|
@@ -916,7 +916,11 @@ function useHttp$3() {
|
|
|
916
916
|
|
|
917
917
|
var script$E = /* @__PURE__ */ defineComponent({
|
|
918
918
|
__name: "DeviceVersion",
|
|
919
|
+
props: {
|
|
920
|
+
versions: { type: String, required: false, default: "{}" }
|
|
921
|
+
},
|
|
919
922
|
setup(__props) {
|
|
923
|
+
const props = __props;
|
|
920
924
|
const showAlert = ref(false);
|
|
921
925
|
const safeArea = useSafeArea();
|
|
922
926
|
const topStype = computed(() => {
|
|
@@ -924,6 +928,10 @@ var script$E = /* @__PURE__ */ defineComponent({
|
|
|
924
928
|
});
|
|
925
929
|
const recommendVersions = ref();
|
|
926
930
|
const getPropertieByCode = debounce(async () => {
|
|
931
|
+
if (props?.versions !== "{}") {
|
|
932
|
+
recommendVersions.value = JSON.parse(props.versions);
|
|
933
|
+
return;
|
|
934
|
+
}
|
|
927
935
|
if (recommendVersions.value) return;
|
|
928
936
|
const $http = useHttp$3();
|
|
929
937
|
$http.get("/cas/properties/getPropertie", {
|
|
@@ -1926,7 +1934,9 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
1926
1934
|
});
|
|
1927
1935
|
onMounted(() => {
|
|
1928
1936
|
const $http = useHttp$2();
|
|
1929
|
-
$http.get(endpoints.\u83B7\u53D6\u589E\u503C\u6743\u76CA\u7C7B\u76EE
|
|
1937
|
+
$http.get(endpoints.\u83B7\u53D6\u589E\u503C\u6743\u76CA\u7C7B\u76EE, {
|
|
1938
|
+
rightCode: props.app === "cloudkitPro" ? "riskQueryCompany" : "riskQueryMulti"
|
|
1939
|
+
}).then((res) => {
|
|
1930
1940
|
balance.value = res.balance;
|
|
1931
1941
|
amounts.value = res.paymentCaseConfigVOS;
|
|
1932
1942
|
});
|
|
@@ -3036,7 +3046,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
3036
3046
|
null,
|
|
3037
3047
|
renderList(balance.value.privileges.aiapprove, (item, index) => {
|
|
3038
3048
|
return openBlock(), createElementBlock("div", {
|
|
3039
|
-
class: "item",
|
|
3049
|
+
class: "item star-item",
|
|
3040
3050
|
key: index
|
|
3041
3051
|
}, [
|
|
3042
3052
|
createElementVNode(
|
package/package.json
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<div class="rights-card" v-if="balance.privileges?.aiapprove">
|
|
42
42
|
<div class="title">AI审批权益</div>
|
|
43
43
|
<div class="list">
|
|
44
|
-
<div class="item" v-for="(item, index) in balance.privileges.aiapprove" :key="index">
|
|
44
|
+
<div class="item star-item" v-for="(item, index) in balance.privileges.aiapprove" :key="index">
|
|
45
45
|
<div class="item-count">{{ formatAmount(item.count || 0) }}{{ item.unit }}</div>
|
|
46
46
|
<div class="item-title">
|
|
47
47
|
<div>{{ item.title }}</div>
|
|
@@ -111,7 +111,9 @@ const currentAmount = computed(() => {
|
|
|
111
111
|
|
|
112
112
|
onMounted(() => {
|
|
113
113
|
const $http = useHttp()
|
|
114
|
-
$http.get<any[]>(endpoints
|
|
114
|
+
$http.get<any[]>(endpoints.获取增值权益类目, {
|
|
115
|
+
rightCode: props.app === 'cloudkitPro' ? 'riskQueryCompany' : 'riskQueryMulti',
|
|
116
|
+
}).then((res: any) => {
|
|
115
117
|
balance.value = res.balance
|
|
116
118
|
amounts.value = res.paymentCaseConfigVOS
|
|
117
119
|
})
|
|
@@ -11,6 +11,15 @@ import Taro, { getSystemInfoSync } from '@tarojs/taro'
|
|
|
11
11
|
import { useHttp } from '../../balance/api'
|
|
12
12
|
import debounce from 'lodash-es/debounce'
|
|
13
13
|
|
|
14
|
+
const props = withDefaults(
|
|
15
|
+
defineProps<{
|
|
16
|
+
versions?: string
|
|
17
|
+
}>(),
|
|
18
|
+
{
|
|
19
|
+
versions: '{}',
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
|
|
14
23
|
const showAlert = ref(false)
|
|
15
24
|
const safeArea = useSafeArea()
|
|
16
25
|
|
|
@@ -21,6 +30,12 @@ const topStype = computed(() => {
|
|
|
21
30
|
const recommendVersions = ref()
|
|
22
31
|
// 获取系统配置 - 小程序推荐版本
|
|
23
32
|
const getPropertieByCode = debounce(async () => {
|
|
33
|
+
if (props?.versions !== '{}') {
|
|
34
|
+
recommendVersions.value = JSON.parse(props.versions)
|
|
35
|
+
|
|
36
|
+
return
|
|
37
|
+
}
|
|
38
|
+
|
|
24
39
|
if (recommendVersions.value) return
|
|
25
40
|
|
|
26
41
|
const $http = useHttp()
|