Commit 8bb2b13a by 胡悦

提交

1 parent d691d89a
...@@ -50,9 +50,4 @@ ...@@ -50,9 +50,4 @@
.icon-store { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;} .icon-store { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -942rpx -650rpx;} .icon-tool-file { width: 60rpx; height: 60rpx; background-position: -942rpx -650rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -942rpx -720rpx;} .icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -942rpx -720rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;} .icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;}
.icon-aito { width: 320rpx; height: 36rpx; background-position: 0rpx -734rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;}
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -1016rpx -576rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -750rpx -638rpx;}
\ No newline at end of file \ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-05-30 14:40:39 * @Date: 2024-05-30 14:40:39
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-06-04 15:08:43 * @LastEditTime: 2024-06-04 16:17:11
--> -->
<template> <template>
<view style="position: relative;"> <view style="position: relative;">
...@@ -31,6 +31,48 @@ ...@@ -31,6 +31,48 @@
<view class="text" :class="[firstIndex == index ? `active` : '']">{{ i.tabName }}</view> <view class="text" :class="[firstIndex == index ? `active` : '']">{{ i.tabName }}</view>
</view> </view>
</view> </view>
<template v-if="madiaId == 8">
<!-- 套餐 无分组 -->
<view class="content" id="content">
<template v-if="views[firstIndex].noGroupReceptionSourceDetailInfoList.length > 0">
<view class="product-list" :key="firstIndex" :class="direction" style="height: 1120rpx;">
<view class="product-item" v-for="(it, ids) in views[firstIndex].noGroupReceptionSourceDetailInfoList" :key="ids" @click="goDetail(it)">
<image
:src="it.thumbnail"
mode="scaleToFill"
class="product-img"
/>
</view>
<view class="product-item" v-for="(it, ids) in views[firstIndex].noGroupReceptionSourceDetailInfoList" :key="ids" @click="goDetail(it)">
<image
:src="it.thumbnail"
mode="scaleToFill"
class="product-img"
/>
</view>
<view class="product-item" v-for="(it, ids) in views[firstIndex].noGroupReceptionSourceDetailInfoList" :key="ids" @click="goDetail(it)">
<image
:src="it.thumbnail"
mode="scaleToFill"
class="product-img"
/>
</view>
</view>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/boutique/nothing.png"
/>
<view>暂无产品内容</view>
</view>
</template>
</view>
</template>
<template v-else>
<!-- 其他 有分组 -->
<view class="content" id="content"> <view class="content" id="content">
<view class="second-tab" ref="secondTab" v-if="views[firstIndex].receptionSourceDetailInfoList.length > 0"> <view class="second-tab" ref="secondTab" v-if="views[firstIndex].receptionSourceDetailInfoList.length > 0">
<view <view
...@@ -47,7 +89,7 @@ ...@@ -47,7 +89,7 @@
</view> </view>
</view> </view>
<template v-if="views[firstIndex].receptionSourceDetailInfoList.length > 0 && views[firstIndex].receptionSourceDetailInfoList[secondIndex].receptionSourceDetailInfoList"> <template v-if="views[firstIndex].receptionSourceDetailInfoList.length > 0 && views[firstIndex].receptionSourceDetailInfoList[secondIndex].receptionSourceDetailInfoList">
<view class="product-list left" :style="{height: views[firstIndex].receptionSourceDetailInfoList ? '958rpx' : '1032rpx'}"> <view class="product-list" :key="firstIndex+secondIndex" :class="direction" :style="{height: views[firstIndex].receptionSourceDetailInfoList ? '962rpx' : '1032rpx'}">
<view class="product-item" v-for="(itm, idx) in views[firstIndex].receptionSourceDetailInfoList[secondIndex].receptionSourceDetailInfoList" :key="idx" @click="goDetail(itm)"> <view class="product-item" v-for="(itm, idx) in views[firstIndex].receptionSourceDetailInfoList[secondIndex].receptionSourceDetailInfoList" :key="idx" @click="goDetail(itm)">
<image <image
:src="itm.thumbnail" :src="itm.thumbnail"
...@@ -67,6 +109,8 @@ ...@@ -67,6 +109,8 @@
</view> </view>
</template> </template>
</view> </view>
</template>
</view> </view>
</view> </view>
<image <image
...@@ -86,6 +130,7 @@ export default { ...@@ -86,6 +130,7 @@ export default {
type: Array, type: Array,
default: () => [] default: () => []
}, },
madiaId: String,
show: Boolean show: Boolean
}, },
data () { data () {
...@@ -95,7 +140,9 @@ export default { ...@@ -95,7 +140,9 @@ export default {
firstClass: ['first-nav', 'second-nav', 'second-nav'], firstClass: ['first-nav', 'second-nav', 'second-nav'],
secondIndex: 0, secondIndex: 0,
animationList: [require('@/assets/images/boutique/animation-m5.png'), require('@/assets/images/boutique/animation-m7.png'), require('@/assets/images/boutique/animation-m9.png')], animationList: [require('@/assets/images/boutique/animation-m5.png'), require('@/assets/images/boutique/animation-m7.png'), require('@/assets/images/boutique/animation-m9.png')],
imgKey: Date.now() imgKey: Date.now(),
direction: 'left',
productKey: Date.now()
} }
}, },
computed: { computed: {
...@@ -116,8 +163,15 @@ export default { ...@@ -116,8 +163,15 @@ export default {
}, },
methods: { methods: {
changeIndex(index, name) { changeIndex(index, name) {
console.log(index, name) this.direction = ''
console.log(index, name, this[name])
if (this[name] < index) {
this.direction = 'right'
} else {
this.direction = 'left'
}
this[name] = index this[name] = index
console.log(index, name, this[name], '====')
if (name === 'firstIndex') { if (name === 'firstIndex') {
this.secondIndex = 0 this.secondIndex = 0
this.imgKey = Date.now() this.imgKey = Date.now()
...@@ -233,6 +287,7 @@ export default { ...@@ -233,6 +287,7 @@ export default {
margin-top: -48rpx; margin-top: -48rpx;
border-radius: 48rpx; border-radius: 48rpx;
height: calc(100% - 128rpx); height: calc(100% - 128rpx);
overflow-x: hidden;
.second-tab { .second-tab {
display: inline-flex; display: inline-flex;
background: #f2f2f2; background: #f2f2f2;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!