赞
踩
修改json文件并且引入搜索框
- {
- "usingComponents": {
- "search-input":"../../components/SearchInput/SearchInput"
- },
- "navigationBarTitleText": "分类"
- }
主要用到了scroll-view
- <view class="cates">
- <!-- 首页搜索框 -->
- <search-input></search-input>
- <view class="cates_container">
- <!-- 左侧 -->
- <scroll-view scroll-y class="left_menu">
- <view class="menu_item {{index == curr ? 'active':''}}" wx:for="{{leftcategoryList}}" wx:key="*this" bindtap="getgoods" data-index="{{index}}">
- {{item}}
- </view>
- </scroll-view>
- <!-- 右侧 -->
- <scroll-view scroll-y class="right_menu">
- <view class="goods_group" wx:for="{{rightcategoryList}}" wx:for-item="goods" wx:for-index="i" wx:key="cat_id">
- <view class="goods_title">声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/247397推荐阅读
相关标签
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。