|
@@ -132,17 +132,13 @@ export default {
|
|
|
getAlbumItemsWrapper() {
|
|
getAlbumItemsWrapper() {
|
|
|
getImageItems(this.albumId, this.currentPage).then(resp => {
|
|
getImageItems(this.albumId, this.currentPage).then(resp => {
|
|
|
if (resp.code === 0) {
|
|
if (resp.code === 0) {
|
|
|
- const respData = resp.data
|
|
|
|
|
- document.title = '相册 - ' + respData.albumName
|
|
|
|
|
-
|
|
|
|
|
this.data = resp.data
|
|
this.data = resp.data
|
|
|
- const images = resp.data.images
|
|
|
|
|
|
|
+ document.title = '相册 - ' + this.data.albumName
|
|
|
|
|
+
|
|
|
|
|
+ const images = this.data.images
|
|
|
this.dataList = images.list
|
|
this.dataList = images.list
|
|
|
this.totalSize = images.totalSize
|
|
this.totalSize = images.totalSize
|
|
|
- this.imageCount = images.length
|
|
|
|
|
- this.limit = 40 - images.length
|
|
|
|
|
- this.data = respData
|
|
|
|
|
- this.userId = respData.userId
|
|
|
|
|
|
|
+ this.userId = this.data.userId
|
|
|
getUserInfo(this.userId).then(resp => {
|
|
getUserInfo(this.userId).then(resp => {
|
|
|
if (resp.code === 0) {
|
|
if (resp.code === 0) {
|
|
|
this.user = resp.data
|
|
this.user = resp.data
|
|
@@ -189,7 +185,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
showImages(index) {
|
|
showImages(index) {
|
|
|
const imageUrls = []
|
|
const imageUrls = []
|
|
|
- for (const i of this.data.images) {
|
|
|
|
|
|
|
+ for (const i of this.dataList) {
|
|
|
imageUrls.push(i.originalUrl)
|
|
imageUrls.push(i.originalUrl)
|
|
|
}
|
|
}
|
|
|
|
|
|