hmp 4 lat temu
rodzic
commit
ad9e3faadf

+ 9 - 0
pages.json

@@ -244,6 +244,15 @@
             }
 
         }
+        ,{
+            "path" : "pages/activityList/activity/doAwards",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "提现",
+                "enablePullDownRefresh": false
+            }
+            
+        }
     ],
 	"globalStyle": {
 		"navigationStyle": "custom",

+ 20 - 1
pages/activityList/activity/boost.vue

@@ -1,6 +1,13 @@
 <template>
 	<view>
-		<view class="bg-img" style="height: 563upx;" :style="{'backgroundImage':'url('+ boostDetail.cover +')'}"></view>
+		<view v-if="boostDetail.cover"  class="bg-img" style="height: 563upx;" :style="{'backgroundImage':'url('+ boostDetail.cover +')'}"></view>
+		<view v-else class="flex justify-center align-center"  style="height: 563upx;background-color: #5a3ee8;">
+			<view class="text-white" @click="uploadCover">
+				<text class="cuIcon-add " style="font-size: 120rpx;"></text>
+				<view>上传封面</view>
+			</view>
+		</view>
+		
 		<view class="head">
 			<view class="title">为{{boostDetail.nickName}}打榜</view>
 			<view class="flex justify-between align-center padding-lr">
@@ -109,6 +116,18 @@
 			this.authorization();
 		},
 		methods: {
+			uploadCover(){
+				this.$mpi.uploadFile().then(res=>{
+					let obj= JSON.parse(res)
+					let params={
+						id:this.receiverId,
+						cover:obj.data
+					}
+					this.$u.api.user.submit(params).then(res=>{
+						this.getBoostDetail(this.activityId, this.receiverId);
+					})
+				})
+			},
 			//打榜助力
 			userBoost() {
 				if (this.$u.test.isEmpty(this.senderId)) {

+ 55 - 0
pages/activityList/activity/doAwards.vue

@@ -0,0 +1,55 @@
+<template>
+	<view>
+		<view class="card">
+			<view class="left">
+				<view>
+					活动名称:
+					<text class="text-red">音乐之声</text>
+				</view>
+				<view>
+					可用热力:
+					<text class="text-red">4562</text>
+				</view>
+				<view>
+					可提余额:
+					<text class="text-red">¥2000</text>
+				</view>
+			</view>
+			<view class="right">
+				
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style lang="scss">
+	.card{
+		margin: 15rpx;
+		padding: 15rpx;
+		border-radius: 12rpx;
+		background-color: #FFFFFF;
+		display: flex;
+		justify-content: space-between;
+		.left{
+			display: flex;
+			flex-direction: column;
+			
+			view{
+				padding: 7rpx 0;
+			}
+		}
+	}
+</style>

+ 5 - 4
pages/activityList/goods/detail.vue

@@ -65,15 +65,16 @@
 						<text class="padding-left-sm ">{{changeCash.pointsCash}} 元</text>
 					</view>
 				</view>
-			
 				<view style="padding-top: 20rpx;display: flex;flex-direction: column;">
-					<text class="text-gray padding-top-sm">可用热力值为:{{proportion.usableHot}},价值{{proportion.usableHot * proportion.hotProportion}}元</text>
-					<text class="text-gray padding-top-sm">可用积分值为:{{proportion.usablePoints}},价值{{proportion.usablePoints * proportion.pointsProportion}}元</text>
+					<text class="text-gray padding-top-sm">可用热力值为:{{proportion.usableHot || 0}},价值{{proportion.usableHot * proportion.hotProportion || 0}}元</text>
+					<text class="text-gray padding-top-sm">可用积分值为:{{proportion.usablePoints || 0}},价值{{proportion.usablePoints * proportion.pointsProportion || 0}}元</text>
 				</view>
 			</view>
 		</block>
-
 		
+		<view class="" style="height: 140rpx;">
+			
+		</view>
 		
 		<view v-if="!exchangeShow" @click="exchangeShow=true"
 			class="footer-fixed flex align-center justify-end padding bg-white"

+ 15 - 7
pages/activityList/mine/myMusic.vue

@@ -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;