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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. const reqInterface = require("../../../../api/models");
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. title: '',
  8. content: ''
  9. },
  10. /**
  11. * 生命周期函数--监听页面加载
  12. */
  13. onLoad(options) {
  14. let self = this;
  15. reqInterface.GetConsumerinfopublicDetail({
  16. id: options.id
  17. }).then(res => {
  18. self.setData({
  19. title: res.title,
  20. content: res.content,
  21. list: res.consumerInfos
  22. })
  23. })
  24. },
  25. /**
  26. * 生命周期函数--监听页面初次渲染完成
  27. */
  28. onReady() {
  29. },
  30. /**
  31. * 生命周期函数--监听页面显示
  32. */
  33. onShow() {
  34. },
  35. /**
  36. * 生命周期函数--监听页面隐藏
  37. */
  38. onHide() {
  39. },
  40. /**
  41. * 生命周期函数--监听页面卸载
  42. */
  43. onUnload() {
  44. },
  45. /**
  46. * 页面相关事件处理函数--监听用户下拉动作
  47. */
  48. onPullDownRefresh() {
  49. },
  50. /**
  51. * 页面上拉触底事件的处理函数
  52. */
  53. onReachBottom() {
  54. },
  55. /**
  56. * 用户点击右上角分享
  57. */
  58. onShareAppMessage() {
  59. }
  60. })