163 lines
3.9 KiB
Vue
163 lines
3.9 KiB
Vue
|
<template>
|
|||
|
<view class="order-item">
|
|||
|
<view class="order-title">
|
|||
|
<view class="store-info">
|
|||
|
<image src="@/pageE/static/mine/23.png"></image>
|
|||
|
<view class="store-name">胖胖的店</view>
|
|||
|
</view>
|
|||
|
<view class="order-status">交易成功</view>
|
|||
|
</view>
|
|||
|
<view class="goods-info" @click="toDetailsPage">
|
|||
|
<image src="@/pageE/static/mine/23.png"></image>
|
|||
|
<view class="goods-text">
|
|||
|
<view class="goods-name u-line-2">木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子</view>
|
|||
|
<view class="goods-sku u-line-1" v-if="current !== 5 && current !== 6">XL;红色条纹XL;红色条纹XL;红色条纹</view>
|
|||
|
<view class="goods-time u-line-1" v-if="current == 1 || current == 4">距离结束:23:23:38</view>
|
|||
|
<view class="goods-price u-line-1" v-if="current == 5 || current == 6">总价:¥99.00,实付款¥99</view>
|
|||
|
<view class="goods-date" v-if="current == 5 || current == 6">
|
|||
|
<image src="@/pageE/static/mine/26.png"></image>
|
|||
|
<view>2020.05.17</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="order-btn" v-if="[0, 2, 4].indexOf(current) < 0">
|
|||
|
<view class="logistics" v-if="current == 3" @click="toLogistics">查看物流</view>
|
|||
|
<view class="comment" v-if="current == 5" @click="toComment">立即评价</view>
|
|||
|
<view class="payment" v-if="current == 1">立即支付</view>
|
|||
|
<view class="service" v-if="current == 6">联系官方客服</view>
|
|||
|
<view class="submit" v-if="current == 6">提交官方审核</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</template>
|
|||
|
<script>
|
|||
|
export default {
|
|||
|
data() {
|
|||
|
return {}
|
|||
|
},
|
|||
|
props: {
|
|||
|
current: Number
|
|||
|
},
|
|||
|
methods: {
|
|||
|
toDetailsPage() {
|
|||
|
uni.navigateTo({
|
|||
|
url: '/pageE/order/Details?current=' + this.current
|
|||
|
});
|
|||
|
},
|
|||
|
toLogistics() {
|
|||
|
uni.navigateTo({
|
|||
|
url: '/pageE/order/Logistics'
|
|||
|
});
|
|||
|
},
|
|||
|
toComment() {
|
|||
|
uni.navigateTo({
|
|||
|
url: '/pageE/order/Comment'
|
|||
|
});
|
|||
|
}
|
|||
|
},
|
|||
|
};
|
|||
|
</script>
|
|||
|
<style lang="scss" scoped>
|
|||
|
.order-item {
|
|||
|
width: 690rpx;
|
|||
|
background: rgba(255,255,255,1);
|
|||
|
border-radius: 20rpx;
|
|||
|
padding: 30rpx;
|
|||
|
.order-title {
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
justify-content: space-between;
|
|||
|
margin-bottom: 20rpx;
|
|||
|
.store-info {
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
> image {
|
|||
|
width: 50rpx;
|
|||
|
height: 50rpx;
|
|||
|
border-radius: 50%;
|
|||
|
margin-right: 15rpx;
|
|||
|
}
|
|||
|
.store-name {
|
|||
|
font-size: 26rpx;
|
|||
|
color: rgba(51,51,51,1);
|
|||
|
}
|
|||
|
}
|
|||
|
.order-status {
|
|||
|
font-size: 28rpx;
|
|||
|
color: rgba(255,120,15,1);
|
|||
|
}
|
|||
|
}
|
|||
|
.goods-info {
|
|||
|
display: flex;
|
|||
|
margin-bottom: 28rpx;
|
|||
|
> image {
|
|||
|
flex-shrink: 0;
|
|||
|
width: 180rpx;
|
|||
|
height: 160rpx;
|
|||
|
border-radius: 10rpx;
|
|||
|
margin-right: 30rpx;
|
|||
|
}
|
|||
|
.goods-text {
|
|||
|
display: flex;
|
|||
|
flex-direction: column;
|
|||
|
justify-content: space-between;
|
|||
|
.goods-name {
|
|||
|
font-size: 28rpx;
|
|||
|
color: rgba(51,51,51,1);
|
|||
|
line-height: 38rpx;
|
|||
|
}
|
|||
|
.goods-sku {
|
|||
|
max-width: 230rpx;
|
|||
|
background: rgba(236,236,236,1);
|
|||
|
border-radius: 6rpx;
|
|||
|
padding: 10rpx 15rpx;
|
|||
|
font-size: 24rpx;
|
|||
|
color: rgba(153,153,153,1);
|
|||
|
}
|
|||
|
.goods-time {
|
|||
|
font-size: 24rpx;
|
|||
|
color: rgba(255,49,49,1);
|
|||
|
}
|
|||
|
.goods-price {
|
|||
|
font-size: 24rpx;
|
|||
|
color: rgba(253,211,96,1);
|
|||
|
}
|
|||
|
.goods-date {
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
font-size: 24rpx;
|
|||
|
color: rgba(153,153,153,1);
|
|||
|
> image {
|
|||
|
width: 24rpx;
|
|||
|
height: 24rpx;
|
|||
|
margin-right: 21rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
.order-btn {
|
|||
|
display: flex;
|
|||
|
justify-content: flex-end;
|
|||
|
@mixin btn-class($width, $color) {
|
|||
|
width: $width;
|
|||
|
height: 60rpx;
|
|||
|
border: 2rpx solid $color;
|
|||
|
color: $color;
|
|||
|
border-radius: 30rpx;
|
|||
|
padding: 15rpx 23rpx;
|
|||
|
font-size: 28rpx;
|
|||
|
&:not(:last-child) {
|
|||
|
margin-right: 30rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
.logistics, .comment, .payment {
|
|||
|
@include btn-class($width: 160rpx, $color: rgba(255,119,15,1));
|
|||
|
}
|
|||
|
.service {
|
|||
|
@include btn-class($width: 216rpx, $color: rgba(155,153,153,1));
|
|||
|
}
|
|||
|
.submit {
|
|||
|
@include btn-class($width: 216rpx, $color: rgba(255,119,15,1));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
</style>
|