添加游戏详情界面
This commit is contained in:
parent
d1099fd7b3
commit
7c337f2288
@ -18,6 +18,7 @@ export default class extends wepy.app {
|
|||||||
pages: [
|
pages: [
|
||||||
'pages/index',
|
'pages/index',
|
||||||
'pages/game',
|
'pages/game',
|
||||||
|
'pages/gameInfo',
|
||||||
'pages/login'
|
'pages/login'
|
||||||
],
|
],
|
||||||
window: {
|
window: {
|
||||||
|
24
src/pages/gameInfo.wpy
Normal file
24
src/pages/gameInfo.wpy
Normal 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>
|
@ -55,7 +55,7 @@
|
|||||||
methods = {
|
methods = {
|
||||||
gameTap(url, e) {
|
gameTap(url, e) {
|
||||||
wepy.navigateTo({
|
wepy.navigateTo({
|
||||||
url: '/pages/game?link=' + url
|
url: '/pages/gameInfo?id=' + url
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user