bonusTips.js 804 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // pages/components/bonusTips/bonusTips.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. tipsDatas: {
  8. type:Object
  9. }
  10. },
  11. /**
  12. * 组件的初始数据
  13. */
  14. data: {
  15. },
  16. /**
  17. * 组件的方法列表
  18. */
  19. methods: {
  20. myCatchTouch() {
  21. return
  22. },
  23. seeBonus() {
  24. this.close()
  25. let { btn_type } = this.properties.tipsDatas
  26. if (btn_type == 'detail') {
  27. let { type_sn } = this.properties.tipsDatas
  28. wx.navigateTo({
  29. url: `/pages/shareBonus/shareBonus?type_sn=${type_sn}`
  30. })
  31. }
  32. else if (btn_type == 'send') {
  33. wx.navigateTo({
  34. url: `/pages/handOutBonus/handOutBonus`
  35. })
  36. }
  37. },
  38. close() {
  39. this.triggerEvent('closeTips')
  40. }
  41. }
  42. })