yuanyuan 2 år sedan
förälder
incheckning
45388fc933
5 ändrade filer med 18 tillägg och 3 borttagningar
  1. 1 1
      .env.development
  2. BIN
      src/assets/top50.jpg
  3. BIN
      src/assets/top50.png
  4. 16 1
      src/views/product/MetaDomain.vue
  5. 1 1
      src/views/user/Rank.vue

+ 1 - 1
.env.development

@@ -1,4 +1,4 @@
-VUE_APP_BASE_URL=https://test.raex.vip/
+VUE_APP_BASE_URL=https://www.raex.vip/
 NODE_ENV=development
 VUE_APP_PUBLIC_PATH=/
 ASSETS_PATH=raex

BIN
src/assets/top50.jpg


BIN
src/assets/top50.png


+ 16 - 1
src/views/product/MetaDomain.vue

@@ -138,6 +138,7 @@
             <!-- </van-popup> -->
         </div>
         <div class="page_listone_bg" v-if="show" @click="showStatus"></div>
+        <img src="../../assets/icon_zhiding.png" @click="goTop" class="goTop" v-if="bodyScroll > 100" alt="" />
     </div>
 </template>
 
@@ -145,7 +146,7 @@
 import ProductInfo from '../../components/product/productInfo.vue';
 export default {
 	name: 'metaDomain',
-	inject: ['setKeeps', 'scrollWrapper', 'changeScroll'],
+	inject: ['setKeeps', 'scrollWrapper', 'changeScroll','bodyScroll'],
 	data() {
 		return {
 			domainWidth: '0px',
@@ -224,6 +225,9 @@ export default {
 				this.$refs.fieldRef.blur();
 			}
 		},
+        goTop() {
+			this.changeScroll(0, true);
+		},
 		priceOrder() {
 			this.source = !this.source;
 			this.getList(true);
@@ -917,4 +921,15 @@ export default {
     z-index: 2001;
     background: rgba(0, 0, 0, 0.2);
 }
+
+.goTop {
+    position: fixed;
+    right: 16px;
+    bottom: 70px;
+    bottom: calc(env(safe-area-inset-bottom) + 70px);
+    width: 44px;
+    height: 44px;
+    display: block;
+    z-index: 20;
+}
 </style>

+ 1 - 1
src/views/user/Rank.vue

@@ -1,6 +1,6 @@
 <template>
     <div class="rank">
-        <img src="../../assets/top50.png" class="top-img" alt="" />
+        <img src="../../assets/top50.jpg" class="top-img" alt="" />
         <!-- <div class="top-text">
             <div class="text1">TOP50</div>
             <div class="text2">探索官</div>