Compare commits

..

4 Commits

Author SHA1 Message Date
659d1ad5fb fix(custom):
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-14 03:07:53 +08:00
8c83f44d4c fix(custom):
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-11 23:52:37 +08:00
a5f4b2c872 release(custom):
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-29 17:05:00 +08:00
ddd7789817 feat(custom): 新增webview
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-21 05:40:07 +08:00
6 changed files with 10381 additions and 8285 deletions

View File

@@ -56,19 +56,19 @@
"author": "",
"dependencies": {
"@babel/runtime": "^7.22.11",
"@tarojs/components": "3.6.25",
"@tarojs/helper": "3.6.25",
"@tarojs/plugin-framework-vue3": "3.6.25",
"@tarojs/plugin-platform-alipay": "3.6.25",
"@tarojs/plugin-platform-h5": "3.6.25",
"@tarojs/plugin-platform-jd": "3.6.25",
"@tarojs/plugin-platform-qq": "3.6.25",
"@tarojs/plugin-platform-swan": "3.6.25",
"@tarojs/plugin-platform-tt": "3.6.25",
"@tarojs/plugin-platform-weapp": "3.6.25",
"@tarojs/runtime": "3.6.25",
"@tarojs/shared": "3.6.25",
"@tarojs/taro": "3.6.25",
"@tarojs/components": "3.6.34",
"@tarojs/helper": "3.6.34",
"@tarojs/plugin-framework-vue3": "3.6.34",
"@tarojs/plugin-platform-alipay": "3.6.34",
"@tarojs/plugin-platform-h5": "3.6.34",
"@tarojs/plugin-platform-jd": "3.6.34",
"@tarojs/plugin-platform-qq": "3.6.34",
"@tarojs/plugin-platform-swan": "3.6.34",
"@tarojs/plugin-platform-tt": "3.6.34",
"@tarojs/plugin-platform-weapp": "3.6.34",
"@tarojs/runtime": "3.6.34",
"@tarojs/shared": "3.6.34",
"@tarojs/taro": "3.6.34",
"dayjs": "^1.11.10",
"lottie-web": "^5.12.2",
"vue": "^3.3.4"
@@ -77,10 +77,10 @@
"@babel/core": "^7.22.11",
"@commitlint/cli": "^18.2.0",
"@commitlint/config-conventional": "^18.1.0",
"@tarojs/cli": "3.6.25",
"@tarojs/taro-loader": "3.6.25",
"@tarojs/cli": "3.6.34",
"@tarojs/taro-loader": "3.6.34",
"@tarojs/test-utils-vue3": "^0.1.1",
"@tarojs/webpack5-runner": "3.6.25",
"@tarojs/webpack5-runner": "3.6.34",
"@types/jest": "^29.5.4",
"@types/node": "^20.5.7",
"@types/webpack-env": "^1.18.1",
@@ -88,12 +88,12 @@
"@typescript-eslint/parser": "^6.5.0",
"@vue/babel-plugin-jsx": "^1.1.5",
"@vue/compiler-sfc": "^3.3.4",
"babel-preset-taro": "3.6.25",
"babel-preset-taro": "3.6.34",
"commitizen": "^4.3.0",
"css-loader": "6.8.1",
"cz-customizable": "^7.0.0",
"eslint": "^8.48.0",
"eslint-config-taro": "3.6.25",
"eslint-config-taro": "3.6.34",
"eslint-plugin-vue": "^9.17.0",
"husky": "^8.0.0",
"jest": "^29.6.4",
@@ -107,5 +107,6 @@
"typescript": "^5.2.2",
"vue-loader": "^17.2.2",
"webpack": "5.88.2"
}
},
"packageManager": "pnpm@9.1.4+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0"
}

18566
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,7 @@
export default defineAppConfig({
pages: [
'pages/index/index',
'pages/webview/index',
'pages/yaotouzi/index/index',
'pages/game_detail/index',
'pages/yaotouzi/records/index',
@@ -16,6 +17,5 @@ export default defineAppConfig({
navigationBarBackgroundColor: '#fff',
navigationBarTitleText: 'Game',
navigationBarTextStyle: 'black',
},
animation: false,
}
})

View File

@@ -1,17 +1,17 @@
<template>
<view class="index">
<swiper class="swiper" :circular="true" :autoplay="true">
<swiper-item v-for="(item, index) in list" :key="index">
<image :src="item" />
</swiper-item>
</swiper>
<view class="container">
<!-- <view>摇骰子</view> -->
<view class="index">
<swiper class="swiper" :circular="true" :autoplay="true">
<swiper-item v-for="(item, index) in list" :key="index">
<image :src="item" />
</swiper-item>
</swiper>
<view class="container">
<!-- <view>摇骰子</view> -->
<rich-text :nodes="info.introduction"></rich-text>
<view class="btn" @click="startGame()">开始游戏</view>
</view>
<rich-text :nodes="info.introduction"></rich-text>
<view class="btn" @click="startGame()">开始游戏</view>
</view>
</view>
</template>
<script lang="ts" setup>
@@ -23,13 +23,21 @@ const info = ref<any>({})
const list = ref<string[]>([])
Taro.useLoad(() => {
info.value = Taro.getStorageSync('gameItem')
list.value.push(info.value.cover)
info.value = Taro.getStorageSync('gameItem')
list.value.push(info.value.cover)
})
const startGame = () => {
// 判断url中是否含有http
if (info.value.url.indexOf('http') === -1) {
Taro.navigateTo({
url: info.value.url,
url: info.value.url,
})
} else {
Taro.setStorageSync("url", `${info.value.url}?uid=${Taro.getStorageSync('uid')}&game_id=${info.value.ID}`)
Taro.navigateTo({
url: `/pages/webview/index`,
})
}
}
</script>

View File

@@ -0,0 +1,3 @@
export default definePageConfig({
navigationBarTitleText: '',
})

View File

@@ -0,0 +1,18 @@
<template>
<view>
<web-view :src="src" />
</view>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import Taro from '@tarojs/taro'
const src = ref('')
Taro.useLoad((e) => {
src.value = Taro.getStorageSync("url")
})
</script>
<style lang="scss"></style>