Commit 5e061365 by 陈超

A

parent bc8e5030
......@@ -28,7 +28,7 @@
<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)" class="layout_center weight_full" :class="innerTab == idx ? 'zhenti_tab_selected' : 'zhenti_tab_normal'">{{innerOpt.title}}</div>
</div>
<div v-if="innerTab != 1" v-for="(item, i) in opt.options[innerTab].items" :key="i" class="order_image_item layout_v">
<div v-if="innerTab != 1" v-for="(item, i) in listItem(opt)" :key="i" class="order_image_item layout_v">
<div class="layout_h">
<van-image height="72" width="128" fit="cover" src="https://img.yzcdn.cn/vant/cat.jpeg" ></van-image>
<div class="layout_v_b weight_full" style="margin-left: 0.75rem;">
......@@ -111,6 +111,11 @@
return function(index) {
return index == 0 ? '取消订单' : '删除订单'
}
},
listItem: function(opt) {
return function(opt) {
return opt.options ? opt.options[this.innerTab] : opt.items
}
}
},
methods: {
......
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