Commit 1e96d09e authored by honghy's avatar honghy

修改提示弹框

parent ad8d8ccd
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
if(this.mobile == ''){ if(this.mobile == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.phone, title: this.$lang.lang.notices.phone,
icon: 'error', icon: 'none',
}) })
} }
if (this.leftTime < 60) { if (this.leftTime < 60) {
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
}else{ }else{
uni.showToast({ uni.showToast({
title: this.$lang.lang.notices.nophone, title: this.$lang.lang.notices.nophone,
icon: 'error', icon: 'none',
}) })
} }
}) })
...@@ -176,25 +176,25 @@ ...@@ -176,25 +176,25 @@
if(this.oldMobile == ''){ if(this.oldMobile == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.phone, title: this.$lang.lang.notices.phone,
icon: 'error', icon: 'none',
}) })
} }
if(this.code == ''){ if(this.code == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.code, title: this.$lang.lang.notices.code,
icon: 'error', icon: 'none',
}) })
} }
if(this.password == ''){ if(this.password == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.password, title: this.$lang.lang.notices.password,
icon: 'error', icon: 'none',
}) })
} }
if(this.mobile == ''){ if(this.mobile == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.newPhone, title: this.$lang.lang.notices.newPhone,
icon: 'error', icon: 'none',
}) })
} }
if(!this.agree){ if(!this.agree){
......
...@@ -465,7 +465,8 @@ ...@@ -465,7 +465,8 @@
<view class="corder-v5-v corder-picker" > <view class="corder-v5-v corder-picker" >
<view class="corder-v5-label"><span class="redcolor">*</span>{{$lang.lang.create.date}}</view> <view class="corder-v5-label"><span class="redcolor">*</span>{{$lang.lang.create.date}}</view>
<picker mode="date" class="date-picker" :value="date" :start="startDate" :end="endDate" @change="bindDateChange"> <picker mode="date" class="date-picker" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">
<view class="uni-input">{{params.deliveryDate ? params.deliveryDate.split(" ")[0] : '请选择'}}</view> <view class="uni-input">{{params.deliveryDate ? params.deliveryDate.split(" ")[0] : $lang.lang.create.choose}}</view>
</picker> </picker>
<image class="rgt" src="../../static/img/rgt.png" mode="widthFix"></image> <image class="rgt" src="../../static/img/rgt.png" mode="widthFix"></image>
</view> </view>
...@@ -1354,7 +1355,7 @@ export default { ...@@ -1354,7 +1355,7 @@ export default {
that.isClick = false that.isClick = false
uni.showToast({ uni.showToast({
title: this.$lang.lang.notices.nophone, title: this.$lang.lang.notices.nophone,
icon: 'error', icon:"none",
}) })
} }
}) })
...@@ -1370,7 +1371,7 @@ export default { ...@@ -1370,7 +1371,7 @@ export default {
if(res.code!=0){ if(res.code!=0){
uni.showToast({ uni.showToast({
title: this.$lang.lang.notices.nophone, title: this.$lang.lang.notices.nophone,
icon: 'error', icon:"none",
}) })
} }
}) })
...@@ -1749,7 +1750,7 @@ export default { ...@@ -1749,7 +1750,7 @@ export default {
if(this.hasConsignee && !this.params.consigneeName){ if(this.hasConsignee && !this.params.consigneeName){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.consignee, title: this.$lang.lang.notices.consignee,
icon: 'error', icon:"none",
}) })
} }
if(this.hasConsignee && !this.params.countryCode){ if(this.hasConsignee && !this.params.countryCode){
...@@ -1759,12 +1760,12 @@ export default { ...@@ -1759,12 +1760,12 @@ export default {
if(this.hasConsignee && !this.params.consigneePhone){ if(this.hasConsignee && !this.params.consigneePhone){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.consigneePhone, title: this.$lang.lang.notices.consigneePhone,
icon: 'error', icon:"none",
}) })
}/*else if(!this.params.isCargoControl && this.params.countryCode==this.config.countrySn.value[0]){ }/*else if(!this.params.isCargoControl && this.params.countryCode==this.config.countrySn.value[0]){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.foreignConsignee, title: this.$lang.lang.notices.foreignConsignee,
icon: 'error', icon:"none",
}) })
}*/ }*/
...@@ -1774,7 +1775,7 @@ export default { ...@@ -1774,7 +1775,7 @@ export default {
if (!email_reg.test(this.params.consigneeEmail)) { if (!email_reg.test(this.params.consigneeEmail)) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.noEmail, title: this.$lang.lang.notices.noEmail,
icon: 'error', icon:"none",
}) })
} }
} }
...@@ -1790,7 +1791,7 @@ export default { ...@@ -1790,7 +1791,7 @@ export default {
if(isNotAcceptGoods){ if(isNotAcceptGoods){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.isClude, title: this.$lang.lang.notices.isClude,
icon: 'error', icon:"none",
}) })
} }
...@@ -1798,60 +1799,60 @@ export default { ...@@ -1798,60 +1799,60 @@ export default {
if(!this.params.transportId) { if(!this.params.transportId) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.transport, title: this.$lang.lang.notices.transport,
icon: 'error', icon:"none",
}) })
} }
// if(this.params.transportId>2&&!this.params.channelId){ // if(this.params.transportId>2&&!this.params.channelId){
// return uni.showToast({ // return uni.showToast({
// title: this.$lang.lang.notices.channel, // title: this.$lang.lang.notices.channel,
// icon: 'error', // icon:"none",
// }) // })
// } // }
if(this.params.lineId==''||this.params.lineId==null){ if(this.params.lineId==''||this.params.lineId==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.lined, title: this.$lang.lang.notices.lined,
icon: 'error', icon:"none",
}) })
} }
if(this.params.departureId==''||this.params.departureId==null){ if(this.params.departureId==''||this.params.departureId==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.startCity, title: this.$lang.lang.notices.startCity,
icon: 'error', icon:"none",
}) })
} }
if(this.params.objectiveId==''||this.params.objectiveId==null){ if(this.params.objectiveId==''||this.params.objectiveId==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.endCity, title: this.$lang.lang.notices.endCity,
icon: 'error', icon:"none",
}) })
} }
// if(this.params.number==''||this.params.number==null){ // if(this.params.number==''||this.params.number==null){
// return uni.showToast({ // return uni.showToast({
// title: '请输入快递单号', // title: '请输入快递单号',
// icon: 'error', // icon:"none",
// }) // })
// } // }
if(this.params.marks==''||this.params.marks==null){ if(this.params.marks==''||this.params.marks==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.marksIn, title: this.$lang.lang.notices.marksIn,
icon: 'error', icon:"none",
}) })
}/*else if(parseFloat(this.params.marks.slice(0,1)).toString() != "NaN"){ }/*else if(parseFloat(this.params.marks.slice(0,1)).toString() != "NaN"){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.marksNum, title: this.$lang.lang.notices.marksNum,
icon: 'error', icon:"none",
}) })
}*/ }*/
if(this.params.customsType==''||this.params.customsType==null){ if(this.params.customsType==''||this.params.customsType==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.customsType, title: this.$lang.lang.notices.customsType,
icon: 'error', icon:"none",
}) })
} }
if(this.params.deliveryDate==''||this.params.deliveryDate==null){ if(this.params.deliveryDate==''||this.params.deliveryDate==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.date, title: this.$lang.lang.notices.date,
icon: 'error', icon:"none",
}) })
} }
if(this.params.isCargoControl){ if(this.params.isCargoControl){
...@@ -1883,13 +1884,13 @@ export default { ...@@ -1883,13 +1884,13 @@ export default {
if(!this.params.collectionProxy){ if(!this.params.collectionProxy){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.create.needCollectionAmount, title: this.$lang.lang.create.needCollectionAmount,
icon: 'error', icon:"none",
}) })
} }
if(!this.params.collectionProxyCurrency){ if(!this.params.collectionProxyCurrency){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.create.needCollectionCurrency, title: this.$lang.lang.create.needCollectionCurrency,
icon: 'error', icon:"none",
}) })
} }
} }
...@@ -2275,7 +2276,7 @@ export default { ...@@ -2275,7 +2276,7 @@ export default {
if(this.goodsModel.prodTitle==''){ if(this.goodsModel.prodTitle==''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.shopname, title: this.$lang.lang.notices.shopname,
icon: 'error', icon:"none",
}) })
} }
if(this.goodsModel.brandType ==''||this.goodsModel.brandType==null){ if(this.goodsModel.brandType ==''||this.goodsModel.brandType==null){
...@@ -2293,7 +2294,7 @@ export default { ...@@ -2293,7 +2294,7 @@ export default {
if(this.goodsModel.num ==''||this.goodsModel.num==null){ if(this.goodsModel.num ==''||this.goodsModel.num==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.num, title: this.$lang.lang.notices.num,
icon: 'error', icon:"none",
}) })
}else if(this.goodsModel.num<=0||Math.floor(this.goodsModel.num)!=this.goodsModel.num){ }else if(this.goodsModel.num<=0||Math.floor(this.goodsModel.num)!=this.goodsModel.num){
console.log(Math.floor(this.goodsModel.num)!=this.goodsModel.num) console.log(Math.floor(this.goodsModel.num)!=this.goodsModel.num)
...@@ -2304,7 +2305,7 @@ export default { ...@@ -2304,7 +2305,7 @@ export default {
if(this.goodsModel.unit ==''||this.goodsModel.unit==null){ if(this.goodsModel.unit ==''||this.goodsModel.unit==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.unit, title: this.$lang.lang.notices.unit,
icon: 'error', icon:"none",
}) })
} }
...@@ -2326,7 +2327,7 @@ export default { ...@@ -2326,7 +2327,7 @@ export default {
if(this.goodsModel.worth ==''||this.goodsModel.worth==null){ if(this.goodsModel.worth ==''||this.goodsModel.worth==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.works, title: this.$lang.lang.notices.works,
icon: 'error', icon:"none",
}) })
}else if(this.goodsModel.worth<=0){ }else if(this.goodsModel.worth<=0){
return uni.showToast({ return uni.showToast({
...@@ -2454,31 +2455,31 @@ export default { ...@@ -2454,31 +2455,31 @@ export default {
if(!this.params.transportId) { if(!this.params.transportId) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.transport, title: this.$lang.lang.notices.transport,
icon: 'error', icon:"none",
}) })
} }
// if(this.params.transportId>2&&!this.params.channelId){ // if(this.params.transportId>2&&!this.params.channelId){
// return uni.showToast({ // return uni.showToast({
// title: this.$lang.lang.notices.channel, // title: this.$lang.lang.notices.channel,
// icon: 'error', // icon:"none",
// }) // })
// } // }
if(this.params.departureId==''||this.params.departureId==null){ if(this.params.departureId==''||this.params.departureId==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.startCity, title: this.$lang.lang.notices.startCity,
icon: 'error', icon:"none",
}) })
} }
if(this.params.objectiveId==''||this.params.objectiveId==null){ if(this.params.objectiveId==''||this.params.objectiveId==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.endCity, title: this.$lang.lang.notices.endCity,
icon: 'error', icon:"none",
}) })
} }
if(this.params.lineId==''||this.params.lineId==null){ if(this.params.lineId==''||this.params.lineId==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.lined, title: this.$lang.lang.notices.lined,
icon: 'error', icon:"none",
}) })
} }
this.goodsEditIndex = index this.goodsEditIndex = index
...@@ -2555,7 +2556,7 @@ export default { ...@@ -2555,7 +2556,7 @@ export default {
}else{ }else{
uni.showToast({ uni.showToast({
title: this.$lang.lang.notices.nophone, title: this.$lang.lang.notices.nophone,
icon: 'error', icon:"none",
}) })
} }
}) })
...@@ -2567,19 +2568,19 @@ export default { ...@@ -2567,19 +2568,19 @@ export default {
if(this.conForm.name ==''||this.conForm.name==null){ if(this.conForm.name ==''||this.conForm.name==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.name, title: this.$lang.lang.notices.name,
icon: 'error', icon:"none",
}) })
} }
if(this.conForm.phone ==''||this.conForm.phone==null){ if(this.conForm.phone ==''||this.conForm.phone==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.phone, title: this.$lang.lang.notices.phone,
icon: 'error', icon:"none",
}) })
} }
if(this.conForm.email ==''||this.conForm.email==null){ if(this.conForm.email ==''||this.conForm.email==null){
// return uni.showToast({ // return uni.showToast({
// title: this.$lang.lang.notices.email, // title: this.$lang.lang.notices.email,
// icon: 'error', // icon:"none",
// }) // })
}else{ }else{
let email_reg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/; let email_reg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
...@@ -2587,7 +2588,7 @@ export default { ...@@ -2587,7 +2588,7 @@ export default {
if (!email_reg.test(this.conForm.email)) { if (!email_reg.test(this.conForm.email)) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.noEmail, title: this.$lang.lang.notices.noEmail,
icon: 'error', icon:"none",
}) })
} }
} }
......
...@@ -240,21 +240,21 @@ export default { ...@@ -240,21 +240,21 @@ export default {
if (this.mobile == '') { if (this.mobile == '') {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.phone, title: this.$lang.lang.notices.phone,
icon: 'error' icon: 'none'
}) })
} }
if (this.password == '' && this.loginType == 1) { if (this.password == '' && this.loginType == 1) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.password, title: this.$lang.lang.notices.password,
icon: 'error' icon: 'none'
}) })
} }
if (this.code == '' && this.loginType == 2) { if (this.code == '' && this.loginType == 2) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.code, title: this.$lang.lang.notices.code,
icon: 'error' icon: 'none'
}) })
} }
...@@ -288,7 +288,7 @@ export default { ...@@ -288,7 +288,7 @@ export default {
if (this.mobile == '') { if (this.mobile == '') {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.phone, title: this.$lang.lang.notices.phone,
icon: 'error' icon: 'none'
}) })
} }
if (this.leftTime < 60) { if (this.leftTime < 60) {
......
...@@ -75,27 +75,27 @@ ...@@ -75,27 +75,27 @@
if(this.oldPassword == ''){ if(this.oldPassword == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.oldPsd, title: this.$lang.lang.notices.oldPsd,
icon: 'error', icon: 'none',
}) })
} }
if(this.password == ''){ if(this.password == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.newPsd, title: this.$lang.lang.notices.newPsd,
icon: 'error', icon: 'none',
}) })
}else{ }else{
var reg1 = new RegExp('^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,32})$') var reg1 = new RegExp('^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,32})$')
if (!reg1.test(this.password)) { if (!reg1.test(this.password)) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.numPsd, title: this.$lang.lang.notices.numPsd,
icon: 'error', icon: 'none',
}) })
} }
} }
if(this.password2 == ''){ if(this.password2 == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.newPsd, title: this.$lang.lang.notices.newPsd,
icon: 'error', icon: 'none',
}) })
} }
if(this.password!=this.password2){ if(this.password!=this.password2){
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
if(this.password == ''){ if(this.password == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.newPsd, title: this.$lang.lang.notices.newPsd,
icon: 'error', icon: 'none',
}) })
}else{ }else{
console.log(this.password) console.log(this.password)
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
if (!reg1.test(this.password)) { if (!reg1.test(this.password)) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.numPsd, title: this.$lang.lang.notices.numPsd,
icon: 'error', icon: 'none',
}) })
} }
} }
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
if(this.password2 == ''){ if(this.password2 == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.newPsd, title: this.$lang.lang.notices.newPsd,
icon: 'error', icon: 'none',
}) })
} }
if(this.password!=this.password2){ if(this.password!=this.password2){
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
if(this.mail == ''){ if(this.mail == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.email, title: this.$lang.lang.notices.email,
icon: 'error', icon: 'none',
}) })
} }
if (this.leftTime < 60) { if (this.leftTime < 60) {
...@@ -86,20 +86,20 @@ ...@@ -86,20 +86,20 @@
if(this.code == ''){ if(this.code == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.code, title: this.$lang.lang.notices.code,
icon: 'error', icon: 'none',
}) })
} }
if(this.mail == ''){ if(this.mail == ''){
return uni.showToast({ return uni.showToast({
title:this.$lang.lang.notices.email, title:this.$lang.lang.notices.email,
icon: 'error', icon: 'none',
}) })
}else{ }else{
let email_reg = /[a-zA-Z0-9]+([-_.][A-Za-zd]+)*@([a-zA-Z0-9]+[-.])+[A-Za-zd]{2,5}$/ let email_reg = /[a-zA-Z0-9]+([-_.][A-Za-zd]+)*@([a-zA-Z0-9]+[-.])+[A-Za-zd]{2,5}$/
if (!email_reg.test(this.mail)) { if (!email_reg.test(this.mail)) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.noEmail, title: this.$lang.lang.notices.noEmail,
icon: 'error', icon: 'none',
}) })
} }
} }
......
...@@ -271,7 +271,7 @@ export default { ...@@ -271,7 +271,7 @@ export default {
if (this.code == '' && this.loginType == 2) { if (this.code == '' && this.loginType == 2) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.code, title: this.$lang.lang.notices.code,
icon: 'error' icon: 'none'
}) })
} }
......
...@@ -638,45 +638,45 @@ ...@@ -638,45 +638,45 @@
if(!this.lendingFrom.consigneeName){ if(!this.lendingFrom.consigneeName){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.consignee, title: this.$lang.lang.notices.consignee,
icon: 'error', icon: 'none',
}) })
} }
if(!this.lendingFrom.consigneePhone){ if(!this.lendingFrom.consigneePhone){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.consigneePhone, title: this.$lang.lang.notices.consigneePhone,
icon: 'error', icon: 'none',
}) })
} }
if(!this.lendingFrom.pickNum){ if(!this.lendingFrom.pickNum){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.sum, title: this.$lang.lang.notices.sum,
icon: 'error', icon: 'none',
}) })
} }
if(!this.lendingFrom.pickWeight){ if(!this.lendingFrom.pickWeight){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.weight, title: this.$lang.lang.notices.weight,
icon: 'error', icon: 'none',
}) })
} }
if(!this.lendingFrom.pickVolume){ if(!this.lendingFrom.pickVolume){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.volume, title: this.$lang.lang.notices.volume,
icon: 'error', icon: 'none',
}) })
} }
if(!this.lendingFrom.code&&!this.lendingFrom.controlPassword){ if(!this.lendingFrom.code&&!this.lendingFrom.controlPassword){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.order.controlNotice, title: this.$lang.lang.order.controlNotice,
icon: 'error', icon: 'none',
}) })
} }
if(this.lendingFrom.pickNum>(this.selectOrder.sumNum-this.releaseData.releaseNum)) if(this.lendingFrom.pickNum>(this.selectOrder.sumNum-this.releaseData.releaseNum))
{ {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.conNotice, title: this.$lang.lang.notices.conNotice,
icon: 'error', icon: 'none',
}) })
} }
this.$refs.lendingNotice.open() this.$refs.lendingNotice.open()
...@@ -697,7 +697,7 @@ ...@@ -697,7 +697,7 @@
}else{ }else{
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'error', icon: 'none',
}) })
} }
}) })
...@@ -726,7 +726,7 @@ ...@@ -726,7 +726,7 @@
if(!this.transferFrom.phone){ if(!this.transferFrom.phone){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.newControlTel, title: this.$lang.lang.notices.newControlTel,
icon: 'error', icon: 'none',
}) })
} }
this.transferFrom.dialCode=this.transferFrom.dialCode||'86', this.transferFrom.dialCode=this.transferFrom.dialCode||'86',
...@@ -736,7 +736,7 @@ ...@@ -736,7 +736,7 @@
}else{ }else{
uni.showToast({ uni.showToast({
title: this.$lang.lang.notices.nophone, title: this.$lang.lang.notices.nophone,
icon: 'error', icon: 'none',
}) })
} }
}) })
...@@ -745,13 +745,13 @@ ...@@ -745,13 +745,13 @@
if(!this.transferFrom.name){ if(!this.transferFrom.name){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.newControl, title: this.$lang.lang.notices.newControl,
icon: 'error', icon: 'none',
}) })
} }
if(!this.transferFrom.controlPassword&&!this.transferFrom.code){ if(!this.transferFrom.controlPassword&&!this.transferFrom.code){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.order.controlNotice, title: this.$lang.lang.order.controlNotice,
icon: 'error', icon: 'none',
}) })
} }
...@@ -807,7 +807,7 @@ ...@@ -807,7 +807,7 @@
}else{ }else{
uni.showToast({ uni.showToast({
title: this.$lang.lang.notices.nophone, title: this.$lang.lang.notices.nophone,
icon: 'error', icon: 'none',
}) })
} }
}) })
......
...@@ -375,56 +375,56 @@ ...@@ -375,56 +375,56 @@
if(this.params.departureId==''||this.params.departureId==null){ if(this.params.departureId==''||this.params.departureId==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.startCity, title: this.$lang.lang.notices.startCity,
icon: 'error', icon: 'none',
}) })
} }
if(this.params.objectiveId==''||this.params.objectiveId==null){ if(this.params.objectiveId==''||this.params.objectiveId==null){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.endCity, title: this.$lang.lang.notices.endCity,
icon: 'error', icon: 'none',
}) })
} }
if(!this.params.prodId){ if(!this.params.prodId){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.shopname, title: this.$lang.lang.notices.shopname,
icon: 'error', icon: 'none',
}) })
} }
if(!this.params.weight&&this.params.weight<=0){ if(!this.params.weight&&this.params.weight<=0){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.weight, title: this.$lang.lang.notices.weight,
icon: 'error', icon: 'none',
}) })
} }
if(!this.params.num&&this.params.num<=0){ if(!this.params.num&&this.params.num<=0){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.num, title: this.$lang.lang.notices.num,
icon: 'error', icon: 'none',
}) })
} }
if(!this.params.quantity&&this.params.quantity<=0){ if(!this.params.quantity&&this.params.quantity<=0){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.goodsSum, title: this.$lang.lang.notices.goodsSum,
icon: 'error', icon: 'none',
}) })
} }
if(!this.params.long&&this.params.long<=0){ if(!this.params.long&&this.params.long<=0){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.long, title: this.$lang.lang.notices.long,
icon: 'error', icon: 'none',
}) })
} }
if(!this.params.wide&&this.params.wide<=0){ if(!this.params.wide&&this.params.wide<=0){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.wide, title: this.$lang.lang.notices.wide,
icon: 'error', icon: 'none',
}) })
} }
if(!this.params.high&&this.params.high<=0){ if(!this.params.high&&this.params.high<=0){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.height, title: this.$lang.lang.notices.height,
icon: 'error', icon: 'none',
}) })
} }
if(this.params.long&&this.params.wide&&this.params.high){ if(this.params.long&&this.params.wide&&this.params.high){
......
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
} else { } else {
uni.showToast({ uni.showToast({
title: this.$lang.lang.notices.nophone, title: this.$lang.lang.notices.nophone,
icon: 'error' icon: 'none'
}) })
} }
}) })
...@@ -216,7 +216,7 @@ export default { ...@@ -216,7 +216,7 @@ export default {
if (this.mobile == '') { if (this.mobile == '') {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.phone, title: this.$lang.lang.notices.phone,
icon: 'error' icon: 'none'
}) })
} }
if (this.leftTime < 60) { if (this.leftTime < 60) {
...@@ -245,32 +245,32 @@ export default { ...@@ -245,32 +245,32 @@ export default {
if (this.mobile == '') { if (this.mobile == '') {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.phone, title: this.$lang.lang.notices.phone,
icon: 'error' icon: 'none'
}) })
} }
if (this.code == '') { if (this.code == '') {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.code, title: this.$lang.lang.notices.code,
icon: 'error' icon: 'none'
}) })
} }
if (this.password == '') { if (this.password == '') {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.password, title: this.$lang.lang.notices.password,
icon: 'error' icon: 'none'
}) })
} }
if (this.passworded == '') { if (this.passworded == '') {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.nextPsd, title: this.$lang.lang.notices.nextPsd,
icon: 'error' icon: 'none'
}) })
} else { } else {
var reg1 = new RegExp('^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,32})$') var reg1 = new RegExp('^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,32})$')
if (!reg1.test(this.passworded)) { if (!reg1.test(this.passworded)) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.numPsd, title: this.$lang.lang.notices.numPsd,
icon: 'error' icon: 'none'
}) })
} }
} }
......
...@@ -537,21 +537,21 @@ export default { ...@@ -537,21 +537,21 @@ export default {
if (this.password == '') { if (this.password == '') {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.password, title: this.$lang.lang.notices.password,
icon: 'error' icon: 'none'
}) })
} else { } else {
var reg1 = new RegExp('^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,32})$') var reg1 = new RegExp('^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,32})$')
if (!reg1.test(this.password)) { if (!reg1.test(this.password)) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.numPsd, title: this.$lang.lang.notices.numPsd,
icon: 'error' icon: 'none'
}) })
} }
} }
if (this.password2 == '') { if (this.password2 == '') {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.nextPsd, title: this.$lang.lang.notices.nextPsd,
icon: 'error' icon: 'none'
}) })
} }
if (this.password != this.password2) { if (this.password != this.password2) {
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
}else{ }else{
uni.showToast({ uni.showToast({
title: this.$lang.lang.notices.nophone, title: this.$lang.lang.notices.nophone,
icon: 'error', icon: 'none',
}) })
} }
}) })
...@@ -146,27 +146,27 @@ ...@@ -146,27 +146,27 @@
if(this.code == ''){ if(this.code == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.code, title: this.$lang.lang.notices.code,
icon: 'error', icon: 'none',
}) })
} }
if(this.password == ''){ if(this.password == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.newPsd, title: this.$lang.lang.notices.newPsd,
icon: 'error', icon: 'none',
}) })
}else{ }else{
var reg1 = new RegExp('^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,32})$') var reg1 = new RegExp('^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,32})$')
if (!reg1.test(this.password)) { if (!reg1.test(this.password)) {
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.numPsd, title: this.$lang.lang.notices.numPsd,
icon: 'error', icon: 'none',
}) })
} }
} }
if(this.password2 == ''){ if(this.password2 == ''){
return uni.showToast({ return uni.showToast({
title: this.$lang.lang.notices.newPsd, title: this.$lang.lang.notices.newPsd,
icon: 'error', icon: 'none',
}) })
} }
if(this.password!=this.password2){ if(this.password!=this.password2){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment