i
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="head-wrapper" :style="'top:' + statusHeight + 'px'">
|
||||
<view
|
||||
class="head-wrapper"
|
||||
:style="{
|
||||
top: statusHeight + 'px',
|
||||
}"
|
||||
>
|
||||
<view class="head-menu">
|
||||
<Left class="iconfont" @click="returns" />
|
||||
<Home class="iconfont" @click="goHome" />
|
||||
@@ -57,13 +62,13 @@ import {
|
||||
navigateTo,
|
||||
} from "@tarojs/taro";
|
||||
import { Left, Home } from "@nutui/icons-vue-taro";
|
||||
var statusBarHeight = (getSystemInfoSync().statusBarHeight as number);
|
||||
var statusBarHeight = getSystemInfoSync().statusBarHeight as number;
|
||||
|
||||
console.log(statusBarHeight);
|
||||
|
||||
const statusHeight = ref<number>(statusBarHeight);
|
||||
|
||||
const swiperList = ref([]);
|
||||
// const swiperList = ref([]);
|
||||
|
||||
useLoad((options) => {
|
||||
console.log(options);
|
||||
@@ -81,7 +86,7 @@ const goHome = () => {
|
||||
|
||||
const toGame = () => {
|
||||
navigateTo({
|
||||
url: "/pages/game/gamehome/index",
|
||||
url: "/pages/game/gameview/index",
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -1,43 +1,40 @@
|
||||
<template>
|
||||
<view>
|
||||
<view
|
||||
v-for="item in listVal"
|
||||
:key="item.id"
|
||||
class="list-box"
|
||||
:class="{ listBoxAnim: item.status }"
|
||||
@click="toDetails(item.id)"
|
||||
>
|
||||
<view>摇骰子</view>
|
||||
</view>
|
||||
<web-view :src="url"></web-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { useLoad, navigateTo } from "@tarojs/taro";
|
||||
import { useLoad } from "@tarojs/taro";
|
||||
|
||||
const listVal = ref<any>([]);
|
||||
// const listVal = ref<any>([]);
|
||||
|
||||
useLoad(() => {
|
||||
getList();
|
||||
const url = ref("");
|
||||
|
||||
useLoad((options) => {
|
||||
console.log(options);
|
||||
// getList();
|
||||
url.value = `https://www.jdt168.com/public/#/pages/index/index?uid=${options.uid}`;
|
||||
console.log(url.value);
|
||||
});
|
||||
|
||||
const getList = () => {
|
||||
for (let i = 0; i < 1; i++) {
|
||||
setTimeout(() => {
|
||||
listVal.value.push({
|
||||
id: i,
|
||||
status: true,
|
||||
});
|
||||
}, 50 * i);
|
||||
}
|
||||
};
|
||||
// const getList = () => {
|
||||
// for (let i = 0; i < 1; i++) {
|
||||
// setTimeout(() => {
|
||||
// listVal.value.push({
|
||||
// id: i,
|
||||
// status: true,
|
||||
// });
|
||||
// }, 50 * i);
|
||||
// }
|
||||
// };
|
||||
|
||||
const toDetails = (id: string) => {
|
||||
navigateTo({
|
||||
url: "/pages/game/gamedetail/index?id=" + id,
|
||||
});
|
||||
};
|
||||
// const toDetails = (id: string) => {
|
||||
// navigateTo({
|
||||
// url: "/pages/game/gamedetail/index?id=" + id,
|
||||
// });
|
||||
// };
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: "GameView",
|
||||
});
|
||||
|
||||
@@ -1,13 +1,22 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
<web-view
|
||||
style="height: 100vh; width: 100vw"
|
||||
:src="`https://www.jdt168.com/public/?uid=${user.uid}`"
|
||||
></web-view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { getStorageSync, useLoad } from "@tarojs/taro";
|
||||
import { WebView } from "@tarojs/components";
|
||||
|
||||
const gameUrl = ref("");
|
||||
|
||||
const user = getStorageSync("userInfo");
|
||||
|
||||
useLoad(() => {
|
||||
console.log(user);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
</style>
|
||||
<style lang="scss"></style>
|
||||
|
||||
Reference in New Issue
Block a user