Explorar el Código

积分商城-支付

hmp hace 4 años
padre
commit
06f46fc55c
Se han modificado 2 ficheros con 12 adiciones y 8 borrados
  1. 1 2
      components/homeViews/points-view.vue
  2. 11 6
      pages/activityList/mine/myBoost.vue

+ 1 - 2
components/homeViews/points-view.vue

@@ -1,11 +1,10 @@
 <template>
 	<view >
-		<div id="launch-btn"></div>
 		<swiper class="screen-swiper square-dot margin-sm" style="height: 260rpx;min-height: 268rpx;"
 			:indicator-dots="true" :circular="true" :autoplay="true" interval="5000" duration="500">
 			<swiper-item>
 				<div>
-					
+					<div id="launch-btn"></div>
 				</div>
 			</swiper-item>
 

+ 11 - 6
pages/activityList/mine/myBoost.vue

@@ -5,15 +5,16 @@
 			<view class="flex align-center justify-between boder">
 				<view class="flex align-center">
 					<view class="padding-sm">
-						<u-avatar :src="item.image" size="82"></u-avatar>
+						<u-avatar :src="item.avatar" size="82"></u-avatar>
 					</view>
 					<view>
-						<view class="name">{{item.name}}</view>
+						<view class="name">{{item.nickName}}</view>
 						<view class="time padding-top-xs">{{item.time}}</view>
 					</view>
 				</view>
-				<view class="text-sm" style="color: #757575;">{{item.type}}</view>
-				<view class="name padding-right flex justify-end" style="width: 180upx;">{{item.hotValue}}热力值</view>
+				<view class="text-sm" style="color: #757575;" v-if="item.typeSub==1">打榜</view>
+				<view class="text-sm" style="color: #757575;" v-if="item.typeSub==2">打赏</view>
+				<view class="name padding-right flex justify-end" style="width: 200upx;">{{item.totalHotValue}}热力值</view>
 			</view>
 		</block>
 	</view>
@@ -30,8 +31,12 @@
 			}
 		},
 		onLoad() {
-			this.userId = uni.getStorageSync("userId") || -1;
-			this.getMyBoostList();
+			this.userId = uni.getStorageSync("userId")
+			if (!this.userId) {
+				this.$u.toast('用户未登录')
+				return
+			}
+			this.getMyBoostList()
 		},
 		onReachBottom() {
 			if (this.boostList.length < this.current * this.size) {