@uxda/appkit 4.1.50 → 4.1.54
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
|
@@ -203,6 +203,7 @@
|
|
|
203
203
|
height: 100%;
|
|
204
204
|
display: flex;
|
|
205
205
|
flex-direction: column;
|
|
206
|
+
--nut-primary-color: #017fff;
|
|
206
207
|
}
|
|
207
208
|
.recharge-view .flex-grow {
|
|
208
209
|
flex-grow: 1;
|
|
@@ -331,6 +332,7 @@
|
|
|
331
332
|
height: 100%;
|
|
332
333
|
display: flex;
|
|
333
334
|
flex-direction: column;
|
|
335
|
+
--nut-primary-color: #017fff;
|
|
334
336
|
}
|
|
335
337
|
.recharge-view2 .flex-grow {
|
|
336
338
|
flex-grow: 1;
|
|
@@ -1260,22 +1262,37 @@ page {
|
|
|
1260
1262
|
margin-left: 4px;
|
|
1261
1263
|
}
|
|
1262
1264
|
.promoter-card {
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
+
position: relative;
|
|
1266
|
+
padding: 20px;
|
|
1267
|
+
background: #fff;
|
|
1265
1268
|
box-sizing: border-box;
|
|
1266
1269
|
margin: 0 auto;
|
|
1267
1270
|
border-radius: 15px;
|
|
1268
1271
|
}
|
|
1272
|
+
.promoter-card .icon {
|
|
1273
|
+
font-size: 10px;
|
|
1274
|
+
color: rgba(53, 53, 53, 0.3);
|
|
1275
|
+
}
|
|
1276
|
+
.promoter-card .arrow {
|
|
1277
|
+
position: absolute;
|
|
1278
|
+
left: 0;
|
|
1279
|
+
top: 22px;
|
|
1280
|
+
width: 9px;
|
|
1281
|
+
height: 16px;
|
|
1282
|
+
}
|
|
1269
1283
|
.promoter-card-hd {
|
|
1270
1284
|
display: flex;
|
|
1271
|
-
|
|
1285
|
+
flex-direction: column;
|
|
1286
|
+
align-items: flex-start;
|
|
1272
1287
|
color: #353535;
|
|
1273
1288
|
margin-bottom: 12px;
|
|
1274
1289
|
}
|
|
1275
1290
|
.promoter-card-hd-num {
|
|
1276
|
-
font-size:
|
|
1291
|
+
font-size: 26px;
|
|
1277
1292
|
font-weight: bold;
|
|
1278
|
-
margin-
|
|
1293
|
+
margin-top: 8px;
|
|
1294
|
+
display: flex;
|
|
1295
|
+
align-items: center;
|
|
1279
1296
|
}
|
|
1280
1297
|
.promoter-card-hd-info {
|
|
1281
1298
|
font-size: 14px;
|
|
@@ -1291,6 +1308,8 @@ page {
|
|
|
1291
1308
|
font-size: 12px;
|
|
1292
1309
|
color: #434242;
|
|
1293
1310
|
margin-bottom: 5px;
|
|
1311
|
+
display: flex;
|
|
1312
|
+
align-items: center;
|
|
1294
1313
|
}
|
|
1295
1314
|
.promoter-card-ft-num {
|
|
1296
1315
|
display: flex;
|
|
@@ -1305,23 +1324,28 @@ page {
|
|
|
1305
1324
|
margin-right: 30px;
|
|
1306
1325
|
}
|
|
1307
1326
|
.promoter-card-tab {
|
|
1308
|
-
|
|
1309
|
-
|
|
1327
|
+
position: absolute;
|
|
1328
|
+
top: 10px;
|
|
1329
|
+
right: 13px;
|
|
1330
|
+
border-radius: 4px;
|
|
1331
|
+
overflow: hidden;
|
|
1332
|
+
background: rgba(53, 53, 53, 0.1);
|
|
1310
1333
|
}
|
|
1311
1334
|
.promoter-card-tab-item {
|
|
1312
1335
|
display: inline-flex;
|
|
1313
1336
|
align-items: center;
|
|
1314
|
-
|
|
1315
|
-
border-radius: 15px;
|
|
1337
|
+
justify-content: center;
|
|
1316
1338
|
height: 29px;
|
|
1339
|
+
width: 90px;
|
|
1340
|
+
box-sizing: border-box;
|
|
1317
1341
|
padding: 0 10px;
|
|
1318
|
-
font-size:
|
|
1319
|
-
color: #
|
|
1320
|
-
margin-right: 12px;
|
|
1342
|
+
font-size: 13px;
|
|
1343
|
+
color: #353535;
|
|
1321
1344
|
}
|
|
1322
1345
|
.promoter-card-tab-item.focus {
|
|
1323
|
-
background: linear-gradient(90deg, #FFEBC1 0%, #
|
|
1324
|
-
|
|
1346
|
+
background: linear-gradient(90deg, #FFEBC1 0%, #FFF9ED 100%);
|
|
1347
|
+
font-weight: bold;
|
|
1348
|
+
border-radius: 4px;
|
|
1325
1349
|
}
|
|
1326
1350
|
.promoter-card .arrow-img {
|
|
1327
1351
|
width: 16px;
|
|
@@ -1764,7 +1788,7 @@ page {
|
|
|
1764
1788
|
.user-entry {
|
|
1765
1789
|
position: absolute;
|
|
1766
1790
|
left: 0;
|
|
1767
|
-
top:
|
|
1791
|
+
top: 125px;
|
|
1768
1792
|
transform: translateY(-50%);
|
|
1769
1793
|
display: flex;
|
|
1770
1794
|
padding: 0 22px;
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import '@nutui/nutui-taro/dist/packages/dialog/style/css';
|
|
|
14
14
|
import '@nutui/nutui-taro/dist/packages/datepicker/style/css';
|
|
15
15
|
import dayjs from 'dayjs';
|
|
16
16
|
import groupBy from 'lodash/groupBy';
|
|
17
|
+
import { IconFont } from '@nutui/icons-vue-taro';
|
|
17
18
|
import '@nutui/nutui-taro/dist/packages/form/style/css';
|
|
18
19
|
import '@nutui/nutui-taro/dist/packages/formitem/style/css';
|
|
19
20
|
import '@nutui/nutui-taro/dist/packages/radiogroup/style/css';
|
|
@@ -1878,8 +1879,8 @@ const _hoisted_6$5 = {
|
|
|
1878
1879
|
class: "amount"
|
|
1879
1880
|
};
|
|
1880
1881
|
const _hoisted_7$5 = { class: "amount" };
|
|
1881
|
-
const _hoisted_8$
|
|
1882
|
-
const _hoisted_9$
|
|
1882
|
+
const _hoisted_8$5 = ["src"];
|
|
1883
|
+
const _hoisted_9$4 = { class: "amount-footer" };
|
|
1883
1884
|
const _hoisted_10$2 = {
|
|
1884
1885
|
key: 0,
|
|
1885
1886
|
class: "agreement"
|
|
@@ -2025,11 +2026,11 @@ var script$w = /* @__PURE__ */ defineComponent({
|
|
|
2025
2026
|
createElementVNode("img", {
|
|
2026
2027
|
class: "icon",
|
|
2027
2028
|
src: selectBean.value ? "https://cdn.ddjf.com/static/images/appkit/select.svg" : "https://cdn.ddjf.com/static/images/appkit/not-select.svg"
|
|
2028
|
-
}, null, 8, _hoisted_8$
|
|
2029
|
+
}, null, 8, _hoisted_8$5)
|
|
2029
2030
|
])) : createCommentVNode("v-if", true)
|
|
2030
2031
|
])) : createCommentVNode("v-if", true)
|
|
2031
2032
|
]),
|
|
2032
|
-
createElementVNode("view", _hoisted_9$
|
|
2033
|
+
createElementVNode("view", _hoisted_9$4, [
|
|
2033
2034
|
!selectBean.value ? (openBlock(), createElementBlock("view", _hoisted_10$2, [
|
|
2034
2035
|
createVNode(_component_nut_checkbox, {
|
|
2035
2036
|
modelValue: state.agreed,
|
|
@@ -2675,8 +2676,8 @@ const _hoisted_7$4 = {
|
|
|
2675
2676
|
key: 0,
|
|
2676
2677
|
class: "rights-card"
|
|
2677
2678
|
};
|
|
2678
|
-
const _hoisted_8$
|
|
2679
|
-
const _hoisted_9$
|
|
2679
|
+
const _hoisted_8$4 = { class: "list" };
|
|
2680
|
+
const _hoisted_9$3 = { class: "item-count" };
|
|
2680
2681
|
const _hoisted_10$1 = { class: "item-title" };
|
|
2681
2682
|
const _hoisted_11$1 = {
|
|
2682
2683
|
key: 0,
|
|
@@ -2952,7 +2953,7 @@ var script$p = /* @__PURE__ */ defineComponent({
|
|
|
2952
2953
|
-1
|
|
2953
2954
|
/* HOISTED */
|
|
2954
2955
|
)),
|
|
2955
|
-
createElementVNode("div", _hoisted_8$
|
|
2956
|
+
createElementVNode("div", _hoisted_8$4, [
|
|
2956
2957
|
(openBlock(true), createElementBlock(
|
|
2957
2958
|
Fragment,
|
|
2958
2959
|
null,
|
|
@@ -2961,7 +2962,7 @@ var script$p = /* @__PURE__ */ defineComponent({
|
|
|
2961
2962
|
class: "item star-item",
|
|
2962
2963
|
key: index
|
|
2963
2964
|
}, [
|
|
2964
|
-
createElementVNode("div", _hoisted_9$
|
|
2965
|
+
createElementVNode("div", _hoisted_9$3, [
|
|
2965
2966
|
createElementVNode(
|
|
2966
2967
|
"span",
|
|
2967
2968
|
null,
|
|
@@ -3636,14 +3637,22 @@ const _hoisted_2$d = {
|
|
|
3636
3637
|
key: 0,
|
|
3637
3638
|
class: "promoter-card-tab"
|
|
3638
3639
|
};
|
|
3639
|
-
const _hoisted_3$8 = { class: "promoter-card-hd-num" };
|
|
3640
|
+
const _hoisted_3$8 = { class: "promoter-card-hd-num number" };
|
|
3640
3641
|
const _hoisted_4$6 = { class: "promoter-card-ft" };
|
|
3641
|
-
const _hoisted_5$5 = {
|
|
3642
|
-
|
|
3642
|
+
const _hoisted_5$5 = {
|
|
3643
|
+
key: 0,
|
|
3644
|
+
class: "promoter-card-ft-item"
|
|
3645
|
+
};
|
|
3646
|
+
const _hoisted_6$3 = { class: "promoter-card-ft-info" };
|
|
3647
|
+
const _hoisted_7$3 = {
|
|
3643
3648
|
key: 1,
|
|
3644
3649
|
class: "promoter-card-ft-line"
|
|
3645
3650
|
};
|
|
3646
|
-
const
|
|
3651
|
+
const _hoisted_8$3 = {
|
|
3652
|
+
key: 2,
|
|
3653
|
+
class: "promoter-card-ft-item"
|
|
3654
|
+
};
|
|
3655
|
+
const _hoisted_9$2 = { class: "promoter-card-ft-info" };
|
|
3647
3656
|
var script$k = /* @__PURE__ */ defineComponent({
|
|
3648
3657
|
__name: "PromoterCard",
|
|
3649
3658
|
props: {
|
|
@@ -3670,7 +3679,7 @@ var script$k = /* @__PURE__ */ defineComponent({
|
|
|
3670
3679
|
const { formatAmount } = useAmount();
|
|
3671
3680
|
const tab = ref("person");
|
|
3672
3681
|
const promoter = ref({
|
|
3673
|
-
|
|
3682
|
+
balance: 0,
|
|
3674
3683
|
totalIncome: 0,
|
|
3675
3684
|
totalRebateIncome: 0
|
|
3676
3685
|
});
|
|
@@ -3698,8 +3707,30 @@ var script$k = /* @__PURE__ */ defineComponent({
|
|
|
3698
3707
|
__expose({
|
|
3699
3708
|
reload: loadPromoter
|
|
3700
3709
|
});
|
|
3710
|
+
const toastMap = {
|
|
3711
|
+
profits: "\u63A8\u5E7F\u5317\u6597\u661F\u62A5\u544A\u83B7\u53D6\uFF0C\u6BCF\u7B14\u62A5\u544A\u9500\u552E\u6536\u76CA= \u5BA2\u6237\u67E5\u8BE2\u4EF7 - \u6211\u7684\u6210\u672C\u4EF7",
|
|
3712
|
+
rebate: "\u63A8\u8350\u670B\u53CB\u4F7F\u7528\u5317\u6597\u661F\u3001\u4F01\u660E\u661F\u83B7\u53D6\uFF0C\u8FD4\u4F63\u6536\u76CA= \u8FD4\u4F63\u57FA\u6570 * \u8FD4\u4F63\u6BD4\u4F8B"
|
|
3713
|
+
};
|
|
3714
|
+
function onHelpClick(type) {
|
|
3715
|
+
Taro.showModal({
|
|
3716
|
+
content: toastMap[type],
|
|
3717
|
+
showCancel: false,
|
|
3718
|
+
confirmText: "\u77E5\u9053\u4E86"
|
|
3719
|
+
});
|
|
3720
|
+
}
|
|
3701
3721
|
return (_ctx, _cache) => {
|
|
3702
3722
|
return _ctx.applyRecord.distributorFlag === "Y" || _ctx.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
3723
|
+
_cache[13] || (_cache[13] = createElementVNode(
|
|
3724
|
+
"img",
|
|
3725
|
+
{
|
|
3726
|
+
class: "arrow",
|
|
3727
|
+
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMjkiIHZpZXdCb3g9IjAgMCAxNyAyOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1LjM4MTQgMTIuMzIwN0MxNi43NjI4IDEzLjUxNyAxNi43NjI4IDE1LjY1OTkgMTUuMzgxNCAxNi44NTYyTDEuNjU0NjUgMjguNzQzOUMxLjAwNzAxIDI5LjMwNDggLTEuMzA0NTZlLTA2IDI4Ljg0NDggLTEuMjY3MTFlLTA2IDI3Ljk4OEwtOS41Njc5OGUtMDggMS4xODg5Qy01LjgyM2UtMDggMC4zMzIxNDYgMS4wMDcwMSAtMC4xMjc5MDUgMS42NTQ2NSAwLjQzMjk3MUwxNS4zODE0IDEyLjMyMDdaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMTAyN185OTYpIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMTAyN185OTYiIHgxPSI0NiIgeTE9IjE1IiB4Mj0iLTUuNSIgeTI9IjE1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNFRjlENTciLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkZENDUwIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==",
|
|
3728
|
+
alt: ""
|
|
3729
|
+
},
|
|
3730
|
+
null,
|
|
3731
|
+
-1
|
|
3732
|
+
/* HOISTED */
|
|
3733
|
+
)),
|
|
3703
3734
|
_ctx.useCase === "company" && _ctx.isAdmin ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
3704
3735
|
createElementVNode(
|
|
3705
3736
|
"div",
|
|
@@ -3727,52 +3758,53 @@ var script$k = /* @__PURE__ */ defineComponent({
|
|
|
3727
3758
|
class: "promoter-card-hd",
|
|
3728
3759
|
onClick: _cache[2] || (_cache[2] = ($event) => emits("blance", tab.value))
|
|
3729
3760
|
}, [
|
|
3730
|
-
createElementVNode(
|
|
3731
|
-
"div",
|
|
3732
|
-
_hoisted_3$8,
|
|
3733
|
-
toDisplayString(unref(formatAmount)(promoter.value.balance || 0)),
|
|
3734
|
-
1
|
|
3735
|
-
/* TEXT */
|
|
3736
|
-
),
|
|
3737
|
-
_cache[5] || (_cache[5] = createElementVNode(
|
|
3761
|
+
_cache[8] || (_cache[8] = createElementVNode(
|
|
3738
3762
|
"div",
|
|
3739
3763
|
{ class: "promoter-card-hd-info" },
|
|
3740
3764
|
"\u53EF\u63D0\u73B0\u4F59\u989D(\u5143)",
|
|
3741
3765
|
-1
|
|
3742
3766
|
/* HOISTED */
|
|
3743
3767
|
)),
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
class: "promoter-card-ft-item",
|
|
3760
|
-
onClick: _cache[3] || (_cache[3] = ($event) => emits("profits", tab.value))
|
|
3761
|
-
}, [
|
|
3762
|
-
_cache[8] || (_cache[8] = createElementVNode(
|
|
3763
|
-
"div",
|
|
3764
|
-
{ class: "promoter-card-ft-info" },
|
|
3765
|
-
"\u9500\u552E\u7D2F\u8BA1\u6536\u76CA(\u5143)",
|
|
3768
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
3769
|
+
createTextVNode(
|
|
3770
|
+
toDisplayString(unref(formatAmount)(promoter.value.balance || 0)) + " ",
|
|
3771
|
+
1
|
|
3772
|
+
/* TEXT */
|
|
3773
|
+
),
|
|
3774
|
+
_cache[7] || (_cache[7] = createElementVNode(
|
|
3775
|
+
"img",
|
|
3776
|
+
{
|
|
3777
|
+
class: "arrow-img",
|
|
3778
|
+
style: { "margin-left": "12px" },
|
|
3779
|
+
src: "https://cdn.ddjf.com/static/images/appkit/arrow.png",
|
|
3780
|
+
alt: ""
|
|
3781
|
+
},
|
|
3782
|
+
null,
|
|
3766
3783
|
-1
|
|
3767
3784
|
/* HOISTED */
|
|
3768
|
-
))
|
|
3769
|
-
|
|
3785
|
+
))
|
|
3786
|
+
])
|
|
3787
|
+
])) : createCommentVNode("v-if", true),
|
|
3788
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
3789
|
+
_ctx.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
3790
|
+
createElementVNode("div", _hoisted_6$3, [
|
|
3791
|
+
_cache[9] || (_cache[9] = createTextVNode("\u9500\u552E\u7D2F\u8BA1\u6536\u76CA(\u5143) ")),
|
|
3792
|
+
createVNode(unref(IconFont), {
|
|
3793
|
+
class: "icon",
|
|
3794
|
+
name: "ask",
|
|
3795
|
+
onClick: _cache[3] || (_cache[3] = ($event) => onHelpClick("profits"))
|
|
3796
|
+
})
|
|
3797
|
+
]),
|
|
3798
|
+
createElementVNode("div", {
|
|
3799
|
+
class: "promoter-card-ft-num number",
|
|
3800
|
+
onClick: _cache[4] || (_cache[4] = ($event) => emits("profits", tab.value))
|
|
3801
|
+
}, [
|
|
3770
3802
|
createTextVNode(
|
|
3771
3803
|
toDisplayString(unref(formatAmount)(promoter.value.totalIncome || 0)) + " ",
|
|
3772
3804
|
1
|
|
3773
3805
|
/* TEXT */
|
|
3774
3806
|
),
|
|
3775
|
-
_cache[
|
|
3807
|
+
_cache[10] || (_cache[10] = createElementVNode(
|
|
3776
3808
|
"img",
|
|
3777
3809
|
{
|
|
3778
3810
|
class: "arrow-img",
|
|
@@ -3785,26 +3817,26 @@ var script$k = /* @__PURE__ */ defineComponent({
|
|
|
3785
3817
|
))
|
|
3786
3818
|
])
|
|
3787
3819
|
])) : createCommentVNode("v-if", true),
|
|
3788
|
-
_ctx.applyRecord.accessCheckStatus === "Y" && _ctx.applyRecord.distributorFlag === "Y" ? (openBlock(), createElementBlock("div",
|
|
3789
|
-
_ctx.applyRecord.distributorFlag === "Y" ? (openBlock(), createElementBlock("div",
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3820
|
+
_ctx.applyRecord.accessCheckStatus === "Y" && _ctx.applyRecord.distributorFlag === "Y" ? (openBlock(), createElementBlock("div", _hoisted_7$3)) : createCommentVNode("v-if", true),
|
|
3821
|
+
_ctx.applyRecord.distributorFlag === "Y" ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
3822
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
3823
|
+
_cache[11] || (_cache[11] = createTextVNode("\u8FD4\u4F63\u7D2F\u8BA1\u6536\u76CA(\u5143) ")),
|
|
3824
|
+
createVNode(unref(IconFont), {
|
|
3825
|
+
class: "icon",
|
|
3826
|
+
name: "ask",
|
|
3827
|
+
onClick: _cache[5] || (_cache[5] = ($event) => onHelpClick("rebate"))
|
|
3828
|
+
})
|
|
3829
|
+
]),
|
|
3830
|
+
createElementVNode("div", {
|
|
3831
|
+
class: "promoter-card-ft-num number",
|
|
3832
|
+
onClick: _cache[6] || (_cache[6] = ($event) => emits("rebate", tab.value))
|
|
3833
|
+
}, [
|
|
3802
3834
|
createTextVNode(
|
|
3803
3835
|
toDisplayString(unref(formatAmount)(promoter.value.totalRebateIncome || 0)) + " ",
|
|
3804
3836
|
1
|
|
3805
3837
|
/* TEXT */
|
|
3806
3838
|
),
|
|
3807
|
-
_cache[
|
|
3839
|
+
_cache[12] || (_cache[12] = createElementVNode(
|
|
3808
3840
|
"img",
|
|
3809
3841
|
{
|
|
3810
3842
|
class: "arrow-img",
|
package/package.json
CHANGED
|
@@ -1,28 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="promoter-card" v-if="applyRecord.distributorFlag === 'Y' || applyRecord.accessCheckStatus === 'Y'">
|
|
3
|
+
<img class="arrow"
|
|
4
|
+
src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMjkiIHZpZXdCb3g9IjAgMCAxNyAyOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1LjM4MTQgMTIuMzIwN0MxNi43NjI4IDEzLjUxNyAxNi43NjI4IDE1LjY1OTkgMTUuMzgxNCAxNi44NTYyTDEuNjU0NjUgMjguNzQzOUMxLjAwNzAxIDI5LjMwNDggLTEuMzA0NTZlLTA2IDI4Ljg0NDggLTEuMjY3MTFlLTA2IDI3Ljk4OEwtOS41Njc5OGUtMDggMS4xODg5Qy01LjgyM2UtMDggMC4zMzIxNDYgMS4wMDcwMSAtMC4xMjc5MDUgMS42NTQ2NSAwLjQzMjk3MUwxNS4zODE0IDEyLjMyMDdaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMTAyN185OTYpIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMTAyN185OTYiIHgxPSI0NiIgeTE9IjE1IiB4Mj0iLTUuNSIgeTI9IjE1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNFRjlENTciLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkZENDUwIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg=="
|
|
5
|
+
alt="">
|
|
3
6
|
<div class="promoter-card-tab" v-if="useCase === 'company' && isAdmin">
|
|
4
7
|
<div class="promoter-card-tab-item" @click="onTabChange('person')" :class="{ focus: tab === 'person' }">个人</div>
|
|
5
8
|
<div class="promoter-card-tab-item" @click="onTabChange('company')" :class="{ focus: tab === 'company' }">企业</div>
|
|
6
9
|
</div>
|
|
7
10
|
<div class="promoter-card-hd" @click="emits('blance', tab)"
|
|
8
11
|
v-if="applyRecord.distributorFlag === 'Y' || applyRecord.accessCheckStatus === 'Y'">
|
|
9
|
-
<div class="promoter-card-hd-num">{{ formatAmount(promoter.balance || 0) }}</div>
|
|
10
12
|
<div class="promoter-card-hd-info">可提现余额(元)</div>
|
|
11
|
-
<
|
|
13
|
+
<div class="promoter-card-hd-num number">{{ formatAmount(promoter.balance || 0) }}
|
|
14
|
+
<img class="arrow-img" style="margin-left: 12px;" src="https://cdn.ddjf.com/static/images/appkit/arrow.png"
|
|
15
|
+
alt="">
|
|
16
|
+
</div>
|
|
12
17
|
</div>
|
|
13
18
|
<div class="promoter-card-ft">
|
|
14
|
-
<div class="promoter-card-ft-item" v-if="applyRecord.accessCheckStatus === 'Y'"
|
|
15
|
-
<div class="promoter-card-ft-info">销售累计收益(元)
|
|
16
|
-
|
|
19
|
+
<div class="promoter-card-ft-item" v-if="applyRecord.accessCheckStatus === 'Y'">
|
|
20
|
+
<div class="promoter-card-ft-info">销售累计收益(元)
|
|
21
|
+
<IconFont class="icon" name="ask" @click="onHelpClick('profits')" />
|
|
22
|
+
</div>
|
|
23
|
+
<div class="promoter-card-ft-num number" @click="emits('profits', tab)">
|
|
17
24
|
{{ formatAmount(promoter.totalIncome || 0) }}
|
|
18
25
|
<img class="arrow-img" src="https://cdn.ddjf.com/static/images/appkit/arrow.png" alt="">
|
|
19
26
|
</div>
|
|
20
27
|
</div>
|
|
21
28
|
<div class="promoter-card-ft-line"
|
|
22
|
-
v-if="applyRecord.accessCheckStatus === 'Y' && applyRecord.distributorFlag === 'Y'"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<div class="promoter-card-ft-
|
|
29
|
+
v-if="applyRecord.accessCheckStatus === 'Y' && applyRecord.distributorFlag === 'Y'">
|
|
30
|
+
</div>
|
|
31
|
+
<div class="promoter-card-ft-item" v-if="applyRecord.distributorFlag === 'Y'">
|
|
32
|
+
<div class="promoter-card-ft-info">返佣累计收益(元)
|
|
33
|
+
<IconFont class="icon" name="ask" @click="onHelpClick('rebate')" />
|
|
34
|
+
</div>
|
|
35
|
+
<div class="promoter-card-ft-num number" @click="emits('rebate', tab)">
|
|
26
36
|
{{ formatAmount(promoter.totalRebateIncome || 0) }}
|
|
27
37
|
<img class="arrow-img" src="https://cdn.ddjf.com/static/images/appkit/arrow.png" alt="">
|
|
28
38
|
</div>
|
|
@@ -35,8 +45,9 @@
|
|
|
35
45
|
import { ref, watch } from 'vue'
|
|
36
46
|
import { endpoints, useHttp } from '../api'
|
|
37
47
|
import { Promoter } from '../types'
|
|
38
|
-
import { useDidShow } from '@tarojs/taro'
|
|
48
|
+
import Taro, { useDidShow } from '@tarojs/taro'
|
|
39
49
|
import { useAmount } from '../../shared/composables/useAmount'
|
|
50
|
+
import { IconFont } from '@nutui/icons-vue-taro'
|
|
40
51
|
|
|
41
52
|
type PromoterCardProps = {
|
|
42
53
|
useCase: string
|
|
@@ -53,7 +64,7 @@ const { formatAmount } = useAmount()
|
|
|
53
64
|
const tab = ref('person')
|
|
54
65
|
|
|
55
66
|
const promoter = ref<Promoter>({
|
|
56
|
-
|
|
67
|
+
balance: 0,
|
|
57
68
|
totalIncome: 0,
|
|
58
69
|
totalRebateIncome: 0,
|
|
59
70
|
})
|
|
@@ -101,31 +112,62 @@ watch(() => props.applyRecord, () => {
|
|
|
101
112
|
defineExpose({
|
|
102
113
|
reload: loadPromoter,
|
|
103
114
|
})
|
|
115
|
+
|
|
116
|
+
const toastMap = {
|
|
117
|
+
profits: '推广北斗星报告获取,每笔报告销售收益= 客户查询价 - 我的成本价',
|
|
118
|
+
rebate: '推荐朋友使用北斗星、企明星获取,返佣收益= 返佣基数 * 返佣比例',
|
|
119
|
+
}
|
|
120
|
+
function onHelpClick(type: string) {
|
|
121
|
+
Taro.showModal({
|
|
122
|
+
content: toastMap[type],
|
|
123
|
+
showCancel: false,
|
|
124
|
+
confirmText: '知道了',
|
|
125
|
+
})
|
|
126
|
+
}
|
|
104
127
|
</script>
|
|
105
128
|
|
|
106
129
|
<style lang="scss">
|
|
107
130
|
.promoter-card {
|
|
108
|
-
|
|
109
|
-
|
|
131
|
+
position: relative;
|
|
132
|
+
padding: 20px;
|
|
133
|
+
background: #fff;
|
|
110
134
|
box-sizing: border-box;
|
|
111
135
|
margin: 0 auto;
|
|
112
136
|
border-radius: 15px;
|
|
113
137
|
|
|
138
|
+
.icon {
|
|
139
|
+
font-size: 10px;
|
|
140
|
+
color: rgba(53, 53, 53, 0.3);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.arrow {
|
|
144
|
+
position: absolute;
|
|
145
|
+
left: 0;
|
|
146
|
+
top: 22px;
|
|
147
|
+
width: 9px;
|
|
148
|
+
height: 16px;
|
|
149
|
+
}
|
|
150
|
+
|
|
114
151
|
&-hd {
|
|
115
152
|
display: flex;
|
|
116
|
-
|
|
153
|
+
flex-direction: column;
|
|
154
|
+
align-items: flex-start;
|
|
117
155
|
color: #353535;
|
|
118
156
|
margin-bottom: 12px;
|
|
119
157
|
|
|
120
158
|
&-num {
|
|
121
|
-
font-size:
|
|
159
|
+
font-size: 26px;
|
|
122
160
|
font-weight: bold;
|
|
123
|
-
margin-
|
|
161
|
+
margin-top: 8px;
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
124
164
|
}
|
|
125
165
|
|
|
126
166
|
&-info {
|
|
127
167
|
font-size: 14px;
|
|
128
168
|
}
|
|
169
|
+
|
|
170
|
+
|
|
129
171
|
}
|
|
130
172
|
|
|
131
173
|
&-ft {
|
|
@@ -140,6 +182,8 @@ defineExpose({
|
|
|
140
182
|
font-size: 12px;
|
|
141
183
|
color: #434242;
|
|
142
184
|
margin-bottom: 5px;
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
143
187
|
}
|
|
144
188
|
|
|
145
189
|
&-num {
|
|
@@ -158,23 +202,28 @@ defineExpose({
|
|
|
158
202
|
}
|
|
159
203
|
|
|
160
204
|
&-tab {
|
|
161
|
-
|
|
162
|
-
|
|
205
|
+
position: absolute;
|
|
206
|
+
top: 10px;
|
|
207
|
+
right: 13px;
|
|
208
|
+
border-radius: 4px;
|
|
209
|
+
overflow: hidden;
|
|
210
|
+
background: rgba(53, 53, 53, 0.1);
|
|
163
211
|
|
|
164
212
|
&-item {
|
|
165
213
|
display: inline-flex;
|
|
166
214
|
align-items: center;
|
|
167
|
-
|
|
168
|
-
border-radius: 15px;
|
|
215
|
+
justify-content: center;
|
|
169
216
|
height: 29px;
|
|
217
|
+
width: 90px;
|
|
218
|
+
box-sizing: border-box;
|
|
170
219
|
padding: 0 10px;
|
|
171
|
-
font-size:
|
|
172
|
-
color: #
|
|
173
|
-
margin-right: 12px;
|
|
220
|
+
font-size: 13px;
|
|
221
|
+
color: #353535;
|
|
174
222
|
|
|
175
223
|
&.focus {
|
|
176
|
-
background: linear-gradient(90deg, #FFEBC1 0%, #
|
|
177
|
-
|
|
224
|
+
background: linear-gradient(90deg, #FFEBC1 0%, #FFF9ED 100%);
|
|
225
|
+
font-weight: bold;
|
|
226
|
+
border-radius: 4px;
|
|
178
227
|
}
|
|
179
228
|
}
|
|
180
229
|
}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="user-entry">
|
|
3
3
|
<div class="user-entry-head">
|
|
4
|
-
<img
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
mode="aspectFit"
|
|
8
|
-
v-if="avatar"
|
|
9
|
-
:src="avatar"
|
|
10
|
-
alt=""
|
|
11
|
-
/>
|
|
12
|
-
<img
|
|
13
|
-
class="user-entry-head-img"
|
|
14
|
-
mode="aspectFit"
|
|
15
|
-
@click="toUser1"
|
|
16
|
-
v-else
|
|
17
|
-
src="https://cdn.ddjf.com/static/images/wx-yunservice/account-head.png"
|
|
18
|
-
alt=""
|
|
19
|
-
/>
|
|
4
|
+
<img class="user-entry-head-img" @click="toUser" mode="aspectFit" v-if="avatar" :src="avatar" alt="" />
|
|
5
|
+
<img class="user-entry-head-img" mode="aspectFit" @click="toUser1" v-else
|
|
6
|
+
src="https://cdn.ddjf.com/static/images/wx-yunservice/account-head.png" alt="" />
|
|
20
7
|
</div>
|
|
21
8
|
<div class="user-entry-bd">
|
|
22
9
|
<div v-if="!mobile" class="user-entry-bd-bigtxt" @click="toLogin">
|
|
@@ -74,17 +61,19 @@ const emits = defineEmits(['jump', 'login'])
|
|
|
74
61
|
.user-entry {
|
|
75
62
|
position: absolute;
|
|
76
63
|
left: 0;
|
|
77
|
-
top:
|
|
64
|
+
top: 125px;
|
|
78
65
|
transform: translateY(-50%);
|
|
79
66
|
display: flex;
|
|
80
67
|
padding: 0 22px;
|
|
81
68
|
align-items: center;
|
|
82
69
|
width: 100%;
|
|
70
|
+
|
|
83
71
|
&-head {
|
|
84
72
|
position: relative;
|
|
85
73
|
width: 62px;
|
|
86
74
|
height: 62px;
|
|
87
75
|
margin-right: 8px;
|
|
76
|
+
|
|
88
77
|
&-img {
|
|
89
78
|
width: 100%;
|
|
90
79
|
height: 100%;
|
|
@@ -92,6 +81,7 @@ const emits = defineEmits(['jump', 'login'])
|
|
|
92
81
|
border-radius: 50%;
|
|
93
82
|
border: 1.5px solid #fff;
|
|
94
83
|
}
|
|
84
|
+
|
|
95
85
|
&-icon {
|
|
96
86
|
position: absolute;
|
|
97
87
|
width: 15px;
|
|
@@ -102,8 +92,10 @@ const emits = defineEmits(['jump', 'login'])
|
|
|
102
92
|
background-size: cover;
|
|
103
93
|
}
|
|
104
94
|
}
|
|
95
|
+
|
|
105
96
|
&-bd {
|
|
106
97
|
color: #fff;
|
|
98
|
+
|
|
107
99
|
&-bigtxt {
|
|
108
100
|
display: flex;
|
|
109
101
|
align-items: center;
|
|
@@ -111,10 +103,12 @@ const emits = defineEmits(['jump', 'login'])
|
|
|
111
103
|
font-weight: 500;
|
|
112
104
|
line-height: 28px;
|
|
113
105
|
margin-left: 10px;
|
|
106
|
+
|
|
114
107
|
&-icon {
|
|
115
108
|
width: 20px;
|
|
116
109
|
}
|
|
117
110
|
}
|
|
111
|
+
|
|
118
112
|
&-txt {
|
|
119
113
|
font-size: 20px;
|
|
120
114
|
font-weight: 500;
|
|
@@ -123,11 +117,13 @@ const emits = defineEmits(['jump', 'login'])
|
|
|
123
117
|
display: flex;
|
|
124
118
|
align-items: center;
|
|
125
119
|
}
|
|
120
|
+
|
|
126
121
|
&-smalltxt {
|
|
127
122
|
margin-top: 0;
|
|
128
123
|
font-size: 15px;
|
|
129
124
|
line-height: 21px;
|
|
130
125
|
}
|
|
126
|
+
|
|
131
127
|
&-arrow {
|
|
132
128
|
font-size: 12px;
|
|
133
129
|
margin-left: 8px;
|