123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- <template>
- <view class="card" @click="$emit('toInformation',itemInfo.orderStatus)">
- <view class="top-detail">
- <view class="top-left">
- <view class="_label-1" v-if="itemInfo.labelStatus == 0">
- 平台自购
- </view>
- <view class="_label-2" v-if="itemInfo.labelStatus == 1">
- 自寄
- </view>
- <view class="order-num">
- <text>订单编号:</text>
- <text>4873221093105892</text>
- </view>
- </view>
- <view class="top-right">
- {{orderDetail}}
- </view>
- </view>
- <view class="content-center">
- <view class="center-left-right">
- <view class="address">
- 上海市
- </view>
- <view class="name">
- 陈盼盼
- </view>
- </view>
- <image class="arrow" src="../../../static/mine/337.png" mode=""></image>
- <view class="center-left-right">
- <view class="address">
- 洛杉矶
- </view>
- <view class="name">
- Curtis Morris
- </view>
- </view>
- </view>
- <view class="price" v-if="itemInfo.orderStatus == 1">
- <text style="font-size: 24rpx;color: #333;">合计</text>
- <view style="color: #f83224;font-weight: 600;">
- <text style="font-size: 20rpx;">¥</text>
- <text>133</text>.
- <text style="font-size: 20rpx;">22</text>
- </view>
- </view>
- <view class="card-bottom">
- <view class="package-weight">
- <text>包裹重量:</text>
- <text>45kg</text>
- </view>
- <view class="btn-list">
- <button class="btn-2" v-show="itemInfo.orderStatus!=4&&itemInfo.orderStatus!=3" @click.stop="freeze">冻结</button>
- <button class="btn-2" v-show="itemInfo.orderStatus != 1&&itemInfo.orderStatus!=4" @click.stop="$emit('toInformation',itemInfo.orderStatus)">查看详情</button>
- <button class="btn-1" v-show="itemInfo.orderStatus == 1" @click.stop="toPayment">立即付款</button>
- <button class="btn-1" v-show="itemInfo.orderStatus == 4">去寄件</button>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- itemInfo: {
- typeof: Object,
- default: {}
- }
- },
- computed: {
- orderDetail() {
- if (this.itemInfo.orderStatus == 0) {
- return "待平台收货"
- } else if (this.itemInfo.orderStatus == 1) {
- return "待付款"
- } else if (this.itemInfo.orderStatus == 2) {
- return "待发货"
- } else if (this.itemInfo.orderStatus == 3) {
- return "拼包中"
- } else if (this.itemInfo.orderStatus == 4) {
- return "待寄件"
- }
- }
- },
- data() {
- return {
- }
- },
- methods:{
- freeze(){},
- toPayment(){
- uni.navigateTo({
- url:"/pageD/paymentOrder/paymentOrder"
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .card {
- padding: 28rpx 20rpx 0;
- background-color: #fff;
- border-radius: 16rpx;
- margin-top: 20rpx;
- .top-detail {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .top-left {
- display: flex;
- align-items: center;
- ._label-1 {
- padding: 4rpx 8rpx;
- background-color: #FF1515;
- border-radius: 4rpx;
- color: #fff;
- font-size: 20rpx;
- margin-right: 10rpx;
- }
- ._label-2 {
- padding: 4rpx 8rpx;
- background-color: #FF6700;
- border-radius: 4rpx;
- color: #fff;
- font-size: 20rpx;
- margin-right: 10rpx;
- }
- .order-num {
- font-size: 26rpx;
- color: #333333;
- }
- }
- .top-right {
- color: #f83224;
- font-size: 26rpx;
- }
- }
- .content-center {
- display: flex;
- justify-content: space-around;
- align-items: center;
- margin-top: 44rpx;
- margin-bottom: 40rpx;
- .arrow {
- width: 130rpx;
- height: 10rpx;
- }
- .center-left-right {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- .address {
- font-weight: 600;
- }
- .name {
- font-size: 24rpx;
- color: rgba(34, 34, 34, .7);
- margin-top: 10rpx;
- }
- }
- }
- .price {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- margin-bottom: 28rpx;
- }
- .card-bottom {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 30rpx 0 28rpx;
- border-top: 2rpx solid rgba(151, 151, 151, .2);
- .package-weight {
- font-size: 26rpx;
- color: #444444;
- }
- .btn-list {
- display: flex;
- .btn-1 {
- font-size: 28rpx;
- color: #fff;
- // border: 2rpx solid #f83224;
- background-color: #f83224;
- margin: 0;
- border-radius: 34rpx;
- min-width: 132rpx;
- margin-left: 20rpx;
- height: 68rpx;
- line-height: 68rpx;
- }
- .btn-2 {
- font-size: 28rpx;
- color: #222;
- border: 2rpx solid rgba(151, 151, 151, .7);
- background-color: #fff;
- margin: 0;
- border-radius: 34rpx;
- padding: 0;
- min-width: 132rpx;
- margin-left: 20rpx;
- padding: 0 20rpx;
- height: 68rpx;
- line-height: 68rpx;
- }
- }
- }
- }
- </style>
|