123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <template>
- <div class="order-card">
- <div class="card-header">
- <div class="order-no">订单号 {{ info.order_no }}</div>
- <div class="time">{{ info.create_at }}</div>
- </div>
- <div class="card-center">
- <div class="type">{{ info.level_name }}{{ info.level_title }}</div>
- <div class="price">
- <div>实付款</div>
- <div class="red">¥</div>
- <div class="price-num">{{ info.price_total }}</div>
- </div>
- </div>
- <div class="card-footer">
- <div class="btn" @click="toInvoice">
- {{
- info.bill_info
- ? info.bill_info.bill_img
- ? "查看发票"
- : "开票中"
- : "申请开票"
- }}
- </div>
- <div class="btn">联系客服</div>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "OrderCard",
- props: {
- info: {
- type: Object,
- },
- },
- methods: {
- toInvoice() {
- this.$router.push({
- path: this.info.bill_info
- ? "/vip-invoice-detail"
- : "/vip-invoice-apply",
- query: {
- order_id: this.info.id,
- },
- });
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .order-card {
- width: 100%;
- height: 200px;
- padding: 20px;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-between;
- box-sizing: border-box;
- user-select: none;
- .card-header {
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .order-no {
- font-size: 13px;
- font-weight: 400;
- color: #444444;
- }
- .time {
- font-size: 13px;
- color: #969696;
- }
- }
- .card-center {
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .type {
- font-size: 18px;
- font-weight: 500;
- color: #444444;
- }
- .price {
- display: flex;
- align-items: flex-end;
- div {
- font-size: 14px;
- font-weight: 500;
- color: #333333;
- line-height: 14px;
- }
- .red {
- color: #ff3535;
- margin-left: 10px;
- margin-right: 2px;
- }
- .price-num {
- font-size: 22px;
- font-weight: 400;
- color: #ff3535;
- line-height: 16px;
- }
- }
- }
- .card-footer {
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- .btn {
- width: 100px;
- height: 40px;
- text-align: center;
- line-height: 40px;
- font-size: 14px;
- font-weight: 400;
- border-radius: 4px;
- cursor: pointer;
- }
- :nth-child(1) {
- border: 1px solid #979797;
- color: #131415;
- }
- :nth-child(2) {
- border: 1px solid #0054f7;
- color: #0054f7;
- margin-left: 10px;
- }
- }
- }
- </style>
|