This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: "游戏详情",
|
||||
navigationStyle: "custom",
|
||||
navigationBarTitleText: '游戏详情',
|
||||
navigationStyle: 'custom',
|
||||
});
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
class="head-wrapper"
|
||||
:style="{
|
||||
top: statusHeight + 'px',
|
||||
}"
|
||||
>
|
||||
}">
|
||||
<view class="head-menu">
|
||||
<Left class="iconfont" @click="returns" />
|
||||
<Home class="iconfont" @click="goHome" />
|
||||
@@ -15,31 +14,26 @@
|
||||
class="swiper"
|
||||
:pagination-visible="true"
|
||||
pagination-color="#426543"
|
||||
auto-play="3000"
|
||||
>
|
||||
auto-play="3000">
|
||||
<nut-swiper-item>
|
||||
<image
|
||||
src="https://storage.360buyimg.com/jdc-article/NutUItaro34.jpg"
|
||||
alt=""
|
||||
/>
|
||||
alt="" />
|
||||
</nut-swiper-item>
|
||||
<nut-swiper-item>
|
||||
<image
|
||||
src="https://storage.360buyimg.com/jdc-article/NutUItaro2.jpg"
|
||||
alt=""
|
||||
/>
|
||||
alt="" />
|
||||
</nut-swiper-item>
|
||||
<nut-swiper-item>
|
||||
<image
|
||||
src="https://storage.360buyimg.com/jdc-article/welcomenutui.jpg"
|
||||
alt=""
|
||||
/>
|
||||
alt="" />
|
||||
</nut-swiper-item>
|
||||
<nut-swiper-item>
|
||||
<image
|
||||
src="https://storage.360buyimg.com/jdc-article/fristfabu.jpg"
|
||||
alt=""
|
||||
/>
|
||||
alt="" />
|
||||
</nut-swiper-item>
|
||||
</nut-swiper>
|
||||
<view class="box">
|
||||
@@ -53,15 +47,15 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import {ref} from 'vue';
|
||||
import {
|
||||
useLoad,
|
||||
getSystemInfoSync,
|
||||
navigateBack,
|
||||
switchTab,
|
||||
navigateTo,
|
||||
} from "@tarojs/taro";
|
||||
import { Left, Home } from "@nutui/icons-vue-taro";
|
||||
} from '@tarojs/taro';
|
||||
import {Left, Home} from '@nutui/icons-vue-taro';
|
||||
var statusBarHeight = getSystemInfoSync().statusBarHeight as number;
|
||||
|
||||
console.log(statusBarHeight);
|
||||
@@ -70,7 +64,7 @@ const statusHeight = ref<number>(statusBarHeight);
|
||||
|
||||
// const swiperList = ref([]);
|
||||
|
||||
useLoad((options) => {
|
||||
useLoad(options => {
|
||||
console.log(options);
|
||||
});
|
||||
|
||||
@@ -80,13 +74,13 @@ const returns = () => {
|
||||
|
||||
const goHome = () => {
|
||||
switchTab({
|
||||
url: "/pages/index/index",
|
||||
url: '/pages/index/index',
|
||||
});
|
||||
};
|
||||
|
||||
const toGame = () => {
|
||||
navigateTo({
|
||||
url: "/pages/game/gameview/index",
|
||||
url: '/pages/game/gameview/index',
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: "GameView",
|
||||
navigationBarTitleText: 'GameView',
|
||||
});
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
<template>
|
||||
<web-view
|
||||
style="height: 100vh; width: 100vw"
|
||||
:src="`https://www.jdt168.com/public/?uid=${user.uid}`"
|
||||
></web-view>
|
||||
: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";
|
||||
import {ref} from 'vue';
|
||||
import {getStorageSync, useLoad} from '@tarojs/taro';
|
||||
import {WebView} from '@tarojs/components';
|
||||
|
||||
const user = ref<any>({});
|
||||
|
||||
useLoad(() => {
|
||||
user.value = getStorageSync("userInfo");
|
||||
user.value = getStorageSync('userInfo');
|
||||
console.log(user);
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: "",
|
||||
navigationStyle: "custom",
|
||||
navigationBarTitleText: '',
|
||||
navigationStyle: 'custom',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user