商品跳转
This commit is contained in:
parent
52f82f2936
commit
0fa30a96b9
@ -9,6 +9,12 @@
|
|||||||
"navigationBarTitleText": "分类"
|
"navigationBarTitleText": "分类"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/goods_list/goods_list",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "商品列表"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
@ -18,10 +18,10 @@
|
|||||||
<view class="category_group_title">{{item.cat_name}}</view>
|
<view class="category_group_title">{{item.cat_name}}</view>
|
||||||
<!-- 2.2.2 详情列表 -->
|
<!-- 2.2.2 详情列表 -->
|
||||||
<view class="category_group_list">
|
<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>
|
<image :src="item2.cat_icon" mode="widthFix"></image>
|
||||||
<view class="goods_name">{{item2.cat_name}}</view>
|
<view class="goods_name">{{item2.cat_name}}</view>
|
||||||
</view>
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
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