liukangdong
2024-07-18 5b219a9694c8d69db42e746a654c779cc6a61bf6
wechat_jiaxuan/pages/kefu/index.js
@@ -1,11 +1,12 @@
// pages/kefu/index.js
import { getCustomizedNewsDetail } from '../../api/index'
Page({
  /**
   * 页面的初始数据
   */
  data: {
    bottomLift: 0
    bottomLift: 0,
    info: {}
  },
  /**
@@ -16,11 +17,17 @@
    this.setData({
      bottomLift: app.bottomLift
    })
    if(options && options.id){
      this.getDetail(options.id)
    }
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  getDetail(id) {
    getCustomizedNewsDetail({id}).then(res => {
      this.setData({
        info: { ...res.data }
      })
    })
  },
  onReady() {
  },