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.
 
 
 
 
 
 

376 lines
9.4 KiB

<template>
<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">
B Oakdale Mall
Johnson City NEW YORKUnitedStates13790-1294
</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_info" @click="openMore(0)">
<view class="info_title">
<text>Items in cart</text>
<view class="info_title_right">
<text>4 ltems</text>
<image src="../../static/img/right.png" mode="" class="address_more"></image>
</view>
</view>
<view class="info_image">
<view class="info_image_item" v-for="(item,index) in 4 " :key="index"></view>
</view>
</view>
<view class="method">
<view class="method_title">Shipping Method</view>
<view class="method_item" v-for="(item,index) in 2 " :key="index">
<image src="../../static/img/select2.png" mode=""></image>
<view class="method_item_right">
<view class="item_price">
<text>STANDARD SHIPPING:</text>
<text class="item_price_span">US$59</text>
</view>
<view class="item_time">
<text class="item_time_span">estimated to be deliverd on </text>
<text> 15/05/2022-04/05/2022</text>
</view>
</view>
</view>
</view>
<view class="discount">
<view class="discount_item" @click="openMore(1)">
<text>Coupons</text>
<view class="discount_item_right">
<text>-US$12.5</text>
<image src="../../static/img/right.png" mode="" class="address_more"></image>
</view>
</view>
<view class="discount_item" @click="openMore(3)">
<view class="discount_item_left">
<text>Points</text>
<text class="discount_item_left_span">(2.5)</text>
</view>
<view class="discount_item_right">
<text>-US$2.5</text>
<image src="../../static/img/right.png" mode="" class="address_more"></image>
</view>
</view>
</view>
<view class="settlement">
<view class="settlement_item">
<text>Subtotal:</text>
<text class="settlement_item_right">US$12.5</text>
</view>
<view class="settlement_item">
<text>Shipping fee:</text>
<text class="settlement_item_right">US$1.5</text>
</view>
<view class="settlement_item">
<text>Discount :</text>
<text class="settlement_item_right1">-US$2.5</text>
</view>
</view>
<view class="total">
<text>Total: US$314.00</text>
<button @click="openMore(2)">PLACE ORDER</button>
</view>
<view class="mask" v-show="isShow" @click="isShow=false"></view>
<view class="order_popup" v-show="isShow">
<view class="order_popup_title">
<text>
{{popup_index==0?'Commodity information':popup_index==1?'Coupons':popup_index==2?'Payment Method':'Points'}}<text v-show="popup_index==3">(total:<text class="order_popup_title_span" >2.5</text>)</text>
</text>
<image src="../../static/img/close1.png" mode="" @click="isShow=false"></image>
</view>
<view class="order_popup_commodity" v-show="popup_index==0">
<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">US$314.00</view>
</view>
</view>
</view>
</view>
<view class="order_popup_coupons" v-show="popup_index==1">
<view class="coupons_item" v-for="(item,index) in 3 " :key="index">
<view class="coupons_item_left">
<view class="item_left_prcie">$20.00</view>
<text class="item_left_span">Min.spend</text>
<view>$200.00</view>
</view>
<view class="coupons_item_right">
<view class="coupons_right_info">
<view class="coupons_right_info_title">All-purpose</view>
<text>The tide zone is available</text>
<view class="coupons_right_info_time">2022.09.23 10:37 - 2022.12.23 10:37</view>
</view>
<button>Use Now</button>
<image src="../../static/img/select3.png" mode="" class="coupons_item_right_select"></image>
</view>
</view>
</view>
<view class="order_popup_pay" v-show="popup_index==2">
<view class="pay_item">
<image src="../../static/img/select1.png" mode="" class="pay_item_select"></image>
<view class="pay_item_right">
<image src="../../static/img/pay_pal.png" mode=""></image>
<text>Pay Pal</text>
</view>
</view>
<view class="pay_item">
<image src="../../static/img/select2.png" mode="" class="pay_item_select"></image>
<view class="pay_item_right">
<image src="../../static/img/card.png" mode=""></image>
<text>Credit/Debit Card</text>
</view>
</view>
<view class="pay_item">
<image src="../../static/img/select2.png" mode="" class="pay_item_select"></image>
<view class="pay_item_right">
<image src="../../static/img/GPay.png" mode=""></image>
<text>Google Pay</text>
</view>
</view>
<view class="pay_item">
<image src="../../static/img/select2.png" mode="" class="pay_item_select"></image>
<view class="pay_item_right">
<image src="../../static/img/APay.png" mode=""></image>
<text>Apple pay</text>
</view>
</view>
<navigator url="/pages/order/paySuccess">
<button>PAY NOW</button>
</navigator>
</view>
<view class="order_popup_points" v-show="popup_index==3">
<view class="points_item">
<image src="../../static/img/select2.png" mode=""></image>
<text>Use points</text>
</view>
<view class="points_item">
<image src="../../static/img/select1.png" mode=""></image>
<text>Do not use points</text>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
isShow:false,
popup_index:''
}
},
methods:{
openMore(i){
this.popup_index=i
this.isShow=true
}
}
}
</script>
<style lang="scss" scoped>
@import "@/common/scss/order.scss";
page{
border-top:14.67rpx #F6F5FA solid ;
padding-bottom: 140rpx;
}
.order_info{
padding-left: 26.67rpx;
padding-right: 22.67rpx;
padding-top: 50.67rpx;
padding-bottom: 42.67rpx;
border-bottom:14.67rpx #F6F5FA solid ;
.info_title{
display: flex;
align-items: center;
justify-content: space-between;
font-weight: bold;
font-size: 26.67rpx;
.info_title_right{
display: flex;
align-items: center;
color: #666666;
font-size: 24rpx;
image{
margin-left: 33.33rpx;
}
}
}
.info_image{
display: flex;
margin-top: 26.67rpx;
.info_image_item{
width: 133.33rpx;
height: 133.33rpx;
margin-right: 12rpx;
background-color: #999999;
}
}
}
.method{
border-bottom:14.67rpx #F6F5FA solid ;
padding-top: 50rpx;
.method_title{
font-size: 26.67rpx;
font-weight: bold;
padding-left: 25.33rpx;
}
.method_item{
padding:41.33rpx 0 ;
border-bottom: 1px #E2E2E2 solid;
padding-left: 42.67rpx;
padding-right: 29.33rpx;
display: flex;
align-items: center;
&:last-child{
border-bottom: none;
}
image{
width: 29.33rpx;
height: 29.33rpx;
margin-right: 30.67rpx;
}
.method_item_right{
.item_price{
font-size: 28rpx;
margin-bottom: 14rpx;
.item_price_span{
color: #B22234;
}
}
.item_time{
font-size: 25.33rpx;
font-weight: 400;
.item_time_span{
color: #555555;
}
}
}
}
}
.discount{
border-bottom:14.67rpx #F6F5FA solid ;
padding-left: 26rpx;
padding-right: 22.67rpx;
padding-top: 42rpx;
padding-bottom: 45.33rpx;
.discount_item{
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
margin-bottom: 42rpx;
&:last-child{
margin-bottom: 0;
}
.discount_item_left{
.discount_item_left_span{
color: #666666;
}
}
.discount_item_right{
display: flex;
align-items: center;
color: #B22234;
font-weight: bold;
image{
margin-left: 14rpx;
}
}
}
}
.settlement{
border-bottom:14.67rpx #F6F5FA solid ;
padding: 44rpx 26rpx;
.settlement_item{
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
margin-bottom: 44rpx;
&:last-child{
margin-bottom: 0;
}
.settlement_item_right{
color: #3C3B6E;
font-weight: bold;
}
.settlement_item_right1{
color: #B22234;
font-weight: bold;
}
}
}
.total{
padding: 30.67rpx 0;
padding-left: 26rpx;
padding-right: 19.33rpx;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
position: fixed;
bottom: 0;
left: 0;
background-color: white;
z-index: 99;
box-sizing: border-box;
font-size: 36rpx;
font-weight: 600;
button{
font-size: 26.67rpx;
color: white;
height: 73.33rpx;
line-height: 73.33rpx;
border-radius: 0;
border: none;
background-color: black;
margin: 0;
}
}
</style>