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 5a03e7fe
authored
Oct 31, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:调整滚动时长,海报下载为jpg格式
1 parent
58704443
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
pages/checkProduct/checkProduct.js
pages/tab/index/index.js
pages/checkProduct/checkProduct.js
View file @
5a03e7f
...
...
@@ -281,6 +281,7 @@ Page({
})
let _this = this
console.log('imgPath',imgPath)
wx.getImageInfo({
src: imgPath,
success: async respp => {
...
...
@@ -309,7 +310,8 @@ Page({
y: pradH,
width: imgW,
height: imgH,
url: `
https
:
//img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic${actNum + 1}.png`
url: `
https
:
//img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic${actNum + 1}.jpg`
// url: `https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic${actNum + 1}.webp`
},
{
// x: 245 * 2,
...
...
@@ -353,6 +355,9 @@ Page({
}
// _this.modelcloseFn();
wx
.
hideLoading
()
},
fail
:(
err
)
=>
{
console
.
log
(
err
)
}
})
},
...
...
@@ -375,9 +380,10 @@ Page({
})
let
_this
=
this
wx
.
getImageInfo
({
src
:
`https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic
${
actNum
+
1
}
.png`
,
src
:
`https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic
${
actNum
+
1
}
.jpg`
,
// src: `https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic${actNum + 1}.png`,
success
:
async
res
=>
{
console
.
log
(
'res
: '
,
res
)
// console.log('res图片信息
: ', res)
wx
.
hideLoading
()
wx
.
nextTick
(()
=>
{
...
...
@@ -386,6 +392,9 @@ Page({
imgPath
:
res
.
path
})
})
},
fail
:(
err
)
=>
{
console
.
log
(
'err: '
,
err
);
}
})
},
...
...
pages/tab/index/index.js
View file @
5a03e7f
...
...
@@ -702,6 +702,20 @@ Page({
// console.log(userInfo)
!
userInfo
.
isSuper
&&
this
.
getSharePost
(
userInfo
.
subLoginUser
.
merchantId
)
},
// 节流函数
throttle
(
fn
,
gaptime
)
{
if
(
gaptime
==
null
||
gaptime
==
undefined
)
{
gaptime
=
200
}
let
_lastTime
=
null
return
function
()
{
let
_nowTime
=
+
new
Date
()
if
(
_nowTime
-
_lastTime
>
gaptime
||
!
_lastTime
)
{
fn
.
apply
(
this
,
arguments
)
_lastTime
=
_nowTime
}
}
},
onPageScroll
:
(
function
()
{
let
timer
=
null
return
function
(
e
)
{
...
...
@@ -711,7 +725,7 @@ Page({
timer
=
setTimeout
(()
=>
{
// console.log("滚动结束");
wx
.
$eventbus
.
emit
(
'evt_page_scroll'
,
{
scrollTop
:
e
.
scrollTop
})
},
5
00
)
},
3
00
)
}
})(),
// 上拉刷新
...
...
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