Commit 75f9cdcb by 张立顺

Merge branch 'develop' of 192.168.3.233:saas_plus/business-assistant into develop

2 parents f2c58e81 d3de9628
......@@ -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);
}
})
},
......
......@@ -168,7 +168,7 @@ Component({
activeNavIdx: 0,
});
// 每次切换场景,重新获取流程图高度
// this.getImgHeight();
this.getImgHeight();
this.getMoreFn();
// this
if (this.data.wrapactiveNavIdx) {
......
......@@ -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 })
}, 500)
}, 300)
}
})(),
// 上拉刷新
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!