uu
This commit is contained in:
parent
328cafc9cd
commit
a1e6c676f8
@ -21,34 +21,30 @@
|
|||||||
<tpx-input v-model:value="submitParam.name" placeholder="真实姓名"></tpx-input>
|
<tpx-input v-model:value="submitParam.name" placeholder="真实姓名"></tpx-input>
|
||||||
</u-col>
|
</u-col>
|
||||||
<u-col offset="1" span="7">
|
<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-col>
|
||||||
</u-row>
|
</u-row>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="mt-40 pos-rlt">
|
<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 @click="handleDialogClick(addressModal)" class="pos-abt-all"></view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="mt-30">
|
<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>
|
||||||
|
|
||||||
<view class="mt-30">
|
<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>
|
||||||
|
|
||||||
<view class="mt-30">
|
<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>
|
||||||
|
|
||||||
<view class="mt-30">
|
<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 class="mt-30">
|
|
||||||
<tpx-input v-model:value="submitParam.tel" placeholder="公司名称(选填)"></tpx-input>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -56,16 +52,17 @@
|
|||||||
<view class="mt-30 pl-30 pr-30">
|
<view class="mt-30 pl-30 pr-30">
|
||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<view>
|
<view>
|
||||||
<u-checkbox-group v-model="radiovalue1" placement="column" @change="handleFormChange()">
|
<u-checkbox-group v-model="submitParam.blDefaultFlag" placement="column">
|
||||||
<u-checkbox
|
<u-checkbox
|
||||||
|
:name="true"
|
||||||
shape="circle"
|
shape="circle"
|
||||||
size="30" label="默认地址" active-color="#B12D29" la
|
size="30" label="默认地址" active-color="#B12D29"
|
||||||
label-size="28" hange="handleFormChange()"
|
label-size="28"
|
||||||
>
|
>
|
||||||
</u-checkbox>
|
</u-checkbox>
|
||||||
</u-checkbox-group>
|
</u-checkbox-group>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view @click="handleReset">
|
||||||
<u-text text="清空" size="28" color="#0E0708"></u-text>
|
<u-text text="清空" size="28" color="#0E0708"></u-text>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
@ -80,23 +77,11 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</tpx-layout>
|
</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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import { getAddressModels } from "./model"
|
||||||
ordStaEnum,
|
|
||||||
ordStatusList,
|
|
||||||
payTypeEnum,
|
|
||||||
payTypeList,
|
|
||||||
dlvTypeEnum,
|
|
||||||
dlvTypeList,
|
|
||||||
dateTypeEnum,
|
|
||||||
dateTypeList
|
|
||||||
} from "@/common/enum"
|
|
||||||
import {
|
|
||||||
goto
|
|
||||||
} from "@/common/untool"
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
// hasLeftWin: {
|
// hasLeftWin: {
|
||||||
@ -109,13 +94,14 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
addressModal: {
|
addressModal: {
|
||||||
show: false
|
show: false,
|
||||||
|
values: {
|
||||||
|
regIds: [],
|
||||||
|
regNames: []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
submitParam: {
|
submitParam: {
|
||||||
regIds: [],
|
...getAddressModels(),
|
||||||
regNames: [],
|
|
||||||
type: 1,
|
|
||||||
otherDes: ''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -140,8 +126,12 @@
|
|||||||
handleAnsText(){
|
handleAnsText(){
|
||||||
|
|
||||||
},
|
},
|
||||||
handleFormChange(){
|
handleReset(){
|
||||||
|
this.submitParam = getAddressModels()
|
||||||
|
this.addressModal.values = {
|
||||||
|
regIds: [],
|
||||||
|
regNames: [],
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
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