C端小程序
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.

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