rushBig.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. var 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: {
  46. type: Object
  47. },
  48. goods_sale_unit: String
  49. },
  50. attached() {
  51. this.setData({ placeholdeImg: app.globalData.placeholdeImg })
  52. },
  53. data: {
  54. disabled: false,
  55. placeholdeImg: ''
  56. },
  57. methods: {
  58. goLink: function() {
  59. let id = this.data.spuItem.actId;
  60. id && wx.navigateTo({
  61. url: `/lionfish_comshop/moduleA/pin/goodsDetail?&id=${id}`,
  62. })
  63. }
  64. }
  65. });