cxc-szcx-uniapp/pages/useredit/address.vue

143 lines
2.5 KiB
Vue
Raw Normal View History

2025-01-12 10:49:20 +00:00
<template>
<view :class="['content',{'gray':store.isgray==1}]">
<view class="list">
<view class="item" v-for="item,i in 2" :key="i">
<view class="province f-row aic">
<view class="">
浙江省杭州市
</view>
<image src="../../static/my/default.png" mode=""></image>
</view>
<view class="address f-row jcb">
<view class="">
重庆 重庆市 渝北区 龙溪街道花卉园东路黄金
宝高级住宅小区
</view>
<image src="../../static/my/edit.png" mode=""></image>
</view>
<view class="set f-row aic jcb">
<view class="f-row aic">
<!-- <image src="../../static/login/checked.png" mode=""></image> -->
<image src="../../static/login/nocheck.png" mode=""></image>
设为默认地址
</view>
<view class="">
删除
</view>
</view>
</view>
</view>
<view class="btn f-col aic">
<view class="" @click="jump('/pages/useredit/add_address')">
+添加收货地址
</view>
</view>
</view>
</template>
<script setup>
import {
beforeJump
} from '@/utils/index.js';
import {
useStore
} from '@/store'
const store = useStore()
const jump = (url) => {
beforeJump(url, () => {
uni.navigateTo({
url
})
})
}
</script>
<style>
page {
background-color: #f8f8f8;
}
</style>
<style lang="scss" scoped>
.content {
padding-bottom: 120rpx;
}
.list {
padding: 30rpx;
.item:not(:first-child) {
margin-top: 30rpx;
}
.item {
padding: 30rpx;
background: #FFFFFF;
box-shadow: 0rpx 2rpx 4rpx 0rpx rgba(0, 0, 0, 0.5);
border-radius: 16rpx;
.province {
font-size: 28rpx;
color: #333333;
margin-bottom: 10rpx;
image {
width: 56rpx;
height: 36rpx;
margin-left: 16rpx;
}
}
.address {
font-size: 24rpx;
color: #666666;
padding-bottom: 30rpx;
border-bottom: 1px solid #EFEFEF;
view {
flex: 1;
}
image {
width: 28rpx;
height: 30rpx;
margin-left: 20rpx;
}
}
.set {
margin-top: 30rpx;
font-size: 24rpx;
color: #666666;
image {
width: 38rpx;
height: 38rpx;
margin-right: 12rpx;
}
}
}
}
.btn {
position: fixed;
bottom: 0;
width: 750rpx;
height: 120rpx;
background: #FFFFFF;
justify-content: center;
view {
width: 690rpx;
height: 88rpx;
background: #01508B;
border-radius: 8rpx;
font-size: 32rpx;
color: #FFFFFF;
text-align: center;
line-height: 88rpx;
}
}
</style>