|
|
<template>
|
|
|
<div class="product-item" :class="{['has-tip']: value.tip}">
|
|
|
<div class="product-item">
|
|
|
<div class="item-content" :style="itemStyle" @touchstart="onTouchStart" @touchmove="onTouchMove" @touchend="onTouchEnd">
|
|
|
<div class="tip" v-if="showTip">超出建议售价将被限制展示,建议下调至合理价格区间</div>
|
|
|
<div class="info">
|
...
|
...
|
@@ -13,7 +13,7 @@ |
|
|
<p class="low-price">当前最低价¥{{value.goodsInfo.leastPrice}}</p>
|
|
|
</div>
|
|
|
<div class="right">
|
|
|
<Button class="chg-price" @touchend.native="onChgPrice">调 价</Button>
|
|
|
<Button class="chg-price" @click.native="onChgPrice">调 价</Button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -87,7 +87,7 @@ export default { |
|
|
const {clientX, clientY} = evt.touches[0];
|
|
|
let distance = clientX - this.startX;
|
|
|
|
|
|
if (Math.abs(distance) > this.optionsWidth) {
|
|
|
if ((0 - distance) > this.optionsWidth) {
|
|
|
distance = (0 - this.optionsWidth) + (distance + this.optionsWidth) * 0.1;
|
|
|
}
|
|
|
|
...
|
...
|
|