商品跳转

This commit is contained in:
jqtmviyu@gmail.com 2021-02-25 17:06:12 +08:00
parent 52f82f2936
commit 0fa30a96b9
3 changed files with 24 additions and 3 deletions

View File

@ -9,6 +9,12 @@
"navigationBarTitleText": "分类"
}
},
{
"path": "pages/goods_list/goods_list",
"style": {
"navigationBarTitleText": "商品列表"
}
},
{
"path": "pages/index/index",
"style": {

View File

@ -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>

View File

@ -0,0 +1,15 @@
<template>
<view>商品列表</view>
</template>
<script>
export default {
onLoad (option){
console.log(option)
}
}
</script>
<style>
</style>