Commit 92bdbff7 by cen

Merge branch 'SAAS+V5.3.0-1117' of http://192.168.3.233:8090/saas_plus/dj-car-li…

…fe-system into SAAS+V5.3.0-1117
2 parents eb7d25f6 5fffa238
......@@ -193,5 +193,7 @@ export const sendSmsCode = (data = {}) => {
*/
export const verifySmsCode = (data = {}) => {
data.method = 'dj.api.smartcarlife.sms.common.verifySmsCode'
return request(data, RequestMethods.POST)
return request(data, RequestMethods.POST, [], {
returnAll: true
})
}
\ No newline at end of file
......@@ -121,6 +121,7 @@ service.interceptors.response.use(
const ruleResult = baseConfig.axios.result
const errCodeMsg = baseConfig.errCode
const errCodes = Object.keys(errCodeMsg)
const returnAll = response.config.returnAll
// console.log("baseConfig", baseConfig)
// console.log("response", response)
// console.log("errCodes", errCodes)
......@@ -137,6 +138,7 @@ service.interceptors.response.use(
return errorCreate("登录超时,请重新登录")
// return Promise.reject(new Error(response.message || 'Error'))
}
if(returnAll) return dataAxios
const codeValue = dataAxios[ruleResult.code_key] || dataAxios.returnCode
switch (+codeValue) {
case ruleResult.code_success_value:
......
......@@ -135,11 +135,11 @@ export default {
if (!/^1[3456789]\d{9}$/.test(phone)) return this.phoneError = '手机号格式错误'
if (!smsCode) return this.smsError = '验证码不能为空'
if (smsCode.length < 6) return this.smsError = '验证码错误,请重试!'
let data = await verifySmsCode({
let { code} = await verifySmsCode({
phone,
smsCode
})
if (data) {
if (code == 0) {
this.$emit('loginSuccess')
this.count = 60
this.countDownStatus = false
......
......@@ -8,6 +8,7 @@
<div
v-loading="loading"
class="form_div"
ref="form"
>
<div class="tipsDiv">
<div class="labelCla">付款单推送状态:</div>
......@@ -262,6 +263,7 @@ export default {
info.nbTransferStatusText = NB_TRANSFER_STATUS[info.nbTransferStatus]
info.receiptStatusText = RECEIPT_STATUS[info.receiptStatus]
info.amtText = info.amt != null ? `${info.amt.toLocaleString()}元` : '-'
if (this.$refs.form) this.$refs.form.parentNode.scrollTop = 0
}
},
dataPush () {
......@@ -357,7 +359,7 @@ export default {
line-height: 24px;
}
::v-deep .el-form-item__label {
::v-deep .el-form-item__label {
padding: 0;
}
.el-form-item {
......@@ -408,7 +410,7 @@ export default {
.receiptBtn {
margin-left: 8px;
}
.block{
.block {
height: 24px;
}
}
......
......@@ -151,6 +151,9 @@ import {
NB_TRANSFER_STATUS_OPTIONS
} from "./contant"
import detailDialog from './components/detailDialog.vue'
import {
todayEndPickerOptions
} from "@/common/format"
export default {
name: "usedCarPaymentManage",
mixins: [reportTrackPageMixin],
......@@ -171,14 +174,7 @@ export default {
value: 'push'
}
],
rangePickerOptions: {
disabledDate (date) {
if (date > new Date()) {
return true
}
return false
}
},
rangePickerOptions: todayEndPickerOptions,
searchForm: {
licensePlate: "",
vin: "",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!