| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <template>
- <view class="slot">
- <!-- 商品卡片 -->
- <OrderGoodsCard :data="data" showBorderBottom>
- <view class="status-slot">
- <text v-if="data.status == 10">待付款</text>
- <text v-if="data.status == 11">待发货</text>
- <text v-if="data.status == 12">待收货</text>
- <text v-if="data.status == 13">已完成</text>
- <text v-if="data.status == 14">交易关闭</text>
- <text v-if="data.status == 15">售后订单</text>
- </view>
- </OrderGoodsCard>
- <!-- 待付款 -->
- <view class="operate" v-if="data.status == 10">
- <view class="paystyle">
- 需付款:{{data.actual_total_amount}}
- </view>
- <u-button type="default" style="margin-right: 24rpx;" size="small" shape="circle" @click.stop="cancelOrder(data.id,'orderList')">取消订单</u-button>
- <u-button type="primary" size="small" shape="circle" @click.stop="goPay(data)">去付款</u-button>
- </view>
- <!-- 待发货 -->
- <view class="operate" v-if="data.status == 11">
- <view class="paystyle">
- 实付款:{{data.actual_total_amount}}
- </view>
- <u-button type="default" style="margin-right: 24rpx;" size="small" shape="circle" @click="applyAfterSales(data.id)">申请售后</u-button>
- </view>
- <!-- 待收货 -->
- <view class="operate" v-if="data.status == 12">
- <u-button type="default" style="margin-right: 24rpx;" size="small" shape="circle" @click="applyAfterSales(data.id)">申请售后</u-button>
- <u-button type="primary" size="small" shape="circle" @click.stop="confirmReceipt(data)">确认收货</u-button>
- </view>
- <!-- 已完成 -->
- <view class="operate" v-if="data.status == 13">
- <view class="paystyle">
- 实付款:{{data.actual_total_amount}}
- </view>
- <u-button type="primary" size="small" shape="circle" @click.stop="goOrderInfo(data.id)">订单详情</u-button>
- </view>
- <view class="operate" v-if="data.status == 15">
- <view class="paystyle">
- 实付款:{{data.actual_total_amount}}
- </view>
- <u-button type="primary" size="small" shape="circle" @click.stop="goOrderInfo(data.id)">订单详情</u-button>
- </view>
- </view>
- </template>
- <script>
- import { orderOperate } from '@/pages-mall/mixins/order-operate.js';
- import OrderGoodsCard from '@/pages-mall/components/order/order-goods-card.vue';
- export default {
- name: 'order-card',
- // 工单操作方法混入
- mixins: [orderOperate],
- components: {
- OrderGoodsCard
- },
- props: {
- // 数据源
- data: {
- type: Object,
- default: () => {
- return {};
- }
- }
- },
- data() {
- return {};
- },
- methods: {
- // 付款
- goPayResult(e) {
-
- },
- }
- };
- </script>
- <style lang="scss" scoped>
- .slot {
- background-color: $app-theme-bg-color;
- border-radius: 16rpx;
- box-shadow: $app-theme-shadow;
- // padding: 30rpx;
- margin-top: 20rpx;
- .goods {
- display: flex;
- align-items: center;
- align-content: space-between;
- padding-bottom: 26rpx;
- border-bottom: 1rpx solid $app-theme-border-color;
- margin-bottom: 32rpx;
- .pic {
- margin-right: 24rpx;
- }
- .info {
- width: 280rpx;
- margin-right: 20rpx;
- .title {
- width: 100%;
- display: -webkit-box;
- overflow: hidden;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- font-size: 28rpx;
- font-weight: 400;
- color: $app-theme-text-black-color;
- margin-bottom: 14rpx;
- }
- .desc {
- display: flex;
- justify-content: flex-start;
- align-items: flex-end;
- margin-bottom: 18rpx;
- .item {
- margin-right: 24rpx;
- text:nth-child(1) {
- font-size: 24rpx;
- color: $app-theme-card-gray-color;
- margin-right: 8rpx;
- }
- text:nth-child(2) {
- font-size: 24rpx;
- color: $app-theme-card-gray-deep-color;
- }
- }
- }
- .price {
- text:nth-child(1) {
- font-size: 16rpx;
- color: $app-theme-text-black-color;
- }
- text:nth-child(2) {
- font-size: 28rpx;
- color: $app-theme-text-black-color;
- }
- }
- }
- .status {
- width: 120rpx;
- .status-label {
- width: 100%;
- text-align: right;
- font-size: 28rpx;
- color: $app-theme-color;
- margin-bottom: 100rpx;
- }
- .num {
- width: 100%;
- text-align: right;
- text:nth-child(1) {
- font-size: 24rpx;
- color: $app-theme-text-gray-white-color;
- vertical-align: bottom;
- }
- text:nth-child(2) {
- font-size: 28rpx;
- color: $app-theme-text-gray-white-color;
- vertical-align: bottom;
- }
- }
- }
- }
- }
- .operate {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- min-height: 90rpx;
- border-top: 1rpx solid $app-theme-border-color;
- }
- .paystyle{
- // font-weight: bold;
- margin-right: 20rpx;
- color: $app-theme-text-money-color;
- }
- </style>
|