|
@@ -69,7 +69,9 @@
|
|
|
<span
|
|
|
class="price"
|
|
|
:key="index"
|
|
|
- v-for="(item,index) in form.skuList ? form.skuList.slice(0, 1) : []"
|
|
|
+ v-for="(item, index) in form.skuList
|
|
|
+ ? form.skuList.slice(0, 1)
|
|
|
+ : []"
|
|
|
>{{
|
|
|
item.skuPriceList ? item.skuPriceList[0].price : 0
|
|
|
}}元</span
|
|
@@ -278,7 +280,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
mounted() {
|
|
|
-
|
|
|
if (
|
|
|
(this.$route.query.params != "[object Object]" &&
|
|
|
this.$route.query.params) ||
|
|
@@ -435,16 +436,16 @@ export default {
|
|
|
this.form.categoryId[this.form.categoryId.length - 1];
|
|
|
}
|
|
|
if (this.form.saleModel == 2) {
|
|
|
- this.form.merchantClassifyId = "217524";
|
|
|
+ this.form.merchantClassifyId = "[217524]";
|
|
|
this.form.merchantClassifyName = "预售专区";
|
|
|
} else if (this.form.saleModel == 3) {
|
|
|
- this.form.merchantClassifyId = "217522";
|
|
|
+ this.form.merchantClassifyId = "[217522]";
|
|
|
this.form.merchantClassifyName = "团购秒杀";
|
|
|
} else if (this.form.saleModel == 4) {
|
|
|
- this.form.merchantClassifyId = "217523";
|
|
|
+ this.form.merchantClassifyId = "[217523]";
|
|
|
this.form.merchantClassifyName = "特价卖场";
|
|
|
} else if (this.form.saleModel == 5) {
|
|
|
- this.form.merchantClassifyId = "217521";
|
|
|
+ this.form.merchantClassifyId = "[217521]";
|
|
|
this.form.merchantClassifyName = "新人福利";
|
|
|
}
|
|
|
|
|
@@ -512,19 +513,18 @@ export default {
|
|
|
// return;
|
|
|
// }
|
|
|
if (this.form.saleModel == 2) {
|
|
|
- this.form.merchantClassifyId = "217524";
|
|
|
+ this.form.merchantClassifyId = "[217524]";
|
|
|
this.form.merchantClassifyName = "预售专区";
|
|
|
} else if (this.form.saleModel == 3) {
|
|
|
- this.form.merchantClassifyId = "217522";
|
|
|
+ this.form.merchantClassifyId = "[217522]";
|
|
|
this.form.merchantClassifyName = "团购秒杀";
|
|
|
} else if (this.form.saleModel == 4) {
|
|
|
- this.form.merchantClassifyId = "217523";
|
|
|
+ this.form.merchantClassifyId = "[217523]";
|
|
|
this.form.merchantClassifyName = "特价卖场";
|
|
|
} else if (this.form.saleModel == 5) {
|
|
|
- this.form.merchantClassifyId = "217521";
|
|
|
+ this.form.merchantClassifyId = "[217521]";
|
|
|
this.form.merchantClassifyName = "新人福利";
|
|
|
}
|
|
|
-
|
|
|
updateGoods(this.form).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.btnLading = false;
|
|
@@ -536,16 +536,20 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
- publishGoods(this.form).then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.btnLading = false;
|
|
|
- this.$message.success(`发布成功!`);
|
|
|
- this.$store.dispatch("tagsView/delView", this.$route); //关闭当前页
|
|
|
- this.$router.replace({ path: "/product/transmission/index" });
|
|
|
- } else {
|
|
|
+ publishGoods(this.form)
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.btnLading = false;
|
|
|
+ this.$message.success(`发布成功!`);
|
|
|
+ this.$store.dispatch("tagsView/delView", this.$route); //关闭当前页
|
|
|
+ this.$router.replace({ path: "/product/transmission/index" });
|
|
|
+ } else {
|
|
|
+ this.btnLading = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
this.btnLading = false;
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
updateValue(val) {
|