收货地址修改

msb_beta
ch 3 years ago
parent 78bb47f8fc
commit 4c5e4b829f

@ -2,19 +2,17 @@
* @Author: ch * @Author: ch
* @Date: 2022-03-22 13:54:15 * @Date: 2022-03-22 13:54:15
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-09 15:03:39 * @LastEditTime: 2022-04-18 18:36:28
* @Description: file content * @Description: file content
--> -->
<template> <template>
<view class="container"> <view class="container">
<view class="address"> <view class="address">
<u-loadmore v-if="isLoading" status="loading" /> <u-loadmore v-if="isLoading" status="loading" />
<BsEmpty tips="暂无收货地址呢~" v-if="!isLoading && !addresList.length"></BsEmpty> <BsEmpty tips="暂无收货地址呢~" v-if="!isLoading && !addresList.length"></BsEmpty>
<view class="addressItem" v-for="(item, index) in addresList" :key="item.id" <view class="addressItem" v-for="(item, index) in addresList" :key="item.id"
:class="{'addressItem__last' : index === addresList.length - 1,'addressItem__default':item.isDefault}"> :class="{'addressItem__last' : index === addresList.length - 1,'addressItem__default':item.isDefault}">
<radio v-if="query.source" :checked="item.id === selectedId" @click="changeAds(item)"/>
<radio :checked="item.id === selectedId" @click="changeAds(item)"/>
<view> <view>
<view class="addressItem--city">{{item.province}}{{item.city}}{{item.area}}</view> <view class="addressItem--city">{{item.province}}{{item.city}}{{item.area}}</view>
<view class="addressItem--detail">{{item.detailAddress}}</view> <view class="addressItem--detail">{{item.detailAddress}}</view>

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-03-22 15:09:06 * @Date: 2022-03-22 15:09:06
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-09 15:03:40 * @LastEditTime: 2022-04-18 18:40:02
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -28,7 +28,7 @@ export default {
}, },
methods:{ methods:{
logout(){ logout(){
// this.$store.commit('SET_TOKEN'); this.$store.commit('SET_TOKEN');
this.$Router.replace('/login') this.$Router.replace('/login')
} }
} }

@ -2,12 +2,13 @@
* @Author: ch * @Author: ch
* @Date: 2022-04-15 16:36:02 * @Date: 2022-04-15 16:36:02
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-18 16:31:12 * @LastEditTime: 2022-04-18 18:38:25
* @Description: file content * @Description: file content
--> -->
<template> <template>
<UiWhiteBox> <UiWhiteBox>
<u-cell class="address" isLink v-if="lastLogisitcs" @click="$Router.push('/addressList')"> <u-cell class="address" isLink v-if="lastLogisitcs"
@click="$Router.push(`/logisitcsInfo?orderId=${orderInfo.orderId}`)">
<view slot="title" class="address--title">{{lastLogisitcs.context}}</view> <view slot="title" class="address--title">{{lastLogisitcs.context}}</view>
<image class="address--icon" slot="icon" src="@/static/order/fj.png" /> <image class="address--icon" slot="icon" src="@/static/order/fj.png" />
<view slot="label" class="address--label"> <view slot="label" class="address--label">

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-04-14 14:19:41 * @Date: 2022-04-14 14:19:41
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-15 11:17:27 * @LastEditTime: 2022-04-18 18:14:30
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -12,8 +12,8 @@
<view class="info--cell"> <view class="info--cell">
<text class="info--cell-label">收货信息</text> <text class="info--cell-label">收货信息</text>
<view class="info--cell-value"> <view class="info--cell-value">
<view>{{data.recipientName}} {{data.recipientPhone}}</view> <view class="recipient">{{data.recipientName}} {{data.recipientPhone}}</view>
<view>{{data.recipientAddress}}</view> <view class="recipient">{{data.recipientAddress}}</view>
</view> </view>
</view> </view>
<view class="info--cell"> <view class="info--cell">
@ -68,4 +68,9 @@ export default {
text-align: right; text-align: right;
} }
} }
.recipient{
color: $color-grey5;
font-size: $font-size-sm;
margin-bottom: 10rpx;
}
</style> </style>

@ -2,16 +2,20 @@
* @Author: ch * @Author: ch
* @Date: 2022-04-14 13:44:30 * @Date: 2022-04-14 13:44:30
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-15 11:08:54 * @LastEditTime: 2022-04-18 18:08:29
* @Description: file content * @Description: file content
--> -->
<template> <template>
<view> <view>
<UiWhiteBox> <UiWhiteBox>
<view class="title">商家已同意退货申请请尽早退货</view> <view class="title">商家已同意退货申请请尽早退货</view>
<u-cell class="address" :title="data.refundLogistics.recipientAddress" :label="`收货人:${data.refundLogistics.recipientName} ${data.refundLogistics.recipientPhone}`" <u-cell class="address" :border="false">
:border="false"> <view slot="title" class="address--title">{{data.refundLogistics.recipientAddress}}</view>
<image class="address--icon" slot="icon" src="@/static/order/dw.png" /> <image class="address--icon" slot="icon" src="@/static/order/dw.png" />
<view slot="label" class="address--label">
<text>收货人{{data.refundLogistics.recipientName}}</text>
<text>{{data.refundLogistics.recipientPhone}}</text>
</view>
</u-cell> </u-cell>
</UiWhiteBox> </UiWhiteBox>
<UiWhiteBox> <UiWhiteBox>
@ -164,10 +168,33 @@ export default {
.box{ .box{
padding: 0 30rpx; padding: 0 30rpx;
} }
.address--icon{ .address{
width: 40rpx; /deep/.u-cell__body__content{
height: 48rpx; padding: 10rpx 0;
margin-right: 10rpx;
}
&--title{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 500rpx;
&__grey{
color: $color-grey4;
}
}
&--icon{
width: 28rpx;
height: 34rpx;
margin-right: 30rpx;
}
&--label{
margin-top: 26rpx;
text{
font-size: $font-size-sm;
color: $color-grey4;
margin-right: 40rpx;
}
}
} }
.title{ .title{
height: 98rpx; height: 98rpx;

@ -2,13 +2,13 @@
* @Author: ch * @Author: ch
* @Date: 2022-03-20 14:14:53 * @Date: 2022-03-20 14:14:53
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-11 18:08:06 * @LastEditTime: 2022-04-18 18:33:51
* @Description: file content * @Description: file content
--> -->
<template> <template>
<view> <view>
<u-cell class="address" :title="address.province + address.city + address.area" :label="address.name + address.phone" <u-cell class="address" :title="address.province + address.city + address.area" :label="address.name + address.phone"
:border="false" isLink @click="$Router.push('/addressList')"> :border="false" isLink @click="$Router.push('/addressList?source=submitOrder')">
<image class="address--icon" slot="icon" src="@/static/order/dw.png" /> <image class="address--icon" slot="icon" src="@/static/order/dw.png" />
</u-cell> </u-cell>

Loading…
Cancel
Save