商品跳转
This commit is contained in:
parent
52f82f2936
commit
0fa30a96b9
@ -9,6 +9,12 @@
|
||||
"navigationBarTitleText": "分类"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/goods_list/goods_list",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品列表"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
|
@ -18,10 +18,10 @@
|
||||
<view class="category_group_title">{{item.cat_name}}</view>
|
||||
<!-- 2.2.2 详情列表 -->
|
||||
<view class="category_group_list">
|
||||
<view class="category_item" v-for="item2 in item.children" :key="item2.cat_name">
|
||||
<navigator :url="'/pages/goods_list/goods_list?id=${item2.cat_id}'" class="category_item" v-for="item2 in item.children" :key="item2.cat_name">
|
||||
<image :src="item2.cat_icon" mode="widthFix"></image>
|
||||
<view class="goods_name">{{item2.cat_name}}</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
@ -38,7 +38,7 @@ export default {
|
||||
// 左列表
|
||||
menus:[],
|
||||
// 当前左列表选中项
|
||||
menuCurrent: 0,
|
||||
menuCurrent: 0,
|
||||
// 右列表
|
||||
goods: [],
|
||||
// 滚动到顶部
|
||||
|
15
src/pages/goods_list/goods_list.vue
Normal file
15
src/pages/goods_list/goods_list.vue
Normal file
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<view>商品列表</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
onLoad (option){
|
||||
console.log(option)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user