摘要:
分类点击到商品指定位置 data添加currentIndex data() { return { active: 0, categories: [], positions: [], currentIndex: 0 }; mounted页面加载完成计算positions mounted(){ cons 阅读全文
摘要:
商品滚动 mounted(){ const categories = kfc['categories']; // for (let index=0; index < categories.length; index++){ // const category = categories[index]; 阅读全文
摘要:
商品分类滚动 <script> import { NavBar, Tab, Tabs } from "vant"; // better-scroll import BScroll from "better-scroll"; import kfc from '@/data/kfc'; export d 阅读全文
摘要:
导航栏和header布局 <style scoped> .merchant-container >>> .van-nav-bar { background: none; } .merchant-container >>> .van-hairline--bottom::after { border: 阅读全文