@uxda/appkit 4.1.42 → 4.1.44
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
|
@@ -3540,7 +3540,10 @@ var script$m = /* @__PURE__ */ defineComponent({
|
|
|
3540
3540
|
|
|
3541
3541
|
script$m.__file = "src/balance/components/ListFilter.vue";
|
|
3542
3542
|
|
|
3543
|
-
const _hoisted_1$i = {
|
|
3543
|
+
const _hoisted_1$i = {
|
|
3544
|
+
key: 0,
|
|
3545
|
+
class: "promoter-card"
|
|
3546
|
+
};
|
|
3544
3547
|
const _hoisted_2$d = {
|
|
3545
3548
|
key: 0,
|
|
3546
3549
|
class: "promoter-card-tab"
|
|
@@ -3575,6 +3578,7 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3575
3578
|
"rebate"
|
|
3576
3579
|
],
|
|
3577
3580
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
3581
|
+
const props = __props;
|
|
3578
3582
|
const tab = ref("person");
|
|
3579
3583
|
const promoter = ref({
|
|
3580
3584
|
total: 0,
|
|
@@ -3590,20 +3594,23 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3590
3594
|
$http.get(endpoints$1.\u83B7\u53D6\u63A8\u5E7F\u65B9\u8D26\u6237\u4FE1\u606F, {
|
|
3591
3595
|
useCase: tab.value
|
|
3592
3596
|
}).then((data) => {
|
|
3593
|
-
promoter.value.
|
|
3597
|
+
promoter.value.balance = data?.balance || 0;
|
|
3594
3598
|
promoter.value.totalIncome = data?.totalIncome || 0;
|
|
3595
3599
|
promoter.value.totalRebateIncome = data?.totalRebateIncome || 0;
|
|
3596
3600
|
});
|
|
3597
3601
|
}
|
|
3598
3602
|
const emits = __emit;
|
|
3599
3603
|
useDidShow(() => {
|
|
3600
|
-
loadPromoter();
|
|
3604
|
+
Object.keys(props.applyRecord)?.length && loadPromoter();
|
|
3605
|
+
});
|
|
3606
|
+
watch(() => props.applyRecord, () => {
|
|
3607
|
+
Object.keys(props.applyRecord)?.length && loadPromoter();
|
|
3601
3608
|
});
|
|
3602
3609
|
__expose({
|
|
3603
3610
|
reload: loadPromoter
|
|
3604
3611
|
});
|
|
3605
3612
|
return (_ctx, _cache) => {
|
|
3606
|
-
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
3613
|
+
return _ctx.applyRecord.distributorFlag === "Y" || _ctx.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
3607
3614
|
_ctx.useCase === "company" && _ctx.isAdmin ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
3608
3615
|
createElementVNode(
|
|
3609
3616
|
"div",
|
|
@@ -3634,7 +3641,7 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3634
3641
|
createElementVNode(
|
|
3635
3642
|
"div",
|
|
3636
3643
|
_hoisted_3$8,
|
|
3637
|
-
toDisplayString(promoter.value.
|
|
3644
|
+
toDisplayString(promoter.value.balance),
|
|
3638
3645
|
1
|
|
3639
3646
|
/* TEXT */
|
|
3640
3647
|
),
|
|
@@ -3722,7 +3729,7 @@ var script$l = /* @__PURE__ */ defineComponent({
|
|
|
3722
3729
|
])
|
|
3723
3730
|
])) : createCommentVNode("v-if", true)
|
|
3724
3731
|
])
|
|
3725
|
-
]);
|
|
3732
|
+
])) : createCommentVNode("v-if", true);
|
|
3726
3733
|
};
|
|
3727
3734
|
}
|
|
3728
3735
|
});
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="promoter-card">
|
|
2
|
+
<div class="promoter-card" v-if="applyRecord.distributorFlag === 'Y' || applyRecord.accessCheckStatus === 'Y'">
|
|
3
3
|
<div class="promoter-card-tab" v-if="useCase === 'company' && isAdmin">
|
|
4
4
|
<div class="promoter-card-tab-item" @click="onTabChange('person')" :class="{ focus: tab === 'person' }">个人</div>
|
|
5
5
|
<div class="promoter-card-tab-item" @click="onTabChange('company')" :class="{ focus: tab === 'company' }">企业</div>
|
|
6
6
|
</div>
|
|
7
7
|
<div class="promoter-card-hd" @click="emits('blance', tab)"
|
|
8
8
|
v-if="applyRecord.distributorFlag === 'Y' || applyRecord.accessCheckStatus === 'Y'">
|
|
9
|
-
<div class="promoter-card-hd-num">{{ promoter.
|
|
9
|
+
<div class="promoter-card-hd-num">{{ promoter.balance }}</div>
|
|
10
10
|
<div class="promoter-card-hd-info">可提现余额(元)</div>
|
|
11
11
|
<img class="arrow-img" src="https://cdn.ddjf.com/static/images/appkit/arrow.png" alt="">
|
|
12
12
|
</div>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<script setup lang="ts">
|
|
35
|
-
import { ref } from 'vue'
|
|
35
|
+
import { ref, watch } from 'vue'
|
|
36
36
|
import { endpoints, useHttp } from '../api'
|
|
37
37
|
import { Promoter } from '../types'
|
|
38
38
|
import { useDidShow } from '@tarojs/taro'
|
|
@@ -68,7 +68,7 @@ async function loadPromoter() {
|
|
|
68
68
|
useCase: tab.value,
|
|
69
69
|
})
|
|
70
70
|
.then((data) => {
|
|
71
|
-
promoter.value.
|
|
71
|
+
promoter.value.balance = data?.balance || 0
|
|
72
72
|
promoter.value.totalIncome = data?.totalIncome || 0
|
|
73
73
|
promoter.value.totalRebateIncome = data?.totalRebateIncome || 0
|
|
74
74
|
})
|
|
@@ -90,7 +90,10 @@ const emits = defineEmits([
|
|
|
90
90
|
])
|
|
91
91
|
|
|
92
92
|
useDidShow(() => {
|
|
93
|
-
loadPromoter()
|
|
93
|
+
Object.keys(props.applyRecord)?.length && loadPromoter()
|
|
94
|
+
})
|
|
95
|
+
watch(() => props.applyRecord, () => {
|
|
96
|
+
Object.keys(props.applyRecord)?.length && loadPromoter()
|
|
94
97
|
})
|
|
95
98
|
|
|
96
99
|
defineExpose({
|