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