Commit ca522788 by Sweet Zhang

获取微信openid

parent e16e05d8
......@@ -6,44 +6,9 @@ export default {
irrAndSimpleCalcute(params) {
return request(`${baseURL}/api/sfp/calcuteUtil/irrAndSimpleCalcute`, "POST", params)
},
// 密码登录
passwordLogin(params) {
return request("/platform/metadata/logon", "GET", params)
},
// 短信登录
noteLogin(params) {
return request("/platform/metadata/login", "GET", params)
},
// 获取验证码:用于短信登陆、密码找回、用户注销
getAuthCode(params) {
return request("/platform/metadata/sms", "GET", params)
},
// 获取注册账号验证码
getRegistAuthCode(params) {
return request("/platform/metadata/sms1", "GET", params)
},
// 登录者信息
getMyInfo(params) {
return request("/platform/metadata/bindinfo", "GET", params)
},
// 注册账号
registerAccount(params) {
return request("/platform/metadata/register", "GET", params)
},
// 找回密码
retrievePassword(params) {
return request("/platform/metadata/back", "GET", params)
},
// 注销账号
offAccount(params) {
return request("/platform/metadata/cancel", "GET", params)
},
// 获取unionId
getWxUserInfo(params){
return request(`${baseURL}/api/getWxUserInfo`, "POST", params)
}
}
......@@ -72,29 +72,21 @@
"h5" : {
"router" : {
"base" : "/sfp/",
"mode" : "hash"
"mode" : "history"
},
// "devServer": {
// "/api":{
// "target":"https://mdev.zuihuibi.cn",
// "secure":false,
// "changeOrigin":"true",
// "logLevel":"debug",
// "pathRewrite":{"^/proxy":""}
// },
"port": 3001, // 端口号
"disableHostCheck": true,
"proxy": {
"/api": {
"target": "https://mdev.zuihuibi.cn", //请求的目标域名
"changeOrigin": true, //是否跨域
"secure": false, //设置支持https协议的代理
"pathRewrite": { //匹配请求路径里面有 /api 会替换成https://mdev.zuihuibi.cn
// 举例:/api/api/user => https://mdev.zuihuibi.cn/api/user
"^/api": ""
}
}
}
// }
"devServer" : {
"proxy" : {
"/api" : {
"port" : 3001, // 端口号
"target" : "https://mdev.zuihuibi.cn", //请求的目标域名
"changeOrigin" : true, //是否跨域
"secure" : false, //设置支持https协议的代理
"logLevel" : "debug",
"pathRewrite" : {
"^/api" : ""
}
}
}
}
}
}
......@@ -3,12 +3,14 @@
{
"path": "pages/index/index",
"style": {
"topWindow": false,
"navigationBarTitleText": "金融工具"
}
},
{
"path": "pages/dataImport/data-import",
"style": {
"topWindow": false,
"navigationBarTitleText": "批量数据计算"
}
}
......@@ -17,7 +19,9 @@
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#fff",
"backgroundColor": "#fff"
"backgroundColor": "#fff",
// 全局去掉顶部
"navigationStyle": "custom"
},
"uniIdRouter": {}
}
......@@ -245,4 +245,12 @@
color: #CEB07D;
border-radius: 50%;
font-size: 24rpx;
}
.qrcodeContainer{
width: 100%;
height: 100vh;
overflow: hidden;
}
.qrcodeContainer img{
max-width: 100%;
}
\ No newline at end of file
<template>
<view class="content">
<view class="qrcodeContainer" v-if="isNeedOfficialAccountQrcode">
<view class="qrcodeContent">
<img src="../../static/images/qrcodeBg.png" alt="" srcset="">
</view>
</view>
<view class="content" v-if="!isNeedOfficialAccountQrcode">
<view class="banner">
<img src="/static/images/policyIrrBanner.png" alt="" srcset="">
</view>
......@@ -69,8 +75,8 @@
<!-- 增额减保取现 -->
<view class="reduceInsuranceContent" v-show="!withdrawalType && calcuteType==='1'">
<view class="tableTh">
<text>起领年度</text>
<text>止领年度</text>
<text>起领年度(年初)</text>
<text>止领年度(年末)</text>
<text class="withdrawNumber">年提取金额(元)</text>
<text></text>
</view>
......@@ -181,10 +187,12 @@
<script>
import api from "../../api/api";
import {nanoid} from 'nanoid';
import dataHandling from "../../util/dataHandling";
export default {
data() {
return {
isNeedOfficialAccountQrcode:true,
calcuteType:'1', //计算类型(1:增额; 2:年金)
withdrawalType:'1', //提领方式(1:正常提领; 2:减保取现)
resultShowFlag:false,
......@@ -211,7 +219,24 @@
if(!uni.getStorageSync('businessNo')){
uni.setStorageSync('businessNo', nanoid());
}
this.yearWithdrawalInfos.push(this.yearWithdrawal)
this.yearWithdrawalInfos.push(this.yearWithdrawal);
if(dataHandling.getQueryString('subscribe')==0){
this.isNeedOfficialAccountQrcode = true;
}else{
this.isNeedOfficialAccountQrcode = false;
}
if(dataHandling.getQueryString('openId')) {
uni.setStorageSync('openId',dataHandling.getQueryString('openId'))
}else if(!uni.getStorageSync('openId')){
api.getWxUserInfo({userApplyType:'1',businessNo:uni.getStorageSync('businessNo')}).then(res=>{
console.log(res);
if(res['success']){
window.location.href = res.data.paymentForm.action;
}
})
}
},
methods: {
switchTab(e){
......@@ -290,11 +315,10 @@
calcuteType:this.calcuteType,
businessType:this.businessType,
calcuteMethod:this.calcuteMethod,
// businessNo:uni.getStorageSync('businessNo'),
businessNo:'businessNo20220829000000001',
businessNo:uni.getStorageSync('businessNo'),
mobile: null,
loginNo: null,
wechat_unionid: "wx_17352689126",
wechat_openid: uni.getStorageSync('openId') || '',
yearWithdrawalInfos:null,
irrAndSimpleInfos:this.irrAndSimpleInfos.concat([this.irrAndSimple]),
withdrawalType:this.withdrawalType?'1':'2',
......
.policySelectContainer[data-v-c0c1827c]{position:fixed;z-index:2;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.35)}.policySelectContainer .policyYearContainer[data-v-c0c1827c]{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-c0c1827c]{display:flex;justify-content:space-between;align-items:center;font-weight:700}.policyYearContainer .modalTitle uni-text[data-v-c0c1827c]:last-child{color:red}.policyYearItemContainer[data-v-c0c1827c]{display:flex;flex-wrap:wrap;justify-content:space-around}.policyYearItemContainer uni-view[data-v-c0c1827c]{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-c0c1827c]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyYearItemContainer uni-view uni-text[data-v-c0c1827c]{position:absolute;left:50%;top:50%;transform:translate(-50%,-55%)}.policyStepContainer[data-v-c0c1827c]{display:flex;justify-content:space-around;margin-top:1.25rem}.policyStepContainer uni-button[data-v-c0c1827c]{flex:0 0 30%;font-size:1rem;color:#000;font-weight:700;border:1px solid #CEB07D}.policyStepContainer uni-button[data-v-c0c1827c]:after{border:1px solid #CEB07D}.policyStepContainer uni-button.actived[data-v-c0c1827c]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyStepContainer uni-button.actived[data-v-c0c1827c],.policyStepContainer uni-button.actived[data-v-c0c1827c]:after{border:none}.confirm uni-button[data-v-c0c1827c]{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-c0c1827c],.confirm uni-button[data-v-c0c1827c]:after{border:none}.uni-textarea[data-v-c0c1827c]{position:relative}.pasteDiscernment[data-v-c0c1827c]{position:absolute;right:0;bottom:0;height:1.5625rem;background:#9B8055;border-radius:100px;color:#fff;font-size:.75rem}.batchDataImportContainer[data-v-c0c1827c]{background-color:#fbfbfb;height:90vh}.batchDataLists[data-v-c0c1827c]{margin-top:.625rem;background:#fff}.batchDataLists uni-view[data-v-c0c1827c]{display:flex;text-align:center;border-bottom:1px solid #e4e4e4}.batchDataLists uni-view uni-text[data-v-c0c1827c]:first-child{width:0;flex:0 0 35%;border-right:1px solid #e4e4e4}.batchDataLists uni-view uni-text[data-v-c0c1827c]:last-child{width:0;flex:0 0 65%}.batchDataLists uni-view.batchDataTh[data-v-c0c1827c]{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-c0c1827c]{height:2.5rem;line-height:2.5rem}.dataOptionContainer[data-v-c0c1827c]{margin:.625rem .625rem 1.0625rem}.dataOptionContainer .uni-textarea[data-v-c0c1827c]{background-color:#fff;margin-bottom:.625rem}.tips[data-v-c0c1827c]{font-size:.75rem;color:#666;padding:0 .625rem .625rem;background-color:#fff}.tips uni-text uni-text[data-v-c0c1827c]{font-size:.875rem;color:#9b8055;font-weight:700}.selectStepContent[data-v-c0c1827c],.selectStepContainer[data-v-c0c1827c]{display:flex;align-items:center}.selectStepContainer[data-v-c0c1827c]{justify-content:space-between;padding:.625rem .625rem 0;background-color:#fff}.stepContent[data-v-c0c1827c]{display:flex;align-items:center;border-bottom:1px solid #e4e4e4;padding:0 5px}.selectStepContainer uni-button[data-v-c0c1827c]{background-color:transparent}.selectStepContainer uni-button[data-v-c0c1827c]:after{border:1px solid #CEB07D}.optionContent[data-v-c0c1827c]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-c0c1827c]{flex:0 0 46%;border:.0625rem solid #e7c793;color:#6b4000;font-size:1.125rem}.optionContent uni-button[data-v-c0c1827c]:last-child{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none}.batchDataTd uni-input[data-v-c0c1827c]{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}
.batchCalculateContent[data-v-636a9170]{display:flex;flex-direction:column;align-items:center}.claimInfomationContent[data-v-636a9170]{margin-bottom:1.25rem}.radioButton[data-v-636a9170]{position:relative;width:1.25rem;height:1.25rem;border-radius:50%;border:1px solid #CEB07D}.radioButton.selected[data-v-636a9170]: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-636a9170]{width:100%}.banner[data-v-636a9170]{height:12.5rem}.banner img[data-v-636a9170]{max-width:100%}.tabTitle[data-v-636a9170]{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-636a9170]{position:relative}.tabTitle uni-text.actived[data-v-636a9170]:after{position:absolute;bottom:-.125rem;left:0;content:"";width:100%;height:.125rem;background:linear-gradient(125deg,#CEB07D,#FED597)}.formInfoContainer[data-v-636a9170]{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-636a9170]{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-636a9170]:before{content:"";position:absolute;left:0;top:.46875rem;width:.1875rem;height:.625rem;background-color:#ceb07d;border-radius:.25rem}.inputItem[data-v-636a9170]{display:flex;justify-content:space-between;align-items:center;height:2.75rem;border-bottom:1px solid #E4E4E4}.inputItem .inputContent[data-v-636a9170]{display:flex;align-items:center;justify-content:flex-end;flex:0 0 51%}.inputContent .uni-input[data-v-636a9170]{margin-right:.625rem;text-align:right}.inputItem uni-text[data-v-636a9170]{flex:0 0 49%}.simpleDataResult[data-v-636a9170]{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-636a9170]{font-size:1rem;font-weight:700;color:#ceb07d}.simpleDataResult .calcNumber[data-v-636a9170]{text-align:right;font-size:20px}.simpleDataResult .inputItem[data-v-636a9170]:last-child{border:none}.simpleDataResult .inputItem .title[data-v-636a9170]{color:#ceb07d;font-weight:700}.reduceInsuranceContent .tableTh[data-v-636a9170],.reduceInsuranceContent .tableTd[data-v-636a9170]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.reduceInsuranceContent .tableTh uni-text[data-v-636a9170]{flex:1}.reduceInsuranceContent .tableTh uni-text.withdrawNumber[data-v-636a9170],.reduceInsuranceContent .tableTd uni-text.withdrawNumber[data-v-636a9170]{flex:2}.reduceInsuranceContent .tableTd .uni-input[data-v-636a9170],.reduceInsuranceContent .tableTh uni-text[data-v-636a9170]{text-align:center;border-bottom:1px solid #E4E4E4;padding:.1875rem .75rem;margin-right:.625rem}.reduceInsuranceContent .tableTh uni-text[data-v-636a9170]{border:none;white-space:nowrap;color:#333}.reduceInsuranceContent .tableTd[data-v-636a9170]:last-child{margin-bottom:.625rem}.resultContent[data-v-636a9170]{margin-bottom:1.875rem;padding-bottom:1.875rem}.optionContent[data-v-636a9170]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-636a9170]{flex:0 0 46%;border:.0625rem solid #e7c793;font-size:1.125rem}.btn[data-v-636a9170]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none;color:#6b4000}.batchDataResult[data-v-636a9170]{box-shadow:0 0 11px rgba(0,0,0,.1);margin-top:1rem}.batchDataResult .resultTh[data-v-636a9170]{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-636a9170]{display:flex;height:1.875rem;align-items:center;border-bottom:1px solid #E4E4E4}.batchDataResult .resultTd[data-v-636a9170]:last-child{border-bottom:none}.batchDataResult .resultTh uni-text[data-v-636a9170],.batchDataResult .resultTd uni-text[data-v-636a9170]{flex:1;text-align:center;font-weight:700;color:#333}.batchDataResult .resultTd uni-text.resultNumber[data-v-636a9170]{color:#ceb07d}.cashValueContent[data-v-636a9170]{margin-top:2.5rem}.cashValueContent .title uni-button[data-v-636a9170]{background-color:transparent;font-size:.9375rem;color:#333;box-sizing:border-box;line-height:initial}.cashValueContent .title uni-button[data-v-636a9170]:after{border:1px solid #CEB07D;border-radius:.375rem}.cashValueContent .title uni-button[data-v-636a9170]:first-child{margin-right:1.25rem}.cashValueContent .title uni-button.actived[data-v-636a9170]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.reduceInsuranceContent uni-text[data-v-636a9170]{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}
This source diff could not be displayed because it is too large. You can view the blob instead.
import{A as e,o as a,d as t,w as l,e as s,j as i,t as c,l as o,f as n,m as r,F as u,i as d,p,u as f,q as h,B as y,x as m,C as g,S as Y,D as _,I as C}from"./index.bad063df.js";import{_ as P}from"./plugin-vue_export-helper.21dcd24c.js";var v=P({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}),onLoad(){this.bindPickerChange({detail:{value:this.index}})},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 a=this.pasteData.trim().split("\n");console.log(a),a.length<=0||a.every((e=>""==e))?e({title:"数据识别结果",content:"检测到您并没有导入数据,请重新操作",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}}):a.length!==this.irrAndSimpleInfos.length&&e({title:"数据识别结果",content:"检测到您导入的数据条数和选择的保单年度数量不一致,系统将从上到下依次填入,请确认是否继续",success:e=>{if(e.confirm){if(console.log("用户点击确定"),this.irrAndSimpleInfos.length>0){const e=Math.min(a.length,this.irrAndSimpleInfos.length);console.log(e);for(let t=0;t<e;t++)this.irrAndSimpleInfos[t].cashValue=a[t]}}else e.cancel&&console.log("用户点击取消")}})},clearData(){this.pasteData="",this.irrAndSimpleInfos.forEach((e=>e.cashValue=""))}}},[["render",function(e,P,v,L,x,A){const S=f,k=h,R=y,D=m,V=g,I=C,b=Y,M=_;return a(),t(k,{class:"batchDataImportContainer"},{default:l((()=>[s(k,{class:"selectStepContainer"},{default:l((()=>[s(k,{class:"selectStepContent"},{default:l((()=>[s(S,null,{default:l((()=>[i("我想测算每隔")])),_:1}),s(k,{class:"stepContent"},{default:l((()=>[s(R,{onChange:A.bindPickerChange,value:x.index,range:x.stepLists},{default:l((()=>[s(k,{class:"uni-input"},{default:l((()=>[i(c(x.stepLists[x.index]),1)])),_:1})])),_:1},8,["onChange","value","range"]),(a(),o("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"},[n("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}),s(S,null,{default:l((()=>[i("年的单利复利")])),_:1})])),_:1}),s(k,null,{default:l((()=>[s(D,{class:"mini-btn",type:"default",size:"mini",onClick:A.selectCustomPolicyYear},{default:l((()=>[i("自定义")])),_:1},8,["onClick"])])),_:1})])),_:1}),s(k,{class:"tips"},{default:l((()=>[s(S,null,{default:l((()=>[i("(如需指定任意保单年度,可通过点击右上角"),s(S,null,{default:l((()=>[i("“自定义”")])),_:1}),i("按钮完成)")])),_:1})])),_:1}),s(k,{class:"dataOptionContainer"},{default:l((()=>[s(k,{class:"uni-textarea"},{default:l((()=>[s(V,{modelValue:x.pasteData,"onUpdate:modelValue":P[0]||(P[0]=e=>x.pasteData=e),"placeholder-style":"color:#999999;font-size:14px;padding-left:9px;padding-top:3px",placeholder:"请根据左侧保单年度进行现金价值数据粘贴"},null,8,["modelValue"]),s(D,{class:"mini-btn pasteDiscernment",type:"default",size:"mini",onClick:A.pasteDataDistinguish},{default:l((()=>[i("粘贴并识别")])),_:1},8,["onClick"])])),_:1}),s(k,{class:"batchDataLists"},{default:l((()=>[s(k,{class:"batchDataTh"},{default:l((()=>[s(S,null,{default:l((()=>[i("保单年度")])),_:1}),s(S,null,{default:l((()=>[i("现金价值")])),_:1})])),_:1}),s(b,{"scroll-y":"true",style:{height:"560rpx"}},{default:l((()=>[(a(!0),o(u,null,r(x.irrAndSimpleInfos,(e=>(a(),t(k,{class:"batchDataTd"},{default:l((()=>[s(S,null,{default:l((()=>[i(c(e.nyear),1)])),_:2},1024),s(I,{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}),s(k,{class:"optionContent"},{default:l((()=>[s(D,{type:"default",plain:"true","form-type":"reset",onClick:A.clearData},{default:l((()=>[i("全部清空")])),_:1},8,["onClick"]),s(D,{type:"default",plain:"true",onClick:P[1]||(P[1]=a=>e.calcute())},{default:l((()=>[i(c("2"==e.calcuteMethod?"输入批量数据":"开始计算"),1)])),_:1})])),_:1}),x.policyYearModalFlag?(a(),t(k,{key:0,class:"policySelectContainer"},{default:l((()=>[s(k,{class:"policyYearContainer"},{default:l((()=>[s(k,{class:"modalTitle"},{default:l((()=>[s(S),s(S,null,{default:l((()=>[i("选择保单年度"),s(S,null,{default:l((()=>[i("(可多选)")])),_:1})])),_:1}),s(M,{type:"clear",size:"26",onClick:P[2]||(P[2]=e=>x.policyYearModalFlag=!1)})])),_:1}),s(k,{class:"policyStepContainer"},{default:l((()=>[s(D,{type:"default",plain:"true",class:d({actived:0===x.customPolicyYearRange}),onClick:P[3]||(P[3]=e=>A.selectPolicyYearRange(0))},{default:l((()=>[i("1~40")])),_:1},8,["class"]),s(D,{type:"default",plain:"true",class:d({actived:1===x.customPolicyYearRange}),onClick:P[4]||(P[4]=e=>A.selectPolicyYearRange(1))},{default:l((()=>[i("41~80")])),_:1},8,["class"]),s(D,{type:"default",plain:"true",class:d({actived:2===x.customPolicyYearRange}),onClick:P[5]||(P[5]=e=>A.selectPolicyYearRange(2))},{default:l((()=>[i("81~105")])),_:1},8,["class"])])),_:1}),s(k,{class:"policyYearItemContainer"},{default:l((()=>[(a(!0),o(u,null,r(x.customPolicyYearRangeCount,(e=>(a(),t(k,{onClick:a=>A.selectCustomPolicyYears(e+x.customPolicyYearRange*x.customPolicyYearRangeCount),class:d({actived:A.getActiveStatus(e+x.customPolicyYearRange*x.customPolicyYearRangeCount)})},{default:l((()=>[s(S,null,{default:l((()=>[i(c(e+x.customPolicyYearRange*x.customPolicyYearRangeCount>this.maxPolicyYear?"":e+x.customPolicyYearRange*x.customPolicyYearRangeCount),1)])),_:2},1024)])),_:2},1032,["onClick","class"])))),256))])),_:1}),s(k,{class:"confirm"},{default:l((()=>[s(D,{type:"default",plain:"true",onClick:P[6]||(P[6]=e=>A.confirmPolicyYears())},{default:l((()=>[i("确定")])),_:1})])),_:1})])),_:1})])),_:1})):p("",!0)])),_:1})}],["__scopeId","data-v-c0c1827c"]]);export{v 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.10dc7031.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.bad063df.js"></script>
<link rel="stylesheet" href="/sfp/assets/index.13d2da89.css">
</head>
<body>
<div id="app"><!--app-html--></div>
</body>
</html>
export default{
// 获取url的参数
getQueryString(name){
const reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
const r = decodeURIComponent(window.location.search).substr(1).match(reg);
if (r != null) {
return r[2];
}
return null;
}
}
\ No newline at end of file
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