Commit 81cb7b04 by 李伟康

提交代码

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