From 265e64e9a0cbb670ab3ba7d3d113ab4863bb0058 Mon Sep 17 00:00:00 2001 From: 起风了 <1517943910@qq.com> Date: Tue, 5 Dec 2023 22:50:39 +0800 Subject: [PATCH] 修改bug --- .DS_Store | Bin 10244 -> 0 bytes .hbuilderx/launch.json | 16 ++++++++++++++++ pages/home/home.vue | 14 ++++++++++---- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 .hbuilderx/launch.json diff --git a/.DS_Store b/.DS_Store index a7d23af..7bbd772 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json new file mode 100644 index 0000000..81f13f4 --- /dev/null +++ b/.hbuilderx/launch.json @@ -0,0 +1,16 @@ +{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ + // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 + "version": "0.0", + "configurations": [{ + "default" : + { + "launchtype" : "local" + }, + "mp-weixin" : + { + "launchtype" : "local" + }, + "type" : "uniCloud" + } + ] +} diff --git a/pages/home/home.vue b/pages/home/home.vue index 8d76575..c8f7b7b 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -153,10 +153,16 @@ url: '/pages/journalism/journalism' }) }, - funeral() { - uni.switchTab({ - url: '/pages/funeral/funeral' - }) + funeral() { + if(uni.getStorageSync('userjs') != '普通用户'){ + uni.switchTab({ + url: '/pages/my/my' + }) + }else{ + uni.switchTab({ + url: '/pages/funeral/funeral' + }) + } }, map() { uni.navigateTo({ -- libgit2 0.21.4