|
@@ -18,7 +18,7 @@ class="goods-change-left"
|
|
v-if="goodsDetails.arr.logo"
|
|
v-if="goodsDetails.arr.logo"
|
|
@click="goodsIndex>0?goodsIndex-=1:goodsIndex;
|
|
@click="goodsIndex>0?goodsIndex-=1:goodsIndex;
|
|
goodsDetails.arr.logo.length>=2 &&logoIndex>=1?logoIndex-=1:''">
|
|
goodsDetails.arr.logo.length>=2 &&logoIndex>=1?logoIndex-=1:''">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/product-right-icon.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/product-right-icon.png">
|
|
</div>
|
|
</div>
|
|
<div class="content-s">
|
|
<div class="content-s">
|
|
<div class="style-s" :style="{ transform: `translateX(${-goodsIndex * 140}px)` }">
|
|
<div class="style-s" :style="{ transform: `translateX(${-goodsIndex * 140}px)` }">
|
|
@@ -35,19 +35,20 @@ v-if="goodsDetails.arr.logo"
|
|
@click="goodsIndex+4<goodsList.length?goodsIndex+=1:'';
|
|
@click="goodsIndex+4<goodsList.length?goodsIndex+=1:'';
|
|
goodsDetails.arr.logo.length>=2 &&logoIndex+1<goodsDetails.arr.logo.length?logoIndex+=1:''
|
|
goodsDetails.arr.logo.length>=2 &&logoIndex+1<goodsDetails.arr.logo.length?logoIndex+=1:''
|
|
">
|
|
">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/product-left-icon.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/product-left-icon.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="tips">产品图片仅供参考,不能作为您选型购买的依据</div>
|
|
<div class="tips">产品图片仅供参考,不能作为您选型购买的依据</div>
|
|
</div>
|
|
</div>
|
|
<div class="goods-right">
|
|
<div class="goods-right">
|
|
<div class="goods-name overflow2">{{goodsDetails.arr.name}}</div>
|
|
<div class="goods-name overflow2">{{goodsDetails.arr.name}}</div>
|
|
|
|
+ <!-- <div>{{ remainTime.time }}</div> -->
|
|
<div class="seckill" v-if="goodsDetails.arr.is_kill===1 && timeFlag===true">
|
|
<div class="seckill" v-if="goodsDetails.arr.is_kill===1 && timeFlag===true">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon6.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon6.png">
|
|
<CountDate :remain-time="remainTime.time" :dateColor="2"/>
|
|
<CountDate :remain-time="remainTime.time" :dateColor="2"/>
|
|
-
|
|
|
|
<div class="rob" v-if="goodsDetails.arr.sku">
|
|
<div class="rob" v-if="goodsDetails.arr.sku">
|
|
<div class="rob-text">抢购价格</div>
|
|
<div class="rob-text">抢购价格</div>
|
|
|
|
+ <!-- amount_kill -->
|
|
<div class="rob-money"><span style="font-size: 12px">¥</span>{{goodsAmountKill}}</div>
|
|
<div class="rob-money"><span style="font-size: 12px">¥</span>{{goodsAmountKill}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -72,22 +73,22 @@ v-if="goodsDetails.arr.logo"
|
|
</div>
|
|
</div>
|
|
<div class="freight border-bottom">
|
|
<div class="freight border-bottom">
|
|
<div class="goods-brand-text">配送</div>
|
|
<div class="goods-brand-text">配送</div>
|
|
- <div class="freight-text">现在下单,预计{{goodsDetails.arr.send_day}}发货</div>
|
|
|
|
|
|
+ <div class="freight-text">现在下单,最快预计{{goodsDetails.arr.send_day}}发货</div>
|
|
<div class="kf-icons" style="margin-left: 30px" @click="serviceTap">
|
|
<div class="kf-icons" style="margin-left: 30px" @click="serviceTap">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/goods-kf-cion.png">咨询客服
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/goods-kf-cion.png">咨询客服
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="goods-brand">
|
|
<div class="goods-brand">
|
|
<div class="goods-brand-text margins">采购量</div>
|
|
<div class="goods-brand-text margins">采购量</div>
|
|
<div class="change-box">
|
|
<div class="change-box">
|
|
<div class="add" @click="addInstallSum">
|
|
<div class="add" @click="addInstallSum">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
</div>
|
|
</div>
|
|
<div class="sum">
|
|
<div class="sum">
|
|
<el-input type="number" @blur="inputBlurGoods" maxlength="99" v-model="num"></el-input>
|
|
<el-input type="number" @blur="inputBlurGoods" maxlength="99" v-model="num"></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="del" @click="delInstallSum">
|
|
<div class="del" @click="delInstallSum">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -95,13 +96,13 @@ v-if="goodsDetails.arr.logo"
|
|
<div class="goods-brand-text margins">安装量</div>
|
|
<div class="goods-brand-text margins">安装量</div>
|
|
<div class="change-box">
|
|
<div class="change-box">
|
|
<div class="add" @click="addSum">
|
|
<div class="add" @click="addSum">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
</div>
|
|
</div>
|
|
<div class="sum">
|
|
<div class="sum">
|
|
<el-input type="number" @blur="inputBlurGoods" maxlength="99" v-model="installNum"></el-input>
|
|
<el-input type="number" @blur="inputBlurGoods" maxlength="99" v-model="installNum"></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="del" @click="delSum">
|
|
<div class="del" @click="delSum">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="goods-brand-text margins" style="margin:10px 0 0 30px">安装单价:</div>
|
|
<div class="goods-brand-text margins" style="margin:10px 0 0 30px">安装单价:</div>
|
|
@@ -110,8 +111,8 @@ v-if="goodsDetails.arr.logo"
|
|
<div class="goods-bottom" v-if="goodsDetails.arr.favourite">
|
|
<div class="goods-bottom" v-if="goodsDetails.arr.favourite">
|
|
<div class="collect" @click="collect">
|
|
<div class="collect" @click="collect">
|
|
<div class="collect-icon">
|
|
<div class="collect-icon">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/collect-icon.png" v-if="goodsDetails.arr.favourite[typeId]==false">
|
|
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/collect-show-icon.png" v-else>
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/collect-icon.png" v-if="goodsDetails.arr.favourite[typeId]==false">
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/collect-show-icon.png" v-else>
|
|
</div>
|
|
</div>
|
|
<div class="collect-text">收藏</div>
|
|
<div class="collect-text">收藏</div>
|
|
</div>
|
|
</div>
|
|
@@ -145,14 +146,14 @@ v-if="goodsDetails.arr.logo"
|
|
<div class="goods-name" style="margin-left: 10px"> 数量:</div>
|
|
<div class="goods-name" style="margin-left: 10px"> 数量:</div>
|
|
<div class="goods-count" style="margin-left: 10px">
|
|
<div class="goods-count" style="margin-left: 10px">
|
|
<div class="add" @click="zhAdd">
|
|
<div class="add" @click="zhAdd">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
</div>
|
|
</div>
|
|
<div class="sums">
|
|
<div class="sums">
|
|
<el-input type="number" @blur="inputBlurZh" maxlength="99" v-model="zhNums"></el-input>
|
|
<el-input type="number" @blur="inputBlurZh" maxlength="99" v-model="zhNums"></el-input>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="del" @click="zhDel">
|
|
<div class="del" @click="zhDel">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -163,25 +164,25 @@ v-if="goodsDetails.arr.logo"
|
|
<div class="goods-name" style="margin-left: 10px"> 数量:</div>
|
|
<div class="goods-name" style="margin-left: 10px"> 数量:</div>
|
|
<div class="goods-count" style="margin-left: 10px">
|
|
<div class="goods-count" style="margin-left: 10px">
|
|
<div class="add" @click="zhInstallAdd">
|
|
<div class="add" @click="zhInstallAdd">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
</div>
|
|
</div>
|
|
<div class="sums">
|
|
<div class="sums">
|
|
<el-input @blur="inputBlurZh" type="number" maxlength="99" v-model="zhNumsInstall"></el-input>
|
|
<el-input @blur="inputBlurZh" type="number" maxlength="99" v-model="zhNumsInstall"></el-input>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="del" @click="zhInstallDel">
|
|
<div class="del" @click="zhInstallDel">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="add-icon">
|
|
<div class="add-icon">
|
|
- <img style="width: 50px;height: 50px;margin: 30px 0 0 30px;" src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
|
|
|
|
+ <img style="width: 50px;height: 50px;margin: 30px 0 0 30px;" src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="group-all-cen" style="margin-left: 30px;">
|
|
<div class="group-all-cen" style="margin-left: 30px;">
|
|
<div class="group-left-icon" @click="groupIndex>0?groupIndex-=1:groupIndex">
|
|
<div class="group-left-icon" @click="groupIndex>0?groupIndex-=1:groupIndex">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon8.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon8.png">
|
|
</div>
|
|
</div>
|
|
<div class="group-width">
|
|
<div class="group-width">
|
|
|
|
|
|
@@ -196,13 +197,13 @@ v-if="goodsDetails.arr.logo"
|
|
<div class="goods-price">¥{{item.sku[0].amount}}</div>
|
|
<div class="goods-price">¥{{item.sku[0].amount}}</div>
|
|
<div class="goods-count">
|
|
<div class="goods-count">
|
|
<div class="add" @click="addsNum(item)">
|
|
<div class="add" @click="addsNum(item)">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
</div>
|
|
</div>
|
|
<div class="sums">
|
|
<div class="sums">
|
|
<el-input @blur="inputBlurZh" type="number" maxlength="99" v-model="item.num"></el-input>
|
|
<el-input @blur="inputBlurZh" type="number" maxlength="99" v-model="item.num"></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="del" @click="deltesNum(item)">
|
|
<div class="del" @click="deltesNum(item)">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -210,11 +211,11 @@ v-if="goodsDetails.arr.logo"
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="group-right-icon" @click="groupIndex+4<goodsList.length?groupIndex+=1:''">
|
|
<div class="group-right-icon" @click="groupIndex+4<goodsList.length?groupIndex+=1:''">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon7.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon7.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="group-all-equal">
|
|
<div class="group-all-equal">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon2.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon2.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="group-all-add-s">
|
|
<div class="group-all-add-s">
|
|
@@ -241,24 +242,24 @@ v-if="goodsDetails.arr.logo"
|
|
<div class="goods-price">¥{{goodsDetails.arr.sku[ruleIndex].amount}}</div>
|
|
<div class="goods-price">¥{{goodsDetails.arr.sku[ruleIndex].amount}}</div>
|
|
<div class="goods-count">
|
|
<div class="goods-count">
|
|
<div class="add" @click="zjDel()">
|
|
<div class="add" @click="zjDel()">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
</div>
|
|
</div>
|
|
<div class="sums">
|
|
<div class="sums">
|
|
<el-input type="number" maxlength="99" v-model="zjNums"></el-input>
|
|
<el-input type="number" maxlength="99" v-model="zjNums"></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="del" @click="zjAdd()">
|
|
<div class="del" @click="zjAdd()">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="add-icon">
|
|
<div class="add-icon">
|
|
- <img style="width: 50px;height: 50px;margin: 30px 0 0 30px;" src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
|
|
|
|
+ <img style="width: 50px;height: 50px;margin: 30px 0 0 30px;" src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="group-all-cen" style="margin-left: 30px;">
|
|
<div class="group-all-cen" style="margin-left: 30px;">
|
|
<div class="group-left-icon" @click="groupIndex>0?groupIndex-=1:groupIndex">
|
|
<div class="group-left-icon" @click="groupIndex>0?groupIndex-=1:groupIndex">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon8.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon8.png">
|
|
</div>
|
|
</div>
|
|
<div class="group-width">
|
|
<div class="group-width">
|
|
<div class="group-box" :style="{ transform: `translateX(${-groupIndex * 175}px)` }">
|
|
<div class="group-box" :style="{ transform: `translateX(${-groupIndex * 175}px)` }">
|
|
@@ -272,29 +273,29 @@ v-if="goodsDetails.arr.logo"
|
|
<div class="goods-price">¥{{item.amount}}</div>
|
|
<div class="goods-price">¥{{item.amount}}</div>
|
|
<div class="goods-count">
|
|
<div class="goods-count">
|
|
<div class="add" @click="zjAddNum(item)">
|
|
<div class="add" @click="zjAddNum(item)">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">
|
|
</div>
|
|
</div>
|
|
<div class="sums">
|
|
<div class="sums">
|
|
<el-input type="number" maxlength="99" v-model="item.num"></el-input>
|
|
<el-input type="number" maxlength="99" v-model="item.num"></el-input>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="del" @click="zjDelNum(item)">
|
|
<div class="del" @click="zjDelNum(item)">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/del.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- <div class="group-all-add" v-if="index==1">-->
|
|
<!-- <div class="group-all-add" v-if="index==1">-->
|
|
- <!-- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">-->
|
|
|
|
|
|
+ <!-- <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/add.png">-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="group-right-icon" @click="groupIndex+4<goodsList.length?groupIndex+=1:''">
|
|
<div class="group-right-icon" @click="groupIndex+4<goodsList.length?groupIndex+=1:''">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon7.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon7.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="group-all-equal">
|
|
<div class="group-all-equal">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon2.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/goods-icon2.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- <div class="group-all-add-s">-->
|
|
<!-- <div class="group-all-add-s">-->
|
|
@@ -315,7 +316,7 @@ v-if="goodsDetails.arr.logo"
|
|
<div class="seckill-title" @click="reloadPJ">
|
|
<div class="seckill-title" @click="reloadPJ">
|
|
<div class="title">配件推荐</div>
|
|
<div class="title">配件推荐</div>
|
|
<div class="change">
|
|
<div class="change">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/change-text.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/change-text.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="goods-lists" @click="routeTaps('/goodsDetail',item.id)" v-for="(item,index) in pzList.arr" :key="index">
|
|
<div class="goods-lists" @click="routeTaps('/goodsDetail',item.id)" v-for="(item,index) in pzList.arr" :key="index">
|
|
@@ -332,7 +333,7 @@ v-if="goodsDetails.arr.logo"
|
|
<div class="seckill-title" @click="reloadRecommend">
|
|
<div class="seckill-title" @click="reloadRecommend">
|
|
<div class="title">推荐商品</div>
|
|
<div class="title">推荐商品</div>
|
|
<div class="change point">
|
|
<div class="change point">
|
|
- <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/goods/change-text.png">
|
|
|
|
|
|
+ <img src="http://screen.zhousi.hdlkeji.com/aksdbn/img/goods/change-text.png">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="goods-lists" @click="routeTaps('/goodsDetail',item.id)" v-for="(item,index) in recommends.arr" :key="index">
|
|
<div class="goods-lists" @click="routeTaps('/goodsDetail',item.id)" v-for="(item,index) in recommends.arr" :key="index">
|
|
@@ -804,7 +805,7 @@ const goodsAmounts = (...item) => {
|
|
amount_s(data).then((res) => {
|
|
amount_s(data).then((res) => {
|
|
goodsAmount.value = res.data.amount
|
|
goodsAmount.value = res.data.amount
|
|
goods_install.value = res.data.amount_install
|
|
goods_install.value = res.data.amount_install
|
|
- goodsAmountKill.value =res.data.amount
|
|
|
|
|
|
+ // goodsAmountKill.value =res.data.amount
|
|
})
|
|
})
|
|
}
|
|
}
|
|
// 根据sku计算商品
|
|
// 根据sku计算商品
|
|
@@ -824,6 +825,7 @@ let goodsJson = ref({})
|
|
//商品详情接口
|
|
//商品详情接口
|
|
const goods_details = (_index) => {
|
|
const goods_details = (_index) => {
|
|
goodsDetail(data).then((res) => {
|
|
goodsDetail(data).then((res) => {
|
|
|
|
+ goodsAmountKill.value =res.data.amount
|
|
if (res.data) {
|
|
if (res.data) {
|
|
goodsDetails.arr = res.data
|
|
goodsDetails.arr = res.data
|
|
const objNew = {}
|
|
const objNew = {}
|
|
@@ -884,7 +886,8 @@ const goods_details = (_index) => {
|
|
timeFlag.value = true
|
|
timeFlag.value = true
|
|
const date1 = detailTime(res.data.kill_at)
|
|
const date1 = detailTime(res.data.kill_at)
|
|
const date2 = detailTime(res.data.kill_endtime)
|
|
const date2 = detailTime(res.data.kill_endtime)
|
|
- const st1 = new Date(date1).getTime()
|
|
|
|
|
|
+ // const st1 = new Date(date1).getTime()
|
|
|
|
+ const st1 = new Date().getTime()
|
|
const st2 = new Date(date2).getTime()
|
|
const st2 = new Date(date2).getTime()
|
|
const desc = st2 - st1
|
|
const desc = st2 - st1
|
|
remainTime.time = desc / 1000
|
|
remainTime.time = desc / 1000
|
|
@@ -952,6 +955,10 @@ const holderPay = () => {
|
|
|
|
|
|
}
|
|
}
|
|
const orderPay = () => {
|
|
const orderPay = () => {
|
|
|
|
+ let is_kills =''
|
|
|
|
+ if(remainTime.time>0){
|
|
|
|
+ is_kills = 1
|
|
|
|
+ }
|
|
const data = {
|
|
const data = {
|
|
frm: 1,
|
|
frm: 1,
|
|
form: {}
|
|
form: {}
|
|
@@ -962,7 +969,7 @@ const orderPay = () => {
|
|
preview(data).then((res) => {
|
|
preview(data).then((res) => {
|
|
if (res.code == 1) {
|
|
if (res.code == 1) {
|
|
localStorage.setItem('order', JSON.stringify(data))
|
|
localStorage.setItem('order', JSON.stringify(data))
|
|
- router.push('/user/order/submit')
|
|
|
|
|
|
+ router.push('/user/order/submit?is_kills='+is_kills)
|
|
}else{
|
|
}else{
|
|
ElMessage.error(res.msg)
|
|
ElMessage.error(res.msg)
|
|
}
|
|
}
|
|
@@ -1745,11 +1752,11 @@ const ruleChange = (index, item, items) => {
|
|
margin: 0 0 0 20px;
|
|
margin: 0 0 0 20px;
|
|
.rob-text{
|
|
.rob-text{
|
|
color: #999;
|
|
color: #999;
|
|
- font-size: 18px;
|
|
|
|
|
|
+ font-size: 16px;
|
|
}
|
|
}
|
|
.rob-money{
|
|
.rob-money{
|
|
color: #EE351A;
|
|
color: #EE351A;
|
|
- font-size: 18px;
|
|
|
|
|
|
+ font-size: 22px;
|
|
margin-left: 37px;
|
|
margin-left: 37px;
|
|
}
|
|
}
|
|
}
|
|
}
|