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
53976df1
Commit
53976df1
authored
Mar 17, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_lqs' into 'master'
修改 See merge request
!95
parents
a2451632
e7e373e7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
25 deletions
+42
-25
bank.js
H5/src/api/bank.js
+5
-7
bridgeToAppFun.js
H5/src/utils/bridgeToAppFun.js
+3
-1
bank.vue
H5/src/views/bank.vue
+16
-1
cash-out.vue
H5/src/views/cashOut/cash-out.vue
+13
-13
register.vue
H5/src/views/register.vue
+1
-1
settings.vue
H5/src/views/settings.vue
+4
-2
No files found.
H5/src/api/bank.js
View file @
53976df1
...
...
@@ -77,8 +77,6 @@ export function getBankList() {
});
}
/**
* 获取扣稅説明
* @returns
...
...
H5/src/utils/bridgeToAppFun.js
View file @
53976df1
...
...
@@ -68,7 +68,9 @@ class bridgeToAppFun {
const
referrer
=
document
.
referrer
;
if
(
referrer
!==
""
)
{
console
.
log
(
"reffer不为空"
,
referrer
);
// location.href = referrer;
const
home_url
=
"https://shop92680967.youzan.com/v2/showcase/homepage?alias=6aFsQ4vCp7"
;
location
.
href
=
home_url
;
}
else
{
console
.
log
(
"调用navigateBack"
);
window
.
android
.
navigateBack
();
...
...
H5/src/views/bank.vue
View file @
53976df1
...
...
@@ -12,6 +12,7 @@
<van-field
v-model=
"form.cardNumber"
type=
"number"
maxlength=
"19"
label=
"银行卡卡号"
placeholder=
"请输入"
size=
"large"
...
...
@@ -83,12 +84,23 @@ export default {
});
},
addAndEditBankInfo
()
{
if
(
!
this
.
form
.
bankName
)
{
this
.
$toast
.
fail
(
"请填写所属银行"
);
return
;
}
else
if
(
!
this
.
form
.
cardNumber
)
{
this
.
$toast
.
fail
(
"请填写银行卡号"
);
return
;
}
else
if
(
!
this
.
form
.
name
)
{
this
.
$$toast
.
fail
(
"请填写姓名"
);
return
;
}
const
params
=
this
.
form
;
if
(
this
.
form
.
id
)
{
editUserBankInfo
(
params
)
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$toast
.
success
(
"编辑成功"
);
this
.
$router
.
go
(
-
1
);
}
else
{
this
.
$toast
.
fail
(
"编辑失败"
);
}
...
...
@@ -99,10 +111,13 @@ export default {
);
});
}
else
{
addUserBankInfo
()
const
addParams
=
params
;
addParams
.
userId
=
this
.
$userId
;
addUserBankInfo
(
params
)
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$toast
.
success
(
"添加成功"
);
this
.
$router
.
go
(
-
1
);
}
else
{
this
.
$toast
.
fail
(
"添加失败"
);
}
...
...
H5/src/views/cashOut/cash-out.vue
View file @
53976df1
...
...
@@ -38,7 +38,7 @@
/>
</p>
<p
class=
"explain"
>
<span>
{{
this
.
textName
}}
</span>
<span>
{{
this
.
textName
}}
</span>
</p>
</div>
</div>
...
...
@@ -89,7 +89,7 @@
<
script
>
import
{
getWithdrawalAmount
}
from
"@/api/wallet"
;
import
{
getUserBankInfo
,
sendSms
,
cashOut
,
getTaxRate
}
from
"@/api/bank"
;
import
{
getUserBankInfo
,
sendSms
,
cashOut
,
getTaxRate
}
from
"@/api/bank"
;
import
BaseDialog
from
"@/components/BaseDialog.vue"
;
export
default
{
components
:
{
BaseDialog
},
...
...
@@ -106,7 +106,7 @@ export default {
resultDialogTip
:
""
,
resultDialogImg
:
""
,
resultDialog
:
false
,
textName
:
''
,
textName
:
""
,
validCodeDialogShow
:
false
,
validCode
:
null
};
...
...
@@ -164,13 +164,13 @@ export default {
this
.
validCode
=
null
;
this
.
validCodeDialogShow
=
true
;
},
taxtClick
()
{
taxtClick
()
{
const
params
=
{
money
:
1
}
};
getTaxRate
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
textName
=
res
.
data
.
taxDesc
this
.
textName
=
res
.
data
.
taxDesc
;
}
});
},
...
...
H5/src/views/register.vue
View file @
53976df1
<
template
>
<div
class=
"register-container"
>
<
van-icon
name=
"arrow-left"
@
click=
"$router.go(-1)"
/
>
<
!--
<van-icon
name=
"arrow-left"
@
click=
"$router.go(-1)"
/>
--
>
<img
src=
"@/assets/images/logo.png"
class=
"logo-img"
alt=
""
/>
<div
class=
"form-content"
>
<van-cell-group>
...
...
H5/src/views/settings.vue
View file @
53976df1
<
template
>
<div
class=
"settings"
>
<van-cell-group
class=
"group-1"
>
<van-cell
title=
"用户名"
:value=
"
$userId
"
/>
<van-cell
title=
"用户名"
:value=
"
userName
"
/>
<van-cell
is-link
center
title=
"头像"
@
click=
"onModefy"
>
<img
class=
"avatar-img"
:src=
"imgBaseUrl + avatar"
alt=
"头像"
/>
</van-cell>
...
...
@@ -55,6 +55,7 @@ export default {
name
:
"Settings"
,
data
()
{
return
{
userName
:
""
,
imgBaseUrl
:
""
,
avatar
:
""
,
fileList
:
[],
...
...
@@ -63,7 +64,7 @@ export default {
inviteeCodeDialog
:
false
};
},
moun
ted
()
{
crea
ted
()
{
this
.
imgBaseUrl
=
process
.
env
.
VUE_APP_BASE_URL
;
this
.
getUser
();
},
...
...
@@ -77,6 +78,7 @@ export default {
if
(
res
.
userId
)
{
localStorage
.
setItem
(
"user"
,
JSON
.
stringify
(
res
));
this
.
$nextTick
(()
=>
{
this
.
userName
=
res
.
userId
;
this
.
inviteeCode
=
res
.
beInvitedCode
;
this
.
avatar
=
res
.
headImage
;
});
...
...
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