Commit 919fa5ca authored by 黄奎's avatar 黄奎

商品详情页,组件应用重复调整

parent 6408b9f7
...@@ -188,6 +188,10 @@ ...@@ -188,6 +188,10 @@
}; };
}, },
mounted() { mounted() {
this.getGoodsInfo();
},
methods: {
getGoodsInfo() {
this.request2({ this.request2({
url: '/api/AppletGoods/GetAppletGoodsInfo', url: '/api/AppletGoods/GetAppletGoodsInfo',
data: { data: {
...@@ -245,7 +249,6 @@ ...@@ -245,7 +249,6 @@
} }
); );
}, },
methods: {
getDefaultDate(item) { getDefaultDate(item) {
var result = 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 == if (this.skuObj && this.skuObj.attr_list && this.skuObj.attr_list.length > 0 && this.g.mall_id == 19 && this.g.mch_id ==
......
...@@ -225,7 +225,6 @@ ...@@ -225,7 +225,6 @@
watch: { watch: {
defaultDate(newVal) { defaultDate(newVal) {
console.log("newVal",newVal)
this.userDefaultDate = newVal; this.userDefaultDate = newVal;
if (this.userDefaultDate != "") { if (this.userDefaultDate != "") {
this.start = this.setDefaultDate(this.userDefaultDate); this.start = this.setDefaultDate(this.userDefaultDate);
...@@ -249,13 +248,11 @@ ...@@ -249,13 +248,11 @@
} }
if (this.priceStauts.length > 0) { if (this.priceStauts.length > 0) {
console.log(this.lastNot);
for (var i = newVal[0]; i < this.priceStauts.length; i++) { for (var i = newVal[0]; i < this.priceStauts.length; i++) {
if (i == newVal[0]) { if (i == newVal[0]) {
for (var j = newVal[1]; j < this.priceStauts[i].length; j++) { for (var j = newVal[1]; j < this.priceStauts[i].length; j++) {
if (this.priceStauts[i][j] == -1) { if (this.priceStauts[i][j] == -1) {
this.lastNot = [i, j]; this.lastNot = [i, j];
console.log(this.lastNot);
return; return;
} }
} }
...@@ -263,7 +260,6 @@ ...@@ -263,7 +260,6 @@
for (var j = 0; j < this.priceStauts[i].length; j++) { for (var j = 0; j < this.priceStauts[i].length; j++) {
if (this.priceStauts[i][j] == -1) { if (this.priceStauts[i][j] == -1) {
this.lastNot = [i, j]; this.lastNot = [i, j];
console.log(this.lastNot);
return; return;
} }
} }
......
...@@ -438,10 +438,6 @@ ...@@ -438,10 +438,6 @@
:total-stock="g.totalStock" :status="g.status" @buy="buy"> :total-stock="g.totalStock" :status="g.status" @buy="buy">
</kotragoodsaction> </kotragoodsaction>
</template> </template>
<goodsku v-if="!loading && showSku&&u.TenantId!=27" border-radius="10" v-model="showSku" :mask-close-able="true"
:safe-area-inset-bottom="true" :good="g" :option-type="ot" :skued="currentSku" @close="closeSkuChosen">
</goodsku>
<template v-if="u&&u.TenantId==27"> <template v-if="u&&u.TenantId==27">
<goodsku2 v-if="!loading && showSku" border-radius="10" v-model="showSku" :mask-close-able="true" <goodsku2 v-if="!loading && showSku" border-radius="10" v-model="showSku" :mask-close-able="true"
:safe-area-inset-bottom="true" :good="g" :option-type="ot" :skued="currentSku" @close="closeSkuChosen"> :safe-area-inset-bottom="true" :good="g" :option-type="ot" :skued="currentSku" @close="closeSkuChosen">
......
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