Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zyjj2025
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
zyjj2025
Commits
a551b62a
Commit
a551b62a
authored
Feb 09, 2025
by
zhangsan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a6cec5d2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
236 additions
and
25 deletions
+236
-25
AppFooter.vue
app/components/AppFooter.vue
+1
-0
errortx.vue
app/pages/index/errortx.vue
+189
-0
index.vue
app/pages/index/index.vue
+19
-6
index.vue
app/pages/sqhz/index.vue
+25
-15
withdraw.vue
app/pages/user/withdraw.vue
+2
-2
index.vue
app/pages/yqjl/index.vue
+0
-2
No files found.
app/components/AppFooter.vue
View file @
a551b62a
...
...
@@ -5,6 +5,7 @@ const names = [
'
home
'
,
'
product
'
,
'
sqhz
'
,
'
yqjl
'
,
'
my
'
,
]
const
router
=
useRouter
()
...
...
app/pages/index/errortx.vue
0 → 100644
View file @
a551b62a
<
template
>
<div
class=
"error-withdraw"
>
<!-- 错误图标和标题 -->
<div
class=
"header"
>
<div
class=
"error-icon"
>
!
</div>
<h2>
很抱歉
</h2>
<p>
您的提现被驳回了
</p>
<p>
请填写您的
</p>
</div>
<!-- 表单部分 -->
<div
class=
"form"
>
<van-field
v-model=
"formData.bankUserName"
placeholder=
"名字"
:border=
"false"
class=
"form-input"
/>
<van-field
v-model=
"formData.bankAddress"
placeholder=
"身份证号"
:border=
"false"
class=
"form-input"
maxlength=
"18"
/>
<van-field
v-model=
"formData.bankNum"
placeholder=
"收款银行卡号"
:border=
"false"
class=
"form-input"
maxlength=
"19"
/>
<van-field
v-model=
"formData.bankName"
placeholder=
"手机号码"
type=
"tel"
:border=
"false"
class=
"form-input"
maxlength=
"11"
/>
<!-- 提示文本 -->
<p
class=
"notice"
>
平台会往您的卡里打进一笔10至100元的金额进行到账验证
您的卡没问题就可以全额提现
</p>
<!-- 提交按钮 -->
<van-button
type=
"danger"
block
class=
"submit-btn"
@
click=
"handleSubmit"
>
确认提交
</van-button>
</div>
</div>
</
template
>
<
script
setup
>
import
{
ref
}
from
'
vue
'
import
{
showToast
}
from
'
vant
'
import
{
post
}
from
'
@/utils/request
'
const
formData
=
ref
({
bankUserName
:
''
,
bankAddress
:
''
,
bankNum
:
''
,
bankName
:
''
})
// 验证规则
const
validateForm
=
()
=>
{
if
(
!
formData
.
value
.
bankUserName
.
trim
())
{
showToast
(
'
请输入姓名
'
)
return
false
}
if
(
!
formData
.
value
.
bankAddress
)
{
showToast
(
'
请输入身份证号
'
)
return
false
}
if
(
!
/^
[
1-9
]\d{5}(
19|20
)\d{2}(
0
[
1-9
]
|1
[
0-2
])(
0
[
1-9
]
|
[
12
]\d
|3
[
01
])\d{3}[\d
X
]
$/
.
test
(
formData
.
value
.
bankAddress
))
{
showToast
(
'
身份证号格式不正确
'
)
return
false
}
if
(
!
formData
.
value
.
bankNum
)
{
showToast
(
'
请输入银行卡号
'
)
return
false
}
if
(
!
/^
\d{16,19}
$/
.
test
(
formData
.
value
.
bankNum
))
{
showToast
(
'
银行卡号格式不正确
'
)
return
false
}
if
(
!
formData
.
value
.
bankName
)
{
showToast
(
'
请输入手机号
'
)
return
false
}
if
(
!
/^1
[
3-9
]\d{9}
$/
.
test
(
formData
.
value
.
bankName
))
{
showToast
(
'
手机号格式不正确
'
)
return
false
}
return
true
}
const
emit
=
defineEmits
([
'
close
'
])
const
handleSubmit
=
()
=>
{
if
(
!
validateForm
())
return
post
(
'
/ops/withdraw/hdtxbtj
'
,
formData
.
value
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
showToast
(
'
提交成功
'
)
emit
(
'
close
'
)
}
})
}
</
script
>
<
style
scoped
>
.error-withdraw
{
padding
:
10px
;
background
:
#fff
;
}
.header
{
text-align
:
center
;
margin-bottom
:
30px
;
}
.error-icon
{
width
:
60px
;
height
:
60px
;
line-height
:
60px
;
border-radius
:
50%
;
background
:
#e5004f
;
color
:
white
;
font-size
:
50px
;
margin
:
20px
auto
;
font-weight
:
bold
;
}
.header
h2
{
font-size
:
18px
;
margin-bottom
:
5px
;
font-weight
:
normal
;
}
.header
p
{
font-size
:
16px
;
color
:
#333
;
margin
:
5px
0
;
font-weight
:
normal
;
}
.form
{
padding
:
0
15px
;
}
.form-input
{
margin-bottom
:
10px
;
border-radius
:
20px
;
border
:
1px
solid
#333
;
}
:deep
(
.van-field__control
)
{
/* padding: 12px 15px; */
}
.notice
{
color
:
#e5004f
;
font-size
:
12px
;
line-height
:
1.5
;
margin
:
15px
0
;
}
.submit-btn
{
margin-top
:
20px
;
height
:
50px
;
line-height
:
50px
;
border-radius
:
25px
;
background
:
#e5004f
!important
;
border
:
none
;
font-size
:
16px
;
}
</
style
>
app/pages/index/index.vue
View file @
a551b62a
...
...
@@ -28,9 +28,19 @@ const handleClick = (item) => {
const
show
=
ref
(
false
)
const
getuserinfo
=
async
()
=>
{
const
res
=
await
get
(
'
/system/user/
'
,
{})
if
(
res
.
dld
==
2
)
{
if
(
res
.
dld
==
2
)
{
show
.
value
=
true
}
if
(
res
.
extend4
==
2
)
{
showDialog
({
title
:
'
您有一笔提现到账需要前往处理
'
,
message
:
''
,
theme
:
'
round-button
'
,
confirmButtonText
:
'
点击立即前往处理
'
,
}).
then
(()
=>
{
navigateTo
(
'
/sqhz
'
)
});
}
}
getuserinfo
()
const
showGuide
=
ref
(
false
)
...
...
@@ -53,6 +63,7 @@ const getNotices = async () => {
const
handleConfirm
=
()
=>
{
navigateTo
(
'
/product
'
)
}
getNotices
()
const
handleNewsItemClick
=
(
item
)
=>
{
navigateTo
(
`/newsDetail/
${
item
.
noticeId
}
`
)
...
...
@@ -61,8 +72,10 @@ const handleNewsItemClick = (item) => {
<
template
>
<div
class=
"container"
>
<van-dialog
v-model:show=
"show"
@
confirm=
"handleConfirm"
confirmButtonColor=
"red"
confirmButtonText=
"前往会场认购"
cancelButtonText=
"先不前往认购"
title=
"恭喜您获得债券认购资格,您的购买意向申请已经通过,现在可以认购债权了,您要前往认购吗?"
show-cancel-button
>
</van-dialog>
<van-dialog
v-model:show=
"show"
@
confirm=
"handleConfirm"
confirmButtonColor=
"red"
confirmButtonText=
"前往会场认购"
cancelButtonText=
"先不前往认购"
title=
"恭喜您获得债券认购资格,您的购买意向申请已经通过,现在可以认购债权了,您要前往认购吗?"
show-cancel-button
>
</van-dialog>
<GuideModal
v-model=
"showGuide"
:guide-list=
"content"
/>
<div
class=
"imgwarp"
>
<img
src=
"/static/pages/home/14.png"
>
...
...
app/pages/sqhz/index.vue
View file @
a551b62a
<
script
setup
>
import
{
del
,
get
,
post
}
from
'
@/utils/request
'
import
errortx
from
'
../index/errortx.vue
'
const
loading
=
ref
(
false
)
const
isImageLoaded
=
ref
(
false
)
definePageMeta
({
...
...
@@ -8,6 +8,7 @@ definePageMeta({
title
:
'
申请化债
'
,
name
:
'
sqhz
'
,
})
const
show1
=
ref
(
false
)
const
extend2
=
ref
(
1
)
const
a20
=
ref
(
'
1
'
)
const
usertype
=
ref
({})
...
...
@@ -16,6 +17,9 @@ async function getUserInfo() {
const
res
=
await
get
(
'
/system/user/
'
)
extend2
.
value
=
res
.
extend2
||
1
userinfo
.
value
=
res
if
(
userinfo
.
value
.
extend4
==
2
)
{
show1
.
value
=
true
}
if
(
res
.
data
!=
'
true
'
)
{
showFailToast
(
'
请先进行实名认证
'
)
window
.
history
.
back
()
...
...
@@ -29,6 +33,7 @@ async function getUserInfo() {
}
byUserAndTypeOne
()
}
const
formData
=
ref
({})
function
handleSubmit
()
{
const
{
a6
,
a7
,
a8
,
a4
,
a9
}
=
formData
.
value
??
{}
...
...
@@ -95,7 +100,7 @@ function byUserAndTypeOne() {
if
(
res
.
code
==
200
)
{
a20
.
value
=
res
.
data
.
a20
usertype
.
value
=
res
.
data
usertype
.
value
.
a13
=
String
(
usertype
.
value
.
a13
||
0
)
+
'
(元)
'
usertype
.
value
.
a13
=
String
(
usertype
.
value
.
a13
||
0
)
+
'
(元)
'
}
})
}
...
...
@@ -117,9 +122,15 @@ function qianshu() {
}
}
function
gotx
(
balance
,
type
,
title
)
{
if
(
balance
&&
balance
>
0
)
{
if
(
userinfo
.
value
.
extend4
==
2
||
userinfo
.
value
.
extend4
==
3
)
{
showFailToast
(
'
您有一笔提现到账需要前往处理
'
)
}
else
{
navigateTo
(
`/user/tixian?balance=
${
balance
}
&type=
${
type
}
&title=
${
title
}
`
)
}
}
else
{
showFailToast
(
'
余额不足
'
)
}
...
...
@@ -172,6 +183,9 @@ getUserInfo()
<
template
>
<div
class=
"container"
>
<van-dialog
v-model:show=
"show1"
:showConfirmButton=
false
@
close=
"show1 = false"
>
<errortx
@
close=
"show1 = false"
/>
</van-dialog>
<var-popup
v-model:show=
"xieyi"
position=
"bottom"
>
<div
class=
"xieyi"
>
<img
src=
"/static/common/xieyi.png"
alt=
""
@
load=
"imageLoaded"
>
...
...
@@ -308,10 +322,8 @@ getUserInfo()
<var-button
v-debounce=
"() => handleSubmit()"
size=
"large"
block
type=
"danger"
:loading=
"loading"
>
申请化债
</var-button>
<var-button
v-debounce=
"() => deleteFormData()"
style=
"margin-top: 20px;"
size=
"large"
block
type=
"success"
:loading=
"loading"
>
<var-button
v-debounce=
"() => deleteFormData()"
style=
"margin-top: 20px;"
size=
"large"
block
type=
"success"
:loading=
"loading"
>
返回
</var-button>
<div
class=
"ctitle"
>
...
...
@@ -367,15 +379,12 @@ getUserInfo()
<div
class=
"card"
>
<div
class=
"cardwarp"
>
<img
src=
"/static/common/2222.png"
alt=
""
style=
"margin-top: 80px;"
>
<div
class=
"cardnum"
v-html=
"userinfo.bankcard
<div
class=
"cardnum"
v-html=
"userinfo.bankcard
? formatBankCardNumber(userinfo.bankcard)
: ''"
/>
: ''"
/>
</div>
<div
style=
"margin-top: 20px;display: flex;justify-content: center;align-items: center;font-size: 18px;font-weight: 700;"
>
style=
"margin-top: 20px;display: flex;justify-content: center;align-items: center;font-size: 18px;font-weight: 700;"
>
卡内余额:¥
<var-count-to
:to=
"userinfo.q4"
:precision=
"2"
style=
"font-size: 28px;font-weight: 700;"
>
<
template
#default
="{
value
}"
>
...
...
@@ -394,7 +403,8 @@ getUserInfo()
提现
</var-button>
</div>
<var-button
class=
"btn1 btn"
style=
"color: #fff;"
size=
"large"
block
@
click=
"navigateTo('/user/withdraw?tab=4')"
>
<var-button
class=
"btn1 btn"
style=
"color: #fff;"
size=
"large"
block
@
click=
"navigateTo('/user/withdraw?tab=4')"
>
提现记录
</var-button>
</div>
...
...
app/pages/user/withdraw.vue
View file @
a551b62a
...
...
@@ -140,7 +140,7 @@ function handleClick(item) {
已到账,请查收
</div>
<div
v-if=
"item.status == 3"
class=
"title reject"
>
驳回
{{
item
.
walletType
==
4
?
'
已驳回,请重新提现
'
:
'
驳回
'
}}
</div>
<div
v-if=
"item.status == 4"
class=
"title reject"
>
请先申请化债/扶贫后统一提现
...
...
@@ -193,7 +193,7 @@ function handleClick(item) {
margin-bottom
:
8px
;
.title
{
width
:
140px
;
//
width: 140px;
font-size
:
16px
;
font-weight
:
400
;
padding-bottom
:
7px
;
...
...
app/pages/yqjl/index.vue
View file @
a551b62a
<
script
setup
>
import
{
get
,
post
}
from
'
@/utils/request
'
definePageMeta
({
layout
:
'
main
'
,
title
:
'
邀请奖励
'
,
...
...
@@ -92,7 +91,6 @@ const yqlist = ref([
<
style
lang
=
"
scss
"
scoped
>
.
container
{
font
-
family
:
pingfang
;
min
-
height
:
100
vh
;
width
:
100
%
;
box
-
sizing
:
border
-
box
;
background
:
url
(
'
/static/yqjl/bg.png
'
)
no
-
repeat
center
center
;
...
...
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