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
e4576d59
authored
2023-12-25 09:41:43 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
8630af21
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
92 additions
and
45 deletions
common/api.js
group/groupInfo.vue
group/list.vue
level/addApply.vue
personalVip/addVip.vue
common/api.js
View file @
e4576d5
...
...
@@ -978,6 +978,13 @@ function getRemindCount(params) {
params
:
params
})
}
function
jiDropDownBox
(
params
)
{
return
request
({
url
:
'/person/technology/jiDropDownBox'
,
method
:
'get'
,
params
:
params
})
}
export
{
...
...
@@ -1076,5 +1083,5 @@ export {
getChangeGroupByRangeId
,
groupInfoMod
,
addGroupInfoModeToRange
,
groupChangeEditMod
,
groupChangeAudit
,
extractInfoFromChinaIdCard
,
certifiedwithDraw
,
certifiedunMerge
,
getRemindCount
,
getGroupMemberInfoById
,
delMobilize
,
deltransferRange
,
delMobilize
,
deltransferRange
,
jiDropDownBox
}
\ No newline at end of file
...
...
group/groupInfo.vue
View file @
e4576d5
...
...
@@ -80,10 +80,6 @@
})
onLoad
(
option
=>
{
console
.
log
(
option
)
if
(
'form'
in
option
)
{
form
.
value
=
JSON
.
parse
(
decodeURIComponent
(
option
.
form
))
getForm
()
}
if
(
option
.
memId
)
{
getForm
(
option
.
memId
)
}
...
...
group/list.vue
View file @
e4576d5
...
...
@@ -149,10 +149,6 @@
}
function
godetail
(
n
)
{
const
form
=
encodeURIComponent
(
JSON
.
stringify
(
n
))
// uni.navigateTo({
// url: `/group/groupInfo?form=${form}`
// })
uni
.
navigateTo
({
url
:
`/group/groupInfo?memId=
${
n
.
memId
}
`
})
...
...
level/addApply.vue
View file @
e4576d5
...
...
@@ -73,11 +73,11 @@
</view>
<view
style=
"width: 40%;"
>
考试级别
<
text
style=
"padding: 15rpx 0;"
>
{{
szToHz
(
n
.
levelNew
)
}}
级
</text
>
<
!--
<
view
@
click=
"changeLevelfather(n)"
>
<
!--
<text
style=
"padding: 15rpx 0;"
>
{{
szToHz
(
n
.
levelNew
)
}}
级
</text>
--
>
<view
@
click=
"changeLevelfather(n)"
>
<uni-data-select
v-model=
"n.levelNew"
:localdata=
"levelArr"
@
change=
"changeLevel"
></uni-data-select>
</view>
-->
</view>
</view>
...
...
@@ -527,7 +527,16 @@
let
nowRow
function
changeLevelfather
(
row
)
{
nowRow
=
row
nowRow
=
row
api
.
jiDropDownBox
({
perId
:
row
.
perId
}).
then
(
res
=>
{
console
.
log
(
res
.
data
)
for
(
var
l
of
res
.
data
){
l
.
text
=
l
.
name
l
.
disabled
=
l
.
status
}
levelArr
.
value
=
res
.
data
})
}
function
changeLevel
(
e
)
{
...
...
personalVip/addVip.vue
View file @
e4576d5
...
...
@@ -5,15 +5,14 @@
<view
class=
"hasfixedbottom"
>
<view>
<uni-forms
ref=
"baseForm"
:border=
"true"
:modelValue=
"baseFormData"
label-width=
"80"
>
<view
class=
"nolineform"
>
<uni-forms-item
label=
"姓名"
required
name=
"name"
v-show=
"current === 0"
>
<uni-forms-item
label=
"姓名"
required
name=
"name"
v-show=
"current === 0"
>
<uni-easyinput
:styles=
"inputstyle"
:clearable=
'false'
:placeholderStyle=
"placeholderStyle"
v-model=
"baseFormData.name"
placeholder=
"请输入姓名"
/>
v-model=
"baseFormData.name"
placeholder=
"请输入姓名"
/>
</uni-forms-item>
<uni-forms-item
label=
"证件类型"
required
name=
"idcType"
>
<uni-data-select
v-model=
"baseFormData.idcType"
@
change=
"changeIdcType"
:clearable=
"false"
<uni-data-select
v-model=
"baseFormData.idcType"
style=
"width: 300rpx;"
@
change=
"changeIdcType"
:clearable=
"false"
:disabled=
"current === 0"
:localdata=
"idcTypeList"
></uni-data-select>
</uni-forms-item>
<uni-forms-item
label=
"证件照"
required
v-show=
"current === 1"
>
...
...
@@ -26,20 +25,27 @@
</uni-file-picker>
</view>
</uni-forms-item>
<uni-forms-item
label=
"姓名"
required
name=
"name"
v-show=
"current === 1"
>
<uni-forms-item
label=
"姓名"
required
name=
"name"
v-show=
"current === 1"
>
<text
v-if=
"disabledName"
>
{{
baseFormData
.
name
}}
</text>
<uni-easyinput
:styles=
"inputstyle"
:clearable=
'false'
:placeholderStyle=
"placeholderStyle"
v-model=
"baseFormData.name"
placeholder=
"请输入姓名"
/>
v-model=
"baseFormData.name"
v-else
placeholder=
"请输入姓名"
/>
</uni-forms-item>
<uni-forms-item
label=
"证件号码"
required
name=
"idcCode"
>
<uni-forms-item
label=
"证件号码"
required
name=
"idcCode"
v-show=
"current === 0"
>
<uni-easyinput
:styles=
"inputstyle"
:clearable=
'false'
:placeholderStyle=
"placeholderStyle"
v-model=
"baseFormData.idcCode"
@
blur=
"giveBirthDay"
placeholder=
"请输入证件号码"
/>
</uni-forms-item>
<uni-forms-item
label=
"
性别"
required
name=
"sex"
>
<
uni-data-checkbox
v-model=
"baseFormData.sex"
@
change=
"changeSex"
:localdata=
"sexs"
/
>
<uni-forms-item
label=
"
证件号码"
required
name=
"idcCode"
v-show=
"current === 1"
>
<
text>
{{
baseFormData
.
idcCode
}}
</text
>
</uni-forms-item>
<uni-forms-item
label=
"出生日期"
required
name=
"birth"
>
<uni-datetime-picker
type=
"date"
placeholder=
"YYYY-MM-DD"
:border=
'false'
:clear-icon=
"false"
v-model=
"baseFormData.birth"
/>
<uni-forms-item
label=
"性别"
required
name=
"sex"
>
<text
v-if=
"baseFormData.sex=='0'"
>
男
</text>
<text
v-else-if=
"baseFormData.sex=='1'"
>
女
</text>
<!--
<uni-data-checkbox
v-model=
"baseFormData.sex"
@
change=
"changeSex"
:localdata=
"sexs"
/>
-->
</uni-forms-item>
<uni-forms-item
label=
"出生日期"
required
name=
"birth"
>
{{
baseFormData
.
birth
?.
slice
(
0
,
10
)
}}
<!--
<uni-datetime-picker
type=
"date"
placeholder=
"YYYY-MM-DD"
:border=
'false'
:clear-icon=
"false"
v-model=
"baseFormData.birth"
/>
-->
</uni-forms-item>
<uni-forms-item
label=
"联系方式"
name=
"phone"
>
<uni-easyinput
:styles=
"inputstyle"
:placeholderStyle=
"placeholderStyle"
...
...
@@ -135,10 +141,11 @@
const
perId
=
ref
()
const
photoArr
=
ref
({})
const
regionsList
=
ref
([])
const
cardObj
=
ref
({})
const
cardObj
=
ref
({})
const
disabledName
=
ref
(
false
)
const
baseFormData
=
ref
({
photo
:
''
,
sex
:
'
0
'
,
sex
:
''
,
idcType
:
'0'
,
perType
:
'1'
,
// (1:个人会员;2:教练;3:考官;4:裁判;5:临时会员;)
})
...
...
@@ -189,7 +196,13 @@
onLoad
((
option
)
=>
{
if
(
option
.
tab
==
'1'
)
{
current
.
value
=
1
baseFormData
.
value
.
idcType
=
option
.
idcType
||
0
baseFormData
.
value
.
sourceFlag
=
1
baseFormData
.
value
.
idcType
=
option
.
idcType
||
0
if
(
baseFormData
.
value
.
idcType
==
'3'
){
disabledName
.
value
=
false
}
else
{
disabledName
.
value
=
true
}
}
// console.log(current.value,option.tab)
getRegionsList
()
...
...
@@ -206,18 +219,17 @@
current
.
value
=
e
.
currentIndex
}
cardObj
.
value
=
{}
photoArr
.
value
=
{}
if
(
current
.
value
==
0
)
{
baseFormData
.
value
=
{
photo
:
''
,
sex
:
'0'
,
idcType
:
'0'
,
perType
:
'1'
}
}
else
{
baseFormData
.
value
=
{
photo
:
''
,
sex
:
'0'
,
idcType
:
'0'
,
perType
:
'1'
,
sourceFlag
:
1
...
...
@@ -230,7 +242,10 @@
}
//身份证识别
function
upIdCardImgFront
(
e
)
{
function
upIdCardImgFront
(
e
)
{
uni
.
showLoading
({
title
:
'加载中'
});
baseFormData
.
value
.
card
=
e
.
tempFiles
;
// console.log(e)
// const formData = new FormData()
...
...
@@ -253,6 +268,7 @@
})
}
else
{
uni
.
hideLoading
()
uni
.
showModal
({
content
:
res
.
msg
,
success
:
function
(
res
)
{
...
...
@@ -286,12 +302,14 @@
}
function
delimgFont
(
n
)
{
function
delimgFont
(
n
)
{
photoArr
.
value
=
{}
cardObj
.
value
=
{}
baseFormData
.
value
=
{
photo
:
''
,
sex
:
'0'
,
idcType
:
baseFormData
.
value
.
idcType
,
perType
:
'1'
,
perType
:
'1'
,
sourceFlag
:
1
};
}
...
...
@@ -301,9 +319,15 @@
}
function
getExtractInfo
(
obj
)
{
//如果老会员
//如果老会员
uni
.
showLoading
({
title
:
'加载中'
})
api
.
extractInfoFromChinaIdCard
(
obj
).
then
(
res
=>
{
if
(
res
.
data
.
perCode
)
{
if
(
res
.
data
.
perCode
)
{
// if(baseFormData.value.idcType != 3){
disabledName
.
value
=
true
// }
perId
.
value
=
res
.
data
.
perId
baseFormData
.
value
.
sex
=
res
.
data
.
sex
baseFormData
.
value
.
birth
=
res
.
data
.
birth
...
...
@@ -334,8 +358,20 @@
}
baseFormData
.
value
.
name
=
res
.
data
.
name
baseFormData
.
value
.
perId
=
res
.
data
.
perId
console
.
log
(
res
.
data
.
photo
,
baseFormData
.
value
.
photo
)
console
.
log
(
res
.
data
.
photo
,
baseFormData
.
value
.
photo
)
uni
.
hideLoading
()
}
else
{
uni
.
hideLoading
()
// 新会员
if
(
res
.
data
.
sex
){
baseFormData
.
value
.
sex
=
res
.
data
.
sex
baseFormData
.
value
.
birth
=
res
.
data
.
birth
}
if
(
baseFormData
.
value
.
idcType
!=
3
&&
current
.
value
==
1
){
disabledName
.
value
=
true
}
else
{
disabledName
.
value
=
false
}
return
}
})
...
...
@@ -396,10 +432,6 @@
}
}
function
changeSex
(
e
)
{
console
.
log
(
"性别:"
,
e
.
detail
.
value
)
}
function
openpopup
()
{
popup
.
value
.
open
()
}
...
...
@@ -411,10 +443,11 @@
function
changeIdcType
(
e
)
{
console
.
log
(
e
)
// 切换证件照类型把当前页面数据清空
// 切换证件照类型把当前页面数据清空
cardObj
.
value
=
{}
photoArr
.
value
=
{}
baseFormData
.
value
=
{
photo
:
''
,
sex
:
'0'
,
idcType
:
e
,
perType
:
'1'
,
sourceFlag
:
1
...
...
@@ -512,7 +545,13 @@
}
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
:deep
(
.uni-forms-item__content
)
{
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
}
:deep
(
.segmented-control
)
{
height
:
100
rpx
;
}
...
...
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