Commit 265e64e9a0cbb670ab3ba7d3d113ab4863bb0058
1 parent
1f3f2378
修改bug
Showing
3 changed files
with
26 additions
and
4 deletions
.DS_Store
No preview for this file type
.hbuilderx/launch.json
0 → 100644
| 1 | +{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ | ||
| 2 | + // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 | ||
| 3 | + "version": "0.0", | ||
| 4 | + "configurations": [{ | ||
| 5 | + "default" : | ||
| 6 | + { | ||
| 7 | + "launchtype" : "local" | ||
| 8 | + }, | ||
| 9 | + "mp-weixin" : | ||
| 10 | + { | ||
| 11 | + "launchtype" : "local" | ||
| 12 | + }, | ||
| 13 | + "type" : "uniCloud" | ||
| 14 | + } | ||
| 15 | + ] | ||
| 16 | +} |
pages/home/home.vue
| @@ -153,10 +153,16 @@ | @@ -153,10 +153,16 @@ | ||
| 153 | url: '/pages/journalism/journalism' | 153 | url: '/pages/journalism/journalism' |
| 154 | }) | 154 | }) |
| 155 | }, | 155 | }, |
| 156 | - funeral() { | ||
| 157 | - uni.switchTab({ | ||
| 158 | - url: '/pages/funeral/funeral' | ||
| 159 | - }) | 156 | + funeral() { |
| 157 | + if(uni.getStorageSync('userjs') != '普通用户'){ | ||
| 158 | + uni.switchTab({ | ||
| 159 | + url: '/pages/my/my' | ||
| 160 | + }) | ||
| 161 | + }else{ | ||
| 162 | + uni.switchTab({ | ||
| 163 | + url: '/pages/funeral/funeral' | ||
| 164 | + }) | ||
| 165 | + } | ||
| 160 | }, | 166 | }, |
| 161 | map() { | 167 | map() { |
| 162 | uni.navigateTo({ | 168 | uni.navigateTo({ |