Commit 22891a8c by 胡悦

u

1 parent 4d76f0dd
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: huyue
* @LastEditTime: 2024-04-09 20:20:07
* @LastEditTime: 2024-04-09 20:30:13
-->
<template>
<view class="information-entry">
......@@ -51,6 +51,7 @@
confirmBtnText="保存"
:popupW="704"
:popupH="820"
:isAutoClose="false"
>
<view name="content">
<view class="error-tip" v-if="errorTip">以下信息不能为空,请完善信息后保存</view>
......@@ -264,27 +265,24 @@ export default {
// 保存
submit() {
console.log(this.formData);
this.messageBoxVisible = false;
this.stopAudio(this.infoList);
// this.messageBoxVisible = false;
try {
for(let i in this.formData) {
if (!this.formData[i] && i != 'salesUuid') throw i
}
if (Object.values(this.formData).every((value) => !!value)) {
this.messageBoxVisible = false;
this.stopAudio(this.infoList);
uni.reLaunch({
url: "/pages/home/home",
});
}
} catch (error) {
console.log(error)
this.formObject.find(item => item.key == error).error = true
console.log(this.formObject)
this.f_key = Date.now()
this.errorTip = true
// this.formObject[error].error = true
}
// this.stopAudio();
},
// 选择车型与销售
showPop(key) {
console.log(key);
// this.carBoxVisible = true
},
// 取消
cancel() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!