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