uu
This commit is contained in:
parent
1736bd89a6
commit
a3a4c6b858
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<u-textarea shape="circle" placeholder-style=""
|
<u-textarea shape="circle" placeholder-style=""
|
||||||
:modelValue="value" :clearable="true" :placeholder="placeholder"
|
:modelValue="value" :clearable="true" :placeholder="placeholder"
|
||||||
custom-style="border:0;border-radius: 10rpx;background-color: #F6F6F6;padding: 15rpx 20rpx;" height="160"
|
custom-style="border-radius: 10rpx;padding: 15rpx 20rpx;" height="160"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
></u-textarea>
|
></u-textarea>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -87,6 +87,7 @@
|
|||||||
import { addressNameCodeMap } from "@/common/enum"
|
import { addressNameCodeMap } from "@/common/enum"
|
||||||
import { pageEventNames } from "@/common/enum"
|
import { pageEventNames } from "@/common/enum"
|
||||||
import { getAddressDetail, setAddresModalParam } from "@/common/util"
|
import { getAddressDetail, setAddresModalParam } from "@/common/util"
|
||||||
|
import { checkParams } from "@/common/validate"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
@ -111,7 +112,14 @@
|
|||||||
ansValue: '',
|
ansValue: '',
|
||||||
submitParam: {
|
submitParam: {
|
||||||
...getAddressModels(),
|
...getAddressModels(),
|
||||||
}
|
},
|
||||||
|
submitValidConfig: {
|
||||||
|
name: { required: true, requiredMsg: '姓名不能为空' },
|
||||||
|
phone: { required: true, requiredMsg: '手机号不能为空' },
|
||||||
|
country: { required: true, requiredMsg: '国家不能为空' },
|
||||||
|
province: { required: true, requiredMsg: '省份不能为空' },
|
||||||
|
address: { required: true, requiredMsg: '详细地址' },
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
@ -163,6 +171,7 @@
|
|||||||
},
|
},
|
||||||
async handleSubmit() {
|
async handleSubmit() {
|
||||||
let params = { ...this.submitParam }
|
let params = { ...this.submitParam }
|
||||||
|
await checkParams(params, this.submitValidConfig)
|
||||||
let curServiceHand = apiService.addAddress
|
let curServiceHand = apiService.addAddress
|
||||||
if(this.queryOption.id) {
|
if(this.queryOption.id) {
|
||||||
curServiceHand = apiService.editAddress
|
curServiceHand = apiService.editAddress
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user