| | |
| | | */ |
| | | TCarInfoDlg.addSubmit = function() { |
| | | |
| | | const textarea = document.getElementById('introduce'); |
| | | const text = textarea.value; |
| | | |
| | | if (text.length > 1000) { |
| | | console.log('The text is longer than 1000 characters.'); |
| | | Feng.error("门店介绍要求小于1000字") |
| | | return |
| | | } else { |
| | | console.log('The text is not longer than 1000 characters.'); |
| | | } |
| | | |
| | | this.clearData(); |
| | | this.collectData(); |
| | | if(!this.validate()){ |
| | |
| | | */ |
| | | TCarInfoDlg.editSubmit = function() { |
| | | |
| | | const textarea = document.getElementById('introduce'); |
| | | const text = textarea.value; |
| | | |
| | | if (text.length > 1000) { |
| | | console.log('The text is longer than 1000 characters.'); |
| | | Feng.error("门店介绍要求小于1000字") |
| | | return |
| | | } else { |
| | | console.log('The text is not longer than 1000 characters.'); |
| | | } |
| | | |
| | | this.clearData(); |
| | | this.collectData(); |
| | | if(!this.validate()){ |