Commit 81cb7b04 by 李伟康

提交代码

1 parent cfb9d4fc
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
客服 客服
</div> </div>
</template> </template>
<!-- <template v-if="showOrderBtn"> <template v-if="showOrderBtn">
<div <div
class="page-item flex order-move" class="page-item flex order-move"
@click="to('crowdfunding.orderList')" @click="to('crowdfunding.orderList')"
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div class="sprite-icon icon-order"></div> <div class="sprite-icon icon-order"></div>
订单 订单
</div> </div>
</template> --> </template>
</div> </div>
<div class="big-img"> <div class="big-img">
<img :src="detail.activityBigImg" /> <img :src="detail.activityBigImg" />
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
class="img-box flex" class="img-box flex"
:key="updata" :key="updata"
ref="imgBox" ref="imgBox"
@touchend="scroll" @touchend="touchEnd"
@touchstart="scrollstart" @scroll="touchEnd"
> >
<template v-for="(i,index) in orderList"> <template v-for="(i,index) in orderList">
<div <div
...@@ -70,9 +70,6 @@ export default { ...@@ -70,9 +70,6 @@ export default {
this.getOrderList() this.getOrderList()
}, },
methods: { methods: {
scrollstart () {
this.tabIndex = null
},
moveSlow (distance, total, step = 20) { moveSlow (distance, total, step = 20) {
let box = document.getElementsByClassName('img-box')[0] let box = document.getElementsByClassName('img-box')[0]
if (this.lastItemIndex < this.itemIndex) { if (this.lastItemIndex < this.itemIndex) {
...@@ -99,7 +96,7 @@ export default { ...@@ -99,7 +96,7 @@ export default {
} }
if (this.lastItemIndex == this.itemIndex) box.scrollLeft = total if (this.lastItemIndex == this.itemIndex) box.scrollLeft = total
}, },
scroll: util.debounce(e => { touchEnd: util.debounce(e => {
_this.lastItemIndex = _this.itemIndex _this.lastItemIndex = _this.itemIndex
let box = document.getElementsByClassName('img-box')[0] let box = document.getElementsByClassName('img-box')[0]
let { imgList } = _this let { imgList } = _this
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!