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

45 строки
905 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. },
  14. onLoad(options) {
  15. let that = this;
  16. if (options.id){
  17. Http.get({
  18. url: config.api.bannerDetail,
  19. data: {
  20. id: options.id
  21. }
  22. }).then(res => {
  23. that.setData({
  24. data: res.data
  25. });
  26. }).catch(err => {
  27. wx.showToast({
  28. title: err.errMsg,
  29. icon: 'none',
  30. duration: 2000,
  31. mask: false
  32. });
  33. })
  34. }
  35. },
  36. gotoactdetail:function(){
  37. let that = this;
  38. console.log(that.data.data.detail)
  39. wx.navigateTo({
  40. url: `/pages/actdetail/actdetail?detail=${that.data.data.detail}`,
  41. })
  42. }
  43. });