Commit 6e5d4852 by Chao Sun

单利复利接口微调

parent 754fee5b
{
"name" : "sfp",
"appid" : "",
"appid" : "__UNI__77349B2",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
......@@ -68,5 +68,11 @@
"uniStatistics" : {
"enable" : false
},
"vueVersion" : "3"
"vueVersion" : "3",
"h5" : {
"router" : {
"base" : "/sfp/",
"mode" : "hash"
}
}
}
......@@ -11,23 +11,34 @@
<form @submit="formSubmit" @reset="formReset">
<!-- 保单信息 -->
<view class="policyInfoContent">
<view class="title" @click="irrAndSimpleCalte()">保单信息</view>
<view class="title">
<view>保单信息</view>
<button class="btn" style="font-size: 12px;margin: 0;padding: 0 30px;"
@click="calcute(2)"
>保存</button>
</view>
<view class="inputItem">
<text>交费年限:</text>
<view class="inputContent">
<input class="uni-input" type="number" placeholder="请输入" /><label for=""></label>
<input class="uni-input" type="number" placeholder="请输入"
v-model="irrAndSimpleCalcuteParam.paymentPeriod"
/><label for=""></label>
</view>
</view>
<view class="inputItem">
<text>年交保费:</text>
<view class="inputContent">
<input class="uni-input" type="number" placeholder="请输入" /><label for=""></label>
<input class="uni-input" type="digit" placeholder="请输入"
v-model="irrAndSimpleCalcuteParam.annualPremium"
/><label for=""></label>
</view>
</view>
<view class="inputItem" v-if="calcuteType==='2'">
<view class="inputItem" v-show="calcuteType===2">
<text>万能账户首年交费<text style="font-size: 24rpx;">(如有)</text></text>
<view class="inputContent">
<input class="uni-input" type="number" placeholder="请输入" /><label for=""></label>
<input class="uni-input" type="number" placeholder="请输入"
v-model="irrAndSimpleCalcuteParam.allFirstPayment"
/><label for=""></label>
</view>
</view>
</view>
......@@ -35,13 +46,13 @@
<view class="claimInfomationContent">
<view class="title">
<text>提领信息</text>
<view style="display: flex;" @click="withdrawalType = withdrawalType==='1' ? '2' : '1'" v-if="calcuteType==='1'">
<view style="display: flex;" @click="withdrawalType = withdrawalType==='1' ? '2' : '1'" v-show="calcuteType==='1'">
<view class="radioButton" :class="{'selected':withdrawalType==='2'}"></view>
<text style="margin-left: 10rpx;">减保取现</text>
</view>
</view>
<!-- 年金提领信息 -->
<view class="annuityContent" v-if="calcuteType==='2'">
<view class="annuityContent" v-show="calcuteType==='2'">
<view class="inputItem">
<text>从第几个保单年度开始提取:</text>
<view class="inputContent">
......@@ -56,7 +67,7 @@
</view>
</view>
<!-- 增额减保取现 -->
<view class="reduceInsuranceContent" v-if="withdrawalType==='2' && calcuteType==='1'">
<view class="reduceInsuranceContent" v-show="withdrawalType==='2' && calcuteType==='1'">
<view class="tableTh">
<text>起领年度</text>
<text>止领年度</text>
......@@ -83,7 +94,7 @@
<button class="mini-btn" type="default" size="mini" @click="calcuteMethod='2'" :class="{'actived':calcuteMethod=='2'}">批量</button>
</view>
</view>
<view class="simpleCalculateContent" v-if="calcuteMethod==='1'">
<view class="simpleCalculateContent" v-show="calcuteMethod==='1'">
<view class="inputItem">
<text>第:</text>
<view class="inputContent">
......@@ -97,7 +108,7 @@
</view>
</view>
</view>
<view class="batchCalculateContent" v-if="calcuteMethod==='2'">
<view class="batchCalculateContent" v-show="calcuteMethod==='2'">
<img src="/static/images/batchFileImport.png" alt="" style="width: 50%;">
<text>暂无数据</text>
<text style="font-size: 28rpx;margin-top: 10rpx;">点击下方按钮输入批量数据</text>
......@@ -106,7 +117,7 @@
<!-- 现金价值单利复利结果展示 -->
<view class="resultContent">
<!-- 单次计算显示结果 -->
<view class="simpleDataResult" v-if="resultShowFlag">
<view class="simpleDataResult" v-show="resultShowFlag">
<view class="inputItem">
<text class="resultTitle">IRR复利</text>
<text class="calcNumber">0%</text>
......@@ -117,7 +128,7 @@
</view>
</view>
<!-- 批量计算显示结果 -->
<view class="batchDataResult" v-if="resultShowFlag">
<view class="batchDataResult" v-show="resultShowFlag">
<scroll-view scroll-y="true" class="scroll-Y">
<view class="scroll-view-item">
<view class="resultTh">
......@@ -145,7 +156,12 @@
<!-- 操作 -->
<view class="optionContent">
<button type="default" plain="true" form-type="reset">清空</button>
<button type="default" plain="true" @click="calcute()">{{calcuteMethod=='2' ? '输入批量数据' : '开始计算'}}</button>
<button type="default" plain="true"
class="btn" @click="calcute(1)"
v-show="calcuteMethod==2">输入批量数据</button>
<button type="default" plain="true" class="btn"
@click="calcute(1)" v-show="calcuteMethod==1"
>开始计算</button>
</view>
</form>
......@@ -158,11 +174,14 @@
import api from "../../api/api";
export default {
data() {
return {
return {
calcuteType:'1', //计算类型(1:增额; 2:年金)
withdrawalType:'1', //提领方式(1:正常提领; 2:减保取现)
resultShowFlag:false,
calcuteMethod:'1', //计算方式(1:单次; 2:批量)
calcuteMethod:'1', //计算方式(1:单次; 2:批量)
businessType:1,
mobile:undefined,
irrAndSimpleCalcuteParam:{}
}
},
onLoad() {
......@@ -171,10 +190,12 @@
switchTab(e){
this.calcuteType = e;
},
// 判断是导入还是计算
calcute(){
// calcuteMethod判断单次还是批量;businessType判断保存还是计算
calcute(businessType){
this.businessType = businessType;
if(this.calcuteMethod==='1'){
// 计算
this.irrAndSimpleCalte();
}else if(this.calcuteMethod === '2'){
// 输入批量数据
uni.redirectTo({
......@@ -185,27 +206,41 @@
// 计算接口
irrAndSimpleCalte(){
console.log('...')
if(this.businessType == 2){
if(!this.mobile){
uni.showToast({
title: '保存时手机号必填',
duration: 2000,
icon: 'none'
})
}
}
const params = {
"mobile": "17352689126",
"loginNo": "17352689126",
"wechat_unionid": "wx_17352689126",
"businessNo": "businessNo20220829000000001",
"calcuteMethod" : "2",
"businessType" : "1",
"calcuteType": "1",
"paymentPeriod": 5,
"annualPremium": 10000,
"decimal": 6,
"irrAndSimpleInfos": [
{
"nyear": 10,
"cashValue": 90000
},
{
"nyear": 15,
"cashValue": 99000
}
]
...this.irrAndSimpleCalcuteParam,
calcuteType:this.calcuteType,
businessType:this.businessType,
calcuteMethod:this.calcuteMethod
// "mobile": "17352689126",
// "loginNo": "17352689126",
// "wechat_unionid": "wx_17352689126",
// "businessNo": "businessNo20220829000000001",
// "calcuteMethod" : "2",
// "businessType" : "1",
// "calcuteType": "1",
// "paymentPeriod": this.paymentPeriod,
// "annualPremium": this.annualPremium,
// "decimal": 6,
// "irrAndSimpleInfos": [
// {
// "nyear": 10,
// "cashValue": 90000
// },
// {
// "nyear": 15,
// "cashValue": 99000
// }
// ]
};
api.irrAndSimpleCalcute(params)
......@@ -387,12 +422,12 @@
.optionContent button{
flex: 0 0 46%;
border:2rpx solid #e7c793;
color: #6B4000;
font-size: 36rpx;
}
.optionContent button:last-child{
.btn{
background: linear-gradient(135deg, #CEB07D 0%, #FFDDA9 56%, #FED495 100%, #FED495 100%);
border: none;
color: #6B4000;
}
.batchDataResult{
box-shadow: 0px 0px 11px 0px rgba(0,0,0,0.1);
......
.policySelectContainer[data-v-742e7780]{position:fixed;z-index:2;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.35)}.policySelectContainer .policyYearContainer[data-v-742e7780]{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-742e7780]{display:flex;justify-content:space-between;align-items:center;font-weight:700}.policyYearContainer .modalTitle uni-text[data-v-742e7780]:last-child{color:red}.policyYearItemContainer[data-v-742e7780]{display:flex;flex-wrap:wrap;justify-content:space-around}.policyYearItemContainer uni-view[data-v-742e7780]{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-742e7780]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyYearItemContainer uni-view uni-text[data-v-742e7780]{position:absolute;left:50%;top:50%;transform:translate(-50%,-55%)}.policyStepContainer[data-v-742e7780]{display:flex;justify-content:space-around;margin-top:1.25rem}.policyStepContainer uni-button[data-v-742e7780]{flex:0 0 30%;font-size:1rem;color:#000;font-weight:700;border:1px solid #CEB07D}.policyStepContainer uni-button[data-v-742e7780]:after{border:1px solid #CEB07D}.policyStepContainer uni-button.actived[data-v-742e7780]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyStepContainer uni-button.actived[data-v-742e7780],.policyStepContainer uni-button.actived[data-v-742e7780]:after{border:none}.confirm uni-button[data-v-742e7780]{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-742e7780],.confirm uni-button[data-v-742e7780]:after{border:none}.uni-textarea[data-v-742e7780]{position:relative}.pasteDiscernment[data-v-742e7780]{position:absolute;right:0;bottom:0;height:1.5625rem;background:#9B8055;border-radius:100px;color:#fff;font-size:.75rem}.batchDataImportContainer[data-v-742e7780]{background-color:#fbfbfb;height:90vh}.batchDataLists[data-v-742e7780]{margin-top:.625rem;background:#fff}.batchDataLists>uni-view[data-v-742e7780]{display:flex;text-align:center;border-bottom:1px solid #e4e4e4}.batchDataLists>uni-view[data-v-742e7780]:last-child{border:none}.batchDataLists>uni-view uni-text[data-v-742e7780]:first-child{width:0;flex:0 0 35%;border-right:1px solid #e4e4e4}.batchDataLists>uni-view uni-text[data-v-742e7780]:last-child{width:0;flex:0 0 65%}.batchDataLists>uni-view.batchDataTh[data-v-742e7780]{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-742e7780]{height:2.5rem;line-height:2.5rem}.dataOptionContainer[data-v-742e7780]{margin:.625rem .625rem 1.0625rem}.dataOptionContainer .uni-textarea[data-v-742e7780]{background-color:#fff;margin-bottom:.625rem}.tips[data-v-742e7780]{font-size:.75rem;color:#666;padding:0 .625rem .625rem;background-color:#fff}.tips uni-text uni-text[data-v-742e7780]{font-size:.875rem;color:#9b8055;font-weight:700}.selectStepContent[data-v-742e7780],.selectStepContainer[data-v-742e7780]{display:flex;align-items:center}.selectStepContainer[data-v-742e7780]{justify-content:space-between;padding:.625rem .625rem 0;background-color:#fff}.stepContent[data-v-742e7780]{display:flex;align-items:center;border-bottom:1px solid #e4e4e4;padding:0 5px}.selectStepContainer uni-button[data-v-742e7780]{background-color:transparent}.selectStepContainer uni-button[data-v-742e7780]:after{border:1px solid #CEB07D}.optionContent[data-v-742e7780]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-742e7780]{flex:0 0 46%;border:.0625rem solid #e7c793;color:#6b4000;font-size:1.125rem}.optionContent uni-button[data-v-742e7780]:last-child{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none}
*{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}uni-page-head{display:block;box-sizing:border-box}.uni-page-head{position:fixed;left:var(--window-left);right:var(--window-right);height:44px;height:calc(44px + constant(safe-area-inset-top));height:calc(44px + env(safe-area-inset-top));padding:7px 3px;padding-top:calc(7px + constant(safe-area-inset-top));padding-top:calc(7px + env(safe-area-inset-top));display:flex;overflow:hidden;justify-content:space-between;box-sizing:border-box;z-index:998;color:#fff;background-color:#000;transition-property:all}.uni-page-head *{box-sizing:border-box}.uni-page-head .uni-btn-icon{overflow:hidden;min-width:1em;font-style:normal}.uni-page-head-titlePenetrate,.uni-page-head-titlePenetrate .uni-page-head-bd,.uni-page-head-titlePenetrate .uni-page-head-bd *{pointer-events:none}.uni-page-head-titlePenetrate *{pointer-events:auto}.uni-page-head.uni-page-head-transparent .uni-page-head-ft>div{justify-content:center}.uni-page-head~.uni-placeholder{width:100%;height:44px;height:calc(44px + constant(safe-area-inset-top));height:calc(44px + env(safe-area-inset-top))}.uni-placeholder-titlePenetrate{pointer-events:none}.uni-page-head-hd{display:flex;align-items:center;font-size:16px}.uni-page-head-bd{position:absolute;left:70px;right:70px;min-width:0;-webkit-user-select:auto;user-select:auto}.uni-page-head-btn{position:relative;width:auto;margin:0 2px;word-break:keep-all;white-space:pre;cursor:pointer}.uni-page-head-btn svg{margin-top:-2px}.uni-page-head-transparent .uni-page-head-btn{display:flex;align-items:center;width:32px;height:32px;border-radius:50%;background-color:rgba(0,0,0,.5)}.uni-page-head-btn-red-dot:after{content:attr(badge-text);position:absolute;right:0;top:0;background-color:red;color:#fff;width:18px;height:18px;line-height:18px;border-radius:18px;overflow:hidden;transform:scale(.5) translate(40%,-40%);transform-origin:100% 0}.uni-page-head-btn-red-dot[badge-text]:after{font-size:12px;width:auto;min-width:18px;max-width:42px;text-align:center;padding:0 3px;transform:scale(.7) translate(40%,-40%)}.uni-page-head-btn-select>.uni-btn-icon:after{display:inline-block;font-family:unibtn;content:"\e601";margin-left:2px;transform:rotate(-90deg) scale(.8)}.uni-page-head-search{position:relative;display:flex;flex:1;margin:0 2px;line-height:30px;font-size:15px}.uni-page-head-search-input{width:100%;height:100%;padding-left:34px;text-align:left}.uni-page-head-search-placeholder{position:absolute;max-width:100%;height:100%;padding-left:34px;overflow:hidden;word-break:keep-all;white-space:pre}.uni-page-head-search-placeholder-right{right:0}.uni-page-head-search-placeholder-center{left:50%;transform:translate(-50%)}.uni-page-head-search-icon{position:absolute;top:0;left:2px;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.uni-page-head-ft{display:flex;align-items:center;flex-direction:row-reverse;font-size:13px}.uni-page-head__title{font-weight:700;font-size:16px;line-height:30px;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.uni-page-head__title .uni-loading{width:16px;height:16px;margin-top:-3px}.uni-page-head__title .uni-page-head__title_image{width:auto;height:26px;vertical-align:middle}.uni-page-head-shadow{overflow:visible}.uni-page-head-shadow:after{content:"";position:absolute;left:0;right:0;top:100%;height:5px;background-size:100% 100%}.uni-page-head-shadow-grey:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}.uni-page-head-shadow-blue:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-blue.png)}.uni-page-head-shadow-green:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-green.png)}.uni-page-head-shadow-orange:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-orange.png)}.uni-page-head-shadow-red:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-red.png)}.uni-page-head-shadow-yellow:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-yellow.png)}uni-page-head[uni-page-head-type=default]~uni-page-wrapper{height:calc(100% - 44px);height:calc(100% - 44px - constant(safe-area-inset-top));height:calc(100% - 44px - env(safe-area-inset-top))}
.batchCalculateContent[data-v-61175813]{display:flex;flex-direction:column;align-items:center}.claimInfomationContent[data-v-61175813]{margin-bottom:1.25rem}.radioButton[data-v-61175813]{position:relative;width:1.25rem;height:1.25rem;border-radius:50%;border:1px solid #CEB07D}.radioButton.selected[data-v-61175813]: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-61175813]{width:100%}.banner[data-v-61175813]{height:12.5rem}.banner img[data-v-61175813]{max-width:100%}.tabTitle[data-v-61175813]{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-61175813]{position:relative}.tabTitle uni-text.actived[data-v-61175813]:after{position:absolute;bottom:-.125rem;left:0;content:"";width:100%;height:.125rem;background:linear-gradient(125deg,#CEB07D,#FED597)}.formInfoContainer[data-v-61175813]{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-61175813]{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-61175813]:before{content:"";position:absolute;left:0;top:.46875rem;width:.1875rem;height:.625rem;background-color:#ceb07d;border-radius:.25rem}.inputItem[data-v-61175813]{display:flex;justify-content:space-between;align-items:center;height:2.75rem;border-bottom:1px solid #E4E4E4}.inputItem .inputContent[data-v-61175813]{display:flex;align-items:center;justify-content:flex-end;flex:0 0 51%}.inputContent .uni-input[data-v-61175813]{margin-right:.625rem;text-align:right}.inputItem uni-text[data-v-61175813]{flex:0 0 49%}.simpleDataResult[data-v-61175813]{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-61175813]{font-size:1rem;font-weight:700;color:#ceb07d}.simpleDataResult .calcNumber[data-v-61175813]{text-align:right}.simpleDataResult .inputItem[data-v-61175813]:last-child{border:none}.simpleDataResult .inputItem .title[data-v-61175813]{color:#ceb07d;font-weight:700}.reduceInsuranceContent .tableTh[data-v-61175813],.reduceInsuranceContent .tableTd[data-v-61175813]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.reduceInsuranceContent .tableTh uni-text[data-v-61175813]{flex:1}.reduceInsuranceContent .tableTh uni-text.withdrawNumber[data-v-61175813],.reduceInsuranceContent .tableTd uni-text.withdrawNumber[data-v-61175813]{flex:2}.reduceInsuranceContent .tableTd .uni-input[data-v-61175813],.reduceInsuranceContent .tableTh uni-text[data-v-61175813]{text-align:center;border-bottom:1px solid #E4E4E4;padding:.1875rem .75rem;margin-right:.625rem}.reduceInsuranceContent .tableTh uni-text[data-v-61175813]{border:none;white-space:nowrap}.resultContent[data-v-61175813]{margin-bottom:1.875rem;padding-bottom:1.875rem}.optionContent[data-v-61175813]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-61175813]{flex:0 0 46%;border:.0625rem solid #e7c793;color:#6b4000;font-size:1.125rem}.optionContent uni-button[data-v-61175813]:last-child{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none}.batchDataResult[data-v-61175813]{box-shadow:0 0 11px rgba(0,0,0,.1);margin-top:1rem}.batchDataResult .resultTh[data-v-61175813]{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-61175813]{display:flex;height:1.875rem;align-items:center;border-bottom:1px solid #E4E4E4}.batchDataResult .resultTd[data-v-61175813]:last-child{border-bottom:none}.batchDataResult .resultTh uni-text[data-v-61175813],.batchDataResult .resultTd uni-text[data-v-61175813]{flex:1;text-align:center;font-weight:700;color:#333}.batchDataResult .resultTd uni-text.resultNumber[data-v-61175813]{color:#ceb07d}.cashValueContent .title uni-button[data-v-61175813]{background-color:transparent;font-size:.9375rem;color:#333;box-sizing:border-box;line-height:initial}.cashValueContent .title uni-button[data-v-61175813]:after{border:1px solid #CEB07D;border-radius:.375rem}.cashValueContent .title uni-button[data-v-61175813]:first-child{margin-right:1.25rem}.cashValueContent .title uni-button.actived[data-v-61175813]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}
This source diff could not be displayed because it is too large. You can view the blob instead.
import{o as e,d as a,w as l,e as t,i as s,t as n,u,f as d,v as i,F as c,l as f,k as p,x as o,p as r,y as _,z as m}from"./index.de1e69c3.js";import{_ as h}from"./plugin-vue_export-helper.21dcd24c.js";var y=h({data:()=>({index:0,stepLists:[1,5,10,15,20],pasteData:"",irrAndSimpleInfos:[{nyear:1,cashValue:""}]}),methods:{bindPickerChange(e){this.index=e.detail.value},selectCustomPolicyYear(){}}},[["render",function(h,y,C,x,g,v){const b=f,D=p,w=o,k=r,z=_,L=m;return e(),a(D,{class:"batchDataImportContainer"},{default:l((()=>[t(D,{class:"selectStepContainer"},{default:l((()=>[t(D,{class:"selectStepContent"},{default:l((()=>[t(b,null,{default:l((()=>[s("我想测算每隔")])),_:1}),t(D,{class:"stepContent"},{default:l((()=>[t(w,{onChange:v.bindPickerChange,value:g.index,range:g.stepLists},{default:l((()=>[t(D,{class:"uni-input"},{default:l((()=>[s(n(g.stepLists[g.index]),1)])),_:1})])),_:1},8,["onChange","value","range"]),(e(),u("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"},[d("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}),t(b,null,{default:l((()=>[s("年的单利复利")])),_:1})])),_:1}),t(D,null,{default:l((()=>[t(k,{class:"mini-btn",type:"default",size:"mini",onClick:v.selectCustomPolicyYear},{default:l((()=>[s("自定义")])),_:1},8,["onClick"])])),_:1})])),_:1}),t(D,{class:"tips"},{default:l((()=>[t(b,null,{default:l((()=>[s("(如需指定任意保单年度,可通过点击右上角"),t(b,null,{default:l((()=>[s("“自定义”")])),_:1}),s("按钮完成)")])),_:1})])),_:1}),t(D,{class:"dataOptionContainer"},{default:l((()=>[t(D,{class:"uni-textarea"},{default:l((()=>[t(z,{modelValue:g.pasteData,"onUpdate:modelValue":y[0]||(y[0]=e=>g.pasteData=e),"placeholder-style":"color:#999999;font-size:14px;padding-left:9px;padding-top:3px",placeholder:"请根据左侧保单年度进行现金价值数据粘贴"},null,8,["modelValue"]),t(k,{class:"mini-btn pasteDiscernment",type:"default",size:"mini"},{default:l((()=>[s("粘贴并识别")])),_:1})])),_:1}),t(D,{class:"batchDataLists"},{default:l((()=>[t(D,{class:"batchDataTh"},{default:l((()=>[t(b,null,{default:l((()=>[s("保单年度")])),_:1}),t(b,null,{default:l((()=>[s("现金价值")])),_:1})])),_:1}),(e(!0),u(c,null,i(g.irrAndSimpleInfos,(u=>(e(),a(D,{class:"batchDataTd"},{default:l((()=>[t(b,null,{default:l((()=>[s(n(u.nyear),1)])),_:2},1024),t(b,null,{default:l((()=>[s(n(u.cashValue),1)])),_:2},1024)])),_:2},1024)))),256))])),_:1})])),_:1}),t(D,{class:"optionContent"},{default:l((()=>[t(k,{type:"default",plain:"true","form-type":"reset"},{default:l((()=>[s("全部清空")])),_:1}),t(k,{type:"default",plain:"true",onClick:y[1]||(y[1]=e=>h.calcute())},{default:l((()=>[s(n("2"==h.calcuteMethod?"输入批量数据":"开始计算"),1)])),_:1})])),_:1}),t(D,{class:"policySelectContainer"},{default:l((()=>[t(D,{class:"policyYearContainer"},{default:l((()=>[t(D,{class:"modalTitle"},{default:l((()=>[t(b),t(b,null,{default:l((()=>[s("选择保单年度"),t(b,null,{default:l((()=>[s("(可多选)")])),_:1})])),_:1}),t(L,{type:"clear",size:"26"})])),_:1}),t(D,{class:"policyStepContainer"},{default:l((()=>[t(k,{type:"default",plain:"true",class:"actived"},{default:l((()=>[s("1~40")])),_:1}),t(k,{type:"default",plain:"true"},{default:l((()=>[s("41~80")])),_:1}),t(k,{type:"default",plain:"true"},{default:l((()=>[s("81~105")])),_:1})])),_:1}),t(D,{class:"policyYearItemContainer"},{default:l((()=>[(e(),u(c,null,i(40,(e=>t(D,null,{default:l((()=>[t(b,null,{default:l((()=>[s(n(e),1)])),_:2},1024)])),_:2},1024))),64))])),_:1}),t(D,{class:"confirm"},{default:l((()=>[t(k,{type:"default",plain:"true"},{default:l((()=>[s("确定")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-742e7780"]]);export{y as default};
var o=(o,r)=>{const t=o.__vccOpts||o;for(const[c,s]of r)t[c]=s;return t};export{o as _};
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="/sfp/assets/uni.9043ccf6.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.de1e69c3.js"></script>
<link rel="stylesheet" href="/sfp/assets/index.829215c1.css">
</head>
<body>
<div id="app"><!--app-html--></div>
</body>
</html>
import api from "../api/api";
import {baseURL,apiURL,sfpURL} from "../environments/environment";
// 白名单,不需要携带token就允许被访问的接口
const whiteApiList = ['/api/authorize/obtainToken']
export const interceptor = () => {
uni.addInterceptor('request', {
......@@ -15,22 +17,26 @@ export const interceptor = () => {
})
// 当本地没有token,并且接口地址没在白名单内,需要重新获取token
if (!uni.getStorageSync('uni-token') && !whiteApiList.includes(args.url)) {
uni.request({
url:'/api/authorize/obtainToken',
method:'POST',
data:{ticket: 'uni-app'},
success: (res) => {
if(res.statusCode===200){
uni.setStorageSync('uni-token',res.data['data']['token']);
window.location.href = window.location.href + '?' + 't_reload=' + new Date().getTime();
}
console.log(res)
}
})
uni.hideLoading()
return false
}
// if (!uni.getStorageSync('uni-token') && !whiteApiList.includes(args.url)) {
// return new Promise((resolve, reject)=>{
// uni.request({
// url:'https://mdev.zuihuibi.cn/api/authorize/obtainToken',
// method:'POST',
// data:{ticket: 'uni-app'},
// success: (res) => {
// if(res.statusCode===200){
// uni.setStorageSync('uni-token',res.data['data']['token']);
// window.location.href = window.location.href + '?' + 't_reload=' + new Date().getTime();
// }
// console.log(res)
// },fail(err) {
// reject(err);
// },
// })
// uni.hideLoading()
// return false
// })
// }
// request 触发前拼接 url
//设置请求头及token
......
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