Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
newydyl1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
qd01
newydyl1
Commits
5afff873
Commit
5afff873
authored
Feb 20, 2025
by
zhangsan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
81f6b23b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
29 deletions
+31
-29
package.json
package.json
+1
-1
App.vue
src/pages/register/App.vue
+7
-7
App.vue
src/pages/user/accountSecurity/App.vue
+2
-2
App.vue
src/pages/user/bindBankCard/App.vue
+15
-11
App.vue
src/pages/user/tixian/App.vue
+4
-7
vite.config.ts
vite.config.ts
+2
-1
No files found.
package.json
View file @
5afff873
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
"node"
:
"18.x"
"node"
:
"18.x"
},
},
"scripts"
:
{
"scripts"
:
{
"dev"
:
"vite --host"
,
"dev"
:
"vite --host
0.0.0.0
"
,
"build"
:
"vite build"
,
"build"
:
"vite build"
,
"build:test"
:
"vue-tsc --noEmit && vite build --mode test"
,
"build:test"
:
"vue-tsc --noEmit && vite build --mode test"
,
"preinstall"
:
"npx only-allow pnpm"
,
"preinstall"
:
"npx only-allow pnpm"
,
...
...
src/pages/register/App.vue
View file @
5afff873
...
@@ -24,12 +24,12 @@
...
@@ -24,12 +24,12 @@
<van-icon
v-if=
"!isShow1"
name=
"closed-eye"
@
click=
"isShow1 = !isShow1"
/>
<van-icon
v-if=
"!isShow1"
name=
"closed-eye"
@
click=
"isShow1 = !isShow1"
/>
<van-icon
v-if=
"isShow1"
name=
"eye-o"
@
click=
"isShow1 = !isShow1"
/>
<van-icon
v-if=
"isShow1"
name=
"eye-o"
@
click=
"isShow1 = !isShow1"
/>
</div>
</div>
<div
class=
"warpinput"
>
<
!--
<
div
class=
"warpinput"
>
<div
style=
"display: flex;align-items: center;"
>
<div
style=
"display: flex;align-items: center;"
>
<img
style=
"width: 15px;height: 19px;"
src=
"@/static/common/jiaoyi.png"
alt=
""
>
<img
style=
"width: 15px;height: 19px;"
src=
"@/static/common/jiaoyi.png"
alt=
""
>
<input
v-model=
"formData.extend3"
type=
"password"
placeholder=
"设置交易密码"
>
<input
v-model=
"formData.extend3"
type=
"password"
placeholder=
"设置交易密码"
>
</div>
</div>
</div>
</div>
-->
<div
class=
"warpinput"
>
<div
class=
"warpinput"
>
<div
style=
"display: flex;align-items: center;"
>
<div
style=
"display: flex;align-items: center;"
>
<img
style=
"width: 17px;height: 17px;"
src=
"@/static/common/yq.png"
alt=
""
>
<img
style=
"width: 17px;height: 17px;"
src=
"@/static/common/yq.png"
alt=
""
>
...
@@ -105,10 +105,10 @@ function validateForm(): boolean {
...
@@ -105,10 +105,10 @@ function validateForm(): boolean {
return
false
return
false
}
}
if
(
!
formData
.
extend3
)
{
//
if (!formData.extend3) {
showFailToast
(
'
请设置交易密码
'
)
//
showFailToast('请设置交易密码')
return
false
//
return false
}
//
}
if
(
!
formData
.
inviteCode
)
{
if
(
!
formData
.
inviteCode
)
{
showFailToast
(
'
请输入邀请码
'
)
showFailToast
(
'
请输入邀请码
'
)
...
@@ -129,7 +129,7 @@ async function handleSubmit() {
...
@@ -129,7 +129,7 @@ async function handleSubmit() {
code
:
''
,
code
:
''
,
type
:
encrypt
(
'
app
'
),
type
:
encrypt
(
'
app
'
),
yqm
:
formData
.
inviteCode
,
yqm
:
formData
.
inviteCode
,
extend3
:
formData
.
extend3
,
//
extend3: formData.extend3,
})
})
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
...
...
src/pages/user/accountSecurity/App.vue
View file @
5afff873
...
@@ -134,7 +134,7 @@ onMounted(() => {
...
@@ -134,7 +134,7 @@ onMounted(() => {
</div>
</div>
<!-- 交易密码 -->
<!-- 交易密码 -->
<div
class=
"menu-item"
@
click=
"navigateTo('/user/resetPayPass.html')"
>
<
!--
<
div
class=
"menu-item"
@
click=
"navigateTo('/user/resetPayPass.html')"
>
<div
class=
"left"
>
<div
class=
"left"
>
<van-icon
name=
"shield-o"
class=
"menu-icon"
/>
<van-icon
name=
"shield-o"
class=
"menu-icon"
/>
<span>
修改交易密码
</span>
<span>
修改交易密码
</span>
...
@@ -142,7 +142,7 @@ onMounted(() => {
...
@@ -142,7 +142,7 @@ onMounted(() => {
<div
class=
"right"
>
<div
class=
"right"
>
<van-icon
name=
"arrow"
/>
<van-icon
name=
"arrow"
/>
</div>
</div>
</div>
</div>
-->
<!-- 实名认证 -->
<!-- 实名认证 -->
<div
class=
"menu-item"
@
click=
"handleVerification"
>
<div
class=
"menu-item"
@
click=
"handleVerification"
>
...
...
src/pages/user/bindBankCard/App.vue
View file @
5afff873
...
@@ -67,10 +67,10 @@ function validateForm(): boolean {
...
@@ -67,10 +67,10 @@ function validateForm(): boolean {
return
false
return
false
}
}
if
(
!
formData
.
value
.
extend3
)
{
//
if (!formData.value.extend3) {
showFailToast
(
'
请输入交易密码
'
)
//
showFailToast('请输入交易密码')
return
false
//
return false
}
//
}
return
true
return
true
}
}
...
@@ -86,10 +86,10 @@ getUserInfo()
...
@@ -86,10 +86,10 @@ getUserInfo()
async
function
handleBindBankCard
()
{
async
function
handleBindBankCard
()
{
if
(
loading
.
value
)
if
(
loading
.
value
)
return
return
if
(
formData
.
value
.
extend3
!=
userData
.
value
.
extend3
)
{
//
if (formData.value.extend3 != userData.value.extend3) {
showFailToast
(
'
交易密码错误
'
)
//
showFailToast('交易密码错误')
return
//
return
}
//
}
try
{
try
{
loading
.
value
=
true
loading
.
value
=
true
let
data
=
{
let
data
=
{
...
@@ -190,7 +190,7 @@ getBankList()
...
@@ -190,7 +190,7 @@ getBankList()
</div>
</div>
</div>
</div>
<div
class=
"label"
>
<
!--
<
div
class=
"label"
>
交易密码
交易密码
</div>
</div>
<div
class=
"warpinput"
>
<div
class=
"warpinput"
>
...
@@ -200,7 +200,7 @@ getBankList()
...
@@ -200,7 +200,7 @@ getBankList()
maxlength=
"6"
maxlength=
"6"
>
>
</div>
</div>
</div>
</div>
-->
<div
class=
"tips"
>
<div
class=
"tips"
>
<div>
* 银行卡持卡人必须与实名认证姓名一致
</div>
<div>
* 银行卡持卡人必须与实名认证姓名一致
</div>
...
@@ -238,7 +238,10 @@ getBankList()
...
@@ -238,7 +238,10 @@ getBankList()
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
15px
;
padding
:
15px
;
width
:
100%
;
div
{
width
:
100%
;
}
input
{
input
{
margin-left
:
12px
;
margin-left
:
12px
;
background-color
:
#fff
!
important
;
background-color
:
#fff
!
important
;
...
@@ -247,6 +250,7 @@ getBankList()
...
@@ -247,6 +250,7 @@ getBankList()
color
:
#460a0b
;
color
:
#460a0b
;
font-size
:
14px
;
font-size
:
14px
;
width
:
100%
;
width
:
100%
;
display
:
block
;
&
:
:
placeholder
{
&
:
:
placeholder
{
color
:
#999
;
color
:
#999
;
...
...
src/pages/user/tixian/App.vue
View file @
5afff873
...
@@ -11,14 +11,13 @@ const title = ref(urlParams.get('title'));
...
@@ -11,14 +11,13 @@ const title = ref(urlParams.get('title'));
const
loading
=
ref
(
false
)
const
loading
=
ref
(
false
)
const
bankList
=
ref
([])
const
bankList
=
ref
([])
const
amount
=
ref
(
''
)
const
amount
=
ref
(
''
)
const
password
=
ref
(
''
)
const
maxAmount
=
computed
(()
=>
Number
(
balance
.
value
))
const
maxAmount
=
computed
(()
=>
Number
(
balance
.
value
))
const
canWithdraw
=
computed
(()
=>
{
const
canWithdraw
=
computed
(()
=>
{
const
withdrawAmount
=
Number
(
amount
.
value
)
const
withdrawAmount
=
Number
(
amount
.
value
)
return
withdrawAmount
>
0
&&
return
withdrawAmount
>
0
&&
withdrawAmount
<=
maxAmount
.
value
&&
withdrawAmount
<=
maxAmount
.
value
&&
bankId
.
value
&&
(
type
.
value
==
1
?
password
.
value
.
length
>=
6
:
true
)
bankId
.
value
})
})
const
bankId
=
ref
(
''
)
const
bankId
=
ref
(
''
)
...
@@ -52,17 +51,15 @@ const handleWithdraw = async () => {
...
@@ -52,17 +51,15 @@ const handleWithdraw = async () => {
data
=
{
data
=
{
withdrawAmount
:
amount
.
value
,
withdrawAmount
:
amount
.
value
,
bankId
:
bankId
.
value
,
bankId
:
bankId
.
value
,
password
:
password
.
value
,
withdrawType
:
type
.
value
withdrawType
:
type
.
value
}
}
}
else
{
}
else
{
data
=
{
data
=
{
sum
:
amount
.
value
,
sum
:
amount
.
value
,
pwd
:
password
.
value
,
}
}
}
}
const
res
=
await
request
.
post
(
type
.
value
!=
1
?
'
/ops/withdraw
'
:
`/ops/bankcard/zrxnk?sum=
${
amount
.
value
}
&pwd=
${
password
.
value
}
`
,
data
)
const
res
=
await
request
.
post
(
type
.
value
!=
1
?
'
/ops/withdraw
'
:
`/ops/bankcard/zrxnk?sum=
${
amount
.
value
}
`
,
data
)
if
(
res
?.
code
===
200
)
{
if
(
res
?.
code
===
200
)
{
showSuccessToast
(
'
提现申请成功
'
)
showSuccessToast
(
'
提现申请成功
'
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -139,10 +136,10 @@ onMounted(fetchBankCards)
...
@@ -139,10 +136,10 @@ onMounted(fetchBankCards)
</div>
</div>
<!-- 支付密码 -->
<!-- 支付密码 -->
<div
class=
"form-section"
v-if=
"type == 1"
>
<
!-- <
div class="form-section" v-if="type == 1">
<div class="section-title">支付密码</div>
<div class="section-title">支付密码</div>
<var-input v-model="password" type="password" placeholder="请输入支付密码" show-password />
<var-input v-model="password" type="password" placeholder="请输入支付密码" show-password />
</div>
</div>
-->
<!-- 提现按钮 -->
<!-- 提现按钮 -->
<var-button
class=
"submit-btn"
type=
"primary"
block
:disabled=
"!canWithdraw"
:loading=
"loading"
<var-button
class=
"submit-btn"
type=
"primary"
block
:disabled=
"!canWithdraw"
:loading=
"loading"
@
click=
"handleWithdraw"
>
@
click=
"handleWithdraw"
>
...
...
vite.config.ts
View file @
5afff873
...
@@ -32,7 +32,8 @@ export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => {
...
@@ -32,7 +32,8 @@ export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => {
port
:
env
.
VITE_DEV_PORT
,
port
:
env
.
VITE_DEV_PORT
,
proxy
:
{
proxy
:
{
'
/api
'
:
{
'
/api
'
:
{
target
:
'
http://27.124.4.81:8088/api
'
,
// target: 'http://27.124.4.81:8088/api',
target
:
'
http://27.124.5.14:9014
'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
prependPath
:
true
,
prependPath
:
true
,
rewrite
:
(
path
:
string
)
=>
path
.
replace
(
/^
\/
api/
,
''
),
rewrite
:
(
path
:
string
)
=>
path
.
replace
(
/^
\/
api/
,
''
),
...
...
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