添加预编译商品详情页

This commit is contained in:
jqtmviyu@gmail.com 2021-02-25 23:05:45 +08:00
parent e377702b4a
commit f415ab9bf3
3 changed files with 25 additions and 1 deletions

View File

@ -22,6 +22,12 @@
"enablePullDownRefresh":true "enablePullDownRefresh":true
} }
}, },
{
"path": "pages/goods_detail/goods_detail",
"style": {
"navigationBarTitleText": "商品详情页"
}
},
{ {
"path": "pages/cart/cart", "path": "pages/cart/cart",
"style": { "style": {
@ -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",

View File

@ -0,0 +1,13 @@
<template>
<view>商品详情页</view>
</template>
<script>
export default {
}
</script>
<style>
</style>

View File

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