东风启辰小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 satır
675B

  1. // pages/lookPrizeDetail/lookPrizeDetail.js
  2. const app = getApp()
  3. Component({
  4. /**
  5. * 组件的属性列表
  6. */
  7. properties: {
  8. lookIndex:{
  9. type: Object,
  10. value: {}
  11. }
  12. },
  13. /**
  14. * 组件的初始数据
  15. */
  16. data: {
  17. imgUrl: app.globalData.urlStatic,//图片路径
  18. showType:1
  19. },
  20. //组件生命周期函数-在组件实例进入页面节点树时执行
  21. attached(){
  22. },
  23. /**
  24. * 组件的方法列表
  25. */
  26. methods: {
  27. closeXieyi: function () {
  28. this.triggerEvent('lookPrizeDetail')
  29. },
  30. showTypeControl: function (e) {
  31. this.setData({
  32. showType: e.currentTarget.dataset.type
  33. })
  34. },
  35. }
  36. })