...
|
...
|
@@ -21,6 +21,7 @@ |
|
|
<span class="dot" :class="{active: props.current === index}" v-for="(item, index) in props.dots">{{index + 1}}</span>
|
|
|
</template>
|
|
|
</cube-slide>
|
|
|
<div class="qiugou" @click="qiugou"></div>
|
|
|
</div>
|
|
|
|
|
|
<div class="info">
|
...
|
...
|
@@ -84,7 +85,7 @@ |
|
|
@select="onSelectTradeProduct"
|
|
|
@add="onRequestSize"/>
|
|
|
<size-request-sheet v-if="showSizeRequestSheet" @hidden="onSizeRequestHidden"/>
|
|
|
<buy-sheet v-if="showBuySheet" @hidden="onBuyHidden"/>
|
|
|
<buy-sheet v-if="showBuySheet" @hidden="onBuyHidden" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
...
|
...
|
@@ -182,7 +183,7 @@ export default { |
|
|
},
|
|
|
mounted() {
|
|
|
this.loadData(this.productId);
|
|
|
this.imageHideThreadhold = -window.innerWidth * 0.8;
|
|
|
this.imageHideThreadhold = -window.innerWidth * 0.5;
|
|
|
},
|
|
|
activated() {
|
|
|
this.refresh();
|
...
|
...
|
@@ -263,9 +264,6 @@ export default { |
|
|
};
|
|
|
this.showSizeSelectSheet = true;
|
|
|
},
|
|
|
onBuyHidden() {
|
|
|
this.showBuySheet = false;
|
|
|
},
|
|
|
sell() {
|
|
|
this.selectSizeConfig = {
|
|
|
dest: 'OrderSellConfirm',
|
...
|
...
|
@@ -288,7 +286,12 @@ export default { |
|
|
onSizeRequestHidden() {
|
|
|
this.showSizeRequestSheet = false;
|
|
|
},
|
|
|
|
|
|
qiugou() {
|
|
|
this.showBuySheet = true;
|
|
|
},
|
|
|
onBuyHidden() {
|
|
|
this.showBuySheet = false;
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
...
|
...
|
@@ -317,6 +320,7 @@ export default { |
|
|
width: 520px;
|
|
|
height: 520px;
|
|
|
margin: 0 auto;
|
|
|
position: relative;
|
|
|
.dot {
|
|
|
width: 10px;
|
|
|
height: 10px;
|
...
|
...
|
@@ -327,6 +331,16 @@ export default { |
|
|
background-color: #08304b;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.qiugou {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
right: - 58px;
|
|
|
width: 58px;
|
|
|
height: 48px;
|
|
|
background: top left url("~statics/image/product/qiugou@3x.png") no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.cube-slide-item {
|
...
|
...
|
|