diff --git a/.DS_Store b/.DS_Store index a7d23af..7bbd772 100644 --- a/.DS_Store +++ b/.DS_Store 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({