Commit b0015d21f048095fc37fc87996b4d6f5d7f93932

Authored by 夏洋涛
1 parent bbe736bf
Exists in master

feat:隐藏按钮

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