s-wallet-modal.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const sheep_index = require("../../index.js");
  4. const sheep_hooks_useModal = require("../../hooks/useModal.js");
  5. const sheep_hooks_useGoods = require("../../hooks/useGoods.js");
  6. require("../../api/index.js");
  7. require("../../api/distri/score.js");
  8. require("../../request/index.js");
  9. require("../../config/index.js");
  10. require("../../store/index.js");
  11. require("../../store/app.js");
  12. require("../../api/promotion/diy.js");
  13. require("../../platform/index.js");
  14. require("../../platform/provider/wechat/index.js");
  15. require("../../platform/provider/wechat/miniProgram.js");
  16. require("../../api/member/auth.js");
  17. require("../../api/member/social.js");
  18. require("../../api/member/user.js");
  19. require("../../platform/provider/apple/index.js");
  20. require("../../platform/share.js");
  21. require("../../router/index.js");
  22. require("../../helper/throttle.js");
  23. require("../../url/index.js");
  24. require("../../platform/pay.js");
  25. require("../../helper/index.js");
  26. require("../../helper/test.js");
  27. require("../../helper/digit.js");
  28. require("../../api/pay/order.js");
  29. require("../../store/user.js");
  30. require("../../store/cart.js");
  31. require("../../api/trade/cart.js");
  32. require("../../api/pay/wallet.js");
  33. require("../../api/trade/order.js");
  34. require("../../api/promotion/coupon.js");
  35. require("../../store/sys.js");
  36. require("../../store/modal.js");
  37. require("../../api/distri/share.js");
  38. require("../../api/distri/team.js");
  39. require("../../api/infra/file.js");
  40. require("../../api/member/address.js");
  41. require("../../api/member/point.js");
  42. require("../../api/member/signin.js");
  43. require("../../api/migration/app.js");
  44. require("../../api/migration/chat.js");
  45. require("../../api/migration/index.js");
  46. require("../../api/migration/third.js");
  47. require("../../api/pay/channel.js");
  48. require("../../api/product/category.js");
  49. require("../../api/product/comment.js");
  50. require("../../api/product/favorite.js");
  51. require("../../api/product/history.js");
  52. require("../../api/product/spu.js");
  53. require("../../api/promotion/activity.js");
  54. require("../../api/promotion/article.js");
  55. require("../../api/promotion/bargain.js");
  56. require("../../api/promotion/combination.js");
  57. require("../../api/promotion/rewardActivity.js");
  58. require("../../api/promotion/seckill.js");
  59. require("../../api/system/area.js");
  60. require("../../api/system/voice.js");
  61. require("../../api/trade/afterSale.js");
  62. require("../../api/trade/brokerage.js");
  63. require("../../api/trade/config.js");
  64. require("../../api/trade/delivery.js");
  65. require("../../config/zIndex.js");
  66. require("../../util/index.js");
  67. if (!Array) {
  68. const _easycom_su_popup2 = common_vendor.resolveComponent("su-popup");
  69. _easycom_su_popup2();
  70. }
  71. const _easycom_su_popup = () => "../../ui/su-popup/su-popup.js";
  72. if (!Math) {
  73. _easycom_su_popup();
  74. }
  75. const _sfc_main = {
  76. __name: "s-wallet-modal",
  77. setup(__props) {
  78. common_vendor.useCssVars((_ctx) => ({
  79. "463127a0": common_vendor.unref(headerBg)
  80. }));
  81. const headerBg = sheep_index.sheep.$url.css("/static/images/sign.png");
  82. const show = common_vendor.computed(() => sheep_index.sheep.$store("modal").getWallet);
  83. const state = common_vendor.computed(() => sheep_index.sheep.$store("modal").getWalletInfo);
  84. return (_ctx, _cache) => {
  85. return common_vendor.e({
  86. a: state.value.points && common_vendor.unref(sheep_hooks_useGoods.points2point)(state.value.points) > 0 || state.value.socialStatus
  87. }, state.value.points && common_vendor.unref(sheep_hooks_useGoods.points2point)(state.value.points) > 0 || state.value.socialStatus ? common_vendor.e({
  88. b: state.value.points && common_vendor.unref(sheep_hooks_useGoods.points2point)(state.value.points) > 0
  89. }, state.value.points && common_vendor.unref(sheep_hooks_useGoods.points2point)(state.value.points) > 0 ? {
  90. c: common_vendor.t(common_vendor.unref(sheep_hooks_useGoods.points2point)(state.value.points))
  91. } : {}, {
  92. d: state.value.socialStatus
  93. }, state.value.socialStatus ? {
  94. e: common_vendor.t(state.value.socialStatus)
  95. } : {}) : {}, {
  96. f: common_vendor.o(($event) => {
  97. common_vendor.unref(sheep_hooks_useModal.colseWalletModal)();
  98. }),
  99. g: common_vendor.o(common_vendor.unref(sheep_hooks_useModal.colseWalletModal)),
  100. h: common_vendor.s(_ctx.__cssVars()),
  101. i: common_vendor.p({
  102. show: show.value,
  103. type: "center",
  104. round: "10"
  105. })
  106. });
  107. };
  108. }
  109. };
  110. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bd9b951b"], ["__file", "D:/zx/mall-front-app/sheep/components/s-wallet-modal/s-wallet-modal.vue"]]);
  111. wx.createComponent(Component);