添加预编译商品详情页
This commit is contained in:
parent
e377702b4a
commit
f415ab9bf3
@ -21,6 +21,12 @@
|
|||||||
"navigationBarTitleText": "商品列表",
|
"navigationBarTitleText": "商品列表",
|
||||||
"enablePullDownRefresh":true
|
"enablePullDownRefresh":true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/goods_detail/goods_detail",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "商品详情页"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/cart/cart",
|
"path": "pages/cart/cart",
|
||||||
@ -74,6 +80,11 @@
|
|||||||
"condition": {
|
"condition": {
|
||||||
"current": 0,
|
"current": 0,
|
||||||
"list": [
|
"list": [
|
||||||
|
{
|
||||||
|
"name": "商品详情页",
|
||||||
|
"path": "pages/goods_detail/goods_detail",
|
||||||
|
"query": "id=33"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "商品列表",
|
"name": "商品列表",
|
||||||
"path": "pages/goods_list/goods_list",
|
"path": "pages/goods_list/goods_list",
|
||||||
|
13
src/pages/goods_detail/goods_detail.vue
Normal file
13
src/pages/goods_detail/goods_detail.vue
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
<view>商品详情页</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
@ -115,7 +115,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 从接口拿数据
|
// 从接口拿数据
|
||||||
async getGoods (){
|
async getGoods (){
|
||||||
const {message} = await this.$u.api.getGoods(Params)
|
const { message } = await this.$u.api.getGoods(Params)
|
||||||
console.log(message)
|
console.log(message)
|
||||||
// 追加数据
|
// 追加数据
|
||||||
this.goods = [...this.goods, ...message.goods]
|
this.goods = [...this.goods, ...message.goods]
|
||||||
|
Loading…
Reference in New Issue
Block a user