Commit 6408b9f7 authored by 黄奎's avatar 黄奎

价格计算调整

parent bc534b47
......@@ -248,7 +248,8 @@
methods: {
getDefaultDate(item) {
var result = item;
if (this.skuObj && this.skuObj.attr_list && this.skuObj.attr_list.length > 0 &&this.g.mall_id==19&&this.g.mch_id==29) {
if (this.skuObj && this.skuObj.attr_list && this.skuObj.attr_list.length > 0 && this.g.mall_id == 19 && this.g.mch_id ==
29) {
var tempItem = this.skuObj.attr_list[0];
if (tempItem && tempItem.attr_name) {
result = tempItem.attr_name;
......@@ -502,7 +503,10 @@
if (x.isdateformat == 1) {
if (x.attr_list && x.attr_list.length > 0) {
x.attr_list.forEach((subItem, subIndex) => {
var newSign = subItem.attr_id + ":" + priceSign;
var newSign = subItem.attr_id;
if (priceSign && priceSign != '') {
newSign += ":" + priceSign;
}
if (this.g.attr && this.g.attr.length) {
this.g.attr.forEach(y => {
if (y.sign_id == newSign) {
......@@ -516,7 +520,7 @@
}
});
}
if (this.g.attr && this.g.attr.length) {
this.g.attr.forEach(x => {
if (x.sign_id == sign) {
......
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