|
|
|
@ -117,17 +117,17 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="orderInfo"> |
|
|
|
|
<view class="chosed" v-if="goods.spec_type == 20" @click="choseSku(3)"> |
|
|
|
|
<view class="chosed" v-if="goods.spec_type == 20" @click="stockValue=='有货'?choseSku(3):''"> |
|
|
|
|
<view class="title">已选</view> |
|
|
|
|
<view class="info" style="justify-content: flex-start;" v-if="goods.skuList.length>0"> |
|
|
|
|
<text |
|
|
|
|
style="margin-right: 10rpx;">{{selectSku.title.name}}-{{selectSku.value.name}}</text>{{selectShop}}件 |
|
|
|
|
</view> |
|
|
|
|
<u-icon name="arrow-right" color="#B7B7B7"></u-icon> |
|
|
|
|
<u-icon name="arrow-right" color="#B7B7B7" v-if="stockValue=='有货'"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
<view class="chosed" v-else @click="choseSku(3)"> |
|
|
|
|
<view class="chosed" v-else @click="stockValue=='有货'?choseSku(3):''"> |
|
|
|
|
<view class="title">已选</view> |
|
|
|
|
<view class="info">{{selectShop}}件</view> |
|
|
|
|
<view class="info">{{selectNum}}件</view> |
|
|
|
|
<u-icon name="arrow-right" color="#B7B7B7"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
<view class="chosed" v-if="goods.skuList && goods.skuList.length > 0 && goods.skuList[0].stock_num > 0"> |
|
|
|
@ -284,12 +284,15 @@ |
|
|
|
|
<template v-if="isSeckill"> |
|
|
|
|
<template v-if="isBuy"> |
|
|
|
|
<template v-if="seckillText=='距离'"> |
|
|
|
|
<view class="addCar" @click="choseSku(2)"> |
|
|
|
|
<view class="addCar" @click="choseSku(2)" v-if="stockValue=='有货'"> |
|
|
|
|
加入购物车 |
|
|
|
|
</view> |
|
|
|
|
<view class="buyNow" @click="choseSku(3)"> |
|
|
|
|
<view class="buyNow" @click="choseSku(3)" v-if="stockValue=='有货'"> |
|
|
|
|
立即购买 |
|
|
|
|
</view> |
|
|
|
|
<view class="btn-bg" v-if="stockValue=='无货'"> |
|
|
|
|
无货 |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<view class="btn-bg"> |
|
|
|
@ -304,12 +307,15 @@ |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<view class="addCar" @click="choseSku(2)"> |
|
|
|
|
<view class="addCar" @click="choseSku(2)" v-if="stockValue=='有货'"> |
|
|
|
|
加入购物车 |
|
|
|
|
</view> |
|
|
|
|
<view class="buyNow" @click="choseSku(3)"> |
|
|
|
|
<view class="buyNow" @click="choseSku(3)" v-if="stockValue=='有货'"> |
|
|
|
|
立即购买 |
|
|
|
|
</view> |
|
|
|
|
<view class="btn-bg" v-if="stockValue=='无货'"> |
|
|
|
|
无货 |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
<template v-if="isPre"> |
|
|
|
@ -484,11 +490,11 @@ |
|
|
|
|
name: '运损换新' |
|
|
|
|
}], |
|
|
|
|
selectSku: '', |
|
|
|
|
selectShop: 1, |
|
|
|
|
selectNum: 1, |
|
|
|
|
multiIndex: [0, 0, 0], |
|
|
|
|
multiArray: [], |
|
|
|
|
multiData: [], |
|
|
|
|
stockValue: '南京市', |
|
|
|
|
stockValue: '有货', |
|
|
|
|
addressResult: { |
|
|
|
|
province: '江苏省', |
|
|
|
|
city: '南京市', |
|
|
|
@ -552,7 +558,7 @@ |
|
|
|
|
methods: { |
|
|
|
|
async getGoodsStockInfor() { |
|
|
|
|
let params = { |
|
|
|
|
goods_id: this.goodsId, |
|
|
|
|
list:[{goods_id:this.goodsId,num:this.selectNum}], |
|
|
|
|
province: this.addressResult ? this.addressResult.province : '江苏省', |
|
|
|
|
city: this.addressResult ? this.addressResult.city : '南京市', |
|
|
|
|
district: this.addressResult ? this.addressResult.district : '玄武区' |
|
|
|
@ -836,8 +842,9 @@ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
onGetSku(e) { |
|
|
|
|
console.log(e) |
|
|
|
|
this.selectSku = e.selectSku |
|
|
|
|
this.selectShop = e.shopNum |
|
|
|
|
this.selectNum = e.shopNum |
|
|
|
|
}, |
|
|
|
|
// 更新购物车数量 |
|
|
|
|
onAddCart(total) { |
|
|
|
|