This commit is contained in:
2023-10-08 22:53:13 +08:00
parent b883b02fb9
commit e36d60d015
83 changed files with 18303 additions and 9590 deletions

View File

@@ -6,59 +6,14 @@
<script setup lang="ts">
import { ref } from "vue";
import { useLoad } from "@tarojs/taro";
// const listVal = ref<any>([]);
import { useLoad, getStorageSync } from "@tarojs/taro";
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);
useLoad(() => {
const user = getStorageSync("userInfo");
url.value = `${process.env.TARO_APP_GAME}${user.uid}`;
});
// 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,
// });
// };
</script>
<style lang="scss">
.list-box {
background-color: #fff;
border-radius: 15rpx;
width: 630rpx;
height: 200rpx;
margin: 20rpx auto;
padding: 30rpx;
font-size: 45rpx;
}
.listBoxAnim {
animation: 0.5s leftAnim;
}
@keyframes leftAnim {
from {
transform: translateX(110%);
}
to {
transform: translateX(0);
}
}
</style>
<style lang="scss"></style>

View File

@@ -12,9 +12,10 @@ import { WebView } from "@tarojs/components";
const gameUrl = ref("");
const user = getStorageSync("userInfo");
const user = ref({})
useLoad(() => {
user.value = getStorageSync("userInfo");
console.log(user);
});
</script>