C端小程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

51 строка
1020 B

  1. let config = require("../../config/config.js");
  2. let app = getApp();
  3. const Http = require("../../utils/HttpBasics");
  4. const util = require("../../utils/util");
  5. Page({
  6. data: {
  7. data: {},
  8. couponId: null,
  9. orderId: "",
  10. day: "",
  11. hour: "",
  12. minute: "",
  13. nodes: ''
  14. },
  15. onShow() {
  16. let that = this;
  17. that.topicShow();
  18. },
  19. topicShow(){
  20. let that = this;
  21. Http.get({
  22. url: config.api.topicShow,
  23. data: {
  24. token: app.globalData.token
  25. }
  26. }).then(res => {
  27. console.log(res)
  28. if (res&&res.data) {
  29. that.setData({
  30. data: res.data
  31. });
  32. console.log(that.data.data)
  33. }
  34. }).catch(err => {
  35. wx.showToast({
  36. title: err.errMsg,
  37. icon: 'none',
  38. duration: 2000,
  39. mask: false
  40. });
  41. })
  42. },
  43. gotoactdetail:function(){
  44. let that = this;
  45. console.log(that.data.data.detail)
  46. wx.navigateTo({
  47. url: `/pages/actdetail/actdetail?detail=${that.data.data.detail}`,
  48. })
  49. }
  50. });