main
fanfan 6 months ago
parent 5eab12358b
commit 779959d34b
  1. 6
      components/goods-sku-popup/index.vue
  2. 2
      pages/goods/components/SkuPopup.vue
  3. 8
      pages/goods/detail.vue

@ -343,10 +343,13 @@
district: '玄武区' district: '玄武区'
} }
}, },
stockValue: {
Type: String,
default: '有货'
},
}, },
data() { data() {
return { return {
stockValue: '有货',
skuItem: '', skuItem: '',
userInfo: {}, userInfo: {},
complete: false, // complete: false, //
@ -477,6 +480,7 @@
title: "该商品暂时无货" title: "该商品暂时无货"
}) })
} }
console.log(that.stockValue)
} }
}, },
// //

@ -4,7 +4,7 @@
:addCartColor="appTheme.viceText" :addCartBackgroundColor="appTheme.viceBg" :addCartColor="appTheme.viceText" :addCartBackgroundColor="appTheme.viceBg"
:activedStyle="{ color: appTheme.mainBg, borderColor: appTheme.mainBg, backgroundColor: activedBtnBackgroundColor }" :activedStyle="{ color: appTheme.mainBg, borderColor: appTheme.mainBg, backgroundColor: activedBtnBackgroundColor }"
@open="openSkuPopup" @close="closeSkuPopup" @add-cart="addCart" @buy-now="buyNow" @num-change='numChange' @open="openSkuPopup" @close="closeSkuPopup" @add-cart="addCart" @buy-now="buyNow" @num-change='numChange'
@selected-old='selectedOld' buyNowText="立即购买" :maxBuyNum="maxBuyNum" :addressResult='addressResult' /> @selected-old='selectedOld' buyNowText="立即购买" :maxBuyNum="maxBuyNum" :addressResult='addressResult' :stockValue='stockValue'/>
</template> </template>
<script> <script>

@ -200,15 +200,15 @@
</view> </view>
</view> </view>
</view> </view>
<view class="about"> <!-- <view class="about">
<!-- <view class="aboutHead"> <view class="aboutHead">
<view class="aboutSuggest"> <view class="aboutSuggest">
相关推荐 相关推荐
</view> </view>
<view class="more"> <view class="more">
查看更多 查看更多
</view> </view>
</view> --> </view>
<view class="goodsList"> <view class="goodsList">
<view class="goodsItem" v-for="(item,index) in suggestGoodsList" :key="index" <view class="goodsItem" v-for="(item,index) in suggestGoodsList" :key="index"
@click="toDetail(item.goods_id)"> @click="toDetail(item.goods_id)">
@ -223,7 +223,7 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view> -->
<view class="detail-content" @click="onLook(goods.isLink,goods.contentLink)" v-if="goods.isLink" <view class="detail-content" @click="onLook(goods.isLink,goods.contentLink)" v-if="goods.isLink"
v-html="goods.content"></view> v-html="goods.content"></view>
<view class="detail-content" v-else v-html="goods.content"></view> <view class="detail-content" v-else v-html="goods.content"></view>

Loading…
Cancel
Save