From 82df77b81575fc73c41260c2a488fa30c36c61c3 Mon Sep 17 00:00:00 2001 From: XiaoXinPro 14 IAH5R <568170040@qq.com> Date: Mon, 7 Aug 2023 17:35:32 +0800 Subject: [PATCH] index --- src/manifest.json | 74 ++++++++++++++++++++------------------- src/pages/index/index.vue | 15 ++++++-- 2 files changed, 50 insertions(+), 39 deletions(-) diff --git a/src/manifest.json b/src/manifest.json index 2cec5ee..b4b2033 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,28 +1,28 @@ { - "name" : "", - "appid" : "", - "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", - "transformPx" : false, + "name": "", + "appid": "", + "description": "", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx": false, /* 5+App特有相关 */ - "app-plus" : { - "usingComponents" : true, - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 + "app-plus": { + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 }, /* 模块配置 */ - "modules" : {}, + "modules": {}, /* 应用发布信息 */ - "distribute" : { + "distribute": { /* android打包配置 */ - "android" : { - "permissions" : [ + "android": { + "permissions": [ "", "", "", @@ -41,32 +41,34 @@ ] }, /* ios打包配置 */ - "ios" : {}, + "ios": {}, /* SDK配置 */ - "sdkConfigs" : {} + "sdkConfigs": {} } }, /* 快应用特有相关 */ - "quickapp" : {}, + "quickapp": {}, /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "wx75cf14e3a0d45821", - "setting" : { - "urlCheck" : false + "mp-weixin": { + "appid": "wx75cf14e3a0d45821", + "setting": { + "urlCheck": false, + "ignoreDevUnusedFiles": false, + "ignoreUploadUnusedFiles": false }, - "usingComponents" : true + "usingComponents": true }, - "mp-alipay" : { - "usingComponents" : true + "mp-alipay": { + "usingComponents": true }, - "mp-baidu" : { - "usingComponents" : true + "mp-baidu": { + "usingComponents": true }, - "mp-toutiao" : { - "usingComponents" : true + "mp-toutiao": { + "usingComponents": true }, - "uniStatistics": { + "uniStatistics": { "enable": false }, - "vueVersion" : "3" -} + "vueVersion": "3" +} \ No newline at end of file diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 173ed00..1662970 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -49,9 +49,18 @@ function toCreate() { url: "/pages/uploadPhoto/uploadPhoto", }); } else { - uni.showToast({ - title: "请先同意用户协议", - icon: "none", + uni.showModal({ + title: "提示", + content: "同意慧图相机用户使用协议?", + success: function (res) { + if (res.confirm) { + handleLogin(); + uni.redirectTo({ + url: "/pages/uploadPhoto/uploadPhoto", + }); + } else if (res.cancel) { + } + }, }); } }