Commit cc2d02df authored by 黄奎's avatar 黄奎

页面修改

parent 19e55b4a
......@@ -35,9 +35,7 @@
说明:以下物品需与当前课程绑定购买
</text>
</text>
</view>
<view class="val3 sku-chi2" :style="{
background: y.attr_id == x.checkId ? mc : '#eee',
color: y.attr_id == x.checkId ? '#FFF' : '#333'
......@@ -46,7 +44,6 @@
<text>{{item.RelevanceName}}</text>
<text></text>
<text>{{item.RelevancePrice}}</text>
</view>
<view class="btn-box" v-if="g.totalStock>0&& g.status==1 && (g.form_id == -1 || g.form_id ==0)">
<view style="flex: 1;" v-if="optionType != 1">
......@@ -119,7 +116,7 @@
notes: true,
goodimage: '',
goodprice: '',
good_original_price: 0,
good_original_price: 0.00,
goodamount: '',
mc: '',
fu: '',
......@@ -202,17 +199,13 @@
if (this.g.jjxkt_original_price && this.g.jjxkt_original_price > 0) {
jjxkt_original_price = this.g.jjxkt_original_price;
}
console.log("jjxkt_original_price", jjxkt_original_price)
this.good_original_price = this.g.jjxkt_original_price;
this.skuObj = this.skued.id ? this.skued : null;
if (this.skuObj) {
this.goodimage = this.skuObj.pic_url || this.g.cover_pic;
this.goodamount = this.skuObj.stock;
if (this.g.goodsRelevanceList && this.g.goodsRelevanceList.length > 0) {
this.$nextTick(() => {
this.g.goodsRelevanceList.forEach(item => {
console.log(11)
this.goodprice = (parseFloat(this.skuObj.price) + parseFloat(item
.RelevancePrice)).toFixed(2);
//计算原价
......@@ -221,22 +214,19 @@
.RelevancePrice)).toFixed(2);
}
});
})
} else {
this.$nextTick(() => {
this.goodprice = (parseFloat(this.g.price)).toFixed(2);
this.good_original_price = (parseFloat(jjxkt_original_price)).toFixed(2);
})
}
} else {
this.goodimage = this.g.cover_pic;
this.goodamount = this.g.goods_stock;
if (this.g.goodsRelevanceList && this.g.goodsRelevanceList.length > 0) {
this.$nextTick(() => {
this.g.goodsRelevanceList.forEach(item => {
this.goodprice = (parseFloat(this.g.price) + parseFloat(item
.RelevancePrice)).toFixed(2);
//计算原价
......@@ -250,6 +240,7 @@
} else {
this.$nextTick(() => {
this.goodprice = (parseFloat(this.g.price)).toFixed(2);
this.good_original_price = (parseFloat(jjxkt_original_price)).toFixed(2);
})
}
}
......
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