Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sfp-program
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
sfp-program
Commits
07019ae9
Commit
07019ae9
authored
Sep 07, 2022
by
Chao Sun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://139.224.139.2:9091/Sweet/sfp-program
into master
parents
703785f2
60f87d5e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
6 deletions
+34
-6
pages/dataImport/data-import.vue
+21
-3
pages/index/index.css
+10
-0
pages/index/index.vue
+3
-3
No files found.
pages/dataImport/data-import.vue
View file @
07019ae9
...
...
@@ -23,7 +23,7 @@
<view
class=
"dataOptionContainer"
>
<!-- 粘贴数据区域 -->
<view
class=
"uni-textarea"
>
<textarea
v-model=
"pasteData"
placeholder-style=
"color:#999999;font-size:14px;padding-left:9px;padding-top:3px"
placeholder=
"请根据左侧保单年度进行现金价值数据粘贴,
或直接输入,数据需进行换行
分隔"
/>
<textarea
v-model=
"pasteData"
placeholder-style=
"color:#999999;font-size:14px;padding-left:9px;padding-top:3px"
placeholder=
"请根据左侧保单年度进行现金价值数据粘贴,
如您想直接输入数据,需使用回车键或换行符
分隔"
/>
<button
class=
"mini-btn pasteDiscernment"
type=
"default"
size=
"mini"
@
click=
"pasteDataDistinguish"
>
粘贴并识别
</button>
</view>
<!-- 批量数据输入区域 -->
...
...
@@ -188,7 +188,25 @@
this
.
irrAndSimpleInfos
.
forEach
(
item
=>
item
.
cashValue
=
''
);
},
calcuteIrr
(){
this
.
policyYearLists
=
this
.
irrAndSimpleInfos
this
.
policyYearLists
=
this
.
irrAndSimpleInfos
.
filter
(
item
=>
item
.
cashValue
!==
''
)
console
.
log
(
this
.
policyYearLists
)
for
(
let
i
=
0
;
i
<
this
.
policyYearLists
.
length
;
i
++
){
if
(
this
.
policyYearLists
[
i
].
cashValue
<
0
||
isNaN
(
this
.
policyYearLists
[
i
].
cashValue
)){
uni
.
showModal
({
title
:
'数据格式输入错误'
,
content
:
`保单年度为
${
this
.
policyYearLists
[
i
].
nyear
}
时,现金价值格式错误,须为大于或等于0的数字类型`
,
showCancel
:
false
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
}
});
return
;
}
}
const
params
=
{
...
this
.
calcuteData
,
calcuteMethod
:
2
,
...
...
@@ -200,7 +218,7 @@
this
.
irrAndSimpleResInfos
=
res
.
data
.
irrAndSimpleResInfos
;
// this.resultShowFlag = true;
//计算成功返回上一页
uni
.
setStorageSync
(
'resIrrAndSimpleResInfos'
,
this
.
irrAndSimpleResInfos
)
uni
.
setStorageSync
(
'resIrrAndSimpleResInfos'
,
this
.
irrAndSimpleResInfos
)
;
uni
.
navigateBack
({
delta
:
1
,
//返回层数,2则上上页
})
...
...
pages/index/index.css
View file @
07019ae9
...
...
@@ -261,3 +261,12 @@
.qrcodeContainer
img
{
max-width
:
100%
;
}
.tips
{
position
:
absolute
;
bottom
:
-30
rpx
;
left
:
28
rpx
;
width
:
100%
;
font-size
:
24
rpx
;
text-align
:
left
;
color
:
red
;
}
\ No newline at end of file
pages/index/index.vue
View file @
07019ae9
...
...
@@ -56,13 +56,13 @@
<view
class=
"title"
>
<text>
提领信息
</text>
<view
style=
"display: flex;flex-direction: column;align-items: flex-end;"
@
click=
"changeWithdrawalType()"
v-if=
"calcuteType=='1'"
>
<view
@
click=
"changeWithdrawalType()"
v-if=
"calcuteType=='1'"
>
<view
style=
"display: flex;"
>
<view
class=
"radioButton"
:class=
"
{'selected':!withdrawalType}">
</view>
<text
style=
"margin-left: 10rpx;"
>
减保取现
</text>
</view>
<view>
<text>
(如有
,请点击按钮进行填写提领
信息)
</text>
<view
class=
"tips"
>
<text>
(如有
减保取现,请点击右侧按钮填写减保领取
信息)
</text>
</view>
</view>
</view>
...
...
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