瀏覽代碼

开奖动画调整

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;