|
|
@@ -38,21 +38,22 @@
|
|
|
<button class="cu-btn theme-bg-color round text-white margin-right" @click="onTap">添加作品</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <block v-for="(item, index) in 8" :key="index">
|
|
|
+ <block v-for="(item, index) in list" :key="index">
|
|
|
<view class="flex bg-white" style="padding: 10upx 70upx 30upx 70upx;">
|
|
|
- <image src="/static/musicCover.png" style="width: 120upx;height: 120upx;margin-right: 20upx;"></image>
|
|
|
+ <image v-if="item.urlsType==0" :src="item.urls" style="width: 120upx;height: 120upx;margin-right: 20upx;"></image>
|
|
|
+ <image v-if="item.urlsType==1" :src="item.cover" style="width: 120upx;height: 120upx;margin-right: 20upx;"></image>
|
|
|
<view style="width: 75%;">
|
|
|
<view class="flex justify-between">
|
|
|
<view class="music">
|
|
|
- <view class="name">海底(Live)</view>
|
|
|
- <view class="author">凤凰传奇 - 为他而歌</view>
|
|
|
+ <view class="name">{{item.title}}</view>
|
|
|
+ <view class="author">{{item.personName}}[{{item.personType}}]</view>
|
|
|
</view>
|
|
|
<view>
|
|
|
<view class="text-black">
|
|
|
<text class="cuIcon-hotfill padding-right-xs"></text>
|
|
|
- <text class="text-lg text-bold">22386</text>
|
|
|
+ <text class="text-lg text-bold">{{item.hotValue}}</text>
|
|
|
</view>
|
|
|
- <view class="music-rank">NO.10</view>
|
|
|
+ <view class="music-rank">NO.{{item.loginWebVO.rank}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="margin-top-sm"><u-line color="#cacaca"></u-line> </view>
|
|
|
@@ -68,12 +69,19 @@
|
|
|
return {
|
|
|
userId:'2',
|
|
|
data:{},
|
|
|
+ list:[]
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.fetchMineData()
|
|
|
+ this.fetchList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ fetchList(){
|
|
|
+ this.$u.api.production.list({userId:this.userId}).then(res=>{
|
|
|
+ this.list=res.records
|
|
|
+ })
|
|
|
+ },
|
|
|
fetchMineData(){
|
|
|
this.$u.api.user.mineData({userId:this.userId}).then(res=>{
|
|
|
this.data=res
|
|
|
@@ -130,7 +138,7 @@
|
|
|
padding-bottom: 20upx;
|
|
|
}
|
|
|
.author {
|
|
|
- font-size: 14upx;
|
|
|
+ font-size: 28upx;
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: 400;
|
|
|
color: #9A9A9A;
|