mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 16:42:53 +08:00
[fix] 修复格式 eslint --fix
This commit is contained in:
@@ -79,7 +79,7 @@
|
|||||||
import { getCardList, getOrderList } from '@/api/ebiz/cardList/cardList.js'
|
import { getCardList, getOrderList } from '@/api/ebiz/cardList/cardList.js'
|
||||||
import { Tab, Tabs, List, Sticky } from 'vant'
|
import { Tab, Tabs, List, Sticky } from 'vant'
|
||||||
import dataDictionary from '@/assets/js/utils/data-dictionary' //根据数据字典找到订单状态
|
import dataDictionary from '@/assets/js/utils/data-dictionary' //根据数据字典找到订单状态
|
||||||
import formatDate from '@/assets/js/utils/date-utils'
|
// import formatDate from '@/assets/js/utils/date-utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'kadantoubao.vue',
|
name: 'kadantoubao.vue',
|
||||||
@@ -292,9 +292,9 @@ export default {
|
|||||||
dateToday.setMinutes(0)
|
dateToday.setMinutes(0)
|
||||||
dateToday.setSeconds(0)
|
dateToday.setSeconds(0)
|
||||||
currentTime = dateToday.getTime()
|
currentTime = dateToday.getTime()
|
||||||
compareTime = new Date(orderItem.orderInfoDTO.appntDateStr.replace(/-/g, "/")).getTime()
|
compareTime = new Date(orderItem.orderInfoDTO.appntDateStr.replace(/-/g, '/')).getTime()
|
||||||
let tmpSub = compareTime - currentTime
|
let tmpSub = compareTime - currentTime
|
||||||
if( tmpSub > 0 && tmpSub < 24*60*60*1000){
|
if (tmpSub > 0 && tmpSub < 24 * 60 * 60 * 1000) {
|
||||||
orderObj.isCanPay = true
|
orderObj.isCanPay = true
|
||||||
}
|
}
|
||||||
NewItems.push(orderObj)
|
NewItems.push(orderObj)
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
clearable
|
clearable
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<template v-if="noEdit">
|
<template v-if="noEdit">
|
||||||
<van-field
|
<van-field
|
||||||
v-model="underWriteData.bankCode"
|
v-model="underWriteData.bankCode"
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<!-- :readonly="orderStatus != '56'" -->
|
<!-- :readonly="orderStatus != '56'" -->
|
||||||
<van-field
|
<van-field
|
||||||
v-model="underWriteData.bankCode"
|
v-model="underWriteData.bankCode"
|
||||||
maxlength="19"
|
maxlength="19"
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- <van-field v-model="bank" label="开户银行" placeholder="请选择" required @click="focus" readonly v-validate="'required'" data-vv-name="开户银行" /> -->
|
<!-- <van-field v-model="bank" label="开户银行" placeholder="请选择" required @click="focus" readonly v-validate="'required'" data-vv-name="开户银行" /> -->
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<!-- 第三方支付所需表单 -->
|
<!-- 第三方支付所需表单 -->
|
||||||
@@ -218,7 +218,7 @@ export default {
|
|||||||
tradeState: '' // 状态
|
tradeState: '' // 状态
|
||||||
},
|
},
|
||||||
gotPayParam: false, // 是否已正确获取支付参数,
|
gotPayParam: false, // 是否已正确获取支付参数,
|
||||||
payStatus: '' ,// 接口返回的支付状态
|
payStatus: '', // 接口返回的支付状态
|
||||||
noEdit: true
|
noEdit: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -247,7 +247,7 @@ export default {
|
|||||||
// } else {
|
// } else {
|
||||||
// 再次支付 调详情 获取信息
|
// 再次支付 调详情 获取信息
|
||||||
this.getOrderDetail()
|
this.getOrderDetail()
|
||||||
|
|
||||||
this.getPayTemp()
|
this.getPayTemp()
|
||||||
// this.underWriteData = JSON.parse(window.localStorage.getItem('underWriteData'))
|
// this.underWriteData = JSON.parse(window.localStorage.getItem('underWriteData'))
|
||||||
// }
|
// }
|
||||||
@@ -353,7 +353,7 @@ export default {
|
|||||||
// 获取银行列表的focus
|
// 获取银行列表的focus
|
||||||
focus() {
|
focus() {
|
||||||
// if (this.orderStatus == '56') {
|
// if (this.orderStatus == '56') {
|
||||||
this.show = true
|
this.show = true
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
// 获取银行卡列表
|
// 获取银行卡列表
|
||||||
@@ -378,15 +378,16 @@ export default {
|
|||||||
this.underWriteData.bankName = bankCode
|
this.underWriteData.bankName = bankCode
|
||||||
this.show = false
|
this.show = false
|
||||||
},
|
},
|
||||||
getPayTemp(){
|
getPayTemp() {
|
||||||
getPayTemp({ orderNo: window.localStorage.getItem('orderNo') })
|
getPayTemp({ orderNo: window.localStorage.getItem('orderNo') })
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.noEdit = res.content.flag != 'false'
|
this.noEdit = res.content.flag != 'false'
|
||||||
}
|
}
|
||||||
}).catch( e=>{
|
})
|
||||||
console.error(e);
|
.catch(e => {
|
||||||
} )
|
console.error(e)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 再次支付
|
// 再次支付
|
||||||
getOrderDetail() {
|
getOrderDetail() {
|
||||||
@@ -472,11 +473,11 @@ export default {
|
|||||||
this.payMent()
|
this.payMent()
|
||||||
break
|
break
|
||||||
// case '02':
|
// case '02':
|
||||||
// break
|
// break
|
||||||
default:
|
default:
|
||||||
if(!this.noEdit){
|
if (!this.noEdit) {
|
||||||
this.payMent(true)
|
this.payMent(true)
|
||||||
return true;
|
return true
|
||||||
} else {
|
} else {
|
||||||
this.acceptInsurance()
|
this.acceptInsurance()
|
||||||
return this.$toast('当前不可支付')
|
return this.$toast('当前不可支付')
|
||||||
@@ -573,22 +574,21 @@ export default {
|
|||||||
loadingType: 'spinner',
|
loadingType: 'spinner',
|
||||||
message: '加载中……'
|
message: '加载中……'
|
||||||
})
|
})
|
||||||
|
|
||||||
if( !flag ){
|
if (!flag) {
|
||||||
let rs = await this.underWrite()
|
let rs = await this.underWrite()
|
||||||
|
|
||||||
if (rs.result != '0') {
|
if (rs.result != '0') {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
return this.$toast(rs.resultMessage)
|
return this.$toast(rs.resultMessage)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rs.uwResult != '02') {
|
if (rs.uwResult != '02') {
|
||||||
return this.$toast(rs.message)
|
return this.$toast(rs.message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.acceptInsurance()
|
this.acceptInsurance()
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<span v-if="payStatus == '4'" class="pb10">银行扣款中,请稍后查询</span>
|
<span v-if="payStatus == '4'" class="pb10">银行扣款中,请稍后查询</span>
|
||||||
<span v-if="payStatus == '8'" class="pb10">线下批扣中……</span>
|
<span v-if="payStatus == '8'" class="pb10">线下批扣中……</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<van-cell-group v-if="payStatus == 1">
|
<van-cell-group v-if="payStatus == 1">
|
||||||
<van-cell title="产品名称" :value="card.appntName" />
|
<van-cell title="产品名称" :value="card.appntName" />
|
||||||
<van-cell title="支付金额" :value="`${payInfo.amnt}元` | moneyFormat" v-if="payInfo.amnt != ''" />
|
<van-cell title="支付金额" :value="`${payInfo.amnt}元` | moneyFormat" v-if="payInfo.amnt != ''" />
|
||||||
@@ -39,14 +39,14 @@
|
|||||||
<van-button class="m-btn w250" type="danger" size="normal" @click="rePayMent">重新支付</van-button>
|
<van-button class="m-btn w250" type="danger" size="normal" @click="rePayMent">重新支付</van-button>
|
||||||
<van-button class="m-btn w250" type="danger" size="normal" @click="next">返回首页</van-button>
|
<van-button class="m-btn w250" type="danger" size="normal" @click="next">返回首页</van-button>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="bottom-area bottom-btn flex" v-if="payStatus == '9'">
|
<!-- <div class="bottom-area bottom-btn flex" v-if="payStatus == '9'">
|
||||||
<van-button class="m-btn w250" type="danger" size="normal" @click="rePayMent">重新支付</van-button>
|
<van-button class="m-btn w250" type="danger" size="normal" @click="rePayMent">重新支付</van-button>
|
||||||
<van-button class="m-btn w250" type="danger" size="normal" @click="changeCard">换卡支付</van-button>
|
<van-button class="m-btn w250" type="danger" size="normal" @click="changeCard">换卡支付</van-button>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<!-- <div class="bottom-area bottom-btn flex"> -->
|
<!-- <div class="bottom-area bottom-btn flex"> -->
|
||||||
<!-- <van-button class="m-btn w250" type="danger" size="normal" @click="rePayMent">重新支付</van-button> -->
|
<!-- <van-button class="m-btn w250" type="danger" size="normal" @click="rePayMent">重新支付</van-button> -->
|
||||||
<!-- <van-button size="large" type="danger" @click="next" v-no-more-click="1000">返回首页</van-button> -->
|
<!-- <van-button size="large" type="danger" @click="next" v-no-more-click="1000">返回首页</van-button> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -73,9 +73,7 @@ export default {
|
|||||||
prtNo: '', // 投保单号
|
prtNo: '', // 投保单号
|
||||||
amnt: '' // 支付金额
|
amnt: '' // 支付金额
|
||||||
},
|
},
|
||||||
card:{
|
card: {},
|
||||||
|
|
||||||
},
|
|
||||||
// 图片
|
// 图片
|
||||||
srcSuccess: this.$assetsUrl + 'images/success.png',
|
srcSuccess: this.$assetsUrl + 'images/success.png',
|
||||||
srcPending: this.$assetsUrl + 'images/pending.png',
|
srcPending: this.$assetsUrl + 'images/pending.png',
|
||||||
|
|||||||
@@ -358,7 +358,7 @@ export default {
|
|||||||
// homeArea: '1', //家庭区
|
// homeArea: '1', //家庭区
|
||||||
// homeAddress: '1', //详细地址
|
// homeAddress: '1', //详细地址
|
||||||
mobile: '', //移动电话
|
mobile: '', //移动电话
|
||||||
email: '', //电子邮箱
|
email: '' //电子邮箱
|
||||||
// effectiveDate: '' //指定生效日期
|
// effectiveDate: '' //指定生效日期
|
||||||
},
|
},
|
||||||
//被保人信息
|
//被保人信息
|
||||||
|
|||||||
Reference in New Issue
Block a user