s-goods-column.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const common_assets = require("../../../common/assets.js");
  4. const sheep_index = require("../../index.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("../../hooks/useModal.js");
  23. require("../../helper/index.js");
  24. require("../../helper/test.js");
  25. require("../../helper/digit.js");
  26. require("../../api/member/signin.js");
  27. require("../../helper/throttle.js");
  28. require("../../url/index.js");
  29. require("../../platform/pay.js");
  30. require("../../api/pay/order.js");
  31. require("../../store/user.js");
  32. require("../../store/cart.js");
  33. require("../../api/trade/cart.js");
  34. require("../../api/pay/wallet.js");
  35. require("../../api/trade/order.js");
  36. require("../../api/promotion/coupon.js");
  37. require("../../store/sys.js");
  38. require("../../store/modal.js");
  39. require("../../api/distri/share.js");
  40. require("../../api/distri/team.js");
  41. require("../../api/infra/file.js");
  42. require("../../api/member/address.js");
  43. require("../../api/member/point.js");
  44. require("../../api/migration/app.js");
  45. require("../../api/migration/chat.js");
  46. require("../../api/migration/index.js");
  47. require("../../api/migration/third.js");
  48. require("../../api/pay/channel.js");
  49. require("../../api/product/category.js");
  50. require("../../api/product/comment.js");
  51. require("../../api/product/favorite.js");
  52. require("../../api/product/history.js");
  53. require("../../api/product/spu.js");
  54. require("../../api/promotion/activity.js");
  55. require("../../api/promotion/article.js");
  56. require("../../api/promotion/bargain.js");
  57. require("../../api/promotion/combination.js");
  58. require("../../api/promotion/rewardActivity.js");
  59. require("../../api/promotion/seckill.js");
  60. require("../../api/system/area.js");
  61. require("../../api/system/voice.js");
  62. require("../../api/trade/afterSale.js");
  63. require("../../api/trade/brokerage.js");
  64. require("../../api/trade/config.js");
  65. require("../../api/trade/delivery.js");
  66. require("../../config/zIndex.js");
  67. require("../../util/index.js");
  68. const _sfc_main = {
  69. __name: "s-goods-column",
  70. props: {
  71. goodsFields: {
  72. type: [Array, Object],
  73. default() {
  74. return {
  75. // 商品价格
  76. price: {
  77. show: true
  78. },
  79. // 库存
  80. stock: {
  81. show: true
  82. },
  83. // 商品名称
  84. name: {
  85. show: true
  86. },
  87. // 商品介绍
  88. introduction: {
  89. show: true
  90. },
  91. // 市场价
  92. promotionFee: {
  93. show: true
  94. },
  95. // 销量
  96. salesCount: {
  97. show: true
  98. }
  99. };
  100. }
  101. },
  102. tagStyle: {
  103. type: Object,
  104. default: {}
  105. },
  106. data: {
  107. type: Object,
  108. default: {}
  109. },
  110. size: {
  111. type: String,
  112. default: "sl"
  113. },
  114. background: {
  115. type: String,
  116. default: ""
  117. },
  118. topRadius: {
  119. type: Number,
  120. default: 0
  121. },
  122. bottomRadius: {
  123. type: Number,
  124. default: 0
  125. },
  126. titleWidth: {
  127. type: Number,
  128. default: 0
  129. },
  130. titleColor: {
  131. type: String,
  132. default: "#333"
  133. },
  134. priceColor: {
  135. type: String,
  136. default: ""
  137. },
  138. originPriceColor: {
  139. type: String,
  140. default: "#C4C4C4"
  141. },
  142. priceUnit: {
  143. type: String,
  144. default: "¥"
  145. },
  146. subTitleColor: {
  147. type: String,
  148. default: "#999999"
  149. },
  150. subTitleBackground: {
  151. type: String,
  152. default: ""
  153. },
  154. buttonShow: {
  155. type: Boolean,
  156. default: true
  157. },
  158. seckillTag: {
  159. type: Boolean,
  160. default: false
  161. },
  162. grouponTag: {
  163. type: Boolean,
  164. default: false
  165. }
  166. },
  167. emits: ["click", "getHeight"],
  168. setup(__props, { emit: __emit }) {
  169. common_vendor.reactive({});
  170. const props = __props;
  171. const elStyles = common_vendor.computed(() => {
  172. return {
  173. background: props.background,
  174. "border-top-left-radius": props.topRadius + "px",
  175. "border-top-right-radius": props.topRadius + "px",
  176. "border-bottom-left-radius": props.bottomRadius + "px",
  177. "border-bottom-right-radius": props.bottomRadius + "px"
  178. };
  179. });
  180. const salesAndStock = common_vendor.computed(() => {
  181. var _a, _b;
  182. let text = [];
  183. if ((_a = props.goodsFields.salesCount) == null ? void 0 : _a.show) {
  184. text.push(sheep_hooks_useGoods.formatSales(props.data.sales_show_type, props.data.salesCount));
  185. }
  186. if ((_b = props.goodsFields.stock) == null ? void 0 : _b.show) {
  187. text.push(sheep_hooks_useGoods.formatStock(props.data.stock_show_type, props.data.stock));
  188. }
  189. return text.join(" | ");
  190. });
  191. const emits = __emit;
  192. const onClick = () => {
  193. emits("click");
  194. };
  195. const {
  196. proxy
  197. } = common_vendor.getCurrentInstance();
  198. const elId = `sheep_${Math.ceil(Math.random() * 1e6).toString(36)}`;
  199. function getGoodsPriceCardWH() {
  200. if (props.size === "md") {
  201. const view = common_vendor.index.createSelectorQuery().in(proxy);
  202. view.select(`#${elId}`).fields({
  203. size: true,
  204. scrollOffset: true
  205. });
  206. view.exec((data) => {
  207. let totalHeight = 0;
  208. const goodsPriceCard = data[0];
  209. if (props.data.image_wh) {
  210. totalHeight = goodsPriceCard.width / props.data.image_wh.w * props.data.image_wh.h + goodsPriceCard.height;
  211. } else {
  212. totalHeight = goodsPriceCard.width;
  213. }
  214. emits("getHeight", totalHeight);
  215. });
  216. }
  217. }
  218. common_vendor.onMounted(() => {
  219. common_vendor.nextTick$1(() => {
  220. getGoodsPriceCardWH();
  221. });
  222. });
  223. return (_ctx, _cache) => {
  224. var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa;
  225. return common_vendor.e({
  226. a: __props.size === "xs"
  227. }, __props.size === "xs" ? common_vendor.e({
  228. b: __props.tagStyle.show
  229. }, __props.tagStyle.show ? {
  230. c: common_vendor.unref(sheep_index.sheep).$url.cdn(__props.tagStyle.src || __props.tagStyle.imgUrl)
  231. } : {}, {
  232. d: common_vendor.unref(sheep_index.sheep).$url.cdn(__props.data.image || __props.data.picUrl),
  233. e: ((_a = __props.goodsFields.title) == null ? void 0 : _a.show) || ((_b = __props.goodsFields.name) == null ? void 0 : _b.show) || ((_c = __props.goodsFields.price) == null ? void 0 : _c.show)
  234. }, ((_d = __props.goodsFields.title) == null ? void 0 : _d.show) || ((_e = __props.goodsFields.name) == null ? void 0 : _e.show) || ((_f = __props.goodsFields.price) == null ? void 0 : _f.show) ? common_vendor.e({
  235. f: ((_g = __props.goodsFields.title) == null ? void 0 : _g.show) || ((_h = __props.goodsFields.name) == null ? void 0 : _h.show)
  236. }, ((_i = __props.goodsFields.title) == null ? void 0 : _i.show) || ((_j = __props.goodsFields.name) == null ? void 0 : _j.show) ? {
  237. g: common_vendor.t(__props.data.title || __props.data.name),
  238. h: common_vendor.s({
  239. color: __props.titleColor,
  240. width: __props.titleWidth ? __props.titleWidth + "rpx" : ""
  241. })
  242. } : {}, {
  243. i: (_k = __props.goodsFields.price) == null ? void 0 : _k.show
  244. }, ((_l = __props.goodsFields.price) == null ? void 0 : _l.show) ? common_vendor.e({
  245. j: __props.data.spuPayType == 2
  246. }, __props.data.spuPayType == 2 ? {
  247. k: common_assets._imports_0
  248. } : {}, {
  249. l: __props.data.highPrecision
  250. }, __props.data.highPrecision ? {
  251. m: common_vendor.t(common_vendor.unref(common_vendor.lodashExports.isArray)(__props.data.highPrecisionPrice) ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan6)(__props.data.highPrecisionPrice[0]) : common_vendor.unref(sheep_hooks_useGoods.fen2yuan6)(__props.data.highPrecisionPrice))
  252. } : {
  253. n: common_vendor.t(common_vendor.unref(common_vendor.lodashExports.isArray)(__props.data.price) ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.price[0]) : common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.price))
  254. }, {
  255. o: common_vendor.s({
  256. color: __props.goodsFields.price.color
  257. })
  258. }) : {}, {
  259. p: __props.data.promotionFee >= 0
  260. }, __props.data.promotionFee >= 0 ? {
  261. q: common_vendor.t(common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.promotionFee))
  262. } : {}) : {}, {
  263. r: common_vendor.s(elStyles.value),
  264. s: common_vendor.o(onClick)
  265. }) : {}, {
  266. t: __props.size === "sm"
  267. }, __props.size === "sm" ? common_vendor.e({
  268. v: __props.tagStyle.show
  269. }, __props.tagStyle.show ? {
  270. w: common_vendor.unref(sheep_index.sheep).$url.cdn(__props.tagStyle.src || __props.tagStyle.imgUrl)
  271. } : {}, {
  272. x: common_vendor.unref(sheep_index.sheep).$url.cdn(__props.data.image || __props.data.picUrl),
  273. y: ((_m = __props.goodsFields.title) == null ? void 0 : _m.show) || ((_n = __props.goodsFields.name) == null ? void 0 : _n.show) || ((_o = __props.goodsFields.price) == null ? void 0 : _o.show)
  274. }, ((_p = __props.goodsFields.title) == null ? void 0 : _p.show) || ((_q = __props.goodsFields.name) == null ? void 0 : _q.show) || ((_r = __props.goodsFields.price) == null ? void 0 : _r.show) ? common_vendor.e({
  275. z: ((_s = __props.goodsFields.title) == null ? void 0 : _s.show) || ((_t = __props.goodsFields.name) == null ? void 0 : _t.show)
  276. }, ((_u = __props.goodsFields.title) == null ? void 0 : _u.show) || ((_v = __props.goodsFields.name) == null ? void 0 : _v.show) ? {
  277. A: common_vendor.t(__props.data.title || __props.data.name)
  278. } : {}, {
  279. B: (_w = __props.goodsFields.price) == null ? void 0 : _w.show
  280. }, ((_x = __props.goodsFields.price) == null ? void 0 : _x.show) ? common_vendor.e({
  281. C: __props.data.spuPayType == 2
  282. }, __props.data.spuPayType == 2 ? {
  283. D: common_assets._imports_0
  284. } : {}, {
  285. E: __props.data.highPrecision
  286. }, __props.data.highPrecision ? {
  287. F: common_vendor.t(common_vendor.unref(common_vendor.lodashExports.isArray)(__props.data.highPrecisionPrice) ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan6)(__props.data.highPrecisionPrice[0]) : common_vendor.unref(sheep_hooks_useGoods.fen2yuan6)(__props.data.highPrecisionPrice))
  288. } : {
  289. G: common_vendor.t(common_vendor.unref(common_vendor.lodashExports.isArray)(__props.data.price) ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.price[0]) : common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.price))
  290. }, {
  291. H: common_vendor.s({
  292. color: __props.goodsFields.price.color
  293. })
  294. }) : {}, {
  295. I: __props.data.promotionFee >= 0
  296. }, __props.data.promotionFee >= 0 ? {
  297. J: common_vendor.t(common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.promotionFee))
  298. } : {}, {
  299. K: common_vendor.s({
  300. color: __props.titleColor,
  301. width: __props.titleWidth ? __props.titleWidth + "rpx" : ""
  302. })
  303. }) : {}, {
  304. L: common_vendor.s(elStyles.value),
  305. M: common_vendor.o(onClick)
  306. }) : {}, {
  307. N: __props.size === "md"
  308. }, __props.size === "md" ? common_vendor.e({
  309. O: __props.tagStyle.show
  310. }, __props.tagStyle.show ? {
  311. P: common_vendor.unref(sheep_index.sheep).$url.cdn(__props.tagStyle.src || __props.tagStyle.imgUrl)
  312. } : {}, {
  313. Q: common_vendor.unref(sheep_index.sheep).$url.cdn(__props.data.image || __props.data.picUrl),
  314. R: ((_y = __props.goodsFields.title) == null ? void 0 : _y.show) || ((_z = __props.goodsFields.name) == null ? void 0 : _z.show)
  315. }, ((_A = __props.goodsFields.title) == null ? void 0 : _A.show) || ((_B = __props.goodsFields.name) == null ? void 0 : _B.show) ? {
  316. S: common_vendor.t(__props.data.title || __props.data.name),
  317. T: common_vendor.s({
  318. color: __props.titleColor,
  319. width: __props.titleWidth ? __props.titleWidth + "rpx" : ""
  320. })
  321. } : {}, {
  322. U: ((_C = __props.goodsFields.subtitle) == null ? void 0 : _C.show) || ((_D = __props.goodsFields.introduction) == null ? void 0 : _D.show)
  323. }, ((_E = __props.goodsFields.subtitle) == null ? void 0 : _E.show) || ((_F = __props.goodsFields.introduction) == null ? void 0 : _F.show) ? {
  324. V: common_vendor.t(__props.data.subtitle || __props.data.introduction),
  325. W: common_vendor.s({
  326. color: __props.subTitleColor,
  327. background: __props.subTitleBackground
  328. })
  329. } : {}, {
  330. X: (_G = __props.data.promos) == null ? void 0 : _G.length
  331. }, ((_H = __props.data.promos) == null ? void 0 : _H.length) ? {
  332. Y: common_vendor.f(__props.data.promos, (item, k0, i0) => {
  333. return {
  334. a: common_vendor.t(item.title),
  335. b: item.id
  336. };
  337. })
  338. } : {}, {
  339. Z: (_I = __props.goodsFields.price) == null ? void 0 : _I.show
  340. }, ((_J = __props.goodsFields.price) == null ? void 0 : _J.show) ? common_vendor.e({
  341. aa: __props.data.spuPayType == 2
  342. }, __props.data.spuPayType == 2 ? {
  343. ab: common_assets._imports_0
  344. } : {}, {
  345. ac: __props.data.highPrecision
  346. }, __props.data.highPrecision ? {
  347. ad: common_vendor.t(common_vendor.unref(common_vendor.lodashExports.isArray)(__props.data.highPrecisionPrice) ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan6)(__props.data.highPrecisionPrice[0]) : common_vendor.unref(sheep_hooks_useGoods.fen2yuan6)(__props.data.highPrecisionPrice))
  348. } : {
  349. ae: common_vendor.t(common_vendor.unref(common_vendor.lodashExports.isArray)(__props.data.price) ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.price[0]) : common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.price))
  350. }, {
  351. af: common_vendor.s({
  352. color: __props.goodsFields.price.color
  353. })
  354. }) : {}, {
  355. ag: __props.data.promotionFee >= 0
  356. }, __props.data.promotionFee >= 0 ? {
  357. ah: common_vendor.t(common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.promotionFee))
  358. } : {}, {
  359. ai: common_vendor.t(salesAndStock.value),
  360. aj: elId,
  361. ak: common_vendor.s(elStyles.value),
  362. al: common_vendor.o(onClick)
  363. }) : {}, {
  364. am: __props.size === "lg"
  365. }, __props.size === "lg" ? common_vendor.e({
  366. an: __props.tagStyle.show
  367. }, __props.tagStyle.show ? {
  368. ao: common_vendor.unref(sheep_index.sheep).$url.cdn(__props.tagStyle.src || __props.tagStyle.imgUrl)
  369. } : {}, {
  370. ap: __props.seckillTag
  371. }, __props.seckillTag ? {} : {}, {
  372. aq: __props.grouponTag
  373. }, __props.grouponTag ? {} : {}, {
  374. ar: common_vendor.unref(sheep_index.sheep).$url.cdn(__props.data.image || __props.data.picUrl),
  375. as: ((_K = __props.goodsFields.title) == null ? void 0 : _K.show) || ((_L = __props.goodsFields.name) == null ? void 0 : _L.show)
  376. }, ((_M = __props.goodsFields.title) == null ? void 0 : _M.show) || ((_N = __props.goodsFields.name) == null ? void 0 : _N.show) ? {
  377. at: common_vendor.t(__props.data.title || __props.data.name),
  378. av: common_vendor.s({
  379. color: __props.titleColor
  380. })
  381. } : {}, {
  382. aw: ((_O = __props.goodsFields.subtitle) == null ? void 0 : _O.show) || ((_P = __props.goodsFields.introduction) == null ? void 0 : _P.show)
  383. }, ((_Q = __props.goodsFields.subtitle) == null ? void 0 : _Q.show) || ((_R = __props.goodsFields.introduction) == null ? void 0 : _R.show) ? {
  384. ax: common_vendor.t(__props.data.subtitle || __props.data.introduction),
  385. ay: common_vendor.s({
  386. color: __props.subTitleColor,
  387. background: __props.subTitleBackground
  388. })
  389. } : {}, {
  390. az: (_S = __props.data.promos) == null ? void 0 : _S.length
  391. }, ((_T = __props.data.promos) == null ? void 0 : _T.length) ? {
  392. aA: common_vendor.f(__props.data.promos, (item, k0, i0) => {
  393. return {
  394. a: common_vendor.t(item.title),
  395. b: item.id
  396. };
  397. })
  398. } : {}, {
  399. aB: (_U = __props.goodsFields.price) == null ? void 0 : _U.show
  400. }, ((_V = __props.goodsFields.price) == null ? void 0 : _V.show) ? common_vendor.e({
  401. aC: __props.data.spuPayType == 2
  402. }, __props.data.spuPayType == 2 ? {
  403. aD: common_assets._imports_0
  404. } : {}, {
  405. aE: __props.data.highPrecision
  406. }, __props.data.highPrecision ? {
  407. aF: common_vendor.t(common_vendor.unref(common_vendor.lodashExports.isArray)(__props.data.highPrecisionPrice) ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan6)(__props.data.highPrecisionPrice[0]) : common_vendor.unref(sheep_hooks_useGoods.fen2yuan6)(__props.data.highPrecisionPrice))
  408. } : {
  409. aG: common_vendor.t(common_vendor.unref(common_vendor.lodashExports.isArray)(__props.data.price) ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.price[0]) : common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.price))
  410. }, {
  411. aH: common_vendor.s({
  412. color: __props.goodsFields.price.color
  413. })
  414. }) : {}, {
  415. aI: __props.data.promotionFee >= 0
  416. }, __props.data.promotionFee >= 0 ? {
  417. aJ: common_vendor.t(common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.promotionFee))
  418. } : {}, {
  419. aK: common_vendor.t(salesAndStock.value),
  420. aL: __props.buttonShow
  421. }, __props.buttonShow ? {} : {}, {
  422. aM: common_vendor.s(elStyles.value),
  423. aN: common_vendor.o(onClick)
  424. }) : {}, {
  425. aO: __props.size === "sl"
  426. }, __props.size === "sl" ? common_vendor.e({
  427. aP: __props.tagStyle.show
  428. }, __props.tagStyle.show ? {
  429. aQ: common_vendor.unref(sheep_index.sheep).$url.cdn(__props.tagStyle.src || __props.tagStyle.imgUrl)
  430. } : {}, {
  431. aR: common_vendor.unref(sheep_index.sheep).$url.cdn(__props.data.image || __props.data.picUrl),
  432. aS: ((_W = __props.goodsFields.title) == null ? void 0 : _W.show) || ((_X = __props.goodsFields.name) == null ? void 0 : _X.show)
  433. }, ((_Y = __props.goodsFields.title) == null ? void 0 : _Y.show) || ((_Z = __props.goodsFields.name) == null ? void 0 : _Z.show) ? {
  434. aT: common_vendor.t(__props.data.title || __props.data.name),
  435. aU: common_vendor.s({
  436. color: __props.titleColor
  437. })
  438. } : {}, {
  439. aV: ((__ = __props.goodsFields.subtitle) == null ? void 0 : __.show) || ((_$ = __props.goodsFields.introduction) == null ? void 0 : _$.show)
  440. }, ((_aa = __props.goodsFields.subtitle) == null ? void 0 : _aa.show) || ((_ba = __props.goodsFields.introduction) == null ? void 0 : _ba.show) ? {
  441. aW: common_vendor.t(__props.data.subtitle || __props.data.introduction),
  442. aX: common_vendor.s({
  443. color: __props.subTitleColor,
  444. background: __props.subTitleBackground
  445. })
  446. } : {}, {
  447. aY: (_ca = __props.data.promos) == null ? void 0 : _ca.length
  448. }, ((_da = __props.data.promos) == null ? void 0 : _da.length) ? {
  449. aZ: common_vendor.f(__props.data.promos, (item, k0, i0) => {
  450. return {
  451. a: common_vendor.t(item.title),
  452. b: item.id
  453. };
  454. })
  455. } : {}, {
  456. ba: (_ea = __props.goodsFields.price) == null ? void 0 : _ea.show
  457. }, ((_fa = __props.goodsFields.price) == null ? void 0 : _fa.show) ? common_vendor.e({
  458. bb: __props.data.spuPayType == 2
  459. }, __props.data.spuPayType == 2 ? {
  460. bc: common_assets._imports_0
  461. } : {}, {
  462. bd: common_vendor.t(common_vendor.unref(common_vendor.lodashExports.isArray)(__props.data.price) ? common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.price[0]) : common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.price)),
  463. be: common_vendor.s({
  464. color: __props.goodsFields.price.color
  465. }),
  466. bf: __props.data.promotionFee >= 0
  467. }, __props.data.promotionFee >= 0 ? {
  468. bg: common_vendor.t(common_vendor.unref(sheep_hooks_useGoods.fen2yuan)(__props.data.promotionFee))
  469. } : {}) : {}, {
  470. bh: common_vendor.t(salesAndStock.value),
  471. bi: common_vendor.s(elStyles.value),
  472. bj: common_vendor.o(onClick)
  473. }) : {});
  474. };
  475. }
  476. };
  477. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1c3d9e07"], ["__file", "D:/zx/mall-front-app/sheep/components/s-goods-column/s-goods-column.vue"]]);
  478. wx.createComponent(Component);