Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
scmMiniprogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9b2a5027
authored
Nov 10, 2021
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
acf947fd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
pages/payable/detail.vue
util/api.js
pages/payable/detail.vue
View file @
9b2a5027
...
...
@@ -40,10 +40,11 @@
<text
class=
"t3"
>
{{
total
}}
</text>
</view>
</view>
<view
class=
"btn row rowCenter verCenter"
>
<view
class=
"btn row rowCenter verCenter"
@
click=
"download()"
>
<text
class=
"iconfont icon-a-riqi12"
></text>
<text
class=
"tt"
>
付款通知书
</text>
</view>
<web-view
:src=
"url"
v-if=
"flag"
></web-view>
</view>
</
template
>
...
...
@@ -56,7 +57,9 @@ export default {
orderNo
:
''
,
applyPayment
:
{},
detail
:
{},
total
:
''
total
:
''
,
flag
:
false
,
url
:
''
};
},
onLoad
(
options
)
{
...
...
@@ -78,6 +81,19 @@ export default {
this
.
detail
=
res
.
data
[
0
];
}
});
},
download
()
{
const
token
=
uni
.
getStorageSync
(
'token'
)
||
''
;
this
.
request
(
API
.
GetPaymentNoticePrintData
,
'GET'
,
{
number
:
this
.
orderNo
,
auth_token
:
token
},
false
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
url
=
res
.
data
;
this
.
flag
=
true
;
}
else
{
uni
.
showToast
({
title
:
res
.
err_msg
});
}
});
}
}
};
...
...
util/api.js
View file @
9b2a5027
...
...
@@ -85,7 +85,12 @@ const API = {
/**
* 付款详情
* */
GetPaymentDetails
:
API_BASE
+
'/supplywechatorder/getPaymentDetails'
GetPaymentDetails
:
API_BASE
+
'/supplywechatorder/getPaymentDetails'
,
/**
* 付款通知书
* */
GetPaymentNoticePrintData
:
API_BASE
+
'/supplywechatorder/getPaymentNoticePrintData'
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment