Compare commits
2 Commits
ee446dd4a9
...
a5f4b2c872
| Author | SHA1 | Date | |
|---|---|---|---|
| a5f4b2c872 | |||
| ddd7789817 |
36
package.json
36
package.json
@@ -56,19 +56,19 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.22.11",
|
"@babel/runtime": "^7.22.11",
|
||||||
"@tarojs/components": "3.6.25",
|
"@tarojs/components": "3.6.27",
|
||||||
"@tarojs/helper": "3.6.25",
|
"@tarojs/helper": "3.6.27",
|
||||||
"@tarojs/plugin-framework-vue3": "3.6.25",
|
"@tarojs/plugin-framework-vue3": "3.6.27",
|
||||||
"@tarojs/plugin-platform-alipay": "3.6.25",
|
"@tarojs/plugin-platform-alipay": "3.6.27",
|
||||||
"@tarojs/plugin-platform-h5": "3.6.25",
|
"@tarojs/plugin-platform-h5": "3.6.27",
|
||||||
"@tarojs/plugin-platform-jd": "3.6.25",
|
"@tarojs/plugin-platform-jd": "3.6.27",
|
||||||
"@tarojs/plugin-platform-qq": "3.6.25",
|
"@tarojs/plugin-platform-qq": "3.6.27",
|
||||||
"@tarojs/plugin-platform-swan": "3.6.25",
|
"@tarojs/plugin-platform-swan": "3.6.27",
|
||||||
"@tarojs/plugin-platform-tt": "3.6.25",
|
"@tarojs/plugin-platform-tt": "3.6.27",
|
||||||
"@tarojs/plugin-platform-weapp": "3.6.25",
|
"@tarojs/plugin-platform-weapp": "3.6.27",
|
||||||
"@tarojs/runtime": "3.6.25",
|
"@tarojs/runtime": "3.6.27",
|
||||||
"@tarojs/shared": "3.6.25",
|
"@tarojs/shared": "3.6.27",
|
||||||
"@tarojs/taro": "3.6.25",
|
"@tarojs/taro": "3.6.27",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"lottie-web": "^5.12.2",
|
"lottie-web": "^5.12.2",
|
||||||
"vue": "^3.3.4"
|
"vue": "^3.3.4"
|
||||||
@@ -77,10 +77,10 @@
|
|||||||
"@babel/core": "^7.22.11",
|
"@babel/core": "^7.22.11",
|
||||||
"@commitlint/cli": "^18.2.0",
|
"@commitlint/cli": "^18.2.0",
|
||||||
"@commitlint/config-conventional": "^18.1.0",
|
"@commitlint/config-conventional": "^18.1.0",
|
||||||
"@tarojs/cli": "3.6.25",
|
"@tarojs/cli": "3.6.27",
|
||||||
"@tarojs/taro-loader": "3.6.25",
|
"@tarojs/taro-loader": "3.6.27",
|
||||||
"@tarojs/test-utils-vue3": "^0.1.1",
|
"@tarojs/test-utils-vue3": "^0.1.1",
|
||||||
"@tarojs/webpack5-runner": "3.6.25",
|
"@tarojs/webpack5-runner": "3.6.27",
|
||||||
"@types/jest": "^29.5.4",
|
"@types/jest": "^29.5.4",
|
||||||
"@types/node": "^20.5.7",
|
"@types/node": "^20.5.7",
|
||||||
"@types/webpack-env": "^1.18.1",
|
"@types/webpack-env": "^1.18.1",
|
||||||
@@ -88,12 +88,12 @@
|
|||||||
"@typescript-eslint/parser": "^6.5.0",
|
"@typescript-eslint/parser": "^6.5.0",
|
||||||
"@vue/babel-plugin-jsx": "^1.1.5",
|
"@vue/babel-plugin-jsx": "^1.1.5",
|
||||||
"@vue/compiler-sfc": "^3.3.4",
|
"@vue/compiler-sfc": "^3.3.4",
|
||||||
"babel-preset-taro": "3.6.25",
|
"babel-preset-taro": "3.6.27",
|
||||||
"commitizen": "^4.3.0",
|
"commitizen": "^4.3.0",
|
||||||
"css-loader": "6.8.1",
|
"css-loader": "6.8.1",
|
||||||
"cz-customizable": "^7.0.0",
|
"cz-customizable": "^7.0.0",
|
||||||
"eslint": "^8.48.0",
|
"eslint": "^8.48.0",
|
||||||
"eslint-config-taro": "3.6.25",
|
"eslint-config-taro": "3.6.27",
|
||||||
"eslint-plugin-vue": "^9.17.0",
|
"eslint-plugin-vue": "^9.17.0",
|
||||||
"husky": "^8.0.0",
|
"husky": "^8.0.0",
|
||||||
"jest": "^29.6.4",
|
"jest": "^29.6.4",
|
||||||
|
|||||||
18314
pnpm-lock.yaml
generated
18314
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,7 @@
|
|||||||
export default defineAppConfig({
|
export default defineAppConfig({
|
||||||
pages: [
|
pages: [
|
||||||
'pages/index/index',
|
'pages/index/index',
|
||||||
|
'pages/webview/index',
|
||||||
'pages/yaotouzi/index/index',
|
'pages/yaotouzi/index/index',
|
||||||
'pages/game_detail/index',
|
'pages/game_detail/index',
|
||||||
'pages/yaotouzi/records/index',
|
'pages/yaotouzi/records/index',
|
||||||
|
|||||||
@@ -28,8 +28,15 @@ Taro.useLoad(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const startGame = () => {
|
const startGame = () => {
|
||||||
|
// 判断url中是否含有http
|
||||||
|
if (info.value.url.indexOf('http') === -1) {
|
||||||
Taro.navigateTo({
|
Taro.navigateTo({
|
||||||
url: info.value.url,
|
url: info.value.url,
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: `/pages/webview/index?url=${info.value.url}`,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
3
src/pages/webview/index.config.ts
Normal file
3
src/pages/webview/index.config.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export default definePageConfig({
|
||||||
|
navigationBarTitleText: 'webview',
|
||||||
|
})
|
||||||
18
src/pages/webview/index.vue
Normal file
18
src/pages/webview/index.vue
Normal 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 = `${e.url}?uid=${Taro.getStorageSync('uid')}`
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss"></style>
|
||||||
Reference in New Issue
Block a user