Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
XiTianSenMall
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leiqingsong
XiTianSenMall
Commits
c5b4f298
Commit
c5b4f298
authored
Mar 17, 2021
by
全球
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回按钮图片加载,提现说明
parent
bb608855
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
7 deletions
+38
-7
bank.js
H5/src/api/bank.js
+14
-0
cash-out.vue
H5/src/views/cashOut/cash-out.vue
+16
-1
invite.vue
H5/src/views/invite.vue
+8
-6
No files found.
H5/src/api/bank.js
View file @
c5b4f298
...
...
@@ -76,3 +76,17 @@ export function getBankList() {
method
:
"get"
});
}
/**
* 获取扣稅説明
* @returns
*/
export
function
getTaxRate
(
params
)
{
return
request
({
url
:
"/bank/getTaxRate"
,
method
:
"get"
,
params
});
}
H5/src/views/cashOut/cash-out.vue
View file @
c5b4f298
...
...
@@ -31,11 +31,15 @@
<p
class=
"explain"
>
<span>
扣税说明
</span>
<img
@
click=
"taxtClick"
class=
"explain-img"
src=
"@/assets/images/explain.png"
alt=
"解释"
/>
</p>
<p
class=
"explain"
>
<span>
{{
this
.
textName
}}
</span>
</p>
</div>
</div>
<div
style=
"padding: 10px 16px"
>
...
...
@@ -85,7 +89,7 @@
<
script
>
import
{
getWithdrawalAmount
}
from
"@/api/wallet"
;
import
{
getUserBankInfo
,
sendSms
,
cashOut
}
from
"@/api/bank"
;
import
{
getUserBankInfo
,
sendSms
,
cashOut
,
getTaxRate
}
from
"@/api/bank"
;
import
BaseDialog
from
"@/components/BaseDialog.vue"
;
export
default
{
components
:
{
BaseDialog
},
...
...
@@ -102,6 +106,7 @@ export default {
resultDialogTip
:
""
,
resultDialogImg
:
""
,
resultDialog
:
false
,
textName
:
''
,
validCodeDialogShow
:
false
,
validCode
:
null
};
...
...
@@ -159,6 +164,16 @@ export default {
this
.
validCode
=
null
;
this
.
validCodeDialogShow
=
true
;
},
taxtClick
(){
const
params
=
{
money
:
1
}
getTaxRate
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
textName
=
res
.
data
.
taxDesc
}
});
},
getUserInfo
()
{
const
params
=
{
userId
:
this
.
$userId
...
...
H5/src/views/invite.vue
View file @
c5b4f298
...
...
@@ -2,11 +2,10 @@
<div
class=
"invite-code"
>
<div
class=
"nav"
>
<van-icon
name=
"arrow-left"
size=
"20"
class=
"nav-left"
color=
"#ffffff"
@
click=
"$router.go(-1)"
name=
"arrow-left"
size=
"20"
class=
"nav-left"
@
click=
"back"
/>
<img
:src=
"imgSrc"
alt=
""
class=
"imgCode"
/>
</div>
...
...
@@ -36,6 +35,9 @@ export default {
_this
.
imgSrc
=
_this
.
getUserPhoto
(
res
);
});
},
back
(){
this
.
$router
.
go
(
-
1
)
},
getUserPhoto
(
res
)
{
let
uInt8Array
=
new
Uint8Array
(
res
);
let
len
=
uInt8Array
.
length
;
...
...
@@ -44,7 +46,7 @@ export default {
binaryString
[
len
]
=
String
.
fromCharCode
(
uInt8Array
[
len
]);
}
let
data
=
window
.
btoa
(
binaryString
.
join
(
""
));
let
imageType
=
"image/
jpe
g"
;
let
imageType
=
"image/
pn
g"
;
let
imageUrl
=
"data:"
+
imageType
+
";base64,"
+
data
;
return
imageUrl
;
}
...
...
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