diff --git a/.env.development b/.env.development index 7d3b726..c1a0512 100644 --- a/.env.development +++ b/.env.development @@ -8,8 +8,8 @@ TARO_APP_KEY='1234567890' TARO_APP_API='https://test.wanzhuanyongcheng.cn/app' # 骰子游戏链接 -# TARO_APP_GAME='https://jdt-test-tz.wanzhuanyongcheng.cn/pages/index/index?uid=' -TARO_APP_GAME='http://192.168.31.225:10086?uid=' +TARO_APP_GAME='https://jdt-test-tz.wanzhuanyongcheng.cn/pages/index/index?uid=' +# TARO_APP_GAME='http://192.168.31.225:10086?uid=' # 捕鱼游戏链接 TARO_APP_FISH_GAME='https://jdt-test-fish.wanzhuanyongcheng.cn/?uid=' \ No newline at end of file diff --git a/package.json b/package.json index 2ae4f43..67d345a 100644 --- a/package.json +++ b/package.json @@ -64,20 +64,20 @@ "@nutui/icons-vue-taro": "^0.0.9", "@nutui/nutui-taro": "^4.3.9", "@qiun/vue-ucharts": "2.5.0-20230101", - "@tarojs/components": "3.6.32", - "@tarojs/helper": "3.6.32", - "@tarojs/plugin-framework-vue3": "3.6.32", - "@tarojs/plugin-html": "3.6.32", - "@tarojs/plugin-platform-alipay": "3.6.32", - "@tarojs/plugin-platform-h5": "3.6.32", - "@tarojs/plugin-platform-jd": "3.6.32", - "@tarojs/plugin-platform-qq": "3.6.32", - "@tarojs/plugin-platform-swan": "3.6.32", - "@tarojs/plugin-platform-tt": "3.6.32", - "@tarojs/plugin-platform-weapp": "3.6.32", - "@tarojs/runtime": "3.6.32", - "@tarojs/shared": "3.6.32", - "@tarojs/taro": "3.6.32", + "@tarojs/components": "3.6.34", + "@tarojs/helper": "3.6.34", + "@tarojs/plugin-framework-vue3": "3.6.34", + "@tarojs/plugin-html": "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", "pinia": "^2.1.7", "vue": "^3.3.9" @@ -86,10 +86,10 @@ "@babel/core": "^7.23.5", "@commitlint/cli": "^18.4.3", "@commitlint/config-conventional": "^18.4.3", - "@tarojs/cli": "3.6.32", - "@tarojs/plugin-mini-ci": "3.6.31", - "@tarojs/taro-loader": "3.6.32", - "@tarojs/webpack5-runner": "3.6.32", + "@tarojs/cli": "3.6.34", + "@tarojs/plugin-mini-ci": "3.6.34", + "@tarojs/taro-loader": "3.6.34", + "@tarojs/webpack5-runner": "3.6.34", "@types/node": "^18.19.1", "@types/webpack-env": "^1.18.4", "@typescript-eslint/eslint-plugin": "^6.13.1", @@ -98,12 +98,12 @@ "@vue/babel-plugin-jsx": "^1.1.5", "@vue/compiler-sfc": "^3.3.9", "autoprefixer": "^10.4.19", - "babel-preset-taro": "3.6.32", + "babel-preset-taro": "3.6.34", "commitizen": "^4.3.0", "css-loader": "3.4.2", "cz-customizable": "^7.0.0", "eslint": "^8.55.0", - "eslint-config-taro": "3.6.32", + "eslint-config-taro": "3.6.34", "eslint-plugin-vue": "^9.19.2", "husky": "^8.0.3", "lint-staged": "^15.1.0", diff --git a/src/pages/game/gamehome/index.vue b/src/pages/game/gamehome/index.vue index 2cf68c6..7203024 100644 --- a/src/pages/game/gamehome/index.vue +++ b/src/pages/game/gamehome/index.vue @@ -12,6 +12,7 @@ const url = ref(''); Taro.useDidShow(() => { const token = Taro.getStorageSync('token'); + // url.value = 'http://huakk.jdt168.com/#/pages/index/index'; if (token) { url.value = `${process.env.TARO_APP_GAME}${Taro.getStorageSync('token')}`; } else { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index db03182..70bdcfc 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -87,6 +87,22 @@ const clickSearch = () => { }; Taro.useLoad(async () => { + Taro.getPrivacySetting({ + success: res => { + if (res.needAuthorization) { + Taro.requirePrivacyAuthorize({ + success: res => { + console.log('用户同意授权'); + console.log(res); + }, + fail: () => { + console.log('用户拒绝授权'); + Taro.exitMiniProgram(); + }, + }); + } + }, + }); getNavLists(); getUserLocal(); });