抖音c端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

56 行
1.2 KiB

  1. let config = require("../../config/config.js");
  2. const navigationBarHeight = (getApp().statusBarHeight + 50) + 'px'
  3. let app = getApp();
  4. const Http = require("../../utils/HttpBasics");
  5. const util = require("../../utils/util");
  6. const imgurl = require("../../utils/imgurl");
  7. Page({
  8. data: {
  9. mouldType: 0,
  10. navigationBarHeight,
  11. data: {},
  12. couponId: null,
  13. orderId: "",
  14. day: "",
  15. hour: "",
  16. wmhome: imgurl.wmhome.url,
  17. minute: "",
  18. nodes: ''
  19. },
  20. onLoad(options) {
  21. this.setData({
  22. mouldType: app.globalData.mouldType,
  23. })
  24. let that = this;
  25. if (options.id) {
  26. Http.get({
  27. url: config.api.bannerDetail,
  28. data: {
  29. id: options.id,
  30. mallTenantId: options.mallTenantId,
  31. }
  32. }).then(res => {
  33. if (res.data.type == 2) {
  34. that.setData({
  35. nodes: res.data.html
  36. })
  37. }
  38. that.setData({
  39. data: res.data
  40. });
  41. }).catch(err => {
  42. tt.showToast({
  43. title: err.errMsg,
  44. icon: 'none',
  45. duration: 2000,
  46. mask: false
  47. });
  48. })
  49. }
  50. },
  51. goback: function () {
  52. tt.reLaunch({
  53. url: '/index/index',
  54. })
  55. },
  56. });