Commit 22891a8c by 胡悦

u

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