抖音b端
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.

55 lines
1.1 KiB

  1. const config = require('../../config/config.js')
  2. const Http = require('../../utils/http.js')
  3. const HttpBasics = require('../../utils/HttpBasics.js')
  4. const util = require('../../utils/util.js')
  5. var app = getApp()
  6. Page({
  7. /**
  8. * 页面的初始数据
  9. */
  10. data: {
  11. showDetailIf: true,
  12. creditNum:0,
  13. type:1,
  14. creditAmount:0,
  15. titleH:'',
  16. title:[]
  17. },
  18. goOn(){
  19. tt.navigateBack({
  20. delta: 1
  21. })
  22. },
  23. goBack(){
  24. tt.reLaunch({
  25. url: '/pages/main/main',
  26. })
  27. },
  28. /**
  29. * 生命周期函数--监听页面显示
  30. */
  31. onLoad: function (options) {
  32. console.log(options)
  33. if (options.titleH){
  34. this.setData({
  35. type: options.type,
  36. titleH: options.titleH,
  37. title: options.titleH.split(',')
  38. })
  39. tt.setNavigationBarTitle({
  40. title: '会员赠券'
  41. })
  42. }else{
  43. this.setData({
  44. creditNum: options.creditNum,
  45. type: options.type,
  46. creditAmount: options.creditAmount,
  47. })
  48. tt.setNavigationBarTitle({
  49. title: '会员积分'
  50. })
  51. }
  52. console.log(this.data.titleH, this.data.title)
  53. },
  54. })