Commit ea8c348e by chenwq

膨胀金bug修复

1 parent e0f356b0
...@@ -143,6 +143,28 @@ Page({ ...@@ -143,6 +143,28 @@ Page({
// apiData, // apiData,
}; };
}, },
// 长按图片
handleLongPress(e) {
let { actnum, index } = e.target.dataset
// 膨胀金活动,合作方式
if (actnum == 4 && index == 4) {
wx.downloadFile({
// 示例 url,并非真实存在
url: 'https://scrm.glsx.com.cn/frontpdf/expand_agreement.pdf',
success: function (res) {
console.log(res)
const filePath = res.tempFilePath
wx.openDocument({
filePath: filePath,
success: function (res) {
console.log('打开文档成功')
}
})
}
})
}
},
onClickTab(event) { onClickTab(event) {
// console.log('event: ', event);s // console.log('event: ', event);s
let { index } = event.detail; let { index } = event.detail;
......
...@@ -192,7 +192,9 @@ page { ...@@ -192,7 +192,9 @@ page {
.img-item33 { .img-item33 {
width: 100%; width: 100%;
height: 2002rpx; height: 2002rpx;
}// // 流程图五 }
// 流程图五
.img-item40 { .img-item40 {
width: 100%; width: 100%;
height: 1564rpx; height: 1564rpx;
...@@ -200,7 +202,7 @@ page { ...@@ -200,7 +202,7 @@ page {
.img-item41 { .img-item41 {
width: 100%; width: 100%;
height: 1224rpx; height: 1144rpx;
} }
.img-item42 { .img-item42 {
...@@ -215,7 +217,7 @@ page { ...@@ -215,7 +217,7 @@ page {
.img-item44 { .img-item44 {
width: 100%; width: 100%;
height: 2220rpx; height: 3188rpx;
} }
.img-item45 { .img-item45 {
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</button> </button>
</block> --> </block> -->
</image> </image>
<image wx:if="{{ index >= 3 && !showLeftFlag}}" webp class="img-item img-item{{actNum}}{{index}}" src="{{item}}?v={{img_version}}"> <image wx:if="{{ index >= 3 && !showLeftFlag}}" webp class="img-item img-item{{actNum}}{{index}}" src="{{item}}?v={{img_version}}" bindlongpress="handleLongPress" data-actnum="{{actNum}}" data-index="{{index}}">
</image> </image>
</block> </block>
<view class="occupancy" wx:if="{{!isShare}}"> <view class="occupancy" wx:if="{{!isShare}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!