feat: add back-to-top component to multiple pages and import scroll mixin

add to-top component to card.vue, card_buy.vue, diy.vue and member index.vue, import scroll mixin for diy and member index pages to support scroll to top functionality
This commit is contained in:
2026-07-15 17:13:45 +08:00
parent d7bc1165f7
commit 4c58db0710
4 changed files with 8 additions and 2 deletions

View File

@@ -51,6 +51,7 @@
<!-- 小程序隐私协议 -->
<privacy-popup ref="privacyPopup"></privacy-popup>
<!-- #endif -->
<to-top v-if="showTop" @toTop="scrollToTopNative()"></to-top>
</view>
</view>
</template>
@@ -58,10 +59,11 @@
<script>
import diyJs from '@/common/js/diy.js';
import scroll from '@/common/js/scroll-view.js';
import microPageJs from './public/js/diy.js';
export default {
mixins: [diyJs, microPageJs]
mixins: [diyJs, scroll, microPageJs]
};
</script>