floatWindow.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. const util = require("../../../utils/util.js");
  2. const app = getApp();
  3. Component({
  4. options:{
  5. addGlobalClass:true
  6. },
  7. properties: {
  8. show:{
  9. type: Boolean,
  10. observer: function (newVal, oldVal) {
  11. this.setData({ show: newVal });
  12. }
  13. },
  14. type: {
  15. type: Number,
  16. observer: function (newVal, oldVal) {
  17. this.setData({ type: newVal });
  18. }
  19. },
  20. price: {
  21. type: Number,
  22. observer: function (newVal, oldVal) {
  23. this.setData({ price: newVal });
  24. }
  25. },
  26. orderid: {
  27. type: String,
  28. observer: function (newVal, oldVal) {
  29. this.setData({ orderid: newVal });
  30. }
  31. },
  32. groupid: {
  33. type: String,
  34. observer: function (newVal, oldVal) {
  35. this.setData({ groupid: newVal });
  36. }
  37. },
  38. aid: {
  39. type: String,
  40. observer: function (newVal, oldVal) {
  41. this.setData({ aid: newVal });
  42. }
  43. },
  44. sid:{
  45. type: Number,
  46. observer: function (newVal, oldVal) {
  47. this.setData({ sid: newVal });
  48. }
  49. },
  50. pid:{
  51. type: String,
  52. observer: function (newVal, oldVal) {
  53. this.setData({ pid: newVal });
  54. }
  55. },
  56. groupbook:{
  57. type: Number,
  58. observer: function (newVal, oldVal) {
  59. this.setData({ groupbook: newVal });
  60. }
  61. },
  62. channel: {
  63. type: Number,
  64. observer: function (newVal, oldVal) {
  65. this.setData({ channel: newVal });
  66. }
  67. },
  68. status: {
  69. type: Number,
  70. observer: function (newVal, oldVal) {
  71. this.setData({ status: newVal });
  72. }
  73. },
  74. channelTimes: {
  75. type: Number,
  76. observer: function (newVal, oldVal) {
  77. this.setData({ channelTimes: newVal });
  78. }
  79. },
  80. invitefbtn:{
  81. type: Boolean,
  82. observer: function (newVal, oldVal) {
  83. console.log(newVal, oldVal)
  84. this.setData({ invitefbtn: newVal });
  85. }
  86. },
  87. },
  88. data: {
  89. show:true,
  90. price:0
  91. },
  92. methods:{
  93. close(){
  94. this.setData({show:false})
  95. },
  96. invite(){
  97. let channelinfo=this.data.channelTimes==1?('&channel='+this.data.channel+'&channelTimes='+this.data.channelTimes):'';
  98. console.log(channelinfo)
  99. util.navigator('/pages/product/activity/bill?id='+this.data.aid+
  100. '&orderid='+this.data.orderid+
  101. '&groupid='+this.data.groupid+
  102. '&status='+this.data.status+
  103. '&groupbook='+this.data.groupbook+
  104. channelinfo +
  105. '&sid='+this.data.sid+
  106. '&pid='+this.data.pid
  107. );
  108. },
  109. }
  110. })