diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 1beec24..e70e4ce 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) { + } + }, }); } }