添加价格列表页面

This commit is contained in:
zhl 2021-12-13 15:24:19 +08:00
parent 09aace8190
commit 166f3b71f2
3 changed files with 54 additions and 1 deletions

View File

@ -34,6 +34,12 @@
"enablePullDownRefresh": true,
"navigationStyle": "custom"
}
},
{
"path": "pages/info/priceList",
"style": {
"navigationBarTitleText": "价格列表"
}
}
],
"tabBar": {

View File

@ -24,7 +24,7 @@
<price-cell></price-cell>
</uni-list-item>
<uni-list-item>
<text class="more-price-cell">更多商店价格</text>
<text class="more-price-cell" @click="toMorePrice">更多商店价格</text>
</uni-list-item>
</uni-list>
</view>
@ -76,6 +76,11 @@ export default class extends Vue{
private onClickBack() {
}
private toMorePrice() {
uni.navigateTo({
url: '/pages/info/priceList?gameId='
});
}
}
</script>

View File

@ -0,0 +1,42 @@
<template>
<view class="page">
<view class="price-list">
<uni-list>
<uni-list-item v-for="item in priceList" >
<price-cell></price-cell>
</uni-list-item>
</uni-list>
</view>
</view>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'
import PriceCell from '@/components/PriceCell/index.vue'
@Component({
name: 'GameInfo',
components: {
PriceCell,
}
})
export default class extends Vue{
private priceList: string[] = ['1', '2', '3']
onLoad() {
}
async created() {
uni.setNavigationBarTitle({
title: "游戏详情"
});
}
private onClickBack() {
}
}
</script>
<style>
</style>