log.js 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const sheep_index = require("../../../sheep/index.js");
  4. const sheep_api_trade_order = require("../../../sheep/api/trade/order.js");
  5. require("../../../sheep/api/index.js");
  6. require("../../../sheep/api/distri/score.js");
  7. require("../../../sheep/request/index.js");
  8. require("../../../sheep/config/index.js");
  9. require("../../../sheep/store/index.js");
  10. require("../../../sheep/store/app.js");
  11. require("../../../sheep/api/promotion/diy.js");
  12. require("../../../sheep/platform/index.js");
  13. require("../../../sheep/platform/provider/wechat/index.js");
  14. require("../../../sheep/platform/provider/wechat/miniProgram.js");
  15. require("../../../sheep/api/member/auth.js");
  16. require("../../../sheep/api/member/social.js");
  17. require("../../../sheep/api/member/user.js");
  18. require("../../../sheep/platform/provider/apple/index.js");
  19. require("../../../sheep/platform/share.js");
  20. require("../../../sheep/router/index.js");
  21. require("../../../sheep/hooks/useModal.js");
  22. require("../../../sheep/helper/index.js");
  23. require("../../../sheep/helper/test.js");
  24. require("../../../sheep/helper/digit.js");
  25. require("../../../sheep/api/member/signin.js");
  26. require("../../../sheep/helper/throttle.js");
  27. require("../../../sheep/url/index.js");
  28. require("../../../sheep/platform/pay.js");
  29. require("../../../sheep/api/pay/order.js");
  30. require("../../../sheep/store/user.js");
  31. require("../../../sheep/store/cart.js");
  32. require("../../../sheep/api/trade/cart.js");
  33. require("../../../sheep/api/pay/wallet.js");
  34. require("../../../sheep/api/promotion/coupon.js");
  35. require("../../../sheep/store/sys.js");
  36. require("../../../sheep/store/modal.js");
  37. require("../../../sheep/api/distri/share.js");
  38. require("../../../sheep/api/distri/team.js");
  39. require("../../../sheep/api/infra/file.js");
  40. require("../../../sheep/api/member/address.js");
  41. require("../../../sheep/api/member/point.js");
  42. require("../../../sheep/api/migration/app.js");
  43. require("../../../sheep/api/migration/chat.js");
  44. require("../../../sheep/api/migration/index.js");
  45. require("../../../sheep/api/migration/third.js");
  46. require("../../../sheep/api/pay/channel.js");
  47. require("../../../sheep/api/product/category.js");
  48. require("../../../sheep/api/product/comment.js");
  49. require("../../../sheep/api/product/favorite.js");
  50. require("../../../sheep/api/product/history.js");
  51. require("../../../sheep/api/product/spu.js");
  52. require("../../../sheep/api/promotion/activity.js");
  53. require("../../../sheep/api/promotion/article.js");
  54. require("../../../sheep/api/promotion/bargain.js");
  55. require("../../../sheep/api/promotion/combination.js");
  56. require("../../../sheep/api/promotion/rewardActivity.js");
  57. require("../../../sheep/api/promotion/seckill.js");
  58. require("../../../sheep/api/system/area.js");
  59. require("../../../sheep/api/system/voice.js");
  60. require("../../../sheep/api/trade/afterSale.js");
  61. require("../../../sheep/api/trade/brokerage.js");
  62. require("../../../sheep/api/trade/config.js");
  63. require("../../../sheep/api/trade/delivery.js");
  64. require("../../../sheep/config/zIndex.js");
  65. if (!Array) {
  66. const _easycom_uni_swiper_dot2 = common_vendor.resolveComponent("uni-swiper-dot");
  67. const _easycom_s_layout2 = common_vendor.resolveComponent("s-layout");
  68. (_easycom_uni_swiper_dot2 + _easycom_s_layout2)();
  69. }
  70. const _easycom_uni_swiper_dot = () => "../../../uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.js";
  71. const _easycom_s_layout = () => "../../../sheep/components/s-layout/s-layout.js";
  72. if (!Math) {
  73. (_easycom_uni_swiper_dot + _easycom_s_layout)();
  74. }
  75. const _sfc_main = {
  76. __name: "log",
  77. setup(__props) {
  78. const state = common_vendor.reactive({
  79. info: [],
  80. tracks: []
  81. });
  82. const goodsImages = common_vendor.computed(() => {
  83. let array = [];
  84. if (state.info.items) {
  85. state.info.items.forEach((item) => {
  86. array.push({
  87. image: item.picUrl
  88. });
  89. });
  90. }
  91. return array;
  92. });
  93. async function getExpressDetail(id) {
  94. const {
  95. data
  96. } = await sheep_api_trade_order.OrderApi.getOrderExpressTrackList(id);
  97. state.tracks = data;
  98. }
  99. async function getOrderDetail(id) {
  100. const {
  101. data
  102. } = await sheep_api_trade_order.OrderApi.getOrder(id);
  103. state.info = data;
  104. }
  105. common_vendor.onLoad((options) => {
  106. getExpressDetail(options.id);
  107. getOrderDetail(options.id);
  108. });
  109. return (_ctx, _cache) => {
  110. return common_vendor.e({
  111. a: goodsImages.value.length > 0
  112. }, goodsImages.value.length > 0 ? {
  113. b: common_vendor.f(goodsImages.value, (item, index, i0) => {
  114. return {
  115. a: common_vendor.unref(sheep_index.sheep).$url.static(item.image),
  116. b: index
  117. };
  118. }),
  119. c: common_vendor.p({
  120. info: goodsImages.value,
  121. current: state.current,
  122. mode: "round"
  123. }),
  124. d: common_vendor.t(state.info.logisticsNo),
  125. e: common_vendor.t(state.info.logisticsName),
  126. f: common_vendor.t(common_vendor.unref(sheep_index.sheep).$helper.timeFormat(state.info.deliveryTime, "yyyy-mm-dd hh:MM"))
  127. } : {}, {
  128. g: common_vendor.f(state.tracks, (item, index, i0) => {
  129. return common_vendor.e({
  130. a: state.tracks.length - 1 !== index
  131. }, state.tracks.length - 1 !== index ? {} : {}, {
  132. b: common_vendor.t(item.content),
  133. c: common_vendor.t(common_vendor.unref(sheep_index.sheep).$helper.timeFormat(item.time, "yyyy-mm-dd hh:MM:ss")),
  134. d: item.title
  135. });
  136. }),
  137. h: common_vendor.p({
  138. title: "物流追踪"
  139. })
  140. });
  141. };
  142. }
  143. };
  144. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d9d25552"], ["__file", "D:/zx/mall-front-app/pages/order/express/log.vue"]]);
  145. wx.createPage(MiniProgramPage);