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
36b56c9c
Commit
36b56c9c
authored
Sep 16, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上线分享弹窗
parent
2b44e888
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
82 additions
and
28 deletions
+82
-28
environments/environment.ts
+1
-1
index.html
+2
-2
pages/dataImport/data-import.css
+29
-10
pages/dataImport/data-import.vue
+20
-7
pages/index/index.css
+5
-4
pages/index/index.vue
+25
-4
static/images/qrcodeBg_1.png
+0
-0
No files found.
environments/environment.ts
View file @
36b56c9c
...
...
@@ -19,7 +19,7 @@ const config = {
stage
,
prod
}
let
env
=
'
dev
'
;
let
env
=
'
prod
'
;
// if (process.env.NODE_ENV === 'development') {
// env = 'dev';
// }else if (process.env.NODE_ENV === 'production') {
...
...
index.html
View file @
36b56c9c
...
...
@@ -17,7 +17,7 @@
<div
id=
"app"
>
<!--app-html-->
</div>
<script
type=
"module"
src=
"/main.js"
></script>
<!-- 移动端调试 -->
<script
type=
"text/javascript"
src=
"//cdn.jsdelivr.net/npm/eruda"
></script>
<script>
eruda
.
init
();
</script>
<!--
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script>
-->
</body>
</html>
pages/dataImport/data-import.css
View file @
36b56c9c
...
...
@@ -113,28 +113,47 @@
}
.batchDataLists
view
{
display
:
flex
;
text-align
:
center
;
border-bottom
:
1px
solid
#e4e4e4
;
justify-content
:
center
;
align-items
:
center
;
}
.batchDataLists
view
text
:first-child
{
width
:
0
;
flex
:
0
0
35%
;
display
:
inline-block
;
width
:
100%
;
flex
:
auto
;
text-align
:
center
;
border-right
:
1px
solid
#e4e4e4
;
}
.batchDataLists
view
text
:last-child
{
width
:
0
;
flex
:
0
0
65%
;
}
.batchDataLists
view
.batchDataTh
{
height
:
60
rpx
;
background
:
linear-gradient
(
135deg
,
#CEB07D
0%
,
#FFDDA9
56%
,
#FED495
100%
,
#FED495
100%
);
line-height
:
60
rpx
;
border-top-left-radius
:
12
rpx
;
border-top-right-radius
:
12
rpx
;
min-height
:
80
rpx
;
}
.batchDataTh
.pvTitle
{
display
:
flex
;
flex-direction
:
column
;
flex
:
0
0
65%
;
justify-content
:
center
;
align-items
:
center
;
}
.batchDataTh
>
view
:first-child
,
.batchDataTd
>
view
:first-child
{
width
:
0
;
flex
:
0
0
35%
;
justify-content
:
center
;
}
.batchDataTh
>
view
:last-child
,
.batchDataTd
>
view
:last-child
{
width
:
0
;
flex
:
0
0
65%
;
justify-content
:
center
;
}
.batchDataTh
.pvTitle
view
{
border
:
none
;
}
.batchDataLists
view
.batchDataTd
{
display
:
flex
;
height
:
80
rpx
;
line-height
:
80
rpx
;
border-bottom
:
1px
solid
#e4e4e4
;
}
.dataOptionContainer
{
margin
:
20
rpx
20
rpx
0
;
...
...
pages/dataImport/data-import.vue
View file @
36b56c9c
...
...
@@ -28,14 +28,25 @@
</view>
<!-- 批量数据输入区域 -->
<view
class=
"batchDataLists"
>
<view
class=
"batchDataTh"
>
<text>
保单年度
</text>
<text>
现金价值
</text>
<view
class=
"batchDataTh"
v-if=
"!pvFlag"
>
<view>
保单年度
</view>
<view>
现金价值
</view>
</view>
<view
class=
"batchDataTh"
v-if=
"pvFlag"
>
<view>
保单年度
</view>
<view
class=
"pvTitle"
>
<view>
总生存利益
</view>
<view
style=
"font-size: 24rpx;margin-top: 4rpx;"
>
(现金价值+万能账户)
</view>
</view>
</view>
<scroll-view
scroll-y=
"true"
style=
"height: 560rpx;"
>
<view
class=
"batchDataTd"
v-for=
"item in irrAndSimpleInfos"
>
<text>
{{
item
.
nyear
}}
</text>
<input
class=
"uni-input"
style=
"height: 100%;"
type=
"digit"
v-model=
"item.cashValue"
placeholder=
"请输入数字,例如10000"
maxlength=
"17"
/>
<view>
<text>
{{
item
.
nyear
}}
</text>
</view>
<view>
<input
class=
"uni-input"
style=
"height: 100%;"
type=
"digit"
v-model=
"item.cashValue"
placeholder=
"输入数字,如100"
maxlength=
"17"
/>
</view>
</view>
</scroll-view>
</view>
...
...
@@ -87,11 +98,13 @@
maxPolicyYear
:
105
,
policyYearLists
:[{
nyear
:
1
,
isActived
:
true
,
cashValue
:
''
}],
policyYearModalFlag
:
false
,
calcuteData
:
null
calcuteData
:
null
,
pvFlag
:
false
}
},
name
:
'dataImport'
,
onLoad
()
{
onLoad
(
option
)
{
this
.
pvFlag
=
option
.
isUniversalAccount
==
'1'
?
true
:
false
;
this
.
bindPickerChange
({
detail
:{
value
:
this
.
index
}});
this
.
calcuteData
=
uni
.
getStorageSync
(
'calcuteData'
)
?
JSON
.
parse
(
uni
.
getStorageSync
(
'calcuteData'
))
:
null
;
},
...
...
pages/index/index.css
View file @
36b56c9c
...
...
@@ -126,14 +126,14 @@
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
flex
:
0
0
5
1
%
;
flex
:
0
0
5
0
%
;
}
.inputContent
.uni-input
{
margin-right
:
20
rpx
;
text-align
:
right
;
}
.inputItem
text
{
flex
:
0
0
49
%
;
flex
:
0
0
50
%
;
}
.simpleDataResult
{
background
:
#FFFFFF
;
...
...
@@ -192,13 +192,14 @@
}
.optionContent
{
position
:
fixed
;
bottom
:
30
rpx
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
#fff
;
padding-bottom
:
30
rpx
;
}
.optionContent
button
{
flex
:
0
0
46%
;
...
...
@@ -253,7 +254,7 @@
line-height
:
initial
;
}
.cashValueContent
.title
button
::after
{
border
:
1
px
solid
#CEB07D
;
border
:
2
px
solid
#CEB07D
;
border-radius
:
12
rpx
;
}
.cashValueContent
.title
button
:first-child
{
...
...
pages/index/index.vue
View file @
36b56c9c
...
...
@@ -3,7 +3,7 @@
<!-- 没有关注公众号须先关注公众号才可以使用 -->
<view
class=
"qrcodeContainer"
v-show=
"isNeedOfficialAccountQrcode"
>
<view
class=
"qrcodeContent"
>
<img
src=
"../../static/images/qrcodeBg.png"
alt=
""
srcset=
""
>
<img
src=
"../../static/images/qrcodeBg
_1
.png"
alt=
""
srcset=
""
>
</view>
</view>
<!-- 已关注公众号用户 -->
...
...
@@ -11,7 +11,7 @@
<view
class=
"banner"
>
<img
src=
"/static/images/policyIrrBanner.png"
alt=
""
srcset=
""
>
<!-- 使用说明 -->
<
text>
使用说明
</text
>
<
!--
<text
@
click=
"instructionForUse"
>
使用说明
</text>
--
>
<view
class=
"supportTips"
>
<img
src=
"/static/images/cffpLogo.png"
alt=
""
srcset=
""
>
<text>
本工具由CFFP财策师联盟提供技术支持
</text>
...
...
@@ -133,7 +133,7 @@
</view>
</view>
<view
class=
"inputItem"
>
<text>
{{
irrAndSimpleCalcuteParam
.
allFirstPayment
>
0
?
'总生存利益(
万能账户现价+现金价值)
'
:
'现金价值'
}}
:
</text>
<text>
{{
irrAndSimpleCalcuteParam
.
allFirstPayment
>
0
?
'总生存利益(
现金价值+万能账户现价)
'
:
'现金价值'
}}
:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"digit"
placeholder=
"请输入"
min=
'1'
maxlength=
"17"
v-model=
"irrAndSimple.cashValue"
/>
...
...
@@ -278,11 +278,31 @@
}
})
}
if
(
sessionStorage
.
getItem
(
'shareTipsFlag'
)
!=
'1'
&&
!
this
.
isNeedOfficialAccountQrcode
&&
dataHandling
.
getQueryString
(
'subscribe'
)
==
'1'
){
uni
.
showModal
({
title
:
''
,
content
:
'好东西就要分享,您的分享,是我们持续提供好工具的动力'
,
showCancel
:
false
,
confirmText
:
'确定'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
sessionStorage
.
setItem
(
'shareTipsFlag'
,
'1'
)
}
}
});
}
if
(
this
.
yearWithdrawal
.
length
>
0
){
this
.
yearWithdrawalInfos
.
push
({...
this
.
yearWithdrawal
,
withdrawalType
:
this
.
withdrawalType
?
'1'
:
'2'
})
}
},
methods
:
{
// 使用说明跳转
instructionForUse
(){
window
.
location
.
href
=
'https://mp.weixin.qq.com/s/V8RtUN9I2hECv2UiefF1HA'
;
},
// 数字千分位处理
numberConverter
(
val
){
return
dataHandling
.
numberConverter
(
val
)
...
...
@@ -414,7 +434,7 @@
}
uni
.
setStorageSync
(
'calcuteData'
,
JSON
.
stringify
(
calcuteData
))
uni
.
navigateTo
({
url
:
'/pages/dataImport/data-import'
url
:
`/pages/dataImport/data-import?isUniversalAccount=
${
this
.
irrAndSimpleCalcuteParam
.
allFirstPayment
>
0
?
'1'
:
'0'
}
`
});
// this.irrFlag = true;
}
...
...
@@ -627,6 +647,7 @@
this
.
resultShowFlag
=
true
;
}
}
}
</
script
>
...
...
static/images/qrcodeBg.png
→
static/images/qrcodeBg
_1
.png
View file @
36b56c9c
File moved
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