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 ea8c348e
authored
Jan 10, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
膨胀金bug修复
1 parent
e0f356b0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
pages/viewProdBanner/index.js
pages/viewProdBanner/index.scss
pages/viewProdBanner/index.wxml
pages/viewProdBanner/index.js
View file @
ea8c348
...
@@ -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;
...
...
pages/viewProdBanner/index.scss
View file @
ea8c348
...
@@ -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
:
1
22
4rpx
;
height
:
1
14
4rpx
;
}
}
.img-item42
{
.img-item42
{
...
@@ -215,7 +217,7 @@ page {
...
@@ -215,7 +217,7 @@ page {
.img-item44
{
.img-item44
{
width
:
100%
;
width
:
100%
;
height
:
2220
rpx
;
height
:
3188
rpx
;
}
}
.img-item45
{
.img-item45
{
...
...
pages/viewProdBanner/index.wxml
View file @
ea8c348
...
@@ -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}}">
...
...
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