添加游戏详情界面

This commit is contained in:
zhl 2019-02-18 15:16:42 +08:00
parent d1099fd7b3
commit 7c337f2288
3 changed files with 26 additions and 1 deletions

View File

@ -18,6 +18,7 @@ export default class extends wepy.app {
pages: [
'pages/index',
'pages/game',
'pages/gameInfo',
'pages/login'
],
window: {

24
src/pages/gameInfo.wpy Normal file
View File

@ -0,0 +1,24 @@
<style lang="less">
</style>
<template>
<view class="container">
</view>
</template>
<script>
import wepy from 'wepy'
export default class GameInfoPage extends wepy.page {
components = {};
data = {
id: ''
};
methods = {};
onLoad(params) {
this.id = decodeURIComponent(params.id);
console.log(this.id);
}
}
</script>

View File

@ -55,7 +55,7 @@
methods = {
gameTap(url, e) {
wepy.navigateTo({
url: '/pages/game?link=' + url
url: '/pages/gameInfo?id=' + url
})
},
};