添加地址
This commit is contained in:
parent
df04614c50
commit
160347e77a
@ -1,5 +1,5 @@
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.sel_addr_wrap {
|
.sel_addr_wrap {
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
padding: 30rpx 0;
|
padding: 30rpx 0;
|
||||||
|
|
||||||
@ -24,14 +24,52 @@
|
|||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sel_addr_update-wrap {
|
||||||
|
padding: 30rpx 0;
|
||||||
|
|
||||||
|
|
||||||
|
.sel_addr_update {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
border: 2rpx solid #40ae36;
|
||||||
|
box-shadow: 0 0 2rpx 2rpx #40ae3650;
|
||||||
|
padding: 10rpx 20rpx;
|
||||||
|
margin: 0rpx 30rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
|
||||||
|
.sel_addr_wrap-l {
|
||||||
|
.sel_addr_wrap-l-addr {
|
||||||
|
margin-bottom: 8rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
max-width: 480rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sel_addr_wrap-l-detail {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #999;
|
||||||
|
max-width: 480rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.sel_addr_wrap-r {
|
||||||
|
padding: 8rpx 8rpx;
|
||||||
|
border: 2rpx solid #40ae36;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
color: #40ae36;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
<view :style="viewColor">
|
<view :style="viewColor">
|
||||||
<form @submit="formSubmit" report-submit='true'>
|
<form @submit="formSubmit" report-submit='true'>
|
||||||
<view class='addAddress'>
|
<view class='addAddress'>
|
||||||
<view class='list'>
|
<view class='list'>
|
||||||
|
|
||||||
<view class="sel_addr_wrap">
|
<view class="sel_addr_wrap">
|
||||||
<view class="sel_addr" @click="handleToChoose">
|
<view class="sel_addr" @click="handleToChoose">
|
||||||
<text>选择收货地址</text>
|
<text>选择收货地址</text>
|
||||||
@ -39,6 +77,16 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="sel_addr_update-wrap">
|
||||||
|
<view class="sel_addr_update">
|
||||||
|
<view class="sel_addr_wrap-l">
|
||||||
|
<view class="sel_addr_wrap-l-addr line1">柏林湾</view>
|
||||||
|
<view class="sel_addr_wrap-l-detail line1">四川省泸州市龙马潭区陶然路三段1号</view>
|
||||||
|
</view>
|
||||||
|
<view class="sel_addr_wrap-r">修改地址</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class='item acea-row row-between-wrapper'>
|
<view class='item acea-row row-between-wrapper'>
|
||||||
<view class='name'>姓名</view>
|
<view class='name'>姓名</view>
|
||||||
<input type='text' placeholder='请输入姓名' name='real_name' :value="userAddress.real_name"
|
<input type='text' placeholder='请输入姓名' name='real_name' :value="userAddress.real_name"
|
||||||
@ -93,36 +141,36 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
|
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: CRMEB Team <admin@crmeb.com>
|
// | Author: CRMEB Team <admin@crmeb.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
import {
|
import {
|
||||||
editAddress,
|
editAddress,
|
||||||
getAddressDetail
|
getAddressDetail
|
||||||
} from '@/api/user.js';
|
} from '@/api/user.js';
|
||||||
import {
|
import {
|
||||||
wgsToGcj
|
wgsToGcj
|
||||||
} from "@/utils/wgs.js";
|
} from "@/utils/wgs.js";
|
||||||
import {
|
import {
|
||||||
getCityV2,
|
getCityV2,
|
||||||
getCityList
|
getCityList
|
||||||
} from '@/api/api.js';
|
} from '@/api/api.js';
|
||||||
import {
|
import {
|
||||||
mapGetters
|
mapGetters
|
||||||
} from "vuex";
|
} from "vuex";
|
||||||
import areaWindow from '@/components/areaWindow';
|
import areaWindow from '@/components/areaWindow';
|
||||||
import villageTeam from '@/components/villageTeam/villageTeam.vue';
|
import villageTeam from '@/components/villageTeam/villageTeam.vue';
|
||||||
import {
|
import {
|
||||||
getGeocoder
|
getGeocoder
|
||||||
} from '@/api/store.js';
|
} from '@/api/store.js';
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
areaWindow,
|
areaWindow,
|
||||||
authorize,
|
authorize,
|
||||||
@ -205,7 +253,7 @@ export default {
|
|||||||
// #endif
|
// #endif
|
||||||
// #ifndef H5
|
// #ifndef H5
|
||||||
uni.chooseLocation({
|
uni.chooseLocation({
|
||||||
success: function (res) {
|
success: function(res) {
|
||||||
that.userAddress.detail = res.address;
|
that.userAddress.detail = res.address;
|
||||||
that.location = `${res.latitude},${res.longitude}`;;
|
that.location = `${res.latitude},${res.longitude}`;;
|
||||||
}
|
}
|
||||||
@ -477,28 +525,28 @@ export default {
|
|||||||
this.$set(this.userAddress, 'is_default', !this.userAddress.is_default);
|
this.$set(this.userAddress, 'is_default', !this.userAddress.is_default);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
/deep/checkbox .uni-checkbox-input.uni-checkbox-input-checked,
|
/deep/checkbox .uni-checkbox-input.uni-checkbox-input-checked,
|
||||||
/deep/checkbox .wx-checkbox-input.wx-checkbox-input-checked {
|
/deep/checkbox .wx-checkbox-input.wx-checkbox-input-checked {
|
||||||
border: 1px solid var(--view-theme) !important;
|
border: 1px solid var(--view-theme) !important;
|
||||||
background-color: var(--view-theme) !important;
|
background-color: var(--view-theme) !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .list {
|
.addAddress .list {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .list .item {
|
.addAddress .list .item {
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
border-top: 1px solid #eee;
|
border-top: 1px solid #eee;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .list .item .location {
|
.addAddress .list .item .location {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 30rpx;
|
right: 30rpx;
|
||||||
top: 15rpx;
|
top: 15rpx;
|
||||||
@ -508,27 +556,27 @@ export default {
|
|||||||
.iconfont {
|
.iconfont {
|
||||||
color: var(--view-theme);
|
color: var(--view-theme);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .list .item .name {
|
.addAddress .list .item .name {
|
||||||
width: 195rpx;
|
width: 195rpx;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .list .item .address {
|
.addAddress .list .item .address {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .list .item input,
|
.addAddress .list .item input,
|
||||||
.region .region_count {
|
.region .region_count {
|
||||||
width: 475rpx;
|
width: 475rpx;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.region .region_count {
|
.region .region_count {
|
||||||
// height: 42rpx;
|
// height: 42rpx;
|
||||||
// line-height: 42rpx;
|
// line-height: 42rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -538,41 +586,41 @@ export default {
|
|||||||
.icon-xiangyou {
|
.icon-xiangyou {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .list .location-input {
|
.addAddress .list .location-input {
|
||||||
padding-right: 70rpx;
|
padding-right: 70rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .list .item .placeholder {
|
.addAddress .list .item .placeholder {
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .list .item picker {
|
.addAddress .list .item picker {
|
||||||
width: 475rpx;
|
width: 475rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .list .item picker .picker {
|
.addAddress .list .item picker .picker {
|
||||||
width: 410rpx;
|
width: 410rpx;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .list .item picker .iconfont {
|
.addAddress .list .item picker .iconfont {
|
||||||
font-size: 43rpx;
|
font-size: 43rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .default {
|
.addAddress .default {
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin-top: 23rpx;
|
margin-top: 23rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .default checkbox {
|
.addAddress .default checkbox {
|
||||||
margin-right: 15rpx;
|
margin-right: 15rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .keepBnt {
|
.addAddress .keepBnt {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
height: 86rpx;
|
height: 86rpx;
|
||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
@ -582,9 +630,9 @@ export default {
|
|||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: var(--view-theme);
|
background-color: var(--view-theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
.addAddress .wechatAddress {
|
.addAddress .wechatAddress {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
height: 86rpx;
|
height: 86rpx;
|
||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
@ -594,5 +642,5 @@ export default {
|
|||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: var(--view-theme);
|
color: var(--view-theme);
|
||||||
border: 1px solid var(--view-theme);
|
border: 1px solid var(--view-theme);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
Loading…
x
Reference in New Issue
Block a user