uu
This commit is contained in:
parent
328cafc9cd
commit
a1e6c676f8
@ -21,34 +21,30 @@
|
||||
<tpx-input v-model:value="submitParam.name" placeholder="真实姓名"></tpx-input>
|
||||
</u-col>
|
||||
<u-col offset="1" span="7">
|
||||
<tpx-input v-model:value="submitParam.tel" placeholder="电话"></tpx-input>
|
||||
<tpx-input v-model:value="submitParam.phone" placeholder="电话"></tpx-input>
|
||||
</u-col>
|
||||
</u-row>
|
||||
</view>
|
||||
|
||||
<view class="mt-40 pos-rlt">
|
||||
<tpx-input v-model:value="submitParam.address" placeholder="所在地区"></tpx-input>
|
||||
<tpx-input v-model:value="_area" placeholder="所在地区"></tpx-input>
|
||||
<view @click="handleDialogClick(addressModal)" class="pos-abt-all"></view>
|
||||
</view>
|
||||
|
||||
<view class="mt-30">
|
||||
<tpx-textarea v-model:value="submitParam.detail" placeholder="详细地址(例如**街道**号**)"></tpx-textarea>
|
||||
<tpx-textarea v-model:value="submitParam.address" placeholder="详细地址(例如**街道**号**)"></tpx-textarea>
|
||||
</view>
|
||||
|
||||
<view class="mt-30">
|
||||
<tpx-input v-model:value="submitParam.tel" placeholder="电话"></tpx-input>
|
||||
<tpx-input v-model:value="submitParam.postCode" placeholder="邮编"></tpx-input>
|
||||
</view>
|
||||
|
||||
<view class="mt-30">
|
||||
<tpx-input v-model:value="submitParam.tel" placeholder="邮编"></tpx-input>
|
||||
<tpx-input v-model:value="submitParam.email" placeholder="邮箱(选填"></tpx-input>
|
||||
</view>
|
||||
|
||||
<view class="mt-30">
|
||||
<tpx-input v-model:value="submitParam.tel" placeholder="邮箱(选填"></tpx-input>
|
||||
</view>
|
||||
|
||||
<view class="mt-30">
|
||||
<tpx-input v-model:value="submitParam.tel" placeholder="公司名称(选填)"></tpx-input>
|
||||
<tpx-input v-model:value="submitParam.company" placeholder="公司名称(选填)"></tpx-input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -56,16 +52,17 @@
|
||||
<view class="mt-30 pl-30 pr-30">
|
||||
<u-row justify="between">
|
||||
<view>
|
||||
<u-checkbox-group v-model="radiovalue1" placement="column" @change="handleFormChange()">
|
||||
<u-checkbox-group v-model="submitParam.blDefaultFlag" placement="column">
|
||||
<u-checkbox
|
||||
:name="true"
|
||||
shape="circle"
|
||||
size="30" label="默认地址" active-color="#B12D29" la
|
||||
label-size="28" hange="handleFormChange()"
|
||||
size="30" label="默认地址" active-color="#B12D29"
|
||||
label-size="28"
|
||||
>
|
||||
</u-checkbox>
|
||||
</u-checkbox-group>
|
||||
</view>
|
||||
<view>
|
||||
<view @click="handleReset">
|
||||
<u-text text="清空" size="28" color="#0E0708"></u-text>
|
||||
</view>
|
||||
</u-row>
|
||||
@ -80,23 +77,11 @@
|
||||
</view>
|
||||
</template>
|
||||
</tpx-layout>
|
||||
<buns-address-sheet v-model:show="addressModal.show" v-model:value="submitParam"></buns-address-sheet>
|
||||
<buns-address-sheet v-model:show="addressModal.show" v-model:value="addressModal.values"></buns-address-sheet>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
ordStaEnum,
|
||||
ordStatusList,
|
||||
payTypeEnum,
|
||||
payTypeList,
|
||||
dlvTypeEnum,
|
||||
dlvTypeList,
|
||||
dateTypeEnum,
|
||||
dateTypeList
|
||||
} from "@/common/enum"
|
||||
import {
|
||||
goto
|
||||
} from "@/common/untool"
|
||||
import { getAddressModels } from "./model"
|
||||
export default {
|
||||
props: {
|
||||
// hasLeftWin: {
|
||||
@ -109,13 +94,14 @@
|
||||
data() {
|
||||
return {
|
||||
addressModal: {
|
||||
show: false
|
||||
show: false,
|
||||
values: {
|
||||
regIds: [],
|
||||
regNames: []
|
||||
}
|
||||
},
|
||||
submitParam: {
|
||||
regIds: [],
|
||||
regNames: [],
|
||||
type: 1,
|
||||
otherDes: ''
|
||||
...getAddressModels(),
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -140,8 +126,12 @@
|
||||
handleAnsText(){
|
||||
|
||||
},
|
||||
handleFormChange(){
|
||||
|
||||
handleReset(){
|
||||
this.submitParam = getAddressModels()
|
||||
this.addressModal.values = {
|
||||
regIds: [],
|
||||
regNames: [],
|
||||
}
|
||||
},
|
||||
handleSubmit() {
|
||||
|
||||
|
||||
16
pages/address/model.js
Normal file
16
pages/address/model.js
Normal file
@ -0,0 +1,16 @@
|
||||
export const getAddressModels = () => {
|
||||
return {
|
||||
"remark": null,
|
||||
"name": "", // 姓名
|
||||
"phone": "", // 手机号
|
||||
"country": "", // 国家代码
|
||||
"province": "", // 省份code
|
||||
"city": "", // 城市code
|
||||
"county": "", // 区 code
|
||||
"address": "", // 详细地址
|
||||
"postCode": "", // 邮编
|
||||
"email": null,
|
||||
"company": "", // 公司
|
||||
"blDefaultFlag": undefined, // 是否是 默认地址
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user