Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjCode
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
tanjuanjuan
gjjCode
Commits
1edfea6a
Commit
1edfea6a
authored
Jan 15, 2025
by
tanjuanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c133f5b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
104 additions
and
72 deletions
+104
-72
index.vue
src/pages/index/index.vue
+2
-2
resign.vue
src/pages/resign/resign.vue
+102
-70
No files found.
src/pages/index/index.vue
View file @
1edfea6a
...
...
@@ -224,8 +224,8 @@
range
:
[
'ACCOUNT'
,
'MOBILE'
,
'CITIZEN'
],
success
(
info
)
{
//公积金个人信息
infoStore
.
spidno
=
info
.
data
.
uIdCardNo
;
//
infoStore.spidno = info.data.uIdCardNo;
infoStore
.
spidno
=
"510112193507180089"
personInfo
({
spidno
:
infoStore
.
spidno
,
trantime
:
getCurrentTimestamp
()
...
...
src/pages/resign/resign.vue
View file @
1edfea6a
...
...
@@ -6,15 +6,14 @@
</view>
<view
class=
"item1"
>
<view
class=
"content"
>
<rich-text
:nodes=
"agreeContent"
></rich-text>
<rich-text
:nodes=
"agreeContent"
></rich-text>
</view>
<view
class=
"red"
@
click=
"copyPaste"
>
复制并粘贴
</view>
<view
class=
"textareastyle"
>
<wd-textarea
v-model=
"promiseValue"
placeholder=
"请完整输入本人授权同意内容"
auto-height
no-border
/>
<wd-textarea
v-model=
"promiseValue"
placeholder=
"请完整输入本人授权同意内容"
auto-height
no-border
/>
<view
class=
"err"
v-if=
"errFlag"
>
请完整输入本人授权同意内容
</view>
</view>
</view>
</view>
<view
class=
"item2"
>
<wd-button
type=
"warning"
class=
"btngp"
v-if=
"countFlag"
>
请等待
{{
count
}}
秒
</wd-button>
...
...
@@ -28,49 +27,55 @@
<
script
setup
>
import
xh
from
'xinhua-sdk'
;
import
{
ref
,
computed
ref
,
computed
}
from
'vue'
import
{
agreementInfo
,
ifSignAgreement
}
from
'../../api/request'
import
{
infoPinia
}
from
'@/store'
const
infoStore
=
infoPinia
()
import
{
agreementInfo
,
ifSignAgreement
}
from
'../../api/request'
import
{
infoPinia
}
from
'@/store'
const
infoStore
=
infoPinia
()
const
pCardNo
=
computed
(()
=>
{
return
infoStore
.
spidno
||
0
})
console
.
log
(
infoStore
.
spidno
)
const
standstr
=
"本人已仔细阅读上述所有内容,同意授权并遵守上述承诺。"
const
agreeContent
=
ref
(
''
);
const
agreeTitle
=
ref
(
""
)
const
standstr
=
"本人已仔细阅读上述所有内容,同意授权并遵守上述承诺。"
const
agreeContent
=
ref
(
''
);
const
agreeTitle
=
ref
(
""
)
const
promiseValue
=
ref
(
""
)
const
count
=
ref
(
5
);
const
countFlag
=
ref
(
true
)
const
errFlag
=
ref
(
false
)
const
escapeHtml
=
(
str
)
=>
{
var
arrEntities
=
{
'lt'
:
'<'
,
'gt'
:
'>'
,
'nbsp'
:
''
const
escapeHtml
=
(
str
)
=>
{
var
arrEntities
=
{
'lt'
:
'<'
,
'gt'
:
'>'
,
'nbsp'
:
''
}
return
str
.
replace
(
/&
(
lt|gt|nbsp
)
;/ig
,
function
(
all
,
t
)
{
return
str
.
replace
(
/&
(
lt|gt|nbsp
)
;/ig
,
function
(
all
,
t
)
{
return
arrEntities
[
t
]
})
}
}
ifSignAgreement
({
"zjhm"
:
pCardNo
.
value
}).
then
(
res
=>
{
"zjhm"
:
pCardNo
.
value
}).
then
(
res
=>
{
console
.
log
(
res
)
})
agreementInfo
({
"nodedm"
:
359
"nodedm"
:
359
}).
then
(
res
=>
{
const
data
=
JSON
.
parse
(
res
.
data
);
agreeTitle
.
value
=
data
.
data
.
list
.
acc_info
[
0
].
bt
;
agreeContent
.
value
=
escapeHtml
(
data
.
data
.
list
.
acc_info
[
0
].
nrnew
);
agreeTitle
.
value
=
data
.
data
.
list
.
acc_info
[
0
].
bt
;
agreeContent
.
value
=
escapeHtml
(
data
.
data
.
list
.
acc_info
[
0
].
nrnew
);
})
const
countTimer
=
setInterval
(()
=>
{
if
(
count
.
value
==
1
)
{
...
...
@@ -83,25 +88,31 @@
const
copyPaste
=
()
=>
{
promiseValue
.
value
=
standstr
}
const
goToNext
=
()
=>
{
if
(
promiseValue
.
value
!=
standstr
)
{
errFlag
.
value
=
true
;
const
goToNext
=
()
=>
{
if
(
promiseValue
.
value
!=
standstr
)
{
errFlag
.
value
=
true
;
return
;
}
tyAgreement
({
"zjhm"
:
pCardNo
.
value
}).
then
(
res
=>
{
"zjhm"
:
pCardNo
.
value
}).
then
(
res
=>
{
console
.
log
(
res
)
//发起请求获取离职人员基本信息
//跳转下一页
xma
.
navigateTo
({
url
:
"/pages/account/account"
,
animationType
:
'pop-in'
,
animationDuration
:
200
})
})
// xma.navigateTo({
// url: "/pages/account/account",
// animationType: 'pop-in',
// animationDuration: 200
// })
}
const
goBack
=
()
=>
{
const
goBack
=
()
=>
{
xma
.
navigateTo
({
url
:
"/pages/index/index"
,
animationType
:
'pop-in'
,
...
...
@@ -137,22 +148,31 @@
}
.item
.title
{
position
:
relative
;
position
:
relative
;
text-indent
:
10px
;
}
.title
:before
{
content
:
""
;
display
:
block
;
width
:
5px
;
height
:
16px
;
border-radius
:
3px
;
background
:
rgb
(
249
,
99
,
26
);
position
:
absolute
;
top
:
3px
;
left
:
0px
;
}
.content
{
margin-bottom
:
20px
}
.content
p
{
font-size
:
14px
;
line-height
:
20px
;}
.title
:before
{
content
:
""
;
display
:
block
;
width
:
5px
;
height
:
16px
;
border-radius
:
3px
;
background
:
rgb
(
249
,
99
,
26
);
position
:
absolute
;
top
:
3px
;
left
:
0px
;
}
.content
{
margin-bottom
:
20px
}
.content
p
{
font-size
:
14px
;
line-height
:
20px
;
}
.item1
{
border-radius
:
6px
;
background-color
:
white
;
...
...
@@ -179,7 +199,7 @@
font-size
:
14px
;
font-weight
:
bold
;
color
:
red
;
margin-bottom
:
8px
;
margin-bottom
:
8px
;
}
.promise
{
...
...
@@ -190,22 +210,33 @@
width
:
80%
;
margin
:
0
auto
10px
}
.err
{
font-size
:
12px
;
color
:
red
!important
;
margin-top
:
5px
;}
.textareastyle
{
background
:
#f4fcff
;
padding
:
5px
10px
;
box-sizing
:
border-box
;
border-radius
:
5px
;}
.textareastyle
{
:deep(){
background-color
:
transparent
;
.err
{
font-size
:
12px
;
color
:
red
!important
;
margin-top
:
5px
;
}
.textareastyle
{
background
:
#f4fcff
;
padding
:
5px
10px
;
box-sizing
:
border-box
;
border-radius
:
5px
;
}
.textareastyle
{
:deep()
{
background-color
:
transparent
;
border-bottom
:
none
;
color
:
#423f3f
;
text-align
:
justify
;
color
:
#423f3f
;
text-align
:
justify
;
}
}
.textareastyle
:deep
(*)
{
background-color
:
transparent
;
border-bottom
:
none
;
color
:
#423f3f
;
text-align
:
justify
;
.textareastyle
:deep
(*)
{
background-color
:
transparent
;
border-bottom
:
none
;
color
:
#423f3f
;
text-align
:
justify
;
}
</
style
>
\ No newline at end of file
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