@uxda/appkit 4.1.50 → 4.1.52

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
- padding: 15px 20px;
1264
- background: linear-gradient(180deg, #FFEEDB 0%, #FEFEFC 100%);
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
- align-items: center;
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: 22px;
1291
+ font-size: 26px;
1277
1292
  font-weight: bold;
1278
- margin-right: 8px;
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
- margin-top: -3px;
1309
- margin-bottom: 15px;
1327
+ position: absolute;
1328
+ top: 10px;
1329
+ right: 13px;
1330
+ border-radius: 4px;
1331
+ overflow: hidden;
1310
1332
  }
1311
1333
  .promoter-card-tab-item {
1312
1334
  display: inline-flex;
1313
1335
  align-items: center;
1314
- background: #fff;
1315
- border-radius: 15px;
1336
+ justify-content: center;
1337
+ background: rgba(53, 53, 53, 0.1);
1316
1338
  height: 29px;
1339
+ width: 90px;
1340
+ box-sizing: border-box;
1317
1341
  padding: 0 10px;
1318
- font-size: 12px;
1319
- color: #6D4523;
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%, #FFB875 100%);
1324
- color: #6D4523;
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: 130px;
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$4 = ["src"];
1882
- const _hoisted_9$3 = { class: "amount-footer" };
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$4)
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$3, [
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$3 = { class: "list" };
2679
- const _hoisted_9$2 = { class: "item-count" };
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$3, [
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$2, [
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 = { class: "promoter-card-ft-num" };
3642
- const _hoisted_6$3 = {
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 _hoisted_7$3 = { class: "promoter-card-ft-num" };
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
- total: 0,
3682
+ balance: 0,
3674
3683
  totalIncome: 0,
3675
3684
  totalRebateIncome: 0
3676
3685
  });
@@ -3698,8 +3707,29 @@ 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.showToast({
3716
+ title: toastMap[type],
3717
+ icon: "none"
3718
+ });
3719
+ }
3701
3720
  return (_ctx, _cache) => {
3702
3721
  return _ctx.applyRecord.distributorFlag === "Y" || _ctx.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
3722
+ _cache[13] || (_cache[13] = createElementVNode(
3723
+ "img",
3724
+ {
3725
+ class: "arrow",
3726
+ src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMjkiIHZpZXdCb3g9IjAgMCAxNyAyOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1LjM4MTQgMTIuMzIwN0MxNi43NjI4IDEzLjUxNyAxNi43NjI4IDE1LjY1OTkgMTUuMzgxNCAxNi44NTYyTDEuNjU0NjUgMjguNzQzOUMxLjAwNzAxIDI5LjMwNDggLTEuMzA0NTZlLTA2IDI4Ljg0NDggLTEuMjY3MTFlLTA2IDI3Ljk4OEwtOS41Njc5OGUtMDggMS4xODg5Qy01LjgyM2UtMDggMC4zMzIxNDYgMS4wMDcwMSAtMC4xMjc5MDUgMS42NTQ2NSAwLjQzMjk3MUwxNS4zODE0IDEyLjMyMDdaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMTAyN185OTYpIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMTAyN185OTYiIHgxPSI0NiIgeTE9IjE1IiB4Mj0iLTUuNSIgeTI9IjE1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNFRjlENTciLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkZENDUwIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==",
3727
+ alt: ""
3728
+ },
3729
+ null,
3730
+ -1
3731
+ /* HOISTED */
3732
+ )),
3703
3733
  _ctx.useCase === "company" && _ctx.isAdmin ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
3704
3734
  createElementVNode(
3705
3735
  "div",
@@ -3727,52 +3757,53 @@ var script$k = /* @__PURE__ */ defineComponent({
3727
3757
  class: "promoter-card-hd",
3728
3758
  onClick: _cache[2] || (_cache[2] = ($event) => emits("blance", tab.value))
3729
3759
  }, [
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(
3760
+ _cache[8] || (_cache[8] = createElementVNode(
3738
3761
  "div",
3739
3762
  { class: "promoter-card-hd-info" },
3740
3763
  "\u53EF\u63D0\u73B0\u4F59\u989D(\u5143)",
3741
3764
  -1
3742
3765
  /* HOISTED */
3743
3766
  )),
3744
- _cache[6] || (_cache[6] = createElementVNode(
3745
- "img",
3746
- {
3747
- class: "arrow-img",
3748
- src: "https://cdn.ddjf.com/static/images/appkit/arrow.png",
3749
- alt: ""
3750
- },
3751
- null,
3752
- -1
3753
- /* HOISTED */
3754
- ))
3755
- ])) : createCommentVNode("v-if", true),
3756
- createElementVNode("div", _hoisted_4$6, [
3757
- _ctx.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", {
3758
- key: 0,
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)",
3767
+ createElementVNode("div", _hoisted_3$8, [
3768
+ createTextVNode(
3769
+ toDisplayString(unref(formatAmount)(promoter.value.balance || 0)) + " ",
3770
+ 1
3771
+ /* TEXT */
3772
+ ),
3773
+ _cache[7] || (_cache[7] = createElementVNode(
3774
+ "img",
3775
+ {
3776
+ class: "arrow-img",
3777
+ style: { "margin-left": "12px" },
3778
+ src: "https://cdn.ddjf.com/static/images/appkit/arrow.png",
3779
+ alt: ""
3780
+ },
3781
+ null,
3766
3782
  -1
3767
3783
  /* HOISTED */
3768
- )),
3769
- createElementVNode("div", _hoisted_5$5, [
3784
+ ))
3785
+ ])
3786
+ ])) : createCommentVNode("v-if", true),
3787
+ createElementVNode("div", _hoisted_4$6, [
3788
+ _ctx.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
3789
+ createElementVNode("div", _hoisted_6$3, [
3790
+ _cache[9] || (_cache[9] = createTextVNode("\u9500\u552E\u7D2F\u8BA1\u6536\u76CA(\u5143) ")),
3791
+ createVNode(unref(IconFont), {
3792
+ class: "icon",
3793
+ name: "ask",
3794
+ onClick: _cache[3] || (_cache[3] = ($event) => onHelpClick("profits"))
3795
+ })
3796
+ ]),
3797
+ createElementVNode("div", {
3798
+ class: "promoter-card-ft-num number",
3799
+ onClick: _cache[4] || (_cache[4] = ($event) => emits("profits", tab.value))
3800
+ }, [
3770
3801
  createTextVNode(
3771
3802
  toDisplayString(unref(formatAmount)(promoter.value.totalIncome || 0)) + " ",
3772
3803
  1
3773
3804
  /* TEXT */
3774
3805
  ),
3775
- _cache[7] || (_cache[7] = createElementVNode(
3806
+ _cache[10] || (_cache[10] = createElementVNode(
3776
3807
  "img",
3777
3808
  {
3778
3809
  class: "arrow-img",
@@ -3785,26 +3816,26 @@ var script$k = /* @__PURE__ */ defineComponent({
3785
3816
  ))
3786
3817
  ])
3787
3818
  ])) : createCommentVNode("v-if", true),
3788
- _ctx.applyRecord.accessCheckStatus === "Y" && _ctx.applyRecord.distributorFlag === "Y" ? (openBlock(), createElementBlock("div", _hoisted_6$3)) : createCommentVNode("v-if", true),
3789
- _ctx.applyRecord.distributorFlag === "Y" ? (openBlock(), createElementBlock("div", {
3790
- key: 2,
3791
- class: "promoter-card-ft-item",
3792
- onClick: _cache[4] || (_cache[4] = ($event) => emits("rebate", tab.value))
3793
- }, [
3794
- _cache[10] || (_cache[10] = createElementVNode(
3795
- "div",
3796
- { class: "promoter-card-ft-info" },
3797
- "\u8FD4\u4F63\u7D2F\u8BA1\u6536\u76CA(\u5143)",
3798
- -1
3799
- /* HOISTED */
3800
- )),
3801
- createElementVNode("div", _hoisted_7$3, [
3819
+ _ctx.applyRecord.accessCheckStatus === "Y" && _ctx.applyRecord.distributorFlag === "Y" ? (openBlock(), createElementBlock("div", _hoisted_7$3)) : createCommentVNode("v-if", true),
3820
+ _ctx.applyRecord.distributorFlag === "Y" ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
3821
+ createElementVNode("div", _hoisted_9$2, [
3822
+ _cache[11] || (_cache[11] = createTextVNode("\u8FD4\u4F63\u7D2F\u8BA1\u6536\u76CA(\u5143) ")),
3823
+ createVNode(unref(IconFont), {
3824
+ class: "icon",
3825
+ name: "ask",
3826
+ onClick: _cache[5] || (_cache[5] = ($event) => onHelpClick("rebate"))
3827
+ })
3828
+ ]),
3829
+ createElementVNode("div", {
3830
+ class: "promoter-card-ft-num number",
3831
+ onClick: _cache[6] || (_cache[6] = ($event) => emits("rebate", tab.value))
3832
+ }, [
3802
3833
  createTextVNode(
3803
3834
  toDisplayString(unref(formatAmount)(promoter.value.totalRebateIncome || 0)) + " ",
3804
3835
  1
3805
3836
  /* TEXT */
3806
3837
  ),
3807
- _cache[9] || (_cache[9] = createElementVNode(
3838
+ _cache[12] || (_cache[12] = createElementVNode(
3808
3839
  "img",
3809
3840
  {
3810
3841
  class: "arrow-img",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.1.50",
3
+ "version": "4.1.52",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -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
- <img class="arrow-img" src="https://cdn.ddjf.com/static/images/appkit/arrow.png" alt="">
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'" @click="emits('profits', tab)">
15
- <div class="promoter-card-ft-info">销售累计收益(元)</div>
16
- <div class="promoter-card-ft-num">
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'"></div>
23
- <div class="promoter-card-ft-item" @click="emits('rebate', tab)" v-if="applyRecord.distributorFlag === 'Y'">
24
- <div class="promoter-card-ft-info">返佣累计收益(元)</div>
25
- <div class="promoter-card-ft-num">
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
- total: 0,
67
+ balance: 0,
57
68
  totalIncome: 0,
58
69
  totalRebateIncome: 0,
59
70
  })
@@ -101,31 +112,61 @@ 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.showToast({
122
+ title: toastMap[type],
123
+ icon: 'none',
124
+ })
125
+ }
104
126
  </script>
105
127
 
106
128
  <style lang="scss">
107
129
  .promoter-card {
108
- padding: 15px 20px;
109
- background: linear-gradient(180deg, #FFEEDB 0%, #FEFEFC 100%);
130
+ position: relative;
131
+ padding: 20px;
132
+ background: #fff;
110
133
  box-sizing: border-box;
111
134
  margin: 0 auto;
112
135
  border-radius: 15px;
113
136
 
137
+ .icon {
138
+ font-size: 10px;
139
+ color: rgba(53, 53, 53, 0.3);
140
+ }
141
+
142
+ .arrow {
143
+ position: absolute;
144
+ left: 0;
145
+ top: 22px;
146
+ width: 9px;
147
+ height: 16px;
148
+ }
149
+
114
150
  &-hd {
115
151
  display: flex;
116
- align-items: center;
152
+ flex-direction: column;
153
+ align-items: flex-start;
117
154
  color: #353535;
118
155
  margin-bottom: 12px;
119
156
 
120
157
  &-num {
121
- font-size: 22px;
158
+ font-size: 26px;
122
159
  font-weight: bold;
123
- margin-right: 8px;
160
+ margin-top: 8px;
161
+ display: flex;
162
+ align-items: center;
124
163
  }
125
164
 
126
165
  &-info {
127
166
  font-size: 14px;
128
167
  }
168
+
169
+
129
170
  }
130
171
 
131
172
  &-ft {
@@ -140,6 +181,8 @@ defineExpose({
140
181
  font-size: 12px;
141
182
  color: #434242;
142
183
  margin-bottom: 5px;
184
+ display: flex;
185
+ align-items: center;
143
186
  }
144
187
 
145
188
  &-num {
@@ -158,23 +201,28 @@ defineExpose({
158
201
  }
159
202
 
160
203
  &-tab {
161
- margin-top: -3px;
162
- margin-bottom: 15px;
204
+ position: absolute;
205
+ top: 10px;
206
+ right: 13px;
207
+ border-radius: 4px;
208
+ overflow: hidden;
163
209
 
164
210
  &-item {
165
211
  display: inline-flex;
166
212
  align-items: center;
167
- background: #fff;
168
- border-radius: 15px;
213
+ justify-content: center;
214
+ background: rgba(53, 53, 53, 0.1);
169
215
  height: 29px;
216
+ width: 90px;
217
+ box-sizing: border-box;
170
218
  padding: 0 10px;
171
- font-size: 12px;
172
- color: #6D4523;
173
- margin-right: 12px;
219
+ font-size: 13px;
220
+ color: #353535;
174
221
 
175
222
  &.focus {
176
- background: linear-gradient(90deg, #FFEBC1 0%, #FFB875 100%);
177
- color: #6D4523;
223
+ background: linear-gradient(90deg, #FFEBC1 0%, #FFF9ED 100%);
224
+ font-weight: bold;
225
+ border-radius: 4px;
178
226
  }
179
227
  }
180
228
  }
@@ -110,6 +110,7 @@ const onPayClick = () => {
110
110
  height: 100%;
111
111
  display: flex;
112
112
  flex-direction: column;
113
+ --nut-primary-color: #017fff;
113
114
 
114
115
  .flex-grow {
115
116
  flex-grow: 1;
@@ -171,6 +171,7 @@ const onPayClick = () => {
171
171
  height: 100%;
172
172
  display: flex;
173
173
  flex-direction: column;
174
+ --nut-primary-color: #017fff;
174
175
 
175
176
  .flex-grow {
176
177
  flex-grow: 1;
@@ -1,22 +1,9 @@
1
1
  <template>
2
2
  <div class="user-entry">
3
3
  <div class="user-entry-head">
4
- <img
5
- class="user-entry-head-img"
6
- @click="toUser"
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: 130px;
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;