|
@@ -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'
|
|
|
})
|