添加预编译商品详情页

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

@ -21,6 +21,12 @@
"navigationBarTitleText": "商品列表",
"enablePullDownRefresh":true
}
},
{
"path": "pages/goods_detail/goods_detail",
"style": {
"navigationBarTitleText": "商品详情页"
}
},
{
"path": "pages/cart/cart",
@ -74,6 +80,11 @@
"condition": {
"current": 0,
"list": [
{
"name": "商品详情页",
"path": "pages/goods_detail/goods_detail",
"query": "id=33"
},
{
"name": "商品列表",
"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: {
//
async getGoods (){
const {message} = await this.$u.api.getGoods(Params)
const { message } = await this.$u.api.getGoods(Params)
console.log(message)
//
this.goods = [...this.goods, ...message.goods]