收货地址修改

msb_beta
ch 2 years ago
parent 78bb47f8fc
commit 4c5e4b829f

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

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

@ -2,12 +2,13 @@
* @Author: ch
* @Date: 2022-04-15 16:36:02
* @LastEditors: ch
* @LastEditTime: 2022-04-18 16:31:12
* @LastEditTime: 2022-04-18 18:38:25
* @Description: file content
-->
<template>
<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>
<image class="address--icon" slot="icon" src="@/static/order/fj.png" />
<view slot="label" class="address--label">

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

@ -2,16 +2,20 @@
* @Author: ch
* @Date: 2022-04-14 13:44:30
* @LastEditors: ch
* @LastEditTime: 2022-04-15 11:08:54
* @LastEditTime: 2022-04-18 18:08:29
* @Description: file content
-->
<template>
<view>
<UiWhiteBox>
<view class="title">商家已同意退货申请请尽早退货</view>
<u-cell class="address" :title="data.refundLogistics.recipientAddress" :label="`收货人:${data.refundLogistics.recipientName} ${data.refundLogistics.recipientPhone}`"
:border="false">
<u-cell class="address" :border="false">
<view slot="title" class="address--title">{{data.refundLogistics.recipientAddress}}</view>
<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>
</UiWhiteBox>
<UiWhiteBox>
@ -164,10 +168,33 @@ export default {
.box{
padding: 0 30rpx;
}
.address--icon{
width: 40rpx;
height: 48rpx;
margin-right: 10rpx;
.address{
/deep/.u-cell__body__content{
padding: 10rpx 0;
}
&--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{
height: 98rpx;

@ -2,13 +2,13 @@
* @Author: ch
* @Date: 2022-03-20 14:14:53
* @LastEditors: ch
* @LastEditTime: 2022-04-11 18:08:06
* @LastEditTime: 2022-04-18 18:33:51
* @Description: file content
-->
<template>
<view>
<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" />
</u-cell>

Loading…
Cancel
Save