Commit bfb98493 by luyt

feat:长图添加时间戳

1 parent d3de9628
...@@ -310,7 +310,7 @@ Page({ ...@@ -310,7 +310,7 @@ Page({
y: pradH, y: pradH,
width: imgW, width: imgW,
height: imgH, height: imgH,
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}.jpg?v=${Date.now()}`
// url: `https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic${actNum + 1}.webp` // url: `https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic${actNum + 1}.webp`
}, },
{ {
...@@ -357,7 +357,8 @@ Page({ ...@@ -357,7 +357,8 @@ Page({
wx.hideLoading() wx.hideLoading()
}, },
fail:(err)=>{ fail:(err)=>{
console.log(err) wx.$api.showToast('下载失败')
// console.log(err)
} }
}) })
}, },
...@@ -380,7 +381,7 @@ Page({ ...@@ -380,7 +381,7 @@ Page({
}) })
let _this = this let _this = this
wx.getImageInfo({ wx.getImageInfo({
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}.jpg?v=${Date.now()}`,
// 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}.png`,
success: async res => { success: async res => {
// console.log('res图片信息: ', res) // console.log('res图片信息: ', res)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!