Commit b0015d21f048095fc37fc87996b4d6f5d7f93932
1 parent
bbe736bf
Exists in
master
feat:隐藏按钮
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
src/views/GrowUp/MyAlbum.vue
... | ... | @@ -18,7 +18,7 @@ |
18 | 18 | </div> |
19 | 19 | </van-list> |
20 | 20 | </div> |
21 | - <div class="control_panel"> | |
21 | + <!-- <div class="control_panel"> | |
22 | 22 | <p class="control_btn" @click="controlStatus = 'control'" v-if="controlStatus == 'default'">管理相册({{ spaceSize }}/2G)</p> |
23 | 23 | <div class="control_box" v-if="controlStatus == 'control'"> |
24 | 24 | <van-uploader multiple :after-read="afterRead"> |
... | ... | @@ -35,7 +35,7 @@ |
35 | 35 | </div> |
36 | 36 | <p class="cancel_btn" @click="controlStatus = 'control'" v-if="controlStatus == 'del'">取消</p> |
37 | 37 | <p class="del_btn" @click="handleDel" v-if="controlStatus == 'del'">删除相片</p> |
38 | - </div> | |
38 | + </div> --> | |
39 | 39 | <van-image-preview v-model="showPreview" :images="previewArr" :start-position="startPosition" @change="previewChange"> |
40 | 40 | </van-image-preview> |
41 | 41 | </div> |
... | ... | @@ -75,6 +75,7 @@ export default { |
75 | 75 | //获取当前用户相关的商户相册 |
76 | 76 | getUserAlbum() { |
77 | 77 | this.loading = true |
78 | + if (!this.userInfo.centerNo) return | |
78 | 79 | this.yxAxios |
79 | 80 | .post(`${this.proxyUrl}/api/growth/photo/userAlbum`, { |
80 | 81 | centerNo: this.userInfo.centerNo, | ... | ... |
测试用数据/Home.vue
... | ... | @@ -109,7 +109,7 @@ import Background from '../components/Background.vue' |
109 | 109 | import AllLoveGo from '../components/AllLoveGo.vue' |
110 | 110 | import AboutDes from './aboutDes.vue' |
111 | 111 | import './home.scss' |
112 | -// const userData = require('@/views/data.json') | |
112 | +const userData = require('@/views/data.json') | |
113 | 113 | export default { |
114 | 114 | components: { |
115 | 115 | CourseList, | ... | ... |