This commit is contained in:
@@ -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='
|
||||
40
package.json
40
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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user