pinGoods.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. let app = getApp();
  2. Component({
  3. properties: {
  4. spuItem: {
  5. type: Object,
  6. value: {
  7. actId: "",
  8. skuId: "",
  9. spuImage: "",
  10. spuName: "",
  11. endTime: 0,
  12. beginTime: "",
  13. actPrice: ["", ""],
  14. marketPrice: ["", ""],
  15. spuCanBuyNum: "",
  16. soldNum: "",
  17. actId: "",
  18. limitMemberNum: "",
  19. limitOrderNum: "",
  20. serverTime: "",
  21. isLimit: false,
  22. skuList: [],
  23. spuDescribe: "",
  24. is_take_fullreduction: 0,
  25. bigImg: '',
  26. car_count: 0
  27. }
  28. },
  29. isPast: {
  30. type: Boolean,
  31. value: false
  32. },
  33. actEnd: {
  34. type: Boolean,
  35. value: false
  36. },
  37. reduction: {
  38. type: Object,
  39. value: {
  40. full_money: '',
  41. full_reducemoney: '',
  42. is_open_fullreduction: 0
  43. }
  44. },
  45. skin: Object,
  46. goods_sale_unit: String
  47. },
  48. attached() {
  49. this.setData({ placeholdeImg: app.globalData.placeholdeImg })
  50. },
  51. data: {
  52. disabled: false,
  53. placeholdeImg: ''
  54. },
  55. methods: {
  56. goLink: function () {
  57. let id = this.data.spuItem.actId;
  58. id && wx.navigateTo({
  59. url: `/lionfish_comshop/moduleA/pin/goodsDetail?&id=${id}`,
  60. })
  61. }
  62. }
  63. });