[fix] 修复格式 eslint --fix

This commit is contained in:
tian.guangyuan
2020-04-29 14:29:05 +08:00
parent 81f5427c1e
commit 2691c79700
4 changed files with 33 additions and 35 deletions

View File

@@ -79,7 +79,7 @@
import { getCardList, getOrderList } from '@/api/ebiz/cardList/cardList.js'
import { Tab, Tabs, List, Sticky } from 'vant'
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 {
name: 'kadantoubao.vue',
@@ -292,9 +292,9 @@ export default {
dateToday.setMinutes(0)
dateToday.setSeconds(0)
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
if( tmpSub > 0 && tmpSub < 24*60*60*1000){
if (tmpSub > 0 && tmpSub < 24 * 60 * 60 * 1000) {
orderObj.isCanPay = true
}
NewItems.push(orderObj)

View File

@@ -28,7 +28,7 @@
clearable
required
/>
<template v-if="noEdit">
<van-field
v-model="underWriteData.bankCode"
@@ -56,7 +56,7 @@
/>
</template>
<template v-else>
<!-- :readonly="orderStatus != '56'" -->
<!-- :readonly="orderStatus != '56'" -->
<van-field
v-model="underWriteData.bankCode"
maxlength="19"
@@ -83,7 +83,7 @@
required
/>
</template>
<!-- <van-field v-model="bank" label="开户银行" placeholder="请选择" required @click="focus" readonly v-validate="'required'" data-vv-name="开户银行" /> -->
</van-cell-group>
<!-- 第三方支付所需表单 -->
@@ -218,7 +218,7 @@ export default {
tradeState: '' // 状态
},
gotPayParam: false, // 是否已正确获取支付参数,
payStatus: '' ,// 接口返回的支付状态
payStatus: '', // 接口返回的支付状态
noEdit: true
}
},
@@ -247,7 +247,7 @@ export default {
// } else {
// 再次支付 调详情 获取信息
this.getOrderDetail()
this.getPayTemp()
// this.underWriteData = JSON.parse(window.localStorage.getItem('underWriteData'))
// }
@@ -353,7 +353,7 @@ export default {
// 获取银行列表的focus
focus() {
// if (this.orderStatus == '56') {
this.show = true
this.show = true
// }
},
// 获取银行卡列表
@@ -378,15 +378,16 @@ export default {
this.underWriteData.bankName = bankCode
this.show = false
},
getPayTemp(){
getPayTemp() {
getPayTemp({ orderNo: window.localStorage.getItem('orderNo') })
.then(res => {
if (res.result == '0') {
this.noEdit = res.content.flag != 'false'
}
}).catch( e=>{
console.error(e);
} )
.then(res => {
if (res.result == '0') {
this.noEdit = res.content.flag != 'false'
}
})
.catch(e => {
console.error(e)
})
},
// 再次支付
getOrderDetail() {
@@ -472,11 +473,11 @@ export default {
this.payMent()
break
// case '02':
// break
// break
default:
if(!this.noEdit){
if (!this.noEdit) {
this.payMent(true)
return true;
return true
} else {
this.acceptInsurance()
return this.$toast('当前不可支付')
@@ -573,22 +574,21 @@ export default {
loadingType: 'spinner',
message: '加载中……'
})
if( !flag ){
if (!flag) {
let rs = await this.underWrite()
if (rs.result != '0') {
this.$toast.clear()
return this.$toast(rs.resultMessage)
}
if (rs.uwResult != '02') {
return this.$toast(rs.message)
}
}
this.acceptInsurance()
} else {
this.$toast(res.resultMessage)
}

View File

@@ -10,7 +10,7 @@
<span v-if="payStatus == '4'" class="pb10">银行扣款中请稍后查询</span>
<span v-if="payStatus == '8'" class="pb10">线下批扣中</span>
</div>
<van-cell-group v-if="payStatus == 1">
<van-cell title="产品名称" :value="card.appntName" />
<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="next">返回首页</van-button>
</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="changeCard">换卡支付</van-button>
</div> -->
<!-- <div class="bottom-area bottom-btn flex"> -->
<!-- <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 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> -->
<!-- </div> -->
</div>
</template>
@@ -73,9 +73,7 @@ export default {
prtNo: '', // 投保单号
amnt: '' // 支付金额
},
card:{
},
card: {},
// 图片
srcSuccess: this.$assetsUrl + 'images/success.png',
srcPending: this.$assetsUrl + 'images/pending.png',

View File

@@ -358,7 +358,7 @@ export default {
// homeArea: '1', //家庭区
// homeAddress: '1', //详细地址
mobile: '', //移动电话
email: '', //电子邮箱
email: '' //电子邮箱
// effectiveDate: '' //指定生效日期
},
//被保人信息