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

56 行
1.1 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. }
  31. }).then(res => {
  32. if(res.data.type==2){
  33. that.setData({
  34. nodes: res.data.html
  35. })
  36. }
  37. that.setData({
  38. data: res.data
  39. });
  40. }).catch(err => {
  41. tt.showToast({
  42. title: err.errMsg,
  43. icon: 'none',
  44. duration: 2000,
  45. mask: false
  46. });
  47. })
  48. }
  49. },
  50. goback: function () {
  51. tt.reLaunch({
  52. url: '/index/index',
  53. })
  54. },
  55. });