Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 50c68fe4
authored
Nov 08, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:添加看产品刷新
1 parent
9af691de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
13 deletions
components/FullscreenVideo/FullscreenVideo.wxml
pages/tab/index/index.js
components/FullscreenVideo/FullscreenVideo.wxml
View file @
50c68fe
<!-- components/FullscreenVideo/FullscreenVideo.wxml -->
<!-- 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
\ 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
\ No newline at end of file
pages/tab/index/index.js
View file @
50c68fe
...
@@ -284,17 +284,7 @@ Page({
...
@@ -284,17 +284,7 @@ Page({
sessionId
sessionId
}
}
// 看产品
// 看产品
productBysceneApi
(
param
).
then
(
res
=>
{
this
.
getProductByscene
()
let
{
code
,
data
}
=
res
if
(
code
==
0
)
{
this
.
setData
({
apiData
:
data
})
this
.
compositionData
(
senceData
,
this
.
data
.
apiData
)
// this.getFirstSenceIndex();
}
})
// // 看线索
// // 看线索
// this.getClueInit()
// this.getClueInit()
this
.
getUnreadApi
()
this
.
getUnreadApi
()
...
@@ -365,6 +355,20 @@ Page({
...
@@ -365,6 +355,20 @@ Page({
actNum
:
actTndex
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({
...
@@ -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
,
});
}
},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment