Commit 50c68fe4 by luyt

feat:添加看产品刷新

1 parent 9af691de
<!-- components/FullscreenVideo/FullscreenVideo.wxml -->
<!-- -->
<video id='myvideo' class='{{fullScreen?"show":"hide"}}' src="{{src}}" title="{{title}}" autoplay="true" bindfullscreenchange="fullScreenFn" bindended="closeVideo" controls></video>
\ No newline at end of file
<video id='myvideo' class='{{fullScreen?"show":"hide"}}' src="{{src}}" title="{{title}}" autoplay="true" direction="{{0}}" bindfullscreenchange="fullScreenFn" bindended="closeVideo" controls></video>
\ No newline at end of file
......@@ -284,17 +284,7 @@ Page({
sessionId
}
// 看产品
productBysceneApi(param).then(res => {
let { code, data } = res
if (code == 0) {
this.setData({
apiData: data
})
this.compositionData(senceData, this.data.apiData)
// this.getFirstSenceIndex();
}
})
this.getProductByscene()
// // 看线索
// this.getClueInit()
this.getUnreadApi()
......@@ -365,6 +355,20 @@ Page({
actNum: actTndex
})
},
// 看产品接口
getProductByscene(){
productBysceneApi().then(res => {
let { code, data } = res
if (code == 0) {
this.setData({
apiData: data
})
this.compositionData(senceData, this.data.apiData)
// this.getFirstSenceIndex();
}
})
},
// 看线索相关
/**
* 生命周期函数--监听页面初次渲染完成
......@@ -480,7 +484,22 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
onPullDownRefresh: function () {
// console.log(123546)
let {tabIndx} = this.data
if(tabIndx == 1){
// 看产品
this.getProductByscene()
// // 看线索
// this.getClueInit()
this.getUnreadApi()
wx.pro.showToast({
title: "刷新成功",
icon: "loading",
duration: 1500,
});
}
},
/**
* 用户点击右上角分享
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!