Commit cca8a1a8 by 施宇

Merge branch 'h5_zyly_vue_0517' into Development

parents cd83c57b a55748e9
...@@ -28,9 +28,33 @@ ...@@ -28,9 +28,33 @@
padding-left: 66px; padding-left: 66px;
h4 { h4 {
padding-bottom: 10px;
font-size: 18px; font-size: 18px;
color: #333333; color: #333333;
line-height: 30px;
strong {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 85%;
height: remFun(0.6rem);
width: auto;
margin-right: remFun(0.08rem);
}
span {
position: relative;
top: remFun(-0.3rem);
font-size: remFun(0.20rem);
color: #ff0000;
border: 1px solid #ff0000;
padding: 0 remFun(0.05rem);
border-radius: 5px;
display: inline-block;
height: remFun(0.3rem);
line-height: remFun(0.28rem);
}
} }
} }
} }
...@@ -101,7 +125,7 @@ ...@@ -101,7 +125,7 @@
} }
.xs-3 { .xs-3 {
width:25%; width: 25%;
} }
th { th {
...@@ -113,6 +137,7 @@ ...@@ -113,6 +137,7 @@
td { td {
border: 1px solid #d9d9d9; border: 1px solid #d9d9d9;
color: #333; color: #333;
} }
} }
...@@ -155,7 +180,6 @@ ...@@ -155,7 +180,6 @@
.price { .price {
padding-top: 10px; padding-top: 10px;
.zyqhc { .zyqhc {
position: absolute; position: absolute;
width: remFun(3.4rem); width: remFun(3.4rem);
...@@ -204,25 +228,26 @@ ...@@ -204,25 +228,26 @@
top: remFun(0.15rem); top: remFun(0.15rem);
} }
.em1 {
padding: 0 0.5em;
}
dl { dl {
font-size: 12px; font-size: 12px;
dt { dt {
width: 5em; width:5em;
color: #999; color: #999;
float: left; float: left;
line-height: 30px; line-height: 30px;
.em1 {
padding: 0 0.5em;
}
} }
dd { dd {
padding-left: 5em; padding-left: 4em;
color: #333; color: #333;
line-height: 30px; line-height: 30px;
.toLogin{
margin-right:.15rem;
}
&.onePrice { &.onePrice {
font-size: 14px; font-size: 14px;
} }
...@@ -232,6 +257,25 @@ ...@@ -232,6 +257,25 @@
color: red; color: red;
font-size: 14px; font-size: 14px;
} }
.isOriginPrice{
color: #999999;
font-size: 12px;
font-weight: normal;
&.isNoOriginPrice{
text-decoration: line-through;
}
}
.isNowPrice{
color: #333;
font-size: 12px;
font-weight: normal;
margin-right:.15rem;
}
.isOriginUsPrice{
color: #333;
font-size: 12px;
font-weight: normal;
}
&.tab { &.tab {
span { span {
...@@ -250,6 +294,7 @@ ...@@ -250,6 +294,7 @@
color: #e10601; color: #e10601;
border-color: #e10601; border-color: #e10601;
} }
&.act-blue { &.act-blue {
color: #1080d0; color: #1080d0;
border-color: #1080d0; border-color: #1080d0;
...@@ -327,4 +372,19 @@ ...@@ -327,4 +372,19 @@
} }
} }
} }
.toLogin {
color: rgb(16, 128, 208);
text-decoration: underline;
font-size: 12px;
font-weight: normal;
}
.priceCn {
color: rgb(153, 153, 153);
&.noPriceCn {
text-decoration: line-through
}
}
} }
\ No newline at end of file
...@@ -3,11 +3,18 @@ ...@@ -3,11 +3,18 @@
<div class="details-head"> <div class="details-head">
<div class="head_top clr"> <div class="head_top clr">
<div class="head_top_left fl"> <div class="head_top_left fl">
<img :src="goodDetail.brand_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'" @error="imgErr" @click="showImagePreview"> <img
:src="goodDetail.brand_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'"
@error="imgErr"
@click="showImagePreview"
>
</div> </div>
<div class="head_top_right"> <div class="head_top_right">
<h4> <h4>
<strong>{{goodDetail.goods_name}}</strong> <strong>{{goodDetail.goods_name}}</strong>
<template v-if="goodDetail.ac_type == 2 || goodDetail.ac_type == 3">
<span>优惠</span>
</template>
</h4> </h4>
<p class="icon-hint"></p> <p class="icon-hint"></p>
</div> </div>
...@@ -66,6 +73,7 @@ ...@@ -66,6 +73,7 @@
<table> <table>
<tbody> <tbody>
<tr> <tr>
<!-- 2 活动价 3会员价 -->
<template v-if="goodDetail.ac_type == 2 || goodDetail.ac_type == 3"> <template v-if="goodDetail.ac_type == 2 || goodDetail.ac_type == 3">
<th class="xs-3">数量</th> <th class="xs-3">数量</th>
<th class="xs-3">原价(含税)</th> <th class="xs-3">原价(含税)</th>
...@@ -86,12 +94,29 @@ ...@@ -86,12 +94,29 @@
<td class="xs-3"> <td class="xs-3">
<span v-html="v.purchases+'+'"></span> <span v-html="v.purchases+'+'"></span>
</td> </td>
<template v-if=" goodDetail.ac_type == 3">
<td class="xs-3"> <td class="xs-3">
<span v-html="'¥'+v.price_cn"></span> <span v-html="'¥'+v.price_cn" :class="{'priceCn':true,'noPriceCn':isCookie}"></span>
</td>
</template>
<template v-if=" goodDetail.ac_type == 2">
<td class="xs-3">
<span v-html="'¥'+v.price_cn" class="priceCn noPriceCn"></span>
</td>
</template>
<template v-if="goodDetail.ac_type == 3&&!isCookie">
<td class="xs-3" v-if="k==0">
<span class="toLogin" @click="toLogin">登录查看</span>
</td> </td>
<td class="xs-3" v-else>
<span>- -</span>
</td>
</template>
<template v-else>
<td class="xs-3"> <td class="xs-3">
<span v-html="'¥'+v.price_ac"></span> <span v-html="'¥'+v.price_ac" style="color: rgb(255, 0, 0)"></span>
</td> </td>
</template>
<td class="xs-3"> <td class="xs-3">
<span v-html="'$'+v.price_us"></span> <span v-html="'$'+v.price_us"></span>
</td> </td>
...@@ -126,7 +151,7 @@ ...@@ -126,7 +151,7 @@
</div> </div>
</template> </template>
</div> </div>
<div class="price"> <div class="price lyPrice">
<dl class="clr"> <dl class="clr">
<dt>交货地</dt> <dt>交货地</dt>
<dd class="tab"> <dd class="tab">
...@@ -163,15 +188,58 @@ ...@@ -163,15 +188,58 @@
<span class="em1"></span> <span class="em1"></span>
</dt> </dt>
<dd class="onePrice" v-if="navInit==0">¥{{singlePriceCn}}</dd> <dd class="onePrice" v-if="navInit==0">
<dd class="onePrice" v-else>${{singlePriceUs}}</dd> <template v-if="goodDetail.ac_type == 3">
<span class="toLogin" v-if="!isCookie" @click="toLogin">登录查看</span>
<span class="isNowPrice" v-if="isCookie">¥{{singlePriceVip}}</span>
<span :class="{'isOriginPrice':true,'isNoOriginPrice':isCookie}">¥{{singlePriceCn}}</span>
</template>
<template v-else-if="goodDetail.ac_type == 2">
<span class="isNowPrice">¥{{singlePriceVip}}</span>
<span class="isOriginPrice isNoOriginPrice">¥{{singlePriceCn}}</span>
</template>
<template v-else>
<span>¥{{singlePriceCn}}</span>
</template>
</dd>
<dd class="onePrice" v-else>
<template v-if="goodDetail.ac_type == 3 || goodDetail.ac_type == 2">
<span class="isOriginUsPrice">${{singlePriceUs}}</span>
</template>
<template v-else>
<span>${{singlePriceUs}}</span>
</template>
</dd>
</dl> </dl>
<dl class="clr"> <dl class="clr">
<dt> <dt>
<span class="em1"></span> <span class="em1"></span>
</dt> </dt>
<dd class="totalPrice">{{total}}</dd> <dd class="totalPrice">
<template v-if="navInit==0">
<template v-if="goodDetail.ac_type == 3">
<span class="toLogin" v-if="!isCookie" @click="toLogin">登录查看</span>
<span class="isNowPrice" v-if="isCookie">{{vipTotal}}</span>
<span :class="{'isOriginPrice':true,'isNoOriginPrice':isCookie}">{{total}}</span>
</template>
<template v-else-if="goodDetail.ac_type == 2">
<span class="isNowPrice">{{vipTotal }}</span>
<span class="isOriginPrice isNoOriginPrice">{{total}}</span>
</template>
<template v-else>
<span>{{total}}</span>
</template>
</template>
<template v-else>
<template v-if="goodDetail.ac_type == 3 || goodDetail.ac_type == 2">
<span class="isOriginUsPrice">{{total}}</span>
</template>
<template v-else>
<span>{{total}}</span>
</template>
</template>
</dd>
</dl> </dl>
</div> </div>
</div> </div>
...@@ -183,8 +251,8 @@ ...@@ -183,8 +251,8 @@
</template> </template>
<script> <script>
import util from "../../util/index"; import util from "../../util/index";
import Vue from 'vue' import Vue from "vue";
import { ImagePreview } from 'vant'; import { ImagePreview } from "vant";
Vue.use(ImagePreview); Vue.use(ImagePreview);
export default { export default {
props: { props: {
...@@ -200,6 +268,7 @@ export default { ...@@ -200,6 +268,7 @@ export default {
isShowMore: false, isShowMore: false,
singlePriceCn: 0, //国内单价 singlePriceCn: 0, //国内单价
singlePriceUs: 0, //香港单价 singlePriceUs: 0, //香港单价
singlePriceVip: 0, //会员单价
navInit: 0, navInit: 0,
startNum: 0, //起订量 startNum: 0, //起订量
multipleNum: 0, //倍数 multipleNum: 0, //倍数
...@@ -207,7 +276,8 @@ export default { ...@@ -207,7 +276,8 @@ export default {
stockNum: 0, //库存, stockNum: 0, //库存,
zyladderArr: [], //阶梯价 zyladderArr: [], //阶梯价
zySingleInit: 0, //自营数量初始值 zySingleInit: 0, //自营数量初始值
goodsNum: 0 //商品数量 goodsNum: 0, //商品数量
isCookie: getCookie("Yo4teW_uid")
}; };
}, },
computed: { computed: {
...@@ -219,6 +289,9 @@ export default { ...@@ -219,6 +289,9 @@ export default {
//国内 //国内
return "¥" + (this.goodsNum * this.singlePriceCn).toFixed(4); return "¥" + (this.goodsNum * this.singlePriceCn).toFixed(4);
} }
},
vipTotal() {
return "¥" + (this.goodsNum * this.singlePriceVip).toFixed(4);
} }
}, },
watch: { watch: {
...@@ -266,9 +339,15 @@ export default { ...@@ -266,9 +339,15 @@ export default {
num: util.aggxde(singleData.purchases), num: util.aggxde(singleData.purchases),
priceus: Number(singleData.price_us).toFixed(4) priceus: Number(singleData.price_us).toFixed(4)
}); });
if (singleData.price_ac != null) {
this.zyladderArr[i].pricevip = Number(
singleData.price_ac
).toFixed(4);
} }
} }
} }
console.log(this.zyladderArr);
}
} }
}, },
goodsNum(now) { goodsNum(now) {
...@@ -285,8 +364,17 @@ export default { ...@@ -285,8 +364,17 @@ export default {
} }
}, },
methods: { methods: {
toLogin() {
window.location.href =
window.location.origin +
"/v3/login?referer=" +
encodeURIComponent(window.location.href);
},
showImagePreview(position, timer) { showImagePreview(position, timer) {
let images = [this.goodDetail.brand_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png']; let images = [
this.goodDetail.brand_logo ||
"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"
];
const instance = ImagePreview({ const instance = ImagePreview({
images, images,
asyncClose: !!timer, asyncClose: !!timer,
...@@ -312,12 +400,15 @@ export default { ...@@ -312,12 +400,15 @@ export default {
//阶梯价的数据为空 //阶梯价的数据为空
this.singlePriceCn = 0; this.singlePriceCn = 0;
this.singlePriceUs = 0; this.singlePriceUs = 0;
this.singlePriceVip = 0;
return; return;
} else { } else {
//阶梯价的数据不为空 //阶梯价的数据不为空
if (length == 1) { if (length == 1) {
//阶梯价的数据为1 //阶梯价的数据为1
this.singlePriceCn = this.zyladderArr[0].pricecn; this.singlePriceCn = this.zyladderArr[0].pricecn;
this.zyladderArr[0].pricevip &&
(this.singlePriceVip = this.zyladderArr[0].pricevip);
this.singlePriceUs = this.zyladderArr[0].priceus; this.singlePriceUs = this.zyladderArr[0].priceus;
return; return;
} else { } else {
...@@ -325,11 +416,15 @@ export default { ...@@ -325,11 +416,15 @@ export default {
if (v <= this.zyladderArr[0].num) { if (v <= this.zyladderArr[0].num) {
//输入数量小于等于最小值 //输入数量小于等于最小值
this.singlePriceCn = this.zyladderArr[0].pricecn; this.singlePriceCn = this.zyladderArr[0].pricecn;
this.zyladderArr[0].pricevip &&
(this.singlePriceVip = this.zyladderArr[0].pricevip);
this.singlePriceUs = this.zyladderArr[0].priceus; this.singlePriceUs = this.zyladderArr[0].priceus;
return; return;
} else if (v >= this.zyladderArr[length - 1].num) { } else if (v >= this.zyladderArr[length - 1].num) {
//输入数量大于等于最大值 //输入数量大于等于最大值
this.singlePriceCn = this.zyladderArr[length - 1].pricecn; this.singlePriceCn = this.zyladderArr[length - 1].pricecn;
this.zyladderArr[length - 1].pricevip &&
(this.singlePriceVip = this.zyladderArr[length - 1].pricevip);
this.singlePriceUs = this.zyladderArr[length - 1].priceus; this.singlePriceUs = this.zyladderArr[length - 1].priceus;
return; return;
} else { } else {
...@@ -339,6 +434,8 @@ export default { ...@@ -339,6 +434,8 @@ export default {
v < this.zyladderArr[i + 1].num v < this.zyladderArr[i + 1].num
) { ) {
this.singlePriceCn = this.zyladderArr[i].pricecn; this.singlePriceCn = this.zyladderArr[i].pricecn;
this.zyladderArr[i].pricevip &&
(this.singlePriceVip = this.zyladderArr[i].pricevip);
this.singlePriceUs = this.zyladderArr[i].priceus; this.singlePriceUs = this.zyladderArr[i].priceus;
break; break;
} }
......
...@@ -3,11 +3,21 @@ ...@@ -3,11 +3,21 @@
<div class="details-head"> <div class="details-head">
<div class="head_top clr"> <div class="head_top clr">
<div class="head_top_left fl"> <div class="head_top_left fl">
<img :src="goodDetail.brand_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'" @onerror="imgErr" @click="showImagePreview"> <img
:src="goodDetail.brand_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'"
@onerror="imgErr"
@click="showImagePreview"
>
</div> </div>
<div class="head_top_right"> <div class="head_top_right">
<h4> <h4>
<strong>{{goodDetail.sku_name}}</strong> <strong>{{goodDetail.sku_name}}</strong>
<template v-if="goodDetail.ac_type == 2 || goodDetail.ac_type == 3">
<span>优惠</span>
</template>
<template v-if="goodDetail.ac_type == 1">
<span>抢购</span>
</template>
</h4> </h4>
<p class="icon-hint"></p> <p class="icon-hint"></p>
</div> </div>
...@@ -70,12 +80,13 @@ ...@@ -70,12 +80,13 @@
<table> <table>
<tbody> <tbody>
<tr> <tr>
<!-- ac_type 1 限时限量 2 活动价 3会员价 -->
<template v-if="goodDetail.ac_type == 1"> <template v-if="goodDetail.ac_type == 1">
<th class="xs-3">数量</th> <th class="xs-3">数量</th>
<th class="xs-3">原价(含税)</th> <th class="xs-3">原价(含税)</th>
<th class="xs-3">抢购价(含税)</th> <th class="xs-3">抢购价(含税)</th>
</template> </template>
<template v-if="goodDetail.ac_type == 2 || goodDetail.ac_type == 3"> <template v-else-if="goodDetail.ac_type == 2 || goodDetail.ac_type == 3">
<th class="xs-3">数量</th> <th class="xs-3">数量</th>
<th class="xs-3">原价(含税)</th> <th class="xs-3">原价(含税)</th>
<th class="xs-3">优惠价(含税)</th> <th class="xs-3">优惠价(含税)</th>
...@@ -95,14 +106,31 @@ ...@@ -95,14 +106,31 @@
<td class="xs-3"> <td class="xs-3">
<span v-html="v.purchases+'+'"></span> <span v-html="v.purchases+'+'"></span>
</td> </td>
<template v-if=" goodDetail.ac_type == 3">
<td class="xs-3"> <td class="xs-3">
<span v-html="'¥'+v.price_cn"></span> <span v-html="'¥'+v.price_cn" :class="{'priceCn':true,'noPriceCn':isCookie}"></span>
</td> </td>
</template>
<template v-if=" goodDetail.ac_type == 2 || goodDetail.ac_type == 1">
<td class="xs-3"> <td class="xs-3">
<span v-html="'¥'+v.price_ac"></span> <span v-html="'¥'+v.price_cn" class="priceCn noPriceCn"></span>
</td>
</template>
<template v-if="goodDetail.ac_type == 3&&!isCookie">
<td class="xs-3" v-if="k==0">
<span class="toLogin" @click="toLogin">登录查看</span>
</td>
<td class="xs-3" v-else>
<span>- -</span>
</td> </td>
</template> </template>
<template v-else> <template v-else>
<td class="xs-3">
<span v-html="'¥'+v.price_ac" style="color: rgb(255, 0, 0)"></span>
</td>
</template>
</template>
<template v-else>
<td class="xs-6"> <td class="xs-6">
<span v-html="'¥'+v.purchases"></span> <span v-html="'¥'+v.purchases"></span>
</td> </td>
...@@ -129,7 +157,7 @@ ...@@ -129,7 +157,7 @@
</div> </div>
</template> </template>
</div> </div>
<div class="price"> <div class="price zyPrice">
<dl class="clr"> <dl class="clr">
<dt>购买形式</dt> <dt>购买形式</dt>
<dd class="tab"> <dd class="tab">
...@@ -180,14 +208,40 @@ ...@@ -180,14 +208,40 @@
<span class="em1"></span> <span class="em1"></span>
</dt> </dt>
<dd class="onePrice">¥{{singlePrice}}</dd> <dd class="onePrice">
<template v-if="goodDetail.ac_type == 3">
<span class="toLogin" v-if="!isCookie" @click="toLogin">登录查看</span>
<span class="isNowPrice" v-if="isCookie">¥{{singlePriceVip}}</span>
<span :class="{'isOriginPrice':true,'isNoOriginPrice':isCookie}">¥{{singlePrice}}</span>
</template>
<template v-else-if="goodDetail.ac_type == 2 || goodDetail.ac_type == 1">
<span class="isNowPrice">¥{{singlePriceVip}}</span>
<span class="isOriginPrice isNoOriginPrice">¥{{singlePrice}}</span>
</template>
<template v-else>
<span>¥{{singlePrice}}</span>
</template>
</dd>
</dl> </dl>
<dl class="clr"> <dl class="clr">
<dt> <dt>
<span class="em1"></span> <span class="em1"></span>
</dt> </dt>
<dd class="totalPrice">¥{{total}}</dd> <dd class="totalPrice">
<template v-if="goodDetail.ac_type == 3">
<span class="toLogin" v-if="!isCookie" @click="toLogin">登录查看</span>
<span class="isNowPrice" v-if="isCookie">{{vipTotal}}</span>
<span :class="{'isOriginPrice':true,'isNoOriginPrice':isCookie}">{{total}}</span>
</template>
<template v-else-if="goodDetail.ac_type == 2 || goodDetail.ac_type == 1">
<span class="isNowPrice">{{vipTotal }}</span>
<span class="isOriginPrice isNoOriginPrice">{{total}}</span>
</template>
<template v-else>
<span>{{total}}</span>
</template>
</dd>
</dl> </dl>
</div> </div>
</div> </div>
...@@ -199,8 +253,8 @@ ...@@ -199,8 +253,8 @@
</template> </template>
<script> <script>
import util from "../../util/index"; import util from "../../util/index";
import Vue from 'vue' import Vue from "vue";
import { ImagePreview } from 'vant'; import { ImagePreview } from "vant";
Vue.use(ImagePreview); Vue.use(ImagePreview);
export default { export default {
...@@ -214,10 +268,11 @@ export default { ...@@ -214,10 +268,11 @@ export default {
}, },
data() { data() {
return { return {
images:[], images: [],
isShowMore: false, isShowMore: false,
ypNum: 0, //组 ypNum: 0, //组
singlePrice: 0, //单价 singlePrice: 0, //单价
singlePriceVip: 0, //会员单价
tipText: "", tipText: "",
btnText: "", btnText: "",
navInit: 0, navInit: 0,
...@@ -227,12 +282,16 @@ export default { ...@@ -227,12 +282,16 @@ export default {
stockNum: 0, //库存, stockNum: 0, //库存,
zyladderArr: [], //阶梯价 zyladderArr: [], //阶梯价
zySingleInit: 0, //自营数量初始值 zySingleInit: 0, //自营数量初始值
goodsNum: 0 //商品数量 goodsNum: 0, //商品数量
isCookie: getCookie("Yo4teW_uid")
}; };
}, },
computed: { computed: {
total() { total() {
return (this.goodsNum * this.singlePrice).toFixed(4); return (this.goodsNum * this.singlePrice).toFixed(4);
},
vipTotal() {
return (this.goodsNum * this.singlePriceVip).toFixed(4);
} }
}, },
watch: { watch: {
...@@ -284,6 +343,11 @@ export default { ...@@ -284,6 +343,11 @@ export default {
price: Number(singleData.price_cn).toFixed(4), price: Number(singleData.price_cn).toFixed(4),
num: util.aggxde(singleData.purchases) num: util.aggxde(singleData.purchases)
}); });
if (singleData.price_ac != null) {
this.zyladderArr[i].pricevip = Number(
singleData.price_ac
).toFixed(4);
}
} }
} }
} }
...@@ -306,12 +370,18 @@ export default { ...@@ -306,12 +370,18 @@ export default {
} }
}, },
methods: { methods: {
toLogin(){
window.location.href = window.location.origin+'/v3/login?referer='+encodeURIComponent(window.location.href)
},
showImagePreview(position, timer) { showImagePreview(position, timer) {
let images = [this.goodDetail.brand_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'] let images = [
this.goodDetail.brand_logo ||
"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"
];
const instance = ImagePreview({ const instance = ImagePreview({
images, images,
asyncClose: !!timer, asyncClose: !!timer,
showIndex:false showIndex: false
}); });
if (timer) { if (timer) {
setTimeout(() => { setTimeout(() => {
...@@ -341,22 +411,29 @@ export default { ...@@ -341,22 +411,29 @@ export default {
if (!length) { if (!length) {
//阶梯价的数据为空 //阶梯价的数据为空
this.singlePrice = 0; this.singlePrice = 0;
this.singlePriceVip = 0;
return; return;
} else { } else {
//阶梯价的数据不为空 //阶梯价的数据不为空
if (length == 1) { if (length == 1) {
//阶梯价的数据为1 //阶梯价的数据为1
this.singlePrice = this.zyladderArr[0].price; this.singlePrice = this.zyladderArr[0].price;
this.zyladderArr[0].pricevip &&
(this.singlePriceVip = this.zyladderArr[0].pricevip);
return; return;
} else { } else {
//阶梯价的数据不为1 //阶梯价的数据不为1
if (v <= this.zyladderArr[0].num) { if (v <= this.zyladderArr[0].num) {
//输入数量小于等于最小值 //输入数量小于等于最小值
this.singlePrice = this.zyladderArr[0].price; this.singlePrice = this.zyladderArr[0].price;
this.zyladderArr[0].pricevip &&
(this.singlePriceVip = this.zyladderArr[0].pricevip);
return; return;
} else if (v >= this.zyladderArr[length - 1].num) { } else if (v >= this.zyladderArr[length - 1].num) {
//输入数量大于等于最大值 //输入数量大于等于最大值
this.singlePrice = this.zyladderArr[length - 1].price; this.singlePrice = this.zyladderArr[length - 1].price;
this.zyladderArr[length - 1].pricevip &&
(this.singlePriceVip = this.zyladderArr[length - 1].pricevip);
return; return;
} else { } else {
for (let i = 0; i < this.zyladderArr.length; i++) { for (let i = 0; i < this.zyladderArr.length; i++) {
...@@ -365,6 +442,8 @@ export default { ...@@ -365,6 +442,8 @@ export default {
v < this.zyladderArr[i + 1].num v < this.zyladderArr[i + 1].num
) { ) {
this.singlePrice = this.zyladderArr[i].price; this.singlePrice = this.zyladderArr[i].price;
this.zyladderArr[i].pricevip &&
(this.singlePriceVip = this.zyladderArr[i].pricevip);
break; break;
} }
} }
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js" type="text/javascript" charset="utf-8"></script> <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js" type="text/javascript" charset="utf-8"></script>
<script src="//szh5static.ichunt.com/static/js/flexible.min.js" type="text/javascript" charset="utf-8"></script> <script src="//szh5static.ichunt.com/static/js/flexible.min.js" type="text/javascript" charset="utf-8"></script>
<script src="//szh5static.ichunt.com/static/js/shence.min.js" type="text/javascript" charset="utf-8"></script> <script src="//szh5static.ichunt.com/static/js/shence.min.js" type="text/javascript" charset="utf-8"></script>
<link href="//szh5static.ichunt.com/0.js" rel="prefetch"><link href="//szh5static.ichunt.com/1.js" rel="prefetch"><link href="//szh5static.ichunt.com/10.js" rel="prefetch"><link href="//szh5static.ichunt.com/11.js" rel="prefetch"><link href="//szh5static.ichunt.com/12.js" rel="prefetch"><link href="//szh5static.ichunt.com/13.js" rel="prefetch"><link href="//szh5static.ichunt.com/14.js" rel="prefetch"><link href="//szh5static.ichunt.com/15.js" rel="prefetch"><link href="//szh5static.ichunt.com/16.js" rel="prefetch"><link href="//szh5static.ichunt.com/17.js" rel="prefetch"><link href="//szh5static.ichunt.com/18.js" rel="prefetch"><link href="//szh5static.ichunt.com/19.js" rel="prefetch"><link href="//szh5static.ichunt.com/2.js" rel="prefetch"><link href="//szh5static.ichunt.com/20.js" rel="prefetch"><link href="//szh5static.ichunt.com/21.js" rel="prefetch"><link href="//szh5static.ichunt.com/22.js" rel="prefetch"><link href="//szh5static.ichunt.com/23.js" rel="prefetch"><link href="//szh5static.ichunt.com/24.js" rel="prefetch"><link href="//szh5static.ichunt.com/25.js" rel="prefetch"><link href="//szh5static.ichunt.com/26.js" rel="prefetch"><link href="//szh5static.ichunt.com/27.js" rel="prefetch"><link href="//szh5static.ichunt.com/28.js" rel="prefetch"><link href="//szh5static.ichunt.com/29.js" rel="prefetch"><link href="//szh5static.ichunt.com/3.js" rel="prefetch"><link href="//szh5static.ichunt.com/30.js" rel="prefetch"><link href="//szh5static.ichunt.com/31.js" rel="prefetch"><link href="//szh5static.ichunt.com/32.js" rel="prefetch"><link href="//szh5static.ichunt.com/33.js" rel="prefetch"><link href="//szh5static.ichunt.com/34.js" rel="prefetch"><link href="//szh5static.ichunt.com/35.js" rel="prefetch"><link href="//szh5static.ichunt.com/36.js" rel="prefetch"><link href="//szh5static.ichunt.com/37.js" rel="prefetch"><link href="//szh5static.ichunt.com/4.js" rel="prefetch"><link href="//szh5static.ichunt.com/5.js" rel="prefetch"><link href="//szh5static.ichunt.com/6.js" rel="prefetch"><link href="//szh5static.ichunt.com/7.js" rel="prefetch"><link href="//szh5static.ichunt.com/8.js" rel="prefetch"><link href="//szh5static.ichunt.com/9.js" rel="prefetch"><link href="//szh5static.ichunt.com/app.js" rel="preload" as="script"></head> <link href="//szh5static.ichunt.com/0.js" rel="prefetch"><link href="//szh5static.ichunt.com/1.js" rel="prefetch"><link href="//szh5static.ichunt.com/10.js" rel="prefetch"><link href="//szh5static.ichunt.com/11.js" rel="prefetch"><link href="//szh5static.ichunt.com/12.js" rel="prefetch"><link href="//szh5static.ichunt.com/13.js" rel="prefetch"><link href="//szh5static.ichunt.com/14.js" rel="prefetch"><link href="//szh5static.ichunt.com/15.js" rel="prefetch"><link href="//szh5static.ichunt.com/16.js" rel="prefetch"><link href="//szh5static.ichunt.com/17.js" rel="prefetch"><link href="//szh5static.ichunt.com/18.js" rel="prefetch"><link href="//szh5static.ichunt.com/19.js" rel="prefetch"><link href="//szh5static.ichunt.com/2.js" rel="prefetch"><link href="//szh5static.ichunt.com/20.js" rel="prefetch"><link href="//szh5static.ichunt.com/21.js" rel="prefetch"><link href="//szh5static.ichunt.com/22.js" rel="prefetch"><link href="//szh5static.ichunt.com/23.js" rel="prefetch"><link href="//szh5static.ichunt.com/24.js" rel="prefetch"><link href="//szh5static.ichunt.com/25.js" rel="prefetch"><link href="//szh5static.ichunt.com/26.js" rel="prefetch"><link href="//szh5static.ichunt.com/27.js" rel="prefetch"><link href="//szh5static.ichunt.com/28.js" rel="prefetch"><link href="//szh5static.ichunt.com/29.js" rel="prefetch"><link href="//szh5static.ichunt.com/3.js" rel="prefetch"><link href="//szh5static.ichunt.com/30.js" rel="prefetch"><link href="//szh5static.ichunt.com/31.js" rel="prefetch"><link href="//szh5static.ichunt.com/32.js" rel="prefetch"><link href="//szh5static.ichunt.com/33.js" rel="prefetch"><link href="//szh5static.ichunt.com/34.js" rel="prefetch"><link href="//szh5static.ichunt.com/35.js" rel="prefetch"><link href="//szh5static.ichunt.com/36.js" rel="prefetch"><link href="//szh5static.ichunt.com/37.js" rel="prefetch"><link href="//szh5static.ichunt.com/38.js" rel="prefetch"><link href="//szh5static.ichunt.com/4.js" rel="prefetch"><link href="//szh5static.ichunt.com/5.js" rel="prefetch"><link href="//szh5static.ichunt.com/6.js" rel="prefetch"><link href="//szh5static.ichunt.com/7.js" rel="prefetch"><link href="//szh5static.ichunt.com/8.js" rel="prefetch"><link href="//szh5static.ichunt.com/9.js" rel="prefetch"><link href="//szh5static.ichunt.com/app.js" rel="preload" as="script"></head>
<body class="boxsiz"> <body class="boxsiz">
<noscript> <noscript>
<strong>网站出现了一点小问题,正在紧急修复中.......</strong> <strong>网站出现了一点小问题,正在紧急修复中.......</strong>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment