Commit 6c3581fb by Sweet Zhang

修改样式

parent ade2161f
...@@ -10,10 +10,9 @@ Vue.config.productionTip = false; ...@@ -10,10 +10,9 @@ Vue.config.productionTip = false;
Vue.prototype.axios = axios; Vue.prototype.axios = axios;
Vue.prototype.$api = api; Vue.prototype.$api = api;
import { numberToCurrencyNo } from '@/utils/numberToCurrency' import { numberToCurrencyNo } from './util/numberPipe';
// 配置全局过滤器,实现数字千分位格式 // 配置全局过滤器,实现数字千分位格式
Vue.filter('numberToCurrency', numberToCurrencyNo) Vue.filter('numberToCurrency', numberToCurrencyNo)
App.mpType = 'app' App.mpType = 'app'
const app = new Vue({ const app = new Vue({
api, api,
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
border-top-right-radius: 40rpx; border-top-right-radius: 40rpx;
padding: 20rpx 30rpx 0; padding: 20rpx 30rpx 0;
box-sizing: border-box; box-sizing: border-box;
overflow-y: scroll;
} }
.policyYearContainer .modalTitle{ .policyYearContainer .modalTitle{
display: flex; display: flex;
......
...@@ -91,8 +91,8 @@ ...@@ -91,8 +91,8 @@
}, },
name:'dataImport', name:'dataImport',
onLoad() { onLoad() {
this.bindPickerChange({detail:{value:this.index}}) this.bindPickerChange({detail:{value:this.index}});
this.calcuteData = uni.getStorageSync('calcuteData') this.calcuteData = uni.getStorageSync('calcuteData');
}, },
methods:{ methods:{
// 选择间隔 // 选择间隔
......
...@@ -25,15 +25,26 @@ ...@@ -25,15 +25,26 @@
width: 100%; width: 100%;
} }
.banner{ .banner{
height: 400rpx; width: 100%;
position: relative;
}
.banner text{
position: absolute;
bottom: 40px;
left: 0;
color: #fff;
background: rgba(0,0,0,0.35);
padding: 2px 10px;
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
} }
.banner img{ .banner img{
max-width: 100%; width: 100%;
} }
.tabTitle{ .tabTitle{
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
font-size: 16px; font-size: 32rpx;
font-family: Source Han Sans CN-Regular, Source Han Sans CN; font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
...@@ -238,9 +249,6 @@ ...@@ -238,9 +249,6 @@
height: 40rpx!important; height: 40rpx!important;
line-height: 40rpx!important; line-height: 40rpx!important;
text-align: center; text-align: center;
border:3rpx #CEB07D solid;
color: #CEB07D;
border-radius: 50%;
font-size: 24rpx; font-size: 24rpx;
} }
.qrcodeContainer{ .qrcodeContainer{
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
<view class="content" v-show="!isNeedOfficialAccountQrcode"> <view class="content" v-show="!isNeedOfficialAccountQrcode">
<view class="banner"> <view class="banner">
<img src="/static/images/policyIrrBanner.png" alt="" srcset=""> <img src="/static/images/policyIrrBanner.png" alt="" srcset="">
<!-- 使用说明 -->
<v-text>使用说明</v-text>
</view> </view>
<scroll-view scroll-y="true" class="formInfoContainer"> <scroll-view scroll-y="true" class="formInfoContainer">
<view class="tabTitle"> <view class="tabTitle">
...@@ -69,7 +71,7 @@ ...@@ -69,7 +71,7 @@
</view> </view>
</view> </view>
<view class="inputItem"> <view class="inputItem">
<text>每年提取金额:</text> <text style="white-space: nowrap;">每年提取金额:</text>
<view class="inputContent"> <view class="inputContent">
<input class="uni-input" type="number" placeholder="请输入" <input class="uni-input" type="number" placeholder="请输入"
v-model="item.yearWithdrawalAmount" /><label for=""></label> v-model="item.yearWithdrawalAmount" /><label for=""></label>
...@@ -93,10 +95,12 @@ ...@@ -93,10 +95,12 @@
<input class="uni-input withdrawNumber" type="number" placeholder="请输入" <input class="uni-input withdrawNumber" type="number" placeholder="请输入"
v-model="item.yearWithdrawalAmount"/> v-model="item.yearWithdrawalAmount"/>
<view v-show="yearWithdrawalInfos.length>1"> <view v-show="yearWithdrawalInfos.length>1">
<text @click="reduce(idx)">-</text> <text @click="reduce(idx)"><svg t="1662455801913" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3447" width="20" height="20"><path d="M512 0c-285.257143 0-512 226.742857-512 512s226.742857 512 512 512 512-226.742857 512-512-226.742857-512-512-512z m0 950.857143c-241.371429 0-438.857143-197.485714-438.857143-438.857143s197.485714-438.857143 438.857143-438.857143 438.857143 197.485714 438.857143 438.857143-197.485714 438.857143-438.857143 438.857143z" p-id="3448" fill="#CEB07D"></path><path d="M731.428571 475.428571h-438.857142c-21.942857 0-36.571429 14.628571-36.571429 36.571429s14.628571 36.571429 36.571429 36.571429h438.857142c21.942857 0 36.571429-14.628571 36.571429-36.571429s-14.628571-36.571429-36.571429-36.571429z" p-id="3449" fill="#CEB07D"></path></svg></text>
</view> </view>
</view> </view>
<text @click="add()" style="position: absolute;right: 0;">+</text> <text @click="add()" style="position: absolute;right: 0;">
<svg t="1662455996735" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4399" width="20" height="20"><path d="M512 0c-285.257143 0-512 226.742857-512 512s226.742857 512 512 512 512-226.742857 512-512-226.742857-512-512-512z m0 950.857143c-241.371429 0-438.857143-197.485714-438.857143-438.857143s197.485714-438.857143 438.857143-438.857143 438.857143 197.485714 438.857143 438.857143-197.485714 438.857143-438.857143 438.857143z" p-id="4400" fill="#CEB07D"></path><path d="M731.428571 475.428571h-182.857142v-182.857142c0-21.942857-14.628571-36.571429-36.571429-36.571429s-36.571429 14.628571-36.571429 36.571429v182.857142h-182.857142c-21.942857 0-36.571429 14.628571-36.571429 36.571429s14.628571 36.571429 36.571429 36.571429h182.857142v182.857142c0 21.942857 14.628571 36.571429 36.571429 36.571429s36.571429-14.628571 36.571429-36.571429v-182.857142h182.857142c21.942857 0 36.571429-14.628571 36.571429-36.571429s-14.628571-36.571429-36.571429-36.571429z" p-id="4401" fill="#CEB07D"></path></svg>
</text>
</view> </view>
</view> </view>
<!-- 现金价值信息 --> <!-- 现金价值信息 -->
...@@ -118,7 +122,7 @@ ...@@ -118,7 +122,7 @@
</view> </view>
</view> </view>
<view class="inputItem"> <view class="inputItem">
<text>总生存利益<text style="font-size: 14px;">(总领取金额+现金价值)</text>:</text> <text>总生存利益<text style="font-size: 14px;">{{irrAndSimpleCalcuteParam.allFirstPayment > 0 ? '(万能账户现价+现金价值)' :'(现金价值)'}}</text>:</text>
<view class="inputContent"> <view class="inputContent">
<input class="uni-input" type="number" placeholder="请输入" min='1' <input class="uni-input" type="number" placeholder="请输入" min='1'
v-model="irrAndSimple.cashValue"/> v-model="irrAndSimple.cashValue"/>
...@@ -138,11 +142,11 @@ ...@@ -138,11 +142,11 @@
<view class="simpleDataResult" v-if="resultShowFlag && calcuteMethod == '1'"> <view class="simpleDataResult" v-if="resultShowFlag && calcuteMethod == '1'">
<view class="inputItem"> <view class="inputItem">
<text class="resultTitle">IRR复利</text> <text class="resultTitle">IRR复利</text>
<text class="calcNumber">{{irrAndSimpleResInfos.length>0?(irrAndSimpleResInfos[0]['irrValue'] * 100).toFixed(5):null}}%</text> <text class="calcNumber">{{irrAndSimpleResInfos.length>0?(irrAndSimpleResInfos[0]['irrValue'] * 100).toFixed(3) | numberToCurrency:null}}%</text>
</view> </view>
<view class="inputItem"> <view class="inputItem">
<text class="resultTitle">单利</text> <text class="resultTitle">单利</text>
<text class="calcNumber">{{irrAndSimpleResInfos.length>0?(irrAndSimpleResInfos[0]['simpleValue'] * 100).toFixed(5):null}}%</text> <text class="calcNumber">{{irrAndSimpleResInfos.length>0?(irrAndSimpleResInfos[0]['simpleValue'] * 100).toFixed(3) | numberToCurrency:null}}%</text>
</view> </view>
</view> </view>
<!-- 批量计算显示结果 --> <!-- 批量计算显示结果 -->
...@@ -157,9 +161,9 @@ ...@@ -157,9 +161,9 @@
</view> </view>
<view class="resultTd" v-for="item in resIrrAndSimpleResInfos"> <view class="resultTd" v-for="item in resIrrAndSimpleResInfos">
<text>{{item.nyear}}</text> <text>{{item.nyear}}</text>
<text>{{item.cashValue}}</text> <text>{{item.cashValue | numberToCurrency}}</text>
<text class="resultNumber">{{(item.simpleValue*100).toFixed(5)}}%</text> <text class="resultNumber">{{(item.simpleValue*100).toFixed(3)}}%</text>
<text class="resultNumber">{{(item.irrValue * 100).toFixed(5)}}%</text> <text class="resultNumber">{{(item.irrValue * 100).toFixed(3)}}%</text>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
...@@ -190,7 +194,7 @@ ...@@ -190,7 +194,7 @@
import api from "../../api/api"; import api from "../../api/api";
import {nanoid} from 'nanoid'; import {nanoid} from 'nanoid';
import dataHandling from "../../util/dataHandling"; import dataHandling from "../../util/dataHandling";
import dataImport from "../dataImport/data-import.vue" import dataImport from "../dataImport/data-import.vue";
export default { export default {
data() { data() {
...@@ -266,6 +270,8 @@ ...@@ -266,6 +270,8 @@
this.yearWithdrawalInfos = [].concat([{withdrawalType:'1', this.yearWithdrawalInfos = [].concat([{withdrawalType:'1',
withdrawalStart:null, withdrawalStart:null,
yearWithdrawalAmount:null}]); yearWithdrawalAmount:null}]);
}else if(e=='1'){
this.irrAndSimpleCalcuteParam.allFirstPayment = null;
} }
this.resultShowFlag = false; this.resultShowFlag = false;
} }
......
.policySelectContainer[data-v-bc9909ba]{position:fixed;z-index:2;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.35)}.policySelectContainer .policyYearContainer[data-v-bc9909ba]{position:absolute;bottom:0;left:0;width:100%;height:57%;background-color:#fff;border-top-left-radius:1.25rem;border-top-right-radius:1.25rem;padding:.625rem .9375rem 0;box-sizing:border-box}.policyYearContainer .modalTitle[data-v-bc9909ba]{display:flex;justify-content:space-between;align-items:center;font-weight:700}.policyYearContainer .modalTitle uni-text[data-v-bc9909ba]:last-child{color:red}.policyYearItemContainer[data-v-bc9909ba]{display:flex;flex-wrap:wrap;justify-content:space-around}.policyYearItemContainer uni-view[data-v-bc9909ba]{width:9%;height:0;padding-bottom:9%;margin:.625rem .1875rem .625rem 0;color:#fff;border-radius:50%;position:relative;color:#333;font-weight:700}.policyYearItemContainer uni-view.actived[data-v-bc9909ba]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyYearItemContainer uni-view uni-text[data-v-bc9909ba]{position:absolute;left:50%;top:50%;transform:translate(-50%,-55%)}.policyStepContainer[data-v-bc9909ba]{display:flex;justify-content:space-around;margin-top:1.25rem}.policyStepContainer uni-button[data-v-bc9909ba]{flex:0 0 30%;font-size:1rem;color:#000;font-weight:700;border:1px solid #CEB07D}.policyStepContainer uni-button[data-v-bc9909ba]:after{border:1px solid #CEB07D}.policyStepContainer uni-button.actived[data-v-bc9909ba]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyStepContainer uni-button.actived[data-v-bc9909ba],.policyStepContainer uni-button.actived[data-v-bc9909ba]:after{border:none}.confirm uni-button[data-v-bc9909ba]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000;font-weight:700;font-size:1.125rem;margin-top:1.75rem;width:9.375rem}.confirm uni-button[data-v-bc9909ba],.confirm uni-button[data-v-bc9909ba]:after{border:none}.uni-textarea[data-v-bc9909ba]{position:relative}.pasteDiscernment[data-v-bc9909ba]{position:absolute;right:0;bottom:0;height:1.5625rem;background:#9B8055;border-radius:100px;color:#fff;font-size:.75rem}.batchDataImportContainer[data-v-bc9909ba]{background-color:#fbfbfb;height:90vh}.batchDataLists[data-v-bc9909ba]{margin-top:.625rem;background:#fff}.batchDataLists uni-view[data-v-bc9909ba]{display:flex;text-align:center;border-bottom:1px solid #e4e4e4}.batchDataLists uni-view uni-text[data-v-bc9909ba]:first-child{width:0;flex:0 0 35%;border-right:1px solid #e4e4e4}.batchDataLists uni-view uni-text[data-v-bc9909ba]:last-child{width:0;flex:0 0 65%}.batchDataLists uni-view.batchDataTh[data-v-bc9909ba]{height:1.875rem;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);line-height:1.875rem;border-top-left-radius:.375rem;border-top-right-radius:.375rem}.batchDataLists uni-view.batchDataTd[data-v-bc9909ba]{height:2.5rem;line-height:2.5rem}.dataOptionContainer[data-v-bc9909ba]{margin:.625rem .625rem 1.0625rem}.dataOptionContainer .uni-textarea[data-v-bc9909ba]{background-color:#fff;margin-bottom:.625rem}.tips[data-v-bc9909ba]{font-size:.75rem;color:#666;padding:0 .625rem .625rem;background-color:#fff}.tips uni-text uni-text[data-v-bc9909ba]{font-size:.875rem;color:#9b8055;font-weight:700}.selectStepContent[data-v-bc9909ba],.selectStepContainer[data-v-bc9909ba]{display:flex;align-items:center}.selectStepContainer[data-v-bc9909ba]{justify-content:space-between;padding:.625rem .625rem 0;background-color:#fff}.stepContent[data-v-bc9909ba]{display:flex;align-items:center;border-bottom:1px solid #e4e4e4;padding:0 5px}.selectStepContainer uni-button[data-v-bc9909ba]{background-color:transparent}.selectStepContainer uni-button[data-v-bc9909ba]:after{border:1px solid #CEB07D}.optionContent[data-v-bc9909ba]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-bc9909ba]{flex:0 0 46%;border:.0625rem solid #e7c793;color:#6b4000;font-size:1.125rem}.optionContent uni-button[data-v-bc9909ba]:last-child{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none}.batchDataTd uni-input[data-v-bc9909ba]{height:100%}
*{margin:0;-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%;height:100%}body{overflow-x:hidden;font-size:16px}uni-app,uni-page,uni-page-wrapper,uni-page-body{display:block;box-sizing:border-box;width:100%}uni-page-wrapper{position:relative}#app,uni-app,uni-page,uni-page-wrapper{height:100%}.uni-mask{position:fixed;z-index:999;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.5)}.uni-fade-enter-active,.uni-fade-leave-active{transition-duration:.25s;transition-property:opacity;transition-timing-function:ease}.uni-fade-enter-from,.uni-fade-leave-active{opacity:0}.uni-loading,uni-button[loading]:before{background-color:transparent;background-image:url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=);background-repeat:no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}body:after{position:fixed;content:"";left:-1000px;top:-1000px;animation:shadow-preload .1s;animation-delay:3s}@keyframes shadow-preload{0%{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}to{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}}.uni-async-error{position:absolute;left:0;right:0;top:0;bottom:0;color:#999;padding:100px 10px;text-align:center}.uni-async-loading{box-sizing:border-box;width:100%;padding:50px;text-align:center}.uni-async-loading .uni-loading{width:30px;height:30px}
This source diff could not be displayed because it is too large. You can view the blob instead.
.batchCalculateContent[data-v-f1bced56]{display:flex;flex-direction:column;align-items:center}.radioButton[data-v-f1bced56]{position:relative;width:1.25rem;height:1.25rem;border-radius:50%;border:1px solid #CEB07D}.radioButton.selected[data-v-f1bced56]:after{content:"";position:absolute;left:0;top:0;width:.625rem;height:.625rem;transform:translate(.3125rem,.3125rem);border-radius:50%;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%)}.logo[data-v-f1bced56]{width:100%}.banner[data-v-f1bced56]{height:12.5rem}.banner img[data-v-f1bced56]{max-width:100%}.tabTitle[data-v-f1bced56]{display:flex;justify-content:space-around;font-size:16px;font-family:Source Han Sans CN-Regular,Source Han Sans CN;font-weight:400;color:#333}.tabTitle uni-text[data-v-f1bced56]{position:relative}.tabTitle uni-text.actived[data-v-f1bced56]:after{position:absolute;bottom:-.125rem;left:0;content:"";width:100%;height:.125rem;background:linear-gradient(125deg,#CEB07D,#FED597)}.formInfoContainer[data-v-f1bced56]{background:#fff;margin-top:-1rem;position:relative;z-index:2;border-top-right-radius:.9375rem;border-top-left-radius:.9375rem;padding:.9375rem;box-sizing:border-box;font-size:.9375rem;color:#333}.title[data-v-f1bced56]{display:flex;justify-content:space-between;align-items:center;color:#ceb07d;font-weight:700;font-size:1rem;position:relative;padding-left:.875rem;margin:.625rem 0;height:1.5625rem}.title[data-v-f1bced56]:before{content:"";position:absolute;left:0;top:.46875rem;width:.1875rem;height:.625rem;background-color:#ceb07d;border-radius:.25rem}.inputItem[data-v-f1bced56]{display:flex;justify-content:space-between;align-items:center;height:2.75rem;border-bottom:1px solid #E4E4E4}.inputItem .inputContent[data-v-f1bced56]{display:flex;align-items:center;justify-content:flex-end;flex:0 0 51%}.inputContent .uni-input[data-v-f1bced56]{margin-right:.625rem;text-align:right}.inputItem uni-text[data-v-f1bced56]{flex:0 0 49%}.simpleDataResult[data-v-f1bced56]{background:#FFFFFF;box-shadow:0 0 .34375rem rgba(0,0,0,.1);border-radius:.15625rem;opacity:1;margin:.9375rem .46875rem 1.75rem;padding:.46875rem .53125rem}.simpleDataResult .resultTitle[data-v-f1bced56]{font-size:1rem;font-weight:700;color:#ceb07d}.simpleDataResult .calcNumber[data-v-f1bced56]{text-align:right;font-size:20px}.simpleDataResult .inputItem[data-v-f1bced56]:last-child{border:none}.simpleDataResult .inputItem .title[data-v-f1bced56]{color:#ceb07d;font-weight:700}.reduceInsuranceContent .tableTh[data-v-f1bced56],.reduceInsuranceContent .tableTd[data-v-f1bced56]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.reduceInsuranceContent .tableTh uni-text[data-v-f1bced56]{flex:1}.reduceInsuranceContent .tableTh uni-text.withdrawNumber[data-v-f1bced56],.reduceInsuranceContent .tableTd uni-text.withdrawNumber[data-v-f1bced56]{flex:2}.reduceInsuranceContent .tableTd .uni-input[data-v-f1bced56],.reduceInsuranceContent .tableTh uni-text[data-v-f1bced56]{text-align:center;border-bottom:1px solid #E4E4E4;padding:.1875rem .75rem;margin-right:.625rem}.reduceInsuranceContent .tableTh uni-text[data-v-f1bced56]{border:none;white-space:nowrap;color:#333}.reduceInsuranceContent .tableTd[data-v-f1bced56]:last-child{margin-bottom:.625rem}.resultContent[data-v-f1bced56]{margin-bottom:1.875rem;padding-bottom:1.875rem}.optionContent[data-v-f1bced56]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-f1bced56]{flex:0 0 46%;border:.0625rem solid #e7c793;font-size:1.125rem}.btn[data-v-f1bced56]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none;color:#6b4000}.batchDataResult[data-v-f1bced56]{box-shadow:0 0 11px rgba(0,0,0,.1);margin-top:1rem}.batchDataResult .resultTh[data-v-f1bced56]{height:1.875rem;line-height:1.875rem;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border-top-left-radius:.375rem;border-top-right-radius:.375rem;color:#6b4000;font-weight:700;display:flex}.batchDataResult .resultTd[data-v-f1bced56]{display:flex;height:1.875rem;align-items:center;border-bottom:1px solid #E4E4E4}.batchDataResult .resultTd[data-v-f1bced56]:last-child{border-bottom:none}.batchDataResult .resultTh uni-text[data-v-f1bced56],.batchDataResult .resultTd uni-text[data-v-f1bced56]{flex:1;text-align:center;font-weight:700;color:#333}.batchDataResult .resultTd uni-text.resultNumber[data-v-f1bced56]{color:#ceb07d}.cashValueContent .title uni-button[data-v-f1bced56]{background-color:transparent;font-size:.9375rem;color:#333;box-sizing:border-box;line-height:initial}.cashValueContent .title uni-button[data-v-f1bced56]:after{border:1px solid #CEB07D;border-radius:.375rem}.cashValueContent .title uni-button[data-v-f1bced56]:first-child{margin-right:1.25rem}.cashValueContent .title uni-button.actived[data-v-f1bced56]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.reduceInsuranceContent uni-text[data-v-f1bced56]{display:inline-block;width:1.25rem!important;height:1.25rem!important;line-height:1.25rem!important;text-align:center;border:.09375rem #CEB07D solid;color:#ceb07d;border-radius:50%;font-size:.75rem}.qrcodeContainer[data-v-f1bced56]{width:100%;height:100vh;overflow:hidden}.qrcodeContainer img[data-v-f1bced56]{max-width:100%}
var e=Object.defineProperty,a=Object.defineProperties,t=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,c=(a,t,l)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[t]=l;import{g as n,C as o,s as r,D as u,a as d,o as p,c as f,w as h,d as y,h as m,t as g,i as Y,e as _,j as C,F as P,f as v,k as S,p as b,m as A,E as L,u as I,G as R,S as D,H as x,I as k}from"./index.5e14dbb8.js";import{_ as V,a as O}from"./plugin-vue_export-helper.4a7acdcb.js";var w=V({data:()=>({index:0,stepLists:[1,5,10,15,20],pasteData:"",irrAndSimpleInfos:[{nyear:1,cashValue:""}],customPolicyYearRange:0,customPolicyYearRangeCount:40,maxPolicyYear:105,policyYearLists:[{nyear:1,isActived:!0,cashValue:""}],policyYearModalFlag:!1,calcuteData:null}),onLoad(){this.bindPickerChange({detail:{value:this.index}}),this.calcuteData=n("calcuteData")},methods:{bindPickerChange(e){this.index=e.detail.value;const a=1===this.stepLists[this.index]?2:1;this.policyYearLists=[{nyear:1,isActived:!0,cashValue:""}];for(let t=a;t<=this.maxPolicyYear;t++){let e=this.stepLists[this.index]*t;if(!(e<=this.maxPolicyYear))break;this.policyYearLists=this.policyYearLists.concat([{nyear:e,cashValue:""}])}this.irrAndSimpleInfos=this.policyYearLists.concat([])},selectCustomPolicyYear(){this.policyYearModalFlag=!0,this.irrAndSimpleInfos=this.policyYearLists=[],console.log(this.irrAndSimpleInfos)},selectPolicyYearRange(e){this.customPolicyYearRange=e},selectCustomPolicyYears(e){this.policyYearLists.filter((a=>a.nyear==e)).pop()?this.policyYearLists.filter((a=>a.nyear==e)).pop().isActived=!this.policyYearLists.filter((a=>a.nyear==e)).pop().isActived:this.policyYearLists.push({nyear:e,isActived:!0,cashValue:""})},getActiveStatus(e){let a=!1;return this.policyYearLists.filter((a=>a.nyear==e)).pop()&&(a=this.policyYearLists.filter((a=>a.nyear==e)).pop().isActived),a},confirmPolicyYears(){this.policyYearModalFlag=!1,this.policyYearLists.length>0&&this.policyYearLists.sort(((e,a)=>e.nyear-a.nyear)),this.irrAndSimpleInfos=JSON.parse(JSON.stringify(this.policyYearLists))},pasteDataDistinguish(){const e=this.pasteData.trim().split("\n");console.log(e),e.length<=0||e.every((e=>""==e))?o({title:"数据识别结果",content:"检测到您并没有导入数据,请重新操作",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}}):e.length!==this.irrAndSimpleInfos.length&&o({title:"数据识别结果",content:"检测到您导入的数据条数和选择的保单年度数量不一致,系统将从上到下依次填入,请确认是否继续",success:a=>{if(a.confirm){if(console.log("用户点击确定"),this.irrAndSimpleInfos.length>0){const a=Math.min(e.length,this.irrAndSimpleInfos.length);console.log(a);for(let t=0;t<a;t++)this.irrAndSimpleInfos[t].cashValue=e[t]}}else a.cancel&&console.log("用户点击取消")}})},clearData(){this.pasteData="",this.irrAndSimpleInfos.forEach((e=>e.cashValue=""))},calcute(){this.policyYearLists=this.irrAndSimpleInfos;const e=(n=((e,a)=>{for(var t in a||(a={}))s.call(a,t)&&c(e,t,a[t]);if(l)for(var t of l(a))i.call(a,t)&&c(e,t,a[t]);return e})({},this.calcuteData),o={calcuteMethod:2,decimal:5,irrAndSimpleInfos:this.policyYearLists},a(n,t(o)));var n,o;O.irrAndSimpleCalcute(e).then((e=>{!0===e.success?(this.irrAndSimpleResInfos=e.data.irrAndSimpleResInfos,r("resIrrAndSimpleResInfos",this.irrAndSimpleResInfos),u({delta:1})):d({title:e.message,duration:2e3,icon:"none"})}))}}},[["render",function(e,a,t,l,s,i){const c=b,n=A,o=L,r=I,u=R,d=k,V=D,O=x;return p(),f(n,{class:"batchDataImportContainer"},{default:h((()=>[y(n,{class:"selectStepContainer"},{default:h((()=>[y(n,{class:"selectStepContent"},{default:h((()=>[y(c,null,{default:h((()=>[m("我想测算每隔")])),_:1}),y(n,{class:"stepContent"},{default:h((()=>[y(o,{onChange:i.bindPickerChange,value:s.index,range:s.stepLists},{default:h((()=>[y(n,{class:"uni-input"},{default:h((()=>[m(g(s.stepLists[s.index]),1)])),_:1})])),_:1},8,["onChange","value","range"]),(p(),Y("svg",{t:"1661847421137",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1364",width:"16",height:"16"},[_("path",{d:"M917.4 302.8c-14.2-14.2-37.2-14.2-51.4 0L518.6 650.3c-2.9 2.8-7.5 2.8-10.3 0L160.8 302.8c-14.2-14.2-37.2-14.2-51.4 0-14.2 14.2-14.2 37.2 0 51.4l347.4 347.4c15.6 15.6 36 23.4 56.5 23.4s41-7.8 56.5-23.4l347.4-347.4c14.3-14.2 14.3-37.2 0.2-51.4z","p-id":"1365",fill:"#666666"})]))])),_:1}),y(c,null,{default:h((()=>[m("年的单利复利")])),_:1})])),_:1}),y(n,null,{default:h((()=>[y(r,{class:"mini-btn",type:"default",size:"mini",onClick:i.selectCustomPolicyYear},{default:h((()=>[m("自定义")])),_:1},8,["onClick"])])),_:1})])),_:1}),y(n,{class:"tips"},{default:h((()=>[y(c,null,{default:h((()=>[m("(如需指定任意保单年度,可通过点击右上角"),y(c,null,{default:h((()=>[m("“自定义”")])),_:1}),m("按钮完成)")])),_:1})])),_:1}),y(n,{class:"dataOptionContainer"},{default:h((()=>[y(n,{class:"uni-textarea"},{default:h((()=>[y(u,{modelValue:s.pasteData,"onUpdate:modelValue":a[0]||(a[0]=e=>s.pasteData=e),"placeholder-style":"color:#999999;font-size:14px;padding-left:9px;padding-top:3px",placeholder:"请根据左侧保单年度进行现金价值数据粘贴"},null,8,["modelValue"]),y(r,{class:"mini-btn pasteDiscernment",type:"default",size:"mini",onClick:i.pasteDataDistinguish},{default:h((()=>[m("粘贴并识别")])),_:1},8,["onClick"])])),_:1}),y(n,{class:"batchDataLists"},{default:h((()=>[y(n,{class:"batchDataTh"},{default:h((()=>[y(c,null,{default:h((()=>[m("保单年度")])),_:1}),y(c,null,{default:h((()=>[m("现金价值")])),_:1})])),_:1}),y(V,{"scroll-y":"true",style:{height:"560rpx"}},{default:h((()=>[(p(!0),Y(P,null,C(s.irrAndSimpleInfos,(e=>(p(),f(n,{class:"batchDataTd"},{default:h((()=>[y(c,null,{default:h((()=>[m(g(e.nyear),1)])),_:2},1024),y(d,{class:"uni-input",style:{height:"100%"},type:"digit",modelValue:e.cashValue,"onUpdate:modelValue":a=>e.cashValue=a,placeholder:"请输入纯数字"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)))),256))])),_:1})])),_:1})])),_:1}),y(n,{class:"optionContent"},{default:h((()=>[y(r,{type:"default",plain:"true","form-type":"reset",onClick:i.clearData},{default:h((()=>[m("全部清空")])),_:1},8,["onClick"]),y(r,{type:"default",plain:"true",onClick:a[1]||(a[1]=e=>i.calcute())},{default:h((()=>[m(g("2"==e.calcuteMethod?"输入批量数据":"开始计算"),1)])),_:1})])),_:1}),s.policyYearModalFlag?(p(),f(n,{key:0,class:"policySelectContainer"},{default:h((()=>[y(n,{class:"policyYearContainer"},{default:h((()=>[y(n,{class:"modalTitle"},{default:h((()=>[y(c),y(c,null,{default:h((()=>[m("选择保单年度"),y(c,null,{default:h((()=>[m("(可多选)")])),_:1})])),_:1}),y(O,{type:"clear",size:"26",onClick:a[2]||(a[2]=e=>s.policyYearModalFlag=!1)})])),_:1}),y(n,{class:"policyStepContainer"},{default:h((()=>[y(r,{type:"default",plain:"true",class:v({actived:0===s.customPolicyYearRange}),onClick:a[3]||(a[3]=e=>i.selectPolicyYearRange(0))},{default:h((()=>[m("1~40")])),_:1},8,["class"]),y(r,{type:"default",plain:"true",class:v({actived:1===s.customPolicyYearRange}),onClick:a[4]||(a[4]=e=>i.selectPolicyYearRange(1))},{default:h((()=>[m("41~80")])),_:1},8,["class"]),y(r,{type:"default",plain:"true",class:v({actived:2===s.customPolicyYearRange}),onClick:a[5]||(a[5]=e=>i.selectPolicyYearRange(2))},{default:h((()=>[m("81~105")])),_:1},8,["class"])])),_:1}),y(n,{class:"policyYearItemContainer"},{default:h((()=>[(p(!0),Y(P,null,C(s.customPolicyYearRangeCount,(e=>(p(),f(n,{onClick:a=>i.selectCustomPolicyYears(e+s.customPolicyYearRange*s.customPolicyYearRangeCount),class:v({actived:i.getActiveStatus(e+s.customPolicyYearRange*s.customPolicyYearRangeCount)})},{default:h((()=>[y(c,null,{default:h((()=>[m(g(e+s.customPolicyYearRange*s.customPolicyYearRangeCount>this.maxPolicyYear?"":e+s.customPolicyYearRange*s.customPolicyYearRangeCount),1)])),_:2},1024)])),_:2},1032,["onClick","class"])))),256))])),_:1}),y(n,{class:"confirm"},{default:h((()=>[y(r,{type:"default",plain:"true",onClick:a[6]||(a[6]=e=>i.confirmPolicyYears())},{default:h((()=>[m("确定")])),_:1})])),_:1})])),_:1})])),_:1})):S("",!0)])),_:1})}],["__scopeId","data-v-bc9909ba"]]);export{w as default};
var e=Object.defineProperty,l=Object.defineProperties,a=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,n=(l,a,t)=>a in l?e(l,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[a]=t,r=(e,l)=>{for(var a in l||(l={}))i.call(l,a)&&n(e,a,l[a]);if(t)for(var a of t(l))s.call(l,a)&&n(e,a,l[a]);return e},u=(e,t)=>l(e,a(t));import{r as d,g as o,s as c,a as p,n as m,o as f,c as h,w as y,b as w,v as _,d as S,e as b,f as I,h as A,i as C,j as g,F as T,k as V,l as P,t as v,m as W,p as R,I as N,q as U,u as x,S as F,x as O}from"./index.5e14dbb8.js";import{_ as M,a as k}from"./plugin-vue_export-helper.4a7acdcb.js";var Q={getQueryString(e){const l=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),a=decodeURIComponent(window.location.search).substr(1).match(l);return null!=a?a[2]:null}};var j=M({data:()=>({isNeedOfficialAccountQrcode:!0,calcuteType:"1",withdrawalType:"1",resultShowFlag:!1,calcuteMethod:"1",businessType:1,mobile:void 0,irrAndSimpleCalcuteParam:{},yearWithdrawal:{withdrawalType:void 0,withdrawalStart:void 0,withdrawalEnd:void 0,yearWithdrawalAmount:void 0},irrAndSimple:{nyear:void 0,cashValue:void 0},yearWithdrawalInfos:[],irrAndSimpleInfos:[],irrAndSimpleResInfos:[],resIrrAndSimpleResInfos:[]}),onLoad(){d("resIrrAndSimpleResInfos"),o("businessNo")?this.businessNo=o("businessNo"):c("businessNo",((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,l)=>e+((l&=63)<36?l.toString(36):l<62?(l-26).toString(36).toUpperCase():l>62?"-":"_")),""))().replace(/\_/g,"")),0==Q.getQueryString("subscribe")?this.isNeedOfficialAccountQrcode=!0:this.isNeedOfficialAccountQrcode=!1,Q.getQueryString("openId")?c("openId",Q.getQueryString("openId")):o("openId")||k.getWxUserInfo({userApplyType:"1",businessNo:o("businessNo")}).then((e=>{console.log(e),e.success&&(window.location.href=e.data.paymentForm.action)})),0!=Q.getQueryString("subscribe")&&o("openId")?this.isNeedOfficialAccountQrcode=!1:this.isNeedOfficialAccountQrcode=!0,this.yearWithdrawal.length>0&&this.yearWithdrawalInfos.push(u(r({},this.yearWithdrawal),{withdrawalType:this.withdrawalType?"1":"2"}))},methods:{switchTab(e){this.calcuteType=e,"2"==e&&(this.yearWithdrawalInfos=[].concat([{withdrawalType:"1",withdrawalStart:null,yearWithdrawalAmount:null}]))},calcute(e){if(console.log(this.businessType),"1"===this.calcuteMethod)this.irrAndSimpleCalte();else if("2"===this.calcuteMethod){if(!this.irrAndSimpleCalcuteParam.paymentPeriod||this.irrAndSimpleCalcuteParam.paymentPeriod<1)return void p({title:"请填写交费年限且交费年限必须大于0",duration:2e3,icon:"none"});if(!this.irrAndSimpleCalcuteParam.annualPremium)return void p({title:"请填写年交保费",duration:2e3,icon:"none"});const e={paymentPeriod:this.irrAndSimpleCalcuteParam.paymentPeriod,annualPremium:this.irrAndSimpleCalcuteParam.annualPremium,allFirstPayment:this.irrAndSimpleCalcuteParam.allFirstPayment,yearWithdrawalInfos:this.yearWithdrawalInfos,calcuteType:this.calcuteType,businessNo:this.businessNo,businessType:this.businessType};c("calcuteData",e),m({url:"/pages/dataImport/data-import"})}},initCashValue(e){this.calcuteMethod=e,"1"===e&&(this.irrAndSimple={nyear:null,cashValue:null},this.irrAndSimpleInfos=[].concat([{nyear:null,cashValue:null}]),console.log(this.irrAndSimple))},changeWithdrawalType(){this.withdrawalType=!this.withdrawalType,console.log(this.withdrawalType),this.withdrawalType?this.yearWithdrawalInfos=[]:(this.yearWithdrawalInfos=[].concat([{withdrawalType:"2",withdrawalStart:null,withdrawalEnd:null,yearWithdrawalAmount:null}]),console.log(this.yearWithdrawalInfos))},add(){this.yearWithdrawalInfos.push({withdrawalType:void 0,withdrawalStart:void 0,withdrawalEnd:void 0,yearWithdrawalAmount:void 0,withdrawalType:this.withdrawalType?"1":"2"})},reduce(e){this.yearWithdrawalInfos.length>1&&this.yearWithdrawalInfos.splice(e,1)},irrAndSimpleCalte(){if(!this.irrAndSimpleCalcuteParam.paymentPeriod)return void p({title:"请填写交费年限",duration:2e3,icon:"none"});if(!this.irrAndSimpleCalcuteParam.annualPremium)return void p({title:"请填写年交保费",duration:2e3,icon:"none"});if(2==this.businessType&&!this.mobile)return void p({title:"保存时手机号必填",duration:2e3,icon:"none"});if(1==this.calcuteMethod){if(!this.irrAndSimple.nyear)return void p({title:"现金价值年度未输入!",duration:2e3,icon:"none"});if(!this.irrAndSimple.nyear)return void p({title:"生存总利益未输入!",duration:2e3,icon:"none"})}const e=u(r({},this.irrAndSimpleCalcuteParam),{calcuteType:this.calcuteType,businessType:this.businessType,calcuteMethod:this.calcuteMethod,businessNo:o("businessNo"),mobile:null,loginNo:null,wechat_openid:o("openId")||"",yearWithdrawalInfos:this.yearWithdrawalInfos,irrAndSimpleInfos:[].concat([this.irrAndSimple]),withdrawalType:this.withdrawalType?"1":"2",decimal:5});k.irrAndSimpleCalcute(e).then((e=>{console.log(e),!0===e.success?e.data.irrAndSimpleResInfos?(this.irrAndSimpleResInfos=e.data.irrAndSimpleResInfos,this.resultShowFlag=!0):this.irrAndSimpleResInfos=[]:(this.irrAndSimpleResInfos=[],p({title:e.message,duration:2e3,icon:"none"}))}))}},onShow(){o("resIrrAndSimpleResInfos")&&(this.resIrrAndSimpleResInfos=o("resIrrAndSimpleResInfos"),this.calcuteMethod="2",this.resultShowFlag=!0)}},[["render",function(e,l,a,t,i,s){const n=W,r=R,u=N,d=U,o=x,c=F,p=O;return f(),h(n,{class:""},{default:y((()=>[w(S(n,{class:"qrcodeContainer"},{default:y((()=>[S(n,{class:"qrcodeContent"},{default:y((()=>[b("img",{src:"/sfp/assets/qrcodeBg.672cc012.png",alt:"",srcset:""})])),_:1})])),_:1},512),[[_,i.isNeedOfficialAccountQrcode]]),w(S(n,{class:"content"},{default:y((()=>[S(n,{class:"banner"},{default:y((()=>[b("img",{src:"/sfp/assets/policyIrrBanner.05908eaf.png",alt:"",srcset:""})])),_:1}),S(c,{"scroll-y":"true",class:"formInfoContainer"},{default:y((()=>[S(n,{class:"tabTitle"},{default:y((()=>[S(r,{onClick:l[0]||(l[0]=e=>s.switchTab("1")),class:I({actived:"1"===i.calcuteType})},{default:y((()=>[A("增额")])),_:1},8,["class"]),S(r,{onClick:l[1]||(l[1]=e=>s.switchTab("2")),class:I({actived:"2"===i.calcuteType})},{default:y((()=>[A("年金")])),_:1},8,["class"])])),_:1}),S(p,{onSubmit:e.formSubmit,onReset:e.formReset},{default:y((()=>[S(n,{class:"policyInfoContent"},{default:y((()=>[S(n,{class:"title"},{default:y((()=>[S(n,null,{default:y((()=>[A("保单信息")])),_:1})])),_:1}),S(n,{class:"inputItem"},{default:y((()=>[S(r,null,{default:y((()=>[A("交费年限:")])),_:1}),S(n,{class:"inputContent"},{default:y((()=>[S(u,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:i.irrAndSimpleCalcuteParam.paymentPeriod,"onUpdate:modelValue":l[2]||(l[2]=e=>i.irrAndSimpleCalcuteParam.paymentPeriod=e)},null,8,["modelValue"]),S(d,{for:""},{default:y((()=>[A("年")])),_:1})])),_:1})])),_:1}),S(n,{class:"inputItem"},{default:y((()=>[S(r,null,{default:y((()=>[A("年交保费:")])),_:1}),S(n,{class:"inputContent"},{default:y((()=>[S(u,{class:"uni-input",type:"digit",placeholder:"请输入",modelValue:i.irrAndSimpleCalcuteParam.annualPremium,"onUpdate:modelValue":l[3]||(l[3]=e=>i.irrAndSimpleCalcuteParam.annualPremium=e)},null,8,["modelValue"]),S(d,{for:""},{default:y((()=>[A("元")])),_:1})])),_:1})])),_:1}),w(S(n,{class:"inputItem"},{default:y((()=>[S(r,null,{default:y((()=>[A("万能账户首年交费"),S(r,{style:{"font-size":"24rpx"}},{default:y((()=>[A("(如有)")])),_:1}),A(":")])),_:1}),S(n,{class:"inputContent"},{default:y((()=>[S(u,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:i.irrAndSimpleCalcuteParam.allFirstPayment,"onUpdate:modelValue":l[4]||(l[4]=e=>i.irrAndSimpleCalcuteParam.allFirstPayment=e)},null,8,["modelValue"]),S(d,{for:""},{default:y((()=>[A("元")])),_:1})])),_:1})])),_:1},512),[[_,"2"===i.calcuteType]])])),_:1}),"2"===i.calcuteType&&i.irrAndSimpleCalcuteParam.allFirstPayment?V("",!0):(f(),h(n,{key:0,class:"claimInfomationContent"},{default:y((()=>[S(n,{class:"title"},{default:y((()=>[S(r,null,{default:y((()=>[A("提领信息")])),_:1}),w(S(n,{style:{display:"flex"},onClick:l[5]||(l[5]=e=>s.changeWithdrawalType())},{default:y((()=>[S(n,{class:I(["radioButton",{selected:!i.withdrawalType}])},null,8,["class"]),S(r,{style:{"margin-left":"10rpx"}},{default:y((()=>[A("减保取现")])),_:1})])),_:1},512),[[_,"1"===i.calcuteType]])])),_:1}),w(S(n,{class:"annuityContent"},{default:y((()=>[(f(!0),C(T,null,g(i.yearWithdrawalInfos,(e=>(f(),h(n,null,{default:y((()=>[S(n,{class:"inputItem"},{default:y((()=>[S(r,null,{default:y((()=>[A("从第几个保单年度开始提取:")])),_:1}),S(n,{class:"inputContent"},{default:y((()=>[S(u,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:e.withdrawalStart,"onUpdate:modelValue":l=>e.withdrawalStart=l},null,8,["modelValue","onUpdate:modelValue"]),S(d,{for:""},{default:y((()=>[A("年")])),_:1})])),_:2},1024)])),_:2},1024),S(n,{class:"inputItem"},{default:y((()=>[S(r,null,{default:y((()=>[A("每年提取金额:")])),_:1}),S(n,{class:"inputContent"},{default:y((()=>[S(u,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:e.yearWithdrawalAmount,"onUpdate:modelValue":l=>e.yearWithdrawalAmount=l},null,8,["modelValue","onUpdate:modelValue"]),S(d,{for:""},{default:y((()=>[A("元")])),_:1})])),_:2},1024)])),_:2},1024)])),_:2},1024)))),256))])),_:1},512),[[_,"2"===i.calcuteType]]),w(S(n,{class:"reduceInsuranceContent"},{default:y((()=>[S(n,{class:"tableTh"},{default:y((()=>[S(r,null,{default:y((()=>[A("起领年度(年初)")])),_:1}),S(r,null,{default:y((()=>[A("止领年度(年末)")])),_:1}),S(r,{class:"withdrawNumber"},{default:y((()=>[A("年提取金额(元)")])),_:1})])),_:1}),(f(!0),C(T,null,g(i.yearWithdrawalInfos,((e,l)=>(f(),h(n,{class:"tableTd"},{default:y((()=>[S(u,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:e.withdrawalStart,"onUpdate:modelValue":l=>e.withdrawalStart=l},null,8,["modelValue","onUpdate:modelValue"]),S(u,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:e.withdrawalEnd,"onUpdate:modelValue":l=>e.withdrawalEnd=l},null,8,["modelValue","onUpdate:modelValue"]),S(u,{class:"uni-input withdrawNumber",type:"number",placeholder:"请输入",modelValue:e.yearWithdrawalAmount,"onUpdate:modelValue":l=>e.yearWithdrawalAmount=l},null,8,["modelValue","onUpdate:modelValue"]),w(S(n,null,{default:y((()=>[S(r,{onClick:e=>s.reduce(l)},{default:y((()=>[A("-")])),_:2},1032,["onClick"])])),_:2},1536),[[_,i.yearWithdrawalInfos.length>1]])])),_:2},1024)))),256)),S(r,{onClick:l[6]||(l[6]=e=>s.add()),style:{position:"absolute",right:"0"}},{default:y((()=>[A("+")])),_:1})])),_:1},512),[[_,!i.withdrawalType&&"1"===i.calcuteType]])])),_:1})),S(n,{class:"cashValueContent",style:P({marginTop:"1"==i.calcuteType?"80rpx":"40rpx"})},{default:y((()=>[S(n,{class:"title"},{default:y((()=>[S(r,null,{default:y((()=>[A("现金价值")])),_:1}),S(n,{class:"calcTypeOption"},{default:y((()=>[S(o,{class:I(["mini-btn",{actived:"1"==i.calcuteMethod}]),type:"default",size:"mini",onClick:l[7]||(l[7]=e=>s.initCashValue("1"))},{default:y((()=>[A("单次")])),_:1},8,["class"]),S(o,{class:I(["mini-btn",{actived:"2"==i.calcuteMethod}]),type:"default",size:"mini",onClick:l[8]||(l[8]=e=>s.initCashValue("2"))},{default:y((()=>[A("批量")])),_:1},8,["class"])])),_:1})])),_:1}),w(S(n,{class:"simpleCalculateContent"},{default:y((()=>[S(n,{class:"inputItem"},{default:y((()=>[S(r,null,{default:y((()=>[A("第:")])),_:1}),S(n,{class:"inputContent"},{default:y((()=>[S(u,{class:"uni-input",type:"number",placeholder:"请输入",min:"1",modelValue:i.irrAndSimple.nyear,"onUpdate:modelValue":l[9]||(l[9]=e=>i.irrAndSimple.nyear=e)},null,8,["modelValue"]),S(d,{for:""},{default:y((()=>[A("年")])),_:1})])),_:1})])),_:1}),S(n,{class:"inputItem"},{default:y((()=>[S(r,null,{default:y((()=>[A("总生存利益"),S(r,{style:{"font-size":"14px"}},{default:y((()=>[A("(总领取金额+现金价值)")])),_:1}),A(":")])),_:1}),S(n,{class:"inputContent"},{default:y((()=>[S(u,{class:"uni-input",type:"number",placeholder:"请输入",min:"1",modelValue:i.irrAndSimple.cashValue,"onUpdate:modelValue":l[10]||(l[10]=e=>i.irrAndSimple.cashValue=e)},null,8,["modelValue"]),S(d,{for:""},{default:y((()=>[A("元")])),_:1})])),_:1})])),_:1})])),_:1},512),[[_,"1"===i.calcuteMethod]]),w(S(n,{class:"batchCalculateContent"},{default:y((()=>[b("img",{src:"/sfp/assets/batchFileImport.f45bf5a6.png",alt:"",style:{width:"50%"}}),S(r,null,{default:y((()=>[A("暂无数据")])),_:1}),S(r,{style:{"font-size":"14px","margin-top":"10rpx"}},{default:y((()=>[A("点击下方按钮输入批量数据")])),_:1})])),_:1},512),[[_,!i.resultShowFlag&&"2"===i.calcuteMethod]])])),_:1},8,["style"]),S(n,{class:"resultContent"},{default:y((()=>[i.resultShowFlag&&"1"==i.calcuteMethod?(f(),h(n,{key:0,class:"simpleDataResult"},{default:y((()=>[S(n,{class:"inputItem"},{default:y((()=>[S(r,{class:"resultTitle"},{default:y((()=>[A("IRR复利")])),_:1}),S(r,{class:"calcNumber"},{default:y((()=>[A(v(100*(i.irrAndSimpleResInfos.length>0?i.irrAndSimpleResInfos[0].irrValue:null).toFixed(5))+"%",1)])),_:1})])),_:1}),S(n,{class:"inputItem"},{default:y((()=>[S(r,{class:"resultTitle"},{default:y((()=>[A("单利")])),_:1}),S(r,{class:"calcNumber"},{default:y((()=>[A(v(100*(i.irrAndSimpleResInfos.length>0?i.irrAndSimpleResInfos[0].simpleValue:null).toFixed(5))+"%",1)])),_:1})])),_:1})])),_:1})):V("",!0),i.resultShowFlag&&"2"==i.calcuteMethod?(f(),h(n,{key:1,class:"batchDataResult"},{default:y((()=>[S(c,{"scroll-y":"true",class:"scroll-Y"},{default:y((()=>[S(n,{class:"scroll-view-item"},{default:y((()=>[S(n,{class:"resultTh"},{default:y((()=>[S(r,null,{default:y((()=>[A("保单年度")])),_:1}),S(r,null,{default:y((()=>[A("现金价值")])),_:1}),S(r,null,{default:y((()=>[A("IRR复利")])),_:1}),S(r,null,{default:y((()=>[A("单利")])),_:1})])),_:1}),(f(!0),C(T,null,g(i.resIrrAndSimpleResInfos,(e=>(f(),h(n,{class:"resultTd"},{default:y((()=>[S(r,null,{default:y((()=>[A(v(e.nyear),1)])),_:2},1024),S(r,null,{default:y((()=>[A(v(e.cashValue),1)])),_:2},1024),S(r,{class:"resultNumber"},{default:y((()=>[A(v((100*e.simpleValue).toFixed(5))+"%",1)])),_:2},1024),S(r,{class:"resultNumber"},{default:y((()=>[A(v((100*e.irrValue).toFixed(5))+"%",1)])),_:2},1024)])),_:2},1024)))),256))])),_:1})])),_:1})])),_:1})):V("",!0)])),_:1}),S(n,{class:"optionContent"},{default:y((()=>[S(o,{type:"default",plain:"true","form-type":"reset"},{default:y((()=>[A("清空")])),_:1}),w(S(o,{type:"default",plain:"true",class:"btn",onClick:l[11]||(l[11]=e=>s.calcute(2))},{default:y((()=>[A("输入批量数据")])),_:1},512),[[_,2==i.calcuteMethod]]),w(S(o,{type:"default",plain:"true",class:"btn",onClick:l[12]||(l[12]=e=>s.calcute(1))},{default:y((()=>[A("开始计算")])),_:1},512),[[_,1==i.calcuteMethod]])])),_:1})])),_:1},8,["onSubmit","onReset"])])),_:1})])),_:1},512),[[_,!i.isNeedOfficialAccountQrcode]])])),_:1})}],["__scopeId","data-v-f1bced56"]]);export{j as default};
var e=Object.defineProperty,t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,r=(t,i,a)=>i in t?e(t,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[i]=a,o=(e,o)=>{for(var s in o||(o={}))i.call(o,s)&&r(e,s,o[s]);if(t)for(var s of t(o))a.call(o,s)&&r(e,s,o[s]);return e};import{y as s,z as n,g as p,A as u,s as l,B as c}from"./index.5e14dbb8.js";const d=["/api/authorize/obtainToken"];var h=(e,t,i)=>(s("request",{invoke(e){if(n({title:"加载中..."}),!p("uni-token")&&!d.includes(e.url))return new Promise(((e,t)=>(u({url:"/api/authorize/obtainToken",method:"POST",data:{ticket:"uni-app"},success:e=>{200===e.statusCode&&(l("uni-token",e.data.data.token),window.location.href=window.location.href+"?t_reload="+(new Date).getTime())},fail(e){t(e)}}),c(),!1)));e.header={"content-type":"POST"===e.method?"application/json":"application/x-www-form-urlencoded","X-Authorization":p("uni-token")}},success(e){c(),console.log(e)},fail(e){console.log("interceptor-fail",e),console.log("请求失败"),c()},complete(e){c()}}),new Promise(((a,r)=>{u({url:e,method:t,data:o({},i),success(e){a(e.data)},fail(e){r(e)},complete(){c()}})})));let f={dev:{base_url:"https://mdev.zuihuibi.cn",api_url:"https://mdev.zuihuibi.cn/api",sfp_url:"https://mdev.zuihuibi.cn/api/sfp"},stage:{base_url:"https://mstage.zuihuibi.cn",api_url:"https://mstage.zuihuibi.cn/api",sfp_url:"https://mstage.zuihuibi.cn/api/sfp"},prod:{base_url:"https://m.zuihuibi.cn",api_url:"https://m.zuihuibi.cn/api",sfp_url:"https://m.zuihuibi.cn/api/sfp"}}.dev.base_url;var m={irrAndSimpleCalcute:e=>h(`${f}/api/sfp/calcuteUtil/irrAndSimpleCalcute`,"POST",e),getWxUserInfo:e=>h(`${f}/api/getWxUserInfo`,"POST",e),queryIrrAndSimple:e=>h(`${f}/api/sfp/calcuteUtil/queryIrrAndSimple`,"POST",e)},b=(e,t)=>{const i=e.__vccOpts||e;for(const[a,r]of t)i[a]=r;return i};export{b as _,m as a};
uni-view{display:block}uni-view[hidden]{display:none}uni-text[selectable]{cursor:auto;user-select:text}uni-text{white-space:pre-line}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(26,173,25,.6);border-color:rgba(26,173,25,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-toast{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;display:block;box-sizing:border-box;pointer-events:none;font-size:16px}.uni-sample-toast{position:fixed;z-index:999;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;max-width:80%}.uni-simple-toast__text{display:inline-block;vertical-align:middle;color:#fff;background-color:rgba(17,17,17,.7);padding:10px 20px;border-radius:5px;font-size:13px;text-align:center;max-width:100%;word-break:break-all;white-space:normal}uni-toast .uni-mask{pointer-events:auto}.uni-toast{position:fixed;z-index:999;width:8em;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(17,17,17,.7);text-align:center;border-radius:5px;color:#fff}.uni-toast *{box-sizing:border-box}.uni-toast__icon{margin:20px 0 0;width:38px;height:38px;vertical-align:baseline}.uni-icon_toast{margin:15px 0 0}.uni-icon_toast.uni-icon-success-no-circle:before{color:#fff;font-size:55px}.uni-icon_toast.uni-loading{margin:20px 0 0;width:38px;height:38px;vertical-align:baseline}.uni-toast__content{margin:0 0 15px}uni-picker{position:relative;display:block;cursor:pointer}uni-picker[hidden]{display:none}uni-picker[disabled]{cursor:not-allowed}.uni-picker-container{display:none;position:fixed;left:0;right:0;top:0;bottom:0;box-sizing:border-box;z-index:999;font-size:16px}.uni-picker-container .uni-picker-custom *{box-sizing:border-box}.uni-picker-container .uni-picker-custom{position:fixed;left:0;bottom:0;transform:translateY(100%);backface-visibility:hidden;z-index:999;width:100%;background-color:#efeff4;visibility:hidden;transition:transform .3s,visibility .3s}.uni-picker-container .uni-picker-custom.uni-picker-toggle{visibility:visible;transform:translate(0)}.uni-picker-container .uni-picker-content{position:relative;display:block;width:100%;height:238px;background-color:#fff}.uni-picker-container .uni-picker-item{padding:0;height:34px;line-height:34px;text-align:center;color:#000;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer}.uni-picker-container .uni-picker-header{display:block;position:relative;text-align:center;width:100%;height:45px;background-color:#fff}.uni-picker-container .uni-picker-header:after{content:"";position:absolute;left:0;bottom:0;right:0;height:1px;clear:both;border-bottom:1px solid #e5e5e5;color:#e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-container .uni-picker-action{display:block;max-width:50%;top:0;height:100%;box-sizing:border-box;padding:0 14px;font-size:17px;line-height:45px;overflow:hidden;cursor:pointer}.uni-picker-container .uni-picker-action.uni-picker-action-cancel{float:left;color:#888}.uni-picker-container .uni-picker-action.uni-picker-action-confirm{float:right;color:#007aff}.uni-picker-container .uni-picker-select{display:none}.uni-picker-system{position:absolute;display:none;display:block;top:0;left:0;width:100%;height:100%;overflow:hidden}.uni-picker-system>.uni-picker-system_input{position:absolute;border:none;height:100%;opacity:0;cursor:pointer}.uni-picker-system>.uni-picker-system_input.firefox{top:0;left:0;width:100%}.uni-picker-system>.uni-picker-system_input.chrome{top:0;left:0;width:2em;font-size:32px;height:32px}@media screen and (min-width: 500px) and (min-height: 500px){.uni-mask.uni-picker-mask{background:none}.uni-picker-container .uni-picker-custom{width:300px;left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);opacity:0;border-radius:5px;transition:opacity .3s,visibility .3s;box-shadow:0 0 20px 5px rgba(0,0,0,.3)}.uni-picker-container .uni-picker-header{border-radius:5px 5px 0 0}.uni-picker-container .uni-picker-content{transform:translate(0 0);overflow:hidden;border-radius:0 0 5px 5px}.uni-picker-container .uni-picker-custom.uni-picker-toggle{opacity:1;transform:translate(-50%,-50%)}.uni-selector-select .uni-picker-header,.uni-selector-select .uni-picker-content{display:none}.uni-selector-select .uni-picker-select{display:block;max-height:300px;overflow:auto;background-color:#fff;border-radius:5px;padding:6px 0}.uni-selector-select .uni-picker-item{padding:0 10px;color:#555}.uni-selector-select .uni-picker-item:hover{background-color:#f6f6f6}.uni-selector-select .uni-picker-item.selected{color:#007aff}}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:34px;overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;display:block;box-sizing:border-box}.uni-modal{position:fixed;z-index:999;width:80%;max-width:300px;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;text-align:center;border-radius:3px;overflow:hidden}.uni-modal *{box-sizing:border-box}.uni-modal__hd{padding:1em 1.6em .3em}.uni-modal__title{font-weight:400;font-size:18px;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.uni-modal__bd{padding:1.3em 1.6em;min-height:40px;font-size:15px;line-height:1.4;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;color:#999;max-height:400px;overflow-x:hidden;overflow-y:auto}.uni-modal__textarea{resize:none;border:0;margin:0;width:90%;padding:10px;font-size:20px;outline:none;border:none;background-color:#eee;text-decoration:inherit}.uni-modal__ft{position:relative;line-height:48px;font-size:18px;display:flex}.uni-modal__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #d5d5d6;color:#d5d5d6;transform-origin:0 0;transform:scaleY(.5)}.uni-modal__btn{display:block;flex:1;color:#3cc51f;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative;cursor:pointer}.uni-modal__btn:active{background-color:#eee}.uni-modal__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #d5d5d6;color:#d5d5d6;transform-origin:0 0;transform:scaleX(.5)}.uni-modal__btn:first-child:after{display:none}.uni-modal__btn_default{color:#353535}.uni-modal__btn_primary{color:#007aff}
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="/sfp/assets/uni.fae7f8c0.css">
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title>sfp</title>
<!--preload-links-->
<!--app-context-->
<script type="module" crossorigin src="/sfp/assets/index.5e14dbb8.js"></script>
<link rel="stylesheet" href="/sfp/assets/index.13d2da89.css">
</head>
<body>
<div id="app"><!--app-html--></div>
<!-- 移动端调试 -->
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script>
</body>
</html>
export function numberToCurrencyNo(value) { export function numberToCurrencyNo(value) {
if (!value) return 0 debugger;
if (!value) return 0;
// 获取整数部分 // 获取整数部分
const intPart = Math.trunc(value) const intPart = Math.trunc(value)
// 整数部分处理,增加, // 整数部分处理,增加,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment