소스 검색

1、修改保底转盘动画
2、看课奖励新增文字说明

XSLu08042 2 일 전
부모
커밋
d3afef0799
2개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      pages_course/components/turntableTwo.vue
  2. 7 0
      pages_course/video.vue

+ 3 - 2
pages_course/components/turntableTwo.vue

@@ -29,7 +29,7 @@
 				running: false,
 				targetIdx: -1,
 				total: 0,
-				speed: 150,
+				speed: 100,
 				cells:[],
 				timer: null,
 				isReceive: 0,
@@ -117,7 +117,8 @@
 					})
 					return
 				}
-				const totalSteps = 2 // 约 3s / 80ms
+				const totalSteps = Math.max(8, this.availIdx.length);
+				// 约 2.5s / 100ms
 				let step = 0
 				let last = -1
 				const that = this

+ 7 - 0
pages_course/video.vue

@@ -198,6 +198,7 @@
 				</image>
 				<view class="answerPopup-title">{{errTitle}}</view>
 				<view class="answerPopup-desc" v-html="errDesc"></view>
+				<view style="color: #FF5C03;">{{currentRewardText}}</view>
 				<!-- 选择奖励 -->
 				<view class="reward-list" v-if="errTitle == '恭喜你,回答正确'">
 					<view :class="item.value == currentReward?'reward-item reward-active':'reward-item'" 
@@ -436,6 +437,12 @@
 				onHide: false
 			}
 		},
+		computed:{
+			currentRewardText(){
+				const index = this.rewardType.findIndex(it=>it.value==this.currentReward)
+				return index > -1 ? this.rewardType[index].text || '':''
+			}
+		},
 		onLoad(option) {
 			console.log("onLoad===",'')
 			this.code = option.code