You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

369 lines
8.7 KiB

<template>
<view class="body">
<view class="details_title">
<view class="shipped" v-if="details_index==0">
<view class="shipped_left">
<image src="../../static/img/order_shipped.png" mode=""></image>
</view>
<view>
<text class="shipped_right_text">Ready for shipment</text>
<view>The buyer has paid,Waiting for the merchant to deliver</view>
</view>
</view>
<view class="cancelled" v-if="details_index==1">
<view class="cancelled_left">
<image src="../../static/img/close2.png" mode=""></image>
<view class="cancelled_left_info">
<text class="shipped_right_text">Deal’s off</text>
<view>The transaction has been closed, looking forward to your re-selection</view>
</view>
</view>
</view>
<view class="cancelled completed" v-if="details_index==2">
<view class="cancelled_left">
<image src="../../static/img/completed.png" mode=""></image>
<view class="cancelled_left_info">
<text class="shipped_right_text">Signed for</text>
<view>2022-04-27 21:15:55</view>
</view>
</view>
<view class="cancelled_right">
<image src="../../static/img/right2.png" mode=""></image>
</view>
</view>
<view class="cancelled toPaid" v-if="details_index==3">
<view class="cancelled_left">
<view >
<text class="shipped_right_text">Waiting for payment</text>
<view>The timeout order will be closed automatically</view>
</view>
</view>
<view class="cancelled_right">
<text class="shipped_right_text">23:59:58</text>
<view>T-minus payment</view>
</view>
</view>
<navigator url="/pages/order/logisticsDetails" class="cancelled transit" v-if="details_index==4">
<view class="cancelled_left">
<image src="../../static/img/transit.png" mode=""></image>
<view class="cancelled_left_info">
<view class="shipped_right_text">【New York】Has arrived statesHas arrived states</view>
<view>2022-04-27 21:15:55</view>
</view>
</view>
<view class="cancelled_right">
<image src="../../static/img/right2.png" mode=""></image>
</view>
</navigator>
</view>
<view class="address">
<view class="address_left">
<view class="address_title">
<image src="../../static/img/address.png" mode=""></image>
<view class="address_title_name">Nathanael</view>
<text>5838590290</text>
</view>
<view class="address_content">
<text>B Oakdale Mall</text>
<view >Johnson City NEW YORKUnitedStates13790-1294</view>
</view>
</view>
<image src="../../static/img/right.png" class="address_more"></image>
<image src="../../static/img/address_xian.png" class="address_xian" mode=""></image>
</view>
<view class="order_popup_commodity">
<view class="good_info" v-for="(item,index) in 3 " :key="index">
<view class="good_info_left ">
<view class="good_info_image" v-for="(item,index) in 1" :key="index"></view>
<view class="left_info">
<view class="info_name">Adidas Yeezy Boost 350 V2 DazzlingBlue Black GY7164 Men's</view>
<view class="left_info_bottom">
<view class="info_lable">
<text>Multicolor;41</text>
<image src="/static/img/bottom.png" mode=""></image>
</view>
<text>x1</text>
</view>
<view class="info_price">
<text>US$314.00</text>
<button>Rrefund</button>
</view>
</view>
</view>
</view>
</view>
<view class="summary">
<view class="summary_title">Order summary</view>
<view class="summary_item">
<view>
Subtotal
<text class="summary_item_text">Tax included</text>
</view>
<view class="summary_item_right">US$12.5</view>
</view>
<view class="summary_item">
<view>Shipping</view>
<view class="summary_item_right">US$12.5</view>
</view>
<view class="summary_item">
<view>Coupon</view>
<view class="summary_item_right1">-US$12.5</view>
</view>
<view class="summary_item">
<view>Order total</view>
<view>US$12.5</view>
</view>
<view class="summary_tips">
<image src="../../static/img/gantan1.png" mode=""></image>
<text>Reward 10 points</text>
</view>
</view>
<view class="summary">
<view class="summary_title">Order information</view>
<view class="summary_item">
<view>Order id</view>
<view class="summary_item_right">
<text>2013461121212</text>
<button>copy</button>
</view>
</view>
<view class="summary_item">
<view>Shipping</view>
<view class="summary_item_right">standard shipping</view>
</view>
<view class="summary_item">
<view>Coupon</view>
<view class="summary_item_right">21/04/2022 15:42:31</view>
</view>
<view class="summary_item">
<view>Payment time</view>
<view class="summary_item_right">21/04/2022 15:42:31</view>
</view>
</view>
<view class="details_footer" v-if="details_index!=0">
<button class="white" v-if="details_index==2 || details_index==4">LOGISTICS</button>
<button class="white" v-if="details_index==1 || details_index==2">DELETE ORDER</button>
<button class="black" v-if="details_index==2">COMMENT</button>
<button class="white" v-if="details_index==3 ">CANCEL ORDER</button>
<button class="black" v-if="details_index==3">PAY NOW</button>
<button class="black" v-if="details_index==4">CONFIRM RECEIPT</button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
details_index:4
}
},
methods:{
}
}
</script>
<style lang="scss" scoped>
@import "@/common/scss/order.scss";
page{
}
.body{
padding-bottom: 80rpx;
}
.details_title{
height: 176.67rpx;
background-color: #2C2C38;
width: 100%;
color: white;
font-size: 18.67rpx;
font-weight: bold;
border-top: 14.67rpx #F6F5FA solid;
.shipped_right_text{
width: 497.33rpx;
font-size: 33.33rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cancelled{
padding-left: 55.33rpx;
display: flex;
align-items: center;
height: 100%;
justify-content: space-between;
.cancelled_left{
display: flex;
align-items: center;
image{
width: 61.33rpx;
height: 61.33rpx;
}
.cancelled_left_info{
margin-left: 52.67rpx;
}
}
.cancelled_right{
image{
width: 34.67rpx;
height: 34.67rpx;
}
}
}
.transit{
padding-left: 74.67rpx;
padding-right: 16rpx;
.cancelled_left{
image{
width: 58.67rpx;
height: 58.67rpx;
}
.cancelled_left_info{
margin-left: 49.33rpx;
}
}
}
.completed{
padding-right: 20rpx;
}
.toPaid{
padding:0 31.33rpx;
}
.shipped{
padding-left: 47.33rpx;
display: flex;
align-items: center;
height: 100%;
.shipped_left{
background-image: url("@/static/img/order_bg.png");
background-size: 100% 100%;
width: 114rpx;
height: 158.67rpx;
display: flex;
align-items: center;
justify-content: center;
margin-right: 30rpx;
image{
width: 62.67rpx;
height: 62.67rpx;
}
}
}
}
.order_popup_commodity{
border-bottom: 14.67rpx solid #F6F5FA;
}
.summary{
border-bottom: 14.67rpx solid #F6F5FA;
padding:0 26rpx;
padding-top: 44rpx;
padding-bottom: 47.33rpx;
font-size: 28rpx;
&:last-child{
border-bottom: none;
}
.summary_title{
font-weight: bold;
margin-bottom: 35.33rpx;
}
.summary_item{
display: flex;
align-items: center;
margin-bottom: 41.33rpx;
justify-content: space-between;
width: 100%;
.summary_item_text{
color: #777777;
}
.summary_item_right{
color: #3C3B6E;
display: flex;
align-items: center;
button{
font-size: 20rpx;
color: black;
height: 28.67rpx;
border-radius: 0;
padding:0 15rpx;
line-height: 28.67rpx;
background:none;
margin-left: 15.33rpx;
}
}
.summary_item_right1{
color: #B22234;
}
}
.summary_tips{
display: flex;
align-items: center;
justify-content: flex-end;
color: #B22234;
font-size: 24rpx;
font-weight: 400;
image{
width: 28rpx;
height: 28rpx;
margin-right: 13.33rpx;
}
}
}
.details_footer{
padding: 34rpx 26rpx;
background-color: white;
display: flex;
align-items: center;
justify-content: flex-end;
position: fixed;
bottom: 0;
width: 100%;
box-sizing: border-box;
button{
height: 62.67rpx;
line-height:62.67rpx;
border-radius: 0;
margin: 0;
margin-left: 18rpx;
background-color: white;
border: none;
font-size: 22.67rpx;
&::after{
content: none;
}
}
.black{
color: white;
background-color: black;
}
.white{
border: 1px solid #666666;
color: #666666;
}
}
</style>