diff --git a/src/components/slide/BVideo.vue b/src/components/slide/BVideo.vue
index 474622e..187656c 100644
--- a/src/components/slide/BVideo.vue
+++ b/src/components/slide/BVideo.vue
@@ -163,7 +163,7 @@ export default {
}
},
mounted() {
- console.log('video', this.localItem.id)
+ // console.log('video', this.localItem.id)
// console.log(this.commentVisible)
this.height = document.body.clientHeight
this.width = document.body.clientWidth
diff --git a/src/components/slide/SlideVerticalInfinite.vue b/src/components/slide/SlideVerticalInfinite.vue
index b4696c2..89203a6 100644
--- a/src/components/slide/SlideVerticalInfinite.vue
+++ b/src/components/slide/SlideVerticalInfinite.vue
@@ -12,7 +12,7 @@ const props = defineProps({
index: {
type: Number,
default: () => {
- return 0
+ return -1
}
},
render: {
@@ -48,7 +48,7 @@ const props = defineProps({
default: () => false
},
})
-const emit = defineEmits(['update:index', 'loadMore'])
+const emit = defineEmits(['update:index', 'loadMore', 'refresh'])
const appInsMap = new Map()
const itemClassName = 'slide-item'
@@ -116,13 +116,16 @@ watch(
watch(
() => props.active,
(newVal, oldVal) => {
- console.log('newVal', newVal, 'oldVal', oldVal)
+ // console.log('newVal', newVal, 'oldVal', oldVal)
+ if (newVal && !props.list.length) {
+ return emit('refresh')
+ }
bus.emit(EVENT_KEY.SINGLE_CLICK_BROADCAST, {
uniqueId: props.uniqueId,
index: state.localIndex,
type: newVal === false ? EVENT_KEY.ITEM_STOP : EVENT_KEY.ITEM_PLAY
})
- })
+ }, {immediate: true})
onMounted(() => {
slideInit(wrapperEl.value, state, SlideType.VERTICAL)
diff --git a/src/pages/home/components/IndicatorHome.vue b/src/pages/home/components/IndicatorHome.vue
index 75be09e..e629410 100644
--- a/src/pages/home/components/IndicatorHome.vue
+++ b/src/pages/home/components/IndicatorHome.vue
@@ -17,9 +17,10 @@
社区
-
- 关注
+
+
关注
+
商城
diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue
index 454c564..1f5787b 100644
--- a/src/pages/home/index.vue
+++ b/src/pages/home/index.vue
@@ -3,7 +3,6 @@
-
+
-
- 关注
-
+
-
-
- getSlide4Data(true)"
- >
-
-
+
@@ -116,19 +96,13 @@
@@ -358,11 +213,6 @@ function render(item, itemIndex, play, position) {
height: 100%;
overflow: hidden;
- .big {
- font-weight: bold;
- font-size: 100rem;
- }
-
.slide-content {
width: 100%;
height: 100%;
diff --git a/src/pages/home/slide/Slide0.vue b/src/pages/home/slide/Slide0.vue
new file mode 100644
index 0000000..07f8c90
--- /dev/null
+++ b/src/pages/home/slide/Slide0.vue
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+

+
美食
+
+
+

+
休闲娱乐
+
+
+

+
游玩
+
+
+

+
丽人/美发
+
+
+

+
住宿
+
+
+

+
游玩
+
+
+

+
丽人/美发
+
+
+

+
住宿
+
+
+
+
+ 附近吃喝玩乐
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/home/slide/Slide2.vue b/src/pages/home/slide/Slide2.vue
new file mode 100644
index 0000000..2e04453
--- /dev/null
+++ b/src/pages/home/slide/Slide2.vue
@@ -0,0 +1,149 @@
+
+
+
+
+
+

+
美食美食美食美食美食美食美食
+
+
+
+ 1个直播
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/home/slide/Slide1.vue b/src/pages/home/slide/Slide3.vue
similarity index 98%
rename from src/pages/home/slide/Slide1.vue
rename to src/pages/home/slide/Slide3.vue
index 8fca3ef..58f8f99 100644
--- a/src/pages/home/slide/Slide1.vue
+++ b/src/pages/home/slide/Slide3.vue
@@ -94,9 +94,7 @@ const p = {
}
}
-const render = useSlideListItemRender({...props.cbs, ...p})
const subTypeRef = ref(null)
-const listRef = ref(null)
const state = reactive({
index: 0,
subType: -1,
diff --git a/src/pages/home/slide/Slide4.vue b/src/pages/home/slide/Slide4.vue
new file mode 100644
index 0000000..3451b8e
--- /dev/null
+++ b/src/pages/home/slide/Slide4.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/home/slide/SlideList.vue b/src/pages/home/slide/SlideList.vue
index baf577d..c8b279c 100644
--- a/src/pages/home/slide/SlideList.vue
+++ b/src/pages/home/slide/SlideList.vue
@@ -17,11 +17,10 @@