aamin hace 1 año
padre
commit
c8792c7407
Se han modificado 3 ficheros con 22 adiciones y 6 borrados
  1. 12 1
      src/views/HomeView.vue
  2. 3 5
      src/views/MoreContent.vue
  3. 7 0
      src/views/ShuangGouSheSeDetail.vue

+ 12 - 1
src/views/HomeView.vue

@@ -554,13 +554,20 @@
       @go-to-slide="goToSlide"
     />
     <OperationTip
-      v-if="isShowOperationTip"
+      v-if="isStartupOver"
       class="operation-tip"
       text="向左划动"
       direction="h"
       :is-show="isShowOperationTip"
     />
 
+    <OperationTip
+      v-if="isBackFormOther"
+      class="operation-tip"
+      text="向左划动"
+      direction="h"
+    />
+
     <div
       ref="scrollerEl"
       class="scroller"
@@ -689,8 +696,12 @@ function onScroll() {
   scrollerElScrollTop.value = scrollerEl.value.scrollTop
   // console.log('当前滚动比例', scrollerElScrollTop.value / summaryHideAt, scrollerEl.value.scrollTop / scrollerEl.value.scrollHeight)
 }
+const isBackFormOther = ref(false)
 onMounted(() => {
   scrollerEl.value.addEventListener('scroll', onScroll)
+  if (window.location.href.includes('?back=1')) {
+    isBackFormOther.value = true
+  }
 })
 onBeforeUnmount(() => {
   scrollerEl.value.removeEventListener('scroll', onScroll)

+ 3 - 5
src/views/MoreContent.vue

@@ -308,7 +308,7 @@
             class="online-box"
             @click="() => {
               store.state.haveShownStartup = false
-              router.replace('/')
+              router.replace('/?back=1')
             }"
           >
             重新开始
@@ -340,9 +340,7 @@
     /> -->
     <BtnBack
       @click="
-        router.replace({
-          name: 'HomeView',
-        })
+        router.replace('/?back=1')
       "
     />
 
@@ -1341,7 +1339,7 @@ onMounted(() => {
         top: 0;
         height: 100%;
         left: calc(
-          870px * v-bind("windowHeight") / v-bind("windowHeightDesign")
+          820px * v-bind("windowHeight") / v-bind("windowHeightDesign")
         );
       }
 

+ 7 - 0
src/views/ShuangGouSheSeDetail.vue

@@ -155,6 +155,13 @@ const curPercentage = computed(() => {
         @click="goBack"
       />
 
+      <OperationTip
+        id="operationH"
+        class="operation-h"
+        text=""
+        direction="h"
+      />
+
       <!-- <OperationTip
         class="operation-h"
         color="green"