98 lines
2.1 KiB
Vue
98 lines
2.1 KiB
Vue
<template>
|
|
<view class="item" @click="toDetailsPage">
|
|
<image :src="info.goods_pic"></image>
|
|
<view class="goods">
|
|
<view class="">
|
|
<!-- 0:待处理订单 20:同意 40:拒绝此订单 -->
|
|
<view class="status" v-if="info.goods_try_order_status==0">待处理订单</view>
|
|
<view class="status" v-if="info.goods_try_order_status==20">已接单订单</view>
|
|
<view class="status" v-if="info.goods_try_order_status==40">已拒绝订单</view>
|
|
<view class="status" v-if="info.goods_try_order_status==50">已完成订单</view>
|
|
</view>
|
|
|
|
<view class="name u-line-1">{{info.goods_name}}</view>
|
|
<view class="info">
|
|
<view class="num">共{{info.goods_try_num}}件商品</view>
|
|
<view class="price">实付<span>¥{{info.price}}</span></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {}
|
|
},
|
|
props: {
|
|
cur: [Number, String],
|
|
info: Object
|
|
},
|
|
methods: {
|
|
toDetailsPage() {
|
|
let type =0
|
|
let info = this.info
|
|
if(info.goods_try_order_status==0){
|
|
type=1
|
|
}else if(info.goods_try_order_status==20){
|
|
type=2
|
|
}else if(info.goods_try_order_status==40){
|
|
type=3
|
|
}else if(info.goods_try_order_status==50){
|
|
type=4
|
|
}
|
|
uni.navigateTo({
|
|
url: '/pages/index/otherdetails?id=' + this.info.goods_try_id+"&type="+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;
|
|
.status {
|
|
align-self: flex-end;
|
|
font-size: 26rpx;
|
|
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> |