mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-03 21:02:08 +08:00
更新字段获取
This commit is contained in:
parent
b84d7ec41e
commit
101a708c09
@ -147,8 +147,8 @@ export default {
|
|||||||
// types.reverse()
|
// types.reverse()
|
||||||
return {
|
return {
|
||||||
singer: this.getSinger(item.singer),
|
singer: this.getSinger(item.singer),
|
||||||
name: item.title,
|
name: item.name,
|
||||||
albumName: item.album.title,
|
albumName: item.album.name,
|
||||||
albumId: item.album.mid,
|
albumId: item.album.mid,
|
||||||
source: 'tx',
|
source: 'tx',
|
||||||
interval: formatPlayTime(item.interval),
|
interval: formatPlayTime(item.interval),
|
||||||
|
@ -72,12 +72,12 @@ export default (songmid) => {
|
|||||||
let albumId = ''
|
let albumId = ''
|
||||||
let albumName = ''
|
let albumName = ''
|
||||||
if (item.album) {
|
if (item.album) {
|
||||||
albumName = item.album.title
|
albumName = item.album.name
|
||||||
albumId = item.album.mid
|
albumId = item.album.mid
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
singer: getSinger(item.singer),
|
singer: getSinger(item.singer),
|
||||||
name: item.title,
|
name: item.name,
|
||||||
albumName,
|
albumName,
|
||||||
albumId,
|
albumId,
|
||||||
source: 'tx',
|
source: 'tx',
|
||||||
|
@ -22,19 +22,25 @@ export default {
|
|||||||
},
|
},
|
||||||
body: {
|
body: {
|
||||||
comm: {
|
comm: {
|
||||||
ct: '19',
|
ct: 11,
|
||||||
cv: '1859',
|
cv: '1003006',
|
||||||
uin: '0',
|
v: '1003006',
|
||||||
|
os_ver: '12',
|
||||||
|
phonetype: '0',
|
||||||
|
devicelevel: '31',
|
||||||
|
tmeAppID: 'qqmusiclight',
|
||||||
|
nettype: 'NETWORK_WIFI',
|
||||||
},
|
},
|
||||||
req: {
|
req: {
|
||||||
method: 'DoSearchForQQMusicDesktop',
|
|
||||||
module: 'music.search.SearchCgiService',
|
module: 'music.search.SearchCgiService',
|
||||||
|
method: 'DoSearchForQQMusicLite',
|
||||||
param: {
|
param: {
|
||||||
grp: 1,
|
|
||||||
num_per_page: limit,
|
|
||||||
page_num: page,
|
|
||||||
query: str,
|
query: str,
|
||||||
search_type: 0,
|
search_type: 0,
|
||||||
|
num_per_page: limit,
|
||||||
|
page_num: page,
|
||||||
|
nqc_flag: 0,
|
||||||
|
grp: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -84,8 +90,8 @@ export default {
|
|||||||
}
|
}
|
||||||
if (file.size_hires !== 0) {
|
if (file.size_hires !== 0) {
|
||||||
let size = sizeFormate(file.size_hires)
|
let size = sizeFormate(file.size_hires)
|
||||||
types.push({ type: 'flac32bit', size })
|
types.push({ type: 'flac24bit', size })
|
||||||
_types.flac32bit = {
|
_types.flac24bit = {
|
||||||
size,
|
size,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -93,12 +99,12 @@ export default {
|
|||||||
let albumId = ''
|
let albumId = ''
|
||||||
let albumName = ''
|
let albumName = ''
|
||||||
if (item.album) {
|
if (item.album) {
|
||||||
albumName = item.album.title
|
albumName = item.album.name
|
||||||
albumId = item.album.mid
|
albumId = item.album.mid
|
||||||
}
|
}
|
||||||
list.push({
|
list.push({
|
||||||
singer: this.getSinger(item.singer),
|
singer: this.getSinger(item.singer),
|
||||||
name: item.title,
|
name: item.name,
|
||||||
albumName,
|
albumName,
|
||||||
albumId,
|
albumId,
|
||||||
source: 'tx',
|
source: 'tx',
|
||||||
@ -122,9 +128,9 @@ export default {
|
|||||||
if (limit == null) limit = this.limit
|
if (limit == null) limit = this.limit
|
||||||
// http://newlyric.kuwo.cn/newlyric.lrc?62355680
|
// http://newlyric.kuwo.cn/newlyric.lrc?62355680
|
||||||
return this.musicSearch(str, page, limit).then(({ body, meta }) => {
|
return this.musicSearch(str, page, limit).then(({ body, meta }) => {
|
||||||
let list = this.handleResult(body.song.list)
|
let list = this.handleResult(body.item_song)
|
||||||
|
|
||||||
this.total = meta.sum
|
this.total = meta.estimate_sum
|
||||||
this.page = page
|
this.page = page
|
||||||
this.allPage = Math.ceil(this.total / limit)
|
this.allPage = Math.ceil(this.total / limit)
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ export default {
|
|||||||
play_count: this.formatPlayCount(item.access_num),
|
play_count: this.formatPlayCount(item.access_num),
|
||||||
id: item.tid,
|
id: item.tid,
|
||||||
author: item.creator_info.nick,
|
author: item.creator_info.nick,
|
||||||
name: item.title,
|
name: item.name,
|
||||||
time: item.modify_time ? dateFormat(item.modify_time * 1000, 'Y-M-D') : '',
|
time: item.modify_time ? dateFormat(item.modify_time * 1000, 'Y-M-D') : '',
|
||||||
img: item.cover_url_medium,
|
img: item.cover_url_medium,
|
||||||
// grade: item.favorcnt / 10,
|
// grade: item.favorcnt / 10,
|
||||||
@ -277,8 +277,8 @@ export default {
|
|||||||
// types.reverse()
|
// types.reverse()
|
||||||
return {
|
return {
|
||||||
singer: this.getSinger(item.singer),
|
singer: this.getSinger(item.singer),
|
||||||
name: item.title,
|
name: item.name,
|
||||||
albumName: item.album.title,
|
albumName: item.album.name,
|
||||||
albumId: item.album.mid,
|
albumId: item.album.mid,
|
||||||
source: 'tx',
|
source: 'tx',
|
||||||
interval: formatPlayTime(item.interval),
|
interval: formatPlayTime(item.interval),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user