Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
ztx_wx_gzt
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2a11a442
authored
2026-06-02 13:43:42 +0800
by
lttnew
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
个人绑定失败
1 parent
1c937c08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
47 deletions
level/addApply.vue
personal/home.vue
level/addApply.vue
View file @
2a11a44
...
...
@@ -969,7 +969,7 @@ function handleDelete(row) {
box-sizing
:
border-box
;
&.dropdown-open-page
{
padding-bottom
:
calc
(
4
2
0
rpx
+
env
(
safe-area-inset-bottom
));
padding-bottom
:
calc
(
4
9
0
rpx
+
env
(
safe-area-inset-bottom
));
}
}
...
...
@@ -1428,7 +1428,7 @@ function handleDelete(row) {
justify-content
:
space-around
;
align-items
:
center
;
padding-top
:
60
rpx
;
padding-bottom
:
calc
(
2
0
rpx
+
env
(
safe-area-inset-bottom
));
padding-bottom
:
calc
(
1
0
rpx
+
env
(
safe-area-inset-bottom
));
background
:
#fff
;
border-top
:
1
rpx
solid
#f0f0f0
;
...
...
personal/home.vue
View file @
2a11a44
<
template
>
<
template
>
<view
class=
"page-container"
>
<!-- 会员卡区域 -->
<view
class=
"member-card"
>
...
...
@@ -221,11 +221,11 @@ const perInfo = computed(() => userStore.perInfo ?? {})
console
.
log
(
222
,
userInfo
.
value
)
console
.
log
(
333
,
perInfo
.
value
)
// 是否已绑定学员:绑定非会员时只有姓名,没有会员卡号,也应视为已绑定,避免反复弹绑定框。
const
isBound
=
computed
(()
=>
{
const
perName
=
perInfo
.
value
?.
perName
return
perName
!==
undefined
&&
perName
!==
null
&&
perName
!==
''
})
// 是否已绑定学员:绑定非会员时只有姓名,没有会员卡号,也应视为已绑定,避免反复弹绑定框。
const
isBound
=
computed
(()
=>
{
const
perName
=
perInfo
.
value
?.
perName
return
perName
!==
undefined
&&
perName
!==
null
&&
perName
!==
''
})
const
bindPopup
=
ref
(
null
)
const
bindForm
=
ref
({
...
...
@@ -236,8 +236,8 @@ const showConfirm = ref(false)
// 标记是否已经弹出过绑定框(避免重复弹出)
let
hasOpenedBindPopup
=
false
onShow
(()
=>
{
let
webUserName
=
uni
.
getStorageSync
(
'webUserName'
)
onShow
(()
=>
{
let
webUserName
=
uni
.
getStorageSync
(
'webUserName'
)
if
(
!
webUserName
)
{
// 登录后需要等待数据加载完成
wxLogin
().
then
(
res
=>
{
...
...
@@ -259,14 +259,14 @@ onShow(() => {
})
// 检查是否需要弹出绑定框
const
checkAndOpenBindPopup
=
()
=>
{
// 确保 userStore 数据已更新
const
currentPerInfo
=
userStore
.
perInfo
const
hasBoundName
=
currentPerInfo
?.
perName
if
(
currentPerInfo
&&
!
hasBoundName
&&
!
hasOpenedBindPopup
)
{
hasOpenedBindPopup
=
true
nextTick
(()
=>
{
openBindPopup
()
const
checkAndOpenBindPopup
=
()
=>
{
// 确保 userStore 数据已更新
const
currentPerInfo
=
userStore
.
perInfo
const
hasBoundName
=
currentPerInfo
?.
perName
if
(
currentPerInfo
&&
!
hasBoundName
&&
!
hasOpenedBindPopup
)
{
hasOpenedBindPopup
=
true
nextTick
(()
=>
{
openBindPopup
()
})
}
}
...
...
@@ -365,16 +365,18 @@ const confirmBind = async () => {
idcCode
:
bindForm
.
value
.
idcCode
}))
uni
.
hideLoading
()
// if (res.data != 1) {
// // handelGo()
// closeBindPopup()
// } else {
uni
.
showToast
({
title
:
'绑定成功'
,
icon
:
'success'
})
if
(
res
?.
data
==
'1'
){
closeBindPopup
()
await
getWebInfo
()
}
else
{
uni
.
showToast
({
title
:
res
?.
data
||
'绑定失败'
,
icon
:
null
,
duration
:
3000
})
}
// }
if
(
err
)
{
console
.
log
(
err
)
...
...
@@ -437,18 +439,18 @@ const goToAuth = () => {
});
};
const
goToScore
=
()
=>
{
if
(
!
isBound
.
value
)
{
uni
.
showToast
({
title
:
'请先绑定学员'
,
icon
:
'none'
})
return
}
const
perId
=
userInfo
.
value
.
perId
??
''
const
name
=
perInfo
.
value
?.
perName
?
encodeURIComponent
(
perInfo
.
value
.
perName
)
:
''
const
idcCode
=
perInfo
.
value
?.
perIdcCode
?
encodeURIComponent
(
perInfo
.
value
.
perIdcCode
)
:
''
uni
.
navigateTo
({
url
:
`/personal/memberInfo?perId=
${
perId
}
&name=
${
name
}
&idcCode=
${
idcCode
}
`
});
};
const
goToScore
=
()
=>
{
if
(
!
isBound
.
value
)
{
uni
.
showToast
({
title
:
'请先绑定学员'
,
icon
:
'none'
})
return
}
const
perId
=
userInfo
.
value
.
perId
??
''
const
name
=
perInfo
.
value
?.
perName
?
encodeURIComponent
(
perInfo
.
value
.
perName
)
:
''
const
idcCode
=
perInfo
.
value
?.
perIdcCode
?
encodeURIComponent
(
perInfo
.
value
.
perIdcCode
)
:
''
uni
.
navigateTo
({
url
:
`/personal/memberInfo?perId=
${
perId
}
&name=
${
name
}
&idcCode=
${
idcCode
}
`
});
};
const
goToWebView
=
(
type
)
=>
{
// const url = "https://member.taekwondo.org.cn/#/authAccurate?type=" + type
...
...
@@ -480,15 +482,15 @@ const goToOrder = () => {
});
};
// 导航到缴费
const
goToPay
=
()
=>
{
const
perId
=
userInfo
.
value
.
perId
??
''
const
name
=
perInfo
.
value
?.
perName
?
encodeURIComponent
(
perInfo
.
value
.
perName
)
:
''
const
idcCode
=
perInfo
.
value
?.
perIdcCode
?
encodeURIComponent
(
perInfo
.
value
.
perIdcCode
)
:
''
uni
.
navigateTo
({
url
:
`/personal/addVip_per?perId=
${
perId
}
&name=
${
name
}
&idcCode=
${
idcCode
}
`
});
};
// 导航到缴费
const
goToPay
=
()
=>
{
const
perId
=
userInfo
.
value
.
perId
??
''
const
name
=
perInfo
.
value
?.
perName
?
encodeURIComponent
(
perInfo
.
value
.
perName
)
:
''
const
idcCode
=
perInfo
.
value
?.
perIdcCode
?
encodeURIComponent
(
perInfo
.
value
.
perIdcCode
)
:
''
uni
.
navigateTo
({
url
:
`/personal/addVip_per?perId=
${
perId
}
&name=
${
name
}
&idcCode=
${
idcCode
}
`
});
};
// 下载电子会员证
const
downCert
=
async
()
=>
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment