oil-station/gasStation-uni/pagesHome/editress/editress.vue
2023-11-30 18:11:49 +08:00

156 lines
2.9 KiB
Vue

<template>
<view class="content">
<view class="container">
<view class="my-header">
<view class="my-icons" @click="goback"> <uni-icons type="left" size="16"></uni-icons> </view>
<view class="my-text">编辑收货地址</view>
<view class="my-icons"></view>
</view>
<view class="dataform">
<u-form :model="dataForm" ref="uForm">
<u-form-item label="姓名"><u-input v-model="dataForm.name" /></u-form-item>
</u-form>
</view>
<!-- <view class="box-gang">
<view class="g-name">联系人</view>
<input type="text" placeholder="请填写收货人" v-model='name' />
</view>
<view class="box-gang">
<view class="g-name">手机号</view>
<input type="text" placeholder="请填写手机号" v-model='mobile' />
</view>
<view class="box-gang">
<view class="g-name">所在地区</view>
<input type="text" placeholder="请填写所在地区" v-model='address' />
</view>
<view class="box-gang">
<view class="g-name">详细地区</view>
<input type="text" placeholder="请填写详细地区" v-model='fullAddress' />
</view>
<view class="box-gang-bt">
<view class="g-name">默认地址</view>
<u-switch v-model="value" @change="change"></u-switch>
</view> -->
<!-- 顶部区域 -->
<!--
<view class="bottom-anniu" @click="goedit()">
<view class="">提交</view>
</view> -->
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: '',
value: true,
dataForm: {
name: '',
mobile: '',
address: '',
ifDfault: '',
fullAddress: '',
}
}
},
components: {
},
methods: {
change(e) {
console.log(e);
},
goback() {
uni.navigateBack()
},
goedit() {
console.log("123123", this.dataForm)
}
}
}
</script>
<style scoped lang="scss">
.content {
background: #f4f5f6;
}
.container {
width: 100%;
height: 100vh;
box-sizing: border-box;
padding-top: 88px;
}
.my-header {
width: 100%;
height: 88px;
background: #ffffff;
display: flex;
align-items: center;
justify-content: space-between;
color: #000;
box-sizing: border-box;
padding: 0px 15px;
padding-top: 40px;
.my-icons {
width: 20px;
}
position: fixed;
top: 0px;
}
.box-gang {
width: 100%;
background-color: #ffffff;
box-sizing: border-box;
padding: 15px;
display: flex;
align-items: center;
border-bottom: 1px solid #f4f5f6;
}
.g-name {
margin-right: 5px;
}
.box-gang-bt {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #ffffff;
box-sizing: border-box;
padding: 15px;
}
.dataform {
margin: 20px auto;
}
.bottom-anniu {
width: 90%;
height: 50px;
display: flex;
align-items: center;
background: #1678ff;
color: white;
justify-content: center;
bottom: 15px;
margin: 20px auto;
border-radius: 8px;
}
</style>