[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 { 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)

View File

@@ -218,7 +218,7 @@ export default {
tradeState: '' // 状态 tradeState: '' // 状态
}, },
gotPayParam: false, // 是否已正确获取支付参数, gotPayParam: false, // 是否已正确获取支付参数,
payStatus: '' ,// 接口返回的支付状态 payStatus: '', // 接口返回的支付状态
noEdit: true noEdit: 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() {
@@ -474,9 +475,9 @@ export default {
// 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('当前不可支付')
@@ -574,7 +575,7 @@ export default {
message: '加载中……' message: '加载中……'
}) })
if( !flag ){ if (!flag) {
let rs = await this.underWrite() let rs = await this.underWrite()
if (rs.result != '0') { if (rs.result != '0') {
@@ -588,7 +589,6 @@ export default {
} }
this.acceptInsurance() this.acceptInsurance()
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
} }

View File

@@ -39,7 +39,7 @@
<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> -->
@@ -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',

View File

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