Commit d2a278b3 by 刘海龙

444

parent f14d94be
...@@ -20,24 +20,16 @@ ...@@ -20,24 +20,16 @@
<van-tab v-for="(opt, index) in options" :key="index"> <van-tab v-for="(opt, index) in options" :key="index">
<!-- <span slot="title" v-bind:class="tab == index ? 'tab_text_selected' : 'tab_text_normal'"> <span slot="title" v-bind:class="tab == index ? 'tab_text_selected' : 'tab_text_normal'">
{{opt.title}} {{opt.title}}
</span> --> </span>
<div v-for="(innerOpt, idx) in opt.options" :key="idx" @click="onInnerTab(idx)"
class="layout_center weight_full"
:class="innerTab == idx ? 'zhenti_tab_selected' : 'zhenti_tab_normal'">{{innerOpt.title}}
</div>
<div class="layout_v" :class="opt.options ? 'order_inner_tab_container' : ''"> <div class="layout_v" :class="opt.options ? 'order_inner_tab_container' : ''">
<div v-if="opt.options" class="layout_h order_inner_tab" style="background: white;z-index: 220;"> <div v-if="opt.options" class="layout_h order_inner_tab" style="background: white;z-index: 220;">
<!-- <div v-for="(innerOpt, idx) in opt.options" :key="idx" @click="onInnerTab(idx)" <div v-for="(innerOpt, idx) in opt.options" :key="idx" @click="onInnerTab(idx)"
class="layout_center weight_full" class="layout_center weight_full"
:class="innerTab == idx ? 'zhenti_tab_selected' : 'zhenti_tab_normal'">{{innerOpt.title}} :class="innerTab == idx ? 'zhenti_tab_selected' : 'zhenti_tab_normal'">{{innerOpt.title}}
</div> --> </div>
<span slot="title" v-bind:class="tab == index ? 'tab_text_selected' : 'tab_text_normal'">
{{opt.title}}
</span>
</div> </div>
<template v-for="(item, i) in listItem(opt)"> <template v-for="(item, i) in listItem(opt)">
<!-- 带图 --> <!-- 带图 -->
...@@ -106,48 +98,48 @@ ...@@ -106,48 +98,48 @@
tab: 0, tab: 0,
innerTab: 0, innerTab: 0,
options: [{ options: [{
title: "待支付", title: "课程订单",
v: 1, v: 1,
options: [{ options: [{
title: "课程订单", title: "待支付",
v: 'course', v: 'course',
items: [] items: []
}, { }, {
title: "考题订单", title: "已完成",
v: 'exams', v: 'exams',
items: [] items: []
}, { }, {
title: "商城订单", title: "已取消",
items: [] items: []
}] }]
}, { }, {
title: "已完成", title: "考题订单",
v: 3, v: 3,
options: [{ options: [{
title: "课程订单", title: "待支付",
v: 'course', v: 'course',
items: [] items: []
}, { }, {
title: "考题订单", title: "已完成",
v: 'exams', v: 'exams',
items: [] items: []
}, { }, {
title: "商城订单", title: "已取消",
items: [] items: []
}] }]
}, { }, {
title: "已取消", title: "商城订单",
v: 2, v: 2,
options: [{ options: [{
title: "课程订单", title: "待支付",
v: 'course', v: 'course',
items: [] items: []
}, { }, {
title: "考题订单", title: "已完成",
v: 'exams', v: 'exams',
items: [] items: []
}, { }, {
title: "商城订单", title: "已取消",
items: [] items: []
}] }]
}] }]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment