Commit caf8e60b by 李伟康

commit 提交

1 parent e8319d2b
......@@ -16,6 +16,8 @@
</view> -->
<view class="wrapper">
<view class="wrapper-content">
<template v-if="views && views[firstIndex] && views[firstIndex].receptionSourceDetailInfoList">
<view class="first-tab">
<view
class="tab-item"
......@@ -30,20 +32,24 @@
]"
:style="{ left: firstLeft[index] }"
></view>
<view class="text" :class="[firstIndex == index ? `active` : '']">{{
<view
class="text"
:class="[firstIndex == index ? `active` : '']"
>{{
i.tabName
}}</view>
</view>
</view>
<template v-if="madiaId == 2">
<!-- 套餐 无分组 -->
<view class="content" id="content">
<template
v-if="
<view
class="content"
id="content"
>
<template v-if="
views[firstIndex].noGroupReceptionSourceDetailInfoList.length >
0
"
>
">
<view
class="product-list"
:key="firstIndex"
......@@ -78,7 +84,10 @@
</template>
<template v-else>
<!-- 其他 有分组 -->
<view class="content" id="content">
<view
class="content"
id="content"
>
<view
class="second-tab"
ref="secondTab"
......@@ -94,13 +103,11 @@
>{{ item.tabName }}
</view>
</view>
<template
v-if="
<template v-if="
views[firstIndex].receptionSourceDetailInfoList.length > 0 &&
views[firstIndex].receptionSourceDetailInfoList[secondIndex]
.receptionSourceDetailInfoList
"
>
">
<view
class="product-list"
:key="firstIndex + secondIndex"
......@@ -138,6 +145,16 @@
</template>
</view>
</template>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/boutique/nothing.png"
/>
<view>暂无产品内容</view>
</view>
</template>
</view>
</view>
<image
......@@ -177,10 +194,10 @@ export default {
},
},
watch: {
show(val) {
show (val) {
if (val) this.imgKey = Date.now()
},
watchStatus() {
watchStatus () {
console.log(111)
this.firstIndex = 0
this.secondIndex = 0
......@@ -188,7 +205,7 @@ export default {
}
},
methods: {
changeIndex(index, name) {
changeIndex (index, name) {
if (this[name] == index) return // 点击同一个
this.direction = ''
console.log(index, name, this[name])
......@@ -209,7 +226,7 @@ export default {
const data = await uni.$api.boutiqueApi.findSoureList({})
console.log(data)
},
goDetail(data) {
goDetail (data) {
console.log(data)
uni.navigateTo({
url: `/pages/boutique/productDetail?detailUrl=${data.detailUrl}`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!