account-info.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const sheep_index = require("../../../sheep/index.js");
  4. const sheep_api_trade_brokerage = require("../../../sheep/api/trade/brokerage.js");
  5. const sheep_hooks_useGoods = require("../../../sheep/hooks/useGoods.js");
  6. require("../../../sheep/api/index.js");
  7. require("../../../sheep/api/distri/score.js");
  8. require("../../../sheep/request/index.js");
  9. require("../../../sheep/config/index.js");
  10. require("../../../sheep/store/index.js");
  11. require("../../../sheep/store/app.js");
  12. require("../../../sheep/api/promotion/diy.js");
  13. require("../../../sheep/platform/index.js");
  14. require("../../../sheep/platform/provider/wechat/index.js");
  15. require("../../../sheep/platform/provider/wechat/miniProgram.js");
  16. require("../../../sheep/api/member/auth.js");
  17. require("../../../sheep/api/member/social.js");
  18. require("../../../sheep/api/member/user.js");
  19. require("../../../sheep/platform/provider/apple/index.js");
  20. require("../../../sheep/platform/share.js");
  21. require("../../../sheep/router/index.js");
  22. require("../../../sheep/hooks/useModal.js");
  23. require("../../../sheep/helper/index.js");
  24. require("../../../sheep/helper/test.js");
  25. require("../../../sheep/helper/digit.js");
  26. require("../../../sheep/api/member/signin.js");
  27. require("../../../sheep/helper/throttle.js");
  28. require("../../../sheep/url/index.js");
  29. require("../../../sheep/platform/pay.js");
  30. require("../../../sheep/api/pay/order.js");
  31. require("../../../sheep/store/user.js");
  32. require("../../../sheep/store/cart.js");
  33. require("../../../sheep/api/trade/cart.js");
  34. require("../../../sheep/api/pay/wallet.js");
  35. require("../../../sheep/api/trade/order.js");
  36. require("../../../sheep/api/promotion/coupon.js");
  37. require("../../../sheep/store/sys.js");
  38. require("../../../sheep/store/modal.js");
  39. require("../../../sheep/api/distri/share.js");
  40. require("../../../sheep/api/distri/team.js");
  41. require("../../../sheep/api/infra/file.js");
  42. require("../../../sheep/api/member/address.js");
  43. require("../../../sheep/api/member/point.js");
  44. require("../../../sheep/api/migration/app.js");
  45. require("../../../sheep/api/migration/chat.js");
  46. require("../../../sheep/api/migration/index.js");
  47. require("../../../sheep/api/migration/third.js");
  48. require("../../../sheep/api/pay/channel.js");
  49. require("../../../sheep/api/product/category.js");
  50. require("../../../sheep/api/product/comment.js");
  51. require("../../../sheep/api/product/favorite.js");
  52. require("../../../sheep/api/product/history.js");
  53. require("../../../sheep/api/product/spu.js");
  54. require("../../../sheep/api/promotion/activity.js");
  55. require("../../../sheep/api/promotion/article.js");
  56. require("../../../sheep/api/promotion/bargain.js");
  57. require("../../../sheep/api/promotion/combination.js");
  58. require("../../../sheep/api/promotion/rewardActivity.js");
  59. require("../../../sheep/api/promotion/seckill.js");
  60. require("../../../sheep/api/system/area.js");
  61. require("../../../sheep/api/system/voice.js");
  62. require("../../../sheep/api/trade/afterSale.js");
  63. require("../../../sheep/api/trade/config.js");
  64. require("../../../sheep/api/trade/delivery.js");
  65. require("../../../sheep/config/zIndex.js");
  66. require("../../../sheep/util/index.js");
  67. if (!Array) {
  68. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  69. _easycom_uni_icons2();
  70. }
  71. const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  72. if (!Math) {
  73. _easycom_uni_icons();
  74. }
  75. const _sfc_main = {
  76. __name: "account-info",
  77. setup(__props) {
  78. common_vendor.computed(() => sheep_index.sheep.$store("user").userInfo);
  79. const state = common_vendor.reactive({
  80. showMoney: false,
  81. summary: {}
  82. });
  83. common_vendor.onMounted(async () => {
  84. let { code, data } = await sheep_api_trade_brokerage.BrokerageApi.getBrokerageUserSummary();
  85. if (code === 0) {
  86. state.summary = data || {};
  87. }
  88. });
  89. return (_ctx, _cache) => {
  90. return {
  91. a: common_vendor.p({
  92. type: state.showMoney ? "eye-filled" : "eye-slash-filled",
  93. color: "#A57A55",
  94. size: "20"
  95. }),
  96. b: common_vendor.o(($event) => state.showMoney = !state.showMoney),
  97. c: common_vendor.o(($event) => common_vendor.unref(sheep_index.sheep).$router.go("/pages/user/wallet/commission")),
  98. d: common_vendor.t(state.showMoney ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(state.summary.brokeragePrice || 0) : "***"),
  99. e: common_vendor.t(state.showMoney ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(state.summary.yesterdayPrice || 0) : "***"),
  100. f: common_vendor.t(state.showMoney ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(state.summary.withdrawPrice || 0) : "***")
  101. };
  102. };
  103. }
  104. };
  105. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-12734ec3"], ["__file", "D:/zx/mall-front-app/pages/commission/components/account-info.vue"]]);
  106. wx.createComponent(Component);