99 lines
2.3 KiB
Vue
99 lines
2.3 KiB
Vue
<template>
|
||
<view class="item" @click="toDetailsPage">
|
||
<image :src="info.extend_order_goods[0].goods_image"></image>
|
||
<view class="goods">
|
||
<view class="box">
|
||
<view class="">
|
||
编号:{{info.order_sn}}
|
||
</view>
|
||
<!-- 1待处理 2已发货 3已完成 4申请退款 5已退款 6拒绝退款 -->
|
||
<view class="status" v-if="info.view_type==1">待处理订单</view>
|
||
<view class="status" v-else-if="info.view_type==2">已发货订单</view>
|
||
<view class="status" v-else-if="info.view_type==3">已完成订单</view>
|
||
<view class="status" v-else-if="info.view_type==4">申请退款</view>
|
||
<view class="status" v-else-if="info.view_type==5">已退款订单</view>
|
||
<view class="status" v-else-if="info.view_type==6">商家同意</view>
|
||
<view class="status" v-else-if="info.view_type==7">商家拒绝</view>
|
||
</view>
|
||
<view class="name u-line-1">{{info.extend_order_goods[0].goods_name}}</view>
|
||
<view class="info">
|
||
<view class="num">共{{info.count_number}}件商品</view>
|
||
<view class="price">实付<span>¥{{info.order_amount}}</span></view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
<script>
|
||
export default {
|
||
data() {
|
||
return {}
|
||
},
|
||
props: {
|
||
cur: [Number, String],
|
||
info: Object
|
||
},
|
||
methods: {
|
||
toDetailsPage() {
|
||
uni.navigateTo({
|
||
url: '/pages/index/details?id=' + this.info.order_id+"&type="+this.info.view_type
|
||
});
|
||
},
|
||
},
|
||
};
|
||
</script>
|
||
<style lang="scss" scoped>
|
||
.item {
|
||
margin: 0 auto 20rpx;
|
||
width: 690rpx;
|
||
height: 220rpx;
|
||
background: rgba(255,255,255,1);
|
||
border-radius: 10rpx;
|
||
padding: 30rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
> image {
|
||
width: 160rpx;
|
||
height: 160rpx;
|
||
flex-shrink: 0;
|
||
margin-right: 25rpx;
|
||
}
|
||
.goods {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
justify-content: center;
|
||
.box{
|
||
width: 100%;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
font-size: 24rpx;
|
||
}
|
||
.status {
|
||
width: 120rpx;
|
||
align-self: flex-end;
|
||
font-size: 24rpx;
|
||
color: rgba(255,49,49,1);
|
||
margin-bottom: 30rpx;
|
||
}
|
||
.name {
|
||
width: 439rpx;
|
||
font-size: 28rpx;
|
||
color: rgba(51,51,51,1);
|
||
margin-bottom: 30rpx;
|
||
}
|
||
.info {
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
font-size: 26rpx;
|
||
color: rgba(102,102,102,1);
|
||
.price {
|
||
margin-left: 10rpx;
|
||
> span {
|
||
color: #FF780F;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
</style> |