소스 검색

开奖动画调整

DELL 3 년 전
부모
커밋
eae51cc232
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 2
      src/packagePrize/rolling/index.vue
  2. 1 1
      src/pages/activity/index.vue

+ 3 - 2
src/packagePrize/rolling/index.vue

@@ -394,8 +394,9 @@
 					success: (res)=> {
 						let windowWidth = res.windowWidth;
 						my.createSelectorQuery().select('.rolling-prize-list').boundingClientRect().exec(info => {
-							_this.data = info[0].width
-							_this.animation.translateX(-(_this.data  + windowWidth * 3)).step({
+							_this.data = info[0].width//动画移动距离
+							_this.animation.translateX(-(_this.data + (_this.data / 8 * _this.num2 + windowWidth * 3))).step({
+							// _this.animation.translateX(-(_this.data / 8 * _this.num2 + windowWidth * 3)).step({
 								duration: 4000,
 								timingFunction: 'ease'
 							})

+ 1 - 1
src/pages/activity/index.vue

@@ -263,7 +263,7 @@
 						}
 
 						.timetwo {
-							width: 420rpx;
+							width: 425rpx;
 							background: rgba(249, 130, 44, 0.08);
 							margin-top: 10rpx;
 							border: 2rpx solid #F9822C;