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.

78 lines
1.8 KiB

  1. // components/list/list.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. },
  8. /**
  9. * 组件的初始数据
  10. */
  11. data: {
  12. flag1: 0,
  13. flag2: 0,
  14. flag3: 0,
  15. icon: ["/asset/img/icon-display1.png",
  16. "/asset/img/icon-display2.png"],
  17. star: ["/asset/img/icon-star.png",
  18. "/asset/img/redstar.png"],
  19. st: 0,
  20. display1 : 'none',
  21. display2: 'none',
  22. display3: 'none',
  23. certificates: ["身份证"]
  24. },
  25. /**
  26. * 组件的方法列表
  27. */
  28. methods: {
  29. onRet: function () {
  30. wx.reLaunch({
  31. url: "/Pages/travel/home/home",
  32. });
  33. },
  34. hit: function () {
  35. this.setData({
  36. display1: this.data.flag1 == 1 ? 'none' : 'block',
  37. flag1: this.data.flag1 == 0 ? 1 : 0
  38. })
  39. },
  40. hit2: function () {
  41. this.setData({
  42. display2: this.data.flag2 == 1 ? 'none' : 'block',
  43. flag2: this.data.flag2 == 0 ? 1 : 0
  44. })
  45. },
  46. hitc: function () {
  47. this.setData({
  48. display3: this.data.flag3 == 1 ? 'none' : 'block',
  49. flag3: this.data.flag3 == 0 ? 1 : 0
  50. })
  51. },
  52. addPub: function(){
  53. const length = this.data.pubBillNum.length
  54. },
  55. addPrivate: function(){
  56. const length = this.data.priBillNum.length
  57. this.setData({
  58. priBillNum:this.data.priBillNum.concat([length+1])
  59. })
  60. },
  61. emphasize:function(){
  62. this.setData({
  63. st: this.data.st == 0 ? 1 : 0
  64. })
  65. },
  66. }
  67. })