Commit 0c4a9a85 by weijiguang

1

parent daacd53e
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<view class="good-spec-name">{{ specItem.specName }}</view> <view class="good-spec-name">{{ specItem.specName }}</view>
<view class="good-spec-rule"> <view class="good-spec-rule">
<div v-for="specItemRule in specItem.rules" class="div_item" :key="specItemRule.ruleId"> <div v-for="specItemRule in specItem.rules" class="div_item" :key="specItemRule.ruleId">
<div v-if="setDefaultStyle(specItemRule.ruleId)" class="default">推荐</div> <div v-if="specItemRule.isRecommend=='1'" class="default">推荐</div>
<button class="good-spec-rule-item" :disabled="UseIt(specItemRule.ruleId)" <button class="good-spec-rule-item" :disabled="UseIt(specItemRule.ruleId)"
@click="selectRoles(specItemRule, specItem)" @click="selectRoles(specItemRule, specItem)"
:class="{ active: isActvie(specItemRule) }"> :class="{ active: isActvie(specItemRule) }">
...@@ -105,6 +105,7 @@ export default { ...@@ -105,6 +105,7 @@ export default {
uni.removeStorageSync('goodsList'); uni.removeStorageSync('goodsList');
const goodsInfo = JSON.parse(uni.getStorageSync('goodsInfo')); const goodsInfo = JSON.parse(uni.getStorageSync('goodsInfo'));
this.goodInfo = goodsInfo; this.goodInfo = goodsInfo;
console.log(this.goodInfo);
const skus = goodsInfo.skus; const skus = goodsInfo.skus;
if (skus) { if (skus) {
const sku = skus.find(v => v.isDefault == 1 && v.state == 1) || skus.find(v => v.isDefault == 0 && v.state == 1); const sku = skus.find(v => v.isDefault == 1 && v.state == 1) || skus.find(v => v.isDefault == 0 && v.state == 1);
......
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 to comment