Commit 6c3581fb by Sweet Zhang

修改样式

parent ade2161f
......@@ -10,10 +10,9 @@ Vue.config.productionTip = false;
Vue.prototype.axios = axios;
Vue.prototype.$api = api;
import { numberToCurrencyNo } from '@/utils/numberToCurrency'
import { numberToCurrencyNo } from './util/numberPipe';
// 配置全局过滤器,实现数字千分位格式
Vue.filter('numberToCurrency', numberToCurrencyNo)
App.mpType = 'app'
const app = new Vue({
api,
......
......@@ -19,6 +19,7 @@
border-top-right-radius: 40rpx;
padding: 20rpx 30rpx 0;
box-sizing: border-box;
overflow-y: scroll;
}
.policyYearContainer .modalTitle{
display: flex;
......
......@@ -91,8 +91,8 @@
},
name:'dataImport',
onLoad() {
this.bindPickerChange({detail:{value:this.index}})
this.calcuteData = uni.getStorageSync('calcuteData')
this.bindPickerChange({detail:{value:this.index}});
this.calcuteData = uni.getStorageSync('calcuteData');
},
methods:{
// 选择间隔
......
......@@ -25,15 +25,26 @@
width: 100%;
}
.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{
max-width: 100%;
width: 100%;
}
.tabTitle{
display: flex;
justify-content: space-around;
font-size: 16px;
font-size: 32rpx;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #333333;
......@@ -238,9 +249,6 @@
height: 40rpx!important;
line-height: 40rpx!important;
text-align: center;
border:3rpx #CEB07D solid;
color: #CEB07D;
border-radius: 50%;
font-size: 24rpx;
}
.qrcodeContainer{
......
......@@ -9,6 +9,8 @@
<view class="content" v-show="!isNeedOfficialAccountQrcode">
<view class="banner">
<img src="/static/images/policyIrrBanner.png" alt="" srcset="">
<!-- 使用说明 -->
<v-text>使用说明</v-text>
</view>
<scroll-view scroll-y="true" class="formInfoContainer">
<view class="tabTitle">
......@@ -69,7 +71,7 @@
</view>
</view>
<view class="inputItem">
<text>每年提取金额:</text>
<text style="white-space: nowrap;">每年提取金额:</text>
<view class="inputContent">
<input class="uni-input" type="number" placeholder="请输入"
v-model="item.yearWithdrawalAmount" /><label for=""></label>
......@@ -93,10 +95,12 @@
<input class="uni-input withdrawNumber" type="number" placeholder="请输入"
v-model="item.yearWithdrawalAmount"/>
<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>
<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>
<!-- 现金价值信息 -->
......@@ -118,7 +122,7 @@
</view>
</view>
<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">
<input class="uni-input" type="number" placeholder="请输入" min='1'
v-model="irrAndSimple.cashValue"/>
......@@ -138,11 +142,11 @@
<view class="simpleDataResult" v-if="resultShowFlag && calcuteMethod == '1'">
<view class="inputItem">
<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 class="inputItem">
<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>
<!-- 批量计算显示结果 -->
......@@ -157,9 +161,9 @@
</view>
<view class="resultTd" v-for="item in resIrrAndSimpleResInfos">
<text>{{item.nyear}}</text>
<text>{{item.cashValue}}</text>
<text class="resultNumber">{{(item.simpleValue*100).toFixed(5)}}%</text>
<text class="resultNumber">{{(item.irrValue * 100).toFixed(5)}}%</text>
<text>{{item.cashValue | numberToCurrency}}</text>
<text class="resultNumber">{{(item.simpleValue*100).toFixed(3)}}%</text>
<text class="resultNumber">{{(item.irrValue * 100).toFixed(3)}}%</text>
</view>
</view>
</scroll-view>
......@@ -190,7 +194,7 @@
import api from "../../api/api";
import {nanoid} from 'nanoid';
import dataHandling from "../../util/dataHandling";
import dataImport from "../dataImport/data-import.vue"
import dataImport from "../dataImport/data-import.vue";
export default {
data() {
......@@ -266,6 +270,8 @@
this.yearWithdrawalInfos = [].concat([{withdrawalType:'1',
withdrawalStart:null,
yearWithdrawalAmount:null}]);
}else if(e=='1'){
this.irrAndSimpleCalcuteParam.allFirstPayment = null;
}
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,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};
<!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) {
if (!value) return 0
debugger;
if (!value) return 0;
// 获取整数部分
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