jiangping
2024-07-29 d9a89d83c2048a964f16ca179feb2b7f21b9d33a
wechat_staff/pages/index/index.js
@@ -30,12 +30,11 @@
  onLoad() {
    const res = wx.getMenuButtonBoundingClientRect()
    this.setData({
      clientHeight: res.height
    })
    this.setData({
      clientHeight: res.height,
      clientTop: res.top
    })
  },
  onShow() {
    this.initData()
  },
  initData() {
@@ -131,12 +130,16 @@
    const {
      videourl
    } = e.currentTarget.dataset
    wx.previewMedia({
      sources: [{
        url: videourl,
        type: 'video'
      }]
    })
    let videoPlay = this.selectComponent('.videoPlay');
    if(videoPlay){
      videoPlay.startPlayVideo(videourl,this );
    }
    // wx.previewMedia({
    //   sources: [{
    //     url: videourl,
    //     type: 'video'
    //   }]
    // })
  },
  seriveClick(e) {
    const {