Commit 1be2d5a1 by 王志慧

fixed

1 parent 5a973fa1
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<script> <script>
import glsxCombiForm from '@/components/glsx-combi-form' import glsxCombiForm from '@/components/glsx-combi-form'
// import { checkPhone as validPhone } from '@/utils/index'
export default { export default {
name: 'AddressCom', name: 'AddressCom',
components: { glsxCombiForm }, components: { glsxCombiForm },
...@@ -32,7 +31,7 @@ export default { ...@@ -32,7 +31,7 @@ export default {
}, },
data() { data() {
let checkPhone = (rule, value, callback) => { let checkPhone = (rule, value, callback) => {
if (this.validPhone(value)) { if (!this.validPhone(value)) {
callback(new Error('请输入正确的手机号码')) callback(new Error('请输入正确的手机号码'))
return false return false
} }
......
...@@ -266,7 +266,7 @@ export default { ...@@ -266,7 +266,7 @@ export default {
areaId, areaId,
areaName areaName
} }
if (provinceName === null) { if (provinceName == null) {
this.$message.error('请先完善发货地址') this.$message.error('请先完善发货地址')
return return
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!