Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 59d1d0e9
authored
Jul 17, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
放大图下载
1 parent
31be81f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
tabWorkOrder/pages/invoiceResult/invoiceResult.js
tabWorkOrder/pages/invoiceResult/invoiceResult.wxml
tabWorkOrder/pages/invoiceResult/invoiceResult.js
View file @
59d1d0e
...
...
@@ -34,7 +34,7 @@ Page({
}
})
},
handleBack
()
{
wx
.
$router
.
back
()
},
...
...
@@ -49,13 +49,25 @@ Page({
this
.
triggerEvent
(
'longtouch'
,
info
.
imgUrl
)
},
previewImage
(
e
)
{
let
{
url
}
=
e
.
currentTarget
.
dataset
if
(
url
.
includes
(
'http'
))
{
wx
.
previewImage
({
urls
:
[
url
],
current
:
url
})
}
else
{
// this.triggerEvent('refresh')
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
wx
.
hideShareMenu
({
menus
:
[
'shareAppMessage'
,
'shareTimeline'
]
})
menus
:
[
'shareAppMessage'
,
'shareTimeline'
]
})
},
/**
...
...
tabWorkOrder/pages/invoiceResult/invoiceResult.wxml
View file @
59d1d0e
<!--tabWorkOrder/pages/invoiceResult/invoiceResult.wxml-->
<van-overlay wx:if="{{ info.code == '0000' }}" show z-index="99999">
<view class="wrapper">
<image show-menu-by-longpress bindlongpress="longpress" src="{{info.imgUrl}}" mode="widthFix" />
<image show-menu-by-longpress bindlongpress="longpress" bindtap="previewImage" src="{{info.imgUrl}}"
data-url="{{info.imgUrl}}" mode="widthFix" />
</view>
</van-overlay>
<view wx:else>
...
...
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