提交更新提示语言

This commit is contained in:
皮伟
2019-12-06 19:48:58 +08:00
parent 44c30b061b
commit 3394e5822f
3 changed files with 11 additions and 10 deletions

View File

@@ -710,18 +710,18 @@ export default {
console.log(value)
this.mult = value
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
// if ((Number(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
// Dialog.alert({
// message: `输入必须为${Number(currentEle.limit) * currentEle.moneyUnit}的整数倍`
// }).then(() => {
// currentEle.defaultValue = currentEle.rules[productIndex].defaultValue
// this.nextStepFlag = true
// })
// } else {
if ((Number(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
Dialog.alert({
message: localStorage.hint
}).then(() => {
currentEle.defaultValue = currentEle.rules[productIndex].defaultValue
this.nextStepFlag = true
})
} else {
this.mainRiskInfluenceAddRisk()
currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit)
this.getTrial()
// }
}
},
//下一步
async nextStep() {

View File

@@ -97,6 +97,7 @@ export default {
let resultData = await calculatePremium({ productCodes: [riskProductCode], platform: 'app', type: '1' })
if (resultData.result == 0) {
resultData = resultData.trialDTOS[0]
localStorage.hint = resultData.hint
if (resultData.productTrialInfoDTO.dutyGroup != null) {
resultData.productTrialInfoDTO.dutyGroup.map(item => {
if (item.dutyName == '意外身故/伤残保险金') {

View File

@@ -293,7 +293,7 @@ export default {
} else {
//在app端
params.proposalInfoDTO.proposalNo = localStorage.orderNo
this.mainRiskCodes = JSON.parse(localStorage.mainRiskCodes)
this.mainRiskCodes = JSON.parse(o.mainRiskCodes)
getDemo(params).then(res => {
this.formatLocal(res)
})