|
|
@@ -2,482 +2,97 @@
|
|
|
{
|
|
|
"navigationBarTitleText": "我买到的",
|
|
|
"navigationBarBackgroundColor": "#ffffff",
|
|
|
- "navigationBarTextStyle": "black",
|
|
|
- "backgroundTextStyle":"light"
|
|
|
}
|
|
|
</config>
|
|
|
<template>
|
|
|
<div class="container">
|
|
|
- <van-tabs @click="onClick">
|
|
|
- <van-tab title="全部">
|
|
|
- <!-- 待支付 -->
|
|
|
- <div class="box-con">
|
|
|
- <div class="box-con2">
|
|
|
- <div class="box-tit">
|
|
|
- <div>
|
|
|
- <img src="/native/tabbar/icon_kapai_shangjia_da.png" alt="" />
|
|
|
- <p>光之城卡牌</p>
|
|
|
- </div>
|
|
|
- <div class="box-tit-seller">待支付</div>
|
|
|
- </div>
|
|
|
- <div class="box-con-Cards">
|
|
|
- <img src="../static/imgs/4.jpeg" alt="" />
|
|
|
- <div class="box-con-right">
|
|
|
- <p class="box-con-tit">1105皇权破晓</p>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>卡盒选号: 卡包02—A</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-money">
|
|
|
- <div class="box-con-num">
|
|
|
- <p>¥320</p>
|
|
|
- </div>
|
|
|
- <p>×1</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="box-num">
|
|
|
- <span>实际支付</span>
|
|
|
- <span class="num">¥970</span>
|
|
|
- </div>
|
|
|
- <div class="box-bor"></div>
|
|
|
- <div class="box-butm">
|
|
|
- <div class="box-but">取消订单</div>
|
|
|
- <div class="box-but2">立即支付</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <!-- 代发货 -->
|
|
|
- <div class="box-con">
|
|
|
- <div class="box-con2">
|
|
|
- <div class="box-tit">
|
|
|
- <div>
|
|
|
- <img src="/native/tabbar/icon_kapai_shangjia_da.png" alt="" />
|
|
|
- <p>光之城卡牌</p>
|
|
|
- </div>
|
|
|
- <div class="box-tit-seller">待发货</div>
|
|
|
- </div>
|
|
|
- <div class="box-con-Cards">
|
|
|
- <img src="../static/imgs/1.jpeg" alt="" />
|
|
|
- <div class="box-con-right">
|
|
|
- <p class="box-con-tit">1105皇权破晓</p>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>卡盒选号: 卡包02—A</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-money">
|
|
|
- <div class="box-con-num">
|
|
|
- <p>¥320</p>
|
|
|
- </div>
|
|
|
- <p>×1</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="box-num">
|
|
|
- <span>实际支付</span>
|
|
|
- <span class="num">¥970</span>
|
|
|
- </div>
|
|
|
- <div class="box-bor"></div>
|
|
|
- <div class="box-butm">
|
|
|
- <div class="box-but3">查看订单</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <!-- 待收货 -->
|
|
|
- <div class="box-con">
|
|
|
- <div class="box-con2">
|
|
|
- <div class="box-tit">
|
|
|
- <div>
|
|
|
- <img src="/native/tabbar/icon_kapai_shangjia_da.png" alt="" />
|
|
|
- <p>光之城卡牌</p>
|
|
|
- </div>
|
|
|
- <div class="box-tit-seller">待收货</div>
|
|
|
- </div>
|
|
|
- <div class="box-con-Cards">
|
|
|
- <img src="../static/imgs/2.jpeg" alt="" />
|
|
|
- <div class="box-con-right">
|
|
|
- <p class="box-con-tit">1105皇权破晓</p>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>卡盒选号: 卡包02—A</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-money">
|
|
|
- <div class="box-con-num">
|
|
|
- <p>¥320</p>
|
|
|
- </div>
|
|
|
- <p>×1</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="box-num">
|
|
|
- <span>实际支付</span>
|
|
|
- <span class="num">¥970</span>
|
|
|
- </div>
|
|
|
- <div class="box-bor"></div>
|
|
|
- <div class="box-butm">
|
|
|
- <div class="box-but">查看物流</div>
|
|
|
- <div class="box-but2">确认收货</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <!-- 已完成 -->
|
|
|
- <div class="box-con">
|
|
|
- <div class="box-con2">
|
|
|
- <div class="box-tit">
|
|
|
- <div>
|
|
|
- <img src="/native/tabbar/icon_kapai_shangjia_da.png" alt="" />
|
|
|
- <p>光之城卡牌</p>
|
|
|
- </div>
|
|
|
- <div class="box-tit-seller">已完成</div>
|
|
|
- </div>
|
|
|
- <div class="box-con-Cards">
|
|
|
- <img src="../static/imgs/3.jpeg" alt="" />
|
|
|
- <div class="box-con-right">
|
|
|
- <p class="box-con-tit">1105皇权破晓</p>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>卡盒选号: 卡包02—A</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-money">
|
|
|
- <div class="box-con-num">
|
|
|
- <p>¥320</p>
|
|
|
- </div>
|
|
|
- <p>×1</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="box-num">
|
|
|
- <span>实际支付</span>
|
|
|
- <span class="num">¥970</span>
|
|
|
- </div>
|
|
|
- <div class="box-bor"></div>
|
|
|
- <div class="box-butm">
|
|
|
- <div class="box-but">申请售后</div>
|
|
|
- <div class="box-but3">查看订单</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </van-tab>
|
|
|
- <van-tab title="待支付">
|
|
|
- <div class="box-con">
|
|
|
- <div class="box-con2">
|
|
|
- <div class="box-tit">
|
|
|
- <div>
|
|
|
- <img src="/native/tabbar/icon_kapai_shangjia_da.png" alt="" />
|
|
|
- <p>光之城卡牌</p>
|
|
|
- </div>
|
|
|
- <div class="box-tit-seller">待支付</div>
|
|
|
- </div>
|
|
|
- <div class="box-con-Cards">
|
|
|
- <img src="../static/imgs/4.jpeg" alt="" />
|
|
|
- <div class="box-con-right">
|
|
|
- <p class="box-con-tit">1105皇权破晓</p>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>卡盒选号: 卡包02—A</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-money">
|
|
|
- <div class="box-con-num">
|
|
|
- <p>¥320</p>
|
|
|
- </div>
|
|
|
- <p>×1</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="box-num">
|
|
|
- <span>实际支付</span>
|
|
|
- <span class="num">¥970</span>
|
|
|
- </div>
|
|
|
- <div class="box-bor"></div>
|
|
|
- <div class="box-butm">
|
|
|
- <div class="box-but">取消订单</div>
|
|
|
- <div class="box-but2">立即支付</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </van-tab>
|
|
|
- <van-tab title="待发货">
|
|
|
- <div class="box-con">
|
|
|
- <div class="box-con2">
|
|
|
- <div class="box-tit">
|
|
|
- <div>
|
|
|
- <img src="/native/tabbar/icon_kapai_shangjia_da.png" alt="" />
|
|
|
- <p>光之城卡牌</p>
|
|
|
- </div>
|
|
|
- <div class="box-tit-seller">待发货</div>
|
|
|
- </div>
|
|
|
- <div class="box-con-Cards">
|
|
|
- <img src="../static/imgs/1.jpeg" alt="" />
|
|
|
- <div class="box-con-right">
|
|
|
- <p class="box-con-tit">1105皇权破晓</p>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>卡盒选号: 卡包02—A</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-money">
|
|
|
- <div class="box-con-num">
|
|
|
- <p>¥320</p>
|
|
|
- </div>
|
|
|
- <p>×1</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="box-num">
|
|
|
- <span>实际支付</span>
|
|
|
- <span class="num">¥970</span>
|
|
|
- </div>
|
|
|
- <div class="box-bor"></div>
|
|
|
- <div class="box-butm">
|
|
|
- <div class="box-but3">查看订单</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </van-tab>
|
|
|
- <van-tab title="待收货">
|
|
|
- <div class="box-con">
|
|
|
- <div class="box-con2">
|
|
|
- <div class="box-tit">
|
|
|
- <div>
|
|
|
- <img src="/native/tabbar/icon_kapai_shangjia_da.png" alt="" />
|
|
|
- <p>光之城卡牌</p>
|
|
|
- </div>
|
|
|
- <div class="box-tit-seller">待收货</div>
|
|
|
- </div>
|
|
|
- <div class="box-con-Cards">
|
|
|
- <img src="../static/imgs/2.jpeg" alt="" />
|
|
|
- <div class="box-con-right">
|
|
|
- <p class="box-con-tit">1105皇权破晓</p>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>卡盒选号: 卡包02—A</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-money">
|
|
|
- <div class="box-con-num">
|
|
|
- <p>¥320</p>
|
|
|
- </div>
|
|
|
- <p>×1</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="box-num">
|
|
|
- <span>实际支付</span>
|
|
|
- <span class="num">¥970</span>
|
|
|
- </div>
|
|
|
- <div class="box-bor"></div>
|
|
|
- <div class="box-butm">
|
|
|
- <div class="box-but">查看物流</div>
|
|
|
- <div class="box-but2">确认收货</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </van-tab>
|
|
|
- <van-tab title="已完成">
|
|
|
- <div class="box-con">
|
|
|
- <div class="box-con2">
|
|
|
- <div class="box-tit">
|
|
|
- <div>
|
|
|
- <img src="/native/tabbar/icon_kapai_shangjia_da.png" alt="" />
|
|
|
- <p>光之城卡牌</p>
|
|
|
- </div>
|
|
|
- <div class="box-tit-seller">已完成</div>
|
|
|
- </div>
|
|
|
- <div class="box-con-Cards">
|
|
|
- <img src="../static/imgs/3.jpeg" alt="" />
|
|
|
- <div class="box-con-right">
|
|
|
- <p class="box-con-tit">1105皇权破晓</p>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>卡盒选号: 卡包02—A</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-money">
|
|
|
- <div class="box-con-num">
|
|
|
- <p>¥320</p>
|
|
|
- </div>
|
|
|
- <p>×1</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="box-num">
|
|
|
- <span>实际支付</span>
|
|
|
- <span class="num">¥970</span>
|
|
|
- </div>
|
|
|
- <div class="box-bor"></div>
|
|
|
- <div class="box-butm">
|
|
|
- <div class="box-but">申请售后</div>
|
|
|
- <div class="box-but3">查看订单</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </van-tab>
|
|
|
- </van-tabs>
|
|
|
+ <div class="box-tab">
|
|
|
+ <div
|
|
|
+ class="tab-item"
|
|
|
+ :class="{ active: item === active }"
|
|
|
+ v-for="(item, index) in tabs"
|
|
|
+ :key="index"
|
|
|
+ @click="chageFn(item)"
|
|
|
+ >
|
|
|
+ {{ item }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-for="(item, index) in List" :key="index + 2">
|
|
|
+ <allorder-info :all="item"></allorder-info>
|
|
|
+ </div>
|
|
|
+ <van-empty v-if="empty" image="/native/imgs/kong_png_xiaoxiliebiao.png" description="暂无卡包信息哦~">
|
|
|
+ </van-empty>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import AllorderInfo from '../components/AllorderInfo.vue';
|
|
|
+import allPage from '../mixins/allPage';
|
|
|
export default {
|
|
|
+ components: { AllorderInfo },
|
|
|
+ mixins: [allPage],
|
|
|
data() {
|
|
|
- return {};
|
|
|
+ return {
|
|
|
+ active: '全部',
|
|
|
+ tabs: ['全部', '待支付', '待发货', '待签收', '已完成'],
|
|
|
+ empty: false,
|
|
|
+ List: []
|
|
|
+ };
|
|
|
},
|
|
|
methods: {
|
|
|
- onClick(event) {}
|
|
|
+ chageFn(item) {
|
|
|
+ this.active = item;
|
|
|
+ this.allFn();
|
|
|
+ },
|
|
|
+ allFn() {
|
|
|
+ this.showLoading();
|
|
|
+ this.list = [];
|
|
|
+ this.empty = false;
|
|
|
+ let userId = this.$store.state.userInfo.id;
|
|
|
+ this.$http
|
|
|
+ .post(
|
|
|
+ '/orderInfo/all',
|
|
|
+ {
|
|
|
+ query: {
|
|
|
+ caseStatus: this.allStatus(this.active),
|
|
|
+ userId
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ header: {
|
|
|
+ 'Content-Type': 'application/json'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
+ console.log(res);
|
|
|
+ this.hideLoading();
|
|
|
+ this.List = res;
|
|
|
+ if (res.length === 0) {
|
|
|
+ this.empty = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ loginMethods() {
|
|
|
+ this.allFn();
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
.container {
|
|
|
background: #f5f7fa;
|
|
|
- /deep/ .van-tabs__line {
|
|
|
- width: 0px;
|
|
|
- height: 0px;
|
|
|
- }
|
|
|
- .box-con {
|
|
|
+ .box-tab {
|
|
|
background: #ffffff;
|
|
|
- border-radius: 12px;
|
|
|
- margin: 8px 16px;
|
|
|
- padding-bottom: 5px;
|
|
|
- .box-con2 {
|
|
|
- margin: 16px 16px;
|
|
|
- .box-tit {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- padding-top: 16px;
|
|
|
- div {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- img {
|
|
|
- width: 17px;
|
|
|
- height: 17px;
|
|
|
- }
|
|
|
- p {
|
|
|
- height: 22px;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: bold;
|
|
|
- color: #000000;
|
|
|
- line-height: 22px;
|
|
|
- margin-left: 2px;
|
|
|
- }
|
|
|
- }
|
|
|
- .box-tit-seller {
|
|
|
- height: 22px;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: bold;
|
|
|
- color: #ff6c00;
|
|
|
- line-height: 22px;
|
|
|
- }
|
|
|
- }
|
|
|
- .box-con-Cards {
|
|
|
- margin: 16px 0 20px 20px;
|
|
|
- display: flex;
|
|
|
- img {
|
|
|
- width: 90px;
|
|
|
- height: 130px;
|
|
|
- border-radius: 6px;
|
|
|
- }
|
|
|
- .box-con-right {
|
|
|
- width: 237px;
|
|
|
- margin-left: 8px;
|
|
|
- .box-con-tit {
|
|
|
- height: 24px;
|
|
|
- font-size: 16px;
|
|
|
- font-weight: bold;
|
|
|
- color: #000000;
|
|
|
- line-height: 24px;
|
|
|
- margin: 5px 0 10px 0;
|
|
|
- }
|
|
|
- }
|
|
|
- .box-con-today {
|
|
|
- display: flex;
|
|
|
- height: 30px;
|
|
|
- background: #f5f7fa;
|
|
|
- border-radius: 6px;
|
|
|
- width: 142px;
|
|
|
- align-items: center;
|
|
|
- p {
|
|
|
- height: 24px;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 400;
|
|
|
- color: #303133;
|
|
|
- line-height: 24px;
|
|
|
- }
|
|
|
- }
|
|
|
- .box-con-money {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- margin-top: 28px;
|
|
|
- .box-con-num {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- img {
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
- }
|
|
|
- p {
|
|
|
- height: 22px;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: normal;
|
|
|
- color: #c8c9cc;
|
|
|
- line-height: 22px;
|
|
|
- }
|
|
|
- }
|
|
|
- p {
|
|
|
- height: 24px;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 400;
|
|
|
- color: #c8c9cc;
|
|
|
- line-height: 24px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .box-num {
|
|
|
- text-align: right;
|
|
|
- span {
|
|
|
- font-size: 14px;
|
|
|
- font-weight: bold;
|
|
|
- color: #000000;
|
|
|
- }
|
|
|
- .num {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: bold;
|
|
|
- color: #f42202;
|
|
|
- padding-left: 10px;
|
|
|
- }
|
|
|
- }
|
|
|
- .box-bor {
|
|
|
- width: 303px;
|
|
|
- height: 1px;
|
|
|
- background: #f5f7fa;
|
|
|
- margin: 19px 0 16px 0;
|
|
|
- }
|
|
|
- .box-butm {
|
|
|
- display: flex;
|
|
|
- justify-content: flex-end;
|
|
|
- .box-but {
|
|
|
- width: 80px;
|
|
|
- height: 36px;
|
|
|
- border-radius: 8px;
|
|
|
- border: 1px solid #c8c9cc;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 400;
|
|
|
- color: #c8c9cc;
|
|
|
- line-height: 36px;
|
|
|
- text-align: center;
|
|
|
- margin-right: 12px;
|
|
|
- }
|
|
|
- .box-but2 {
|
|
|
- width: 80px;
|
|
|
- height: 36px;
|
|
|
- background: #ff6c00;
|
|
|
- border-radius: 8px;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 400;
|
|
|
- color: #ffffff;
|
|
|
- line-height: 36px;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
- .box-but3 {
|
|
|
- width: 80px;
|
|
|
- height: 36px;
|
|
|
- border-radius: 8px;
|
|
|
- border: 1px solid #ff6c00;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 400;
|
|
|
- color: #ff6c00;
|
|
|
- line-height: 36px;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
+ .flex();
|
|
|
+ padding-left: 16px;
|
|
|
+ .tab-item {
|
|
|
+ font-size: 14px;
|
|
|
+ color: #000;
|
|
|
+ line-height: 24px;
|
|
|
+ padding: 18px 30px 18px 0;
|
|
|
+
|
|
|
+ &.active {
|
|
|
+ color: #ff6c00;
|
|
|
}
|
|
|
}
|
|
|
}
|