checkDetail.js 713 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. var app = getApp()
  2. var that;
  3. Page({
  4. data: {
  5. showRuleTwo: false,//显示规则组件
  6. ruleVal: "规则分类",
  7. page:1,
  8. },
  9. onLoad(e) {
  10. that = this;
  11. dd.setNavigationBar({ title: "排名" });
  12. if (e.item) {
  13. this.setData({
  14. item: JSON.parse(e.item)
  15. })
  16. this.setData({
  17. item_obj: that.data.item.item
  18. })
  19. this.getData();
  20. }
  21. },
  22. getData() {
  23. var item=this.data.item;
  24. console.log(item);
  25. app.$post('api/ad/event',item).then((res) => {
  26. var data = res.data.data.list;
  27. this.setData({
  28. list: data
  29. })
  30. })
  31. },
  32. //显示规则组件
  33. selectRule() {
  34. this.setData({
  35. showRuleTwo: true
  36. })
  37. },
  38. });