|
|
@@ -348,12 +348,14 @@
|
|
|
if ((/[^\x00-\xff]/g).test(this.applyObj.brand)) {
|
|
|
let chineseIndex = -1
|
|
|
for (let i = 0; i < this.applyObj.brand.length; i++) {
|
|
|
- if ((/[^\x00-\xff]/g).test(this.applyObj.brand.charAt(i))) {
|
|
|
+ if ((/[^\x00-\xff]/g).test(this.applyObj.brand.charAt(i)) && !(/[\u4e00-\u9fa5]/).test(this.applyObj.brand.charAt(i))) {
|
|
|
chineseIndex = i
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
- this.applyObj.brand = cutOutString(this.applyObj.brand, chineseIndex)
|
|
|
+ if (chineseIndex > -1) {
|
|
|
+ this.applyObj.brand = this.applyObj.brand.substring(0, chineseIndex)
|
|
|
+ }
|
|
|
} else if (this.applyObj.brand && getRealLen(this.applyObj.brand) > 50) {
|
|
|
this.applyObj.brand = cutOutString(this.applyObj.brand, 50)
|
|
|
} else {
|