|
|
@@ -170,7 +170,7 @@
|
|
|
<el-upload
|
|
|
class="avatar-uploader"
|
|
|
v-model="goodsCover"
|
|
|
- action="https://mxys.chuanghai-tech.com/sqx_fast/alioss/upload"
|
|
|
+ :action="Tupiantou"
|
|
|
:show-file-list="false"
|
|
|
:on-success="handleAvatarSuccess1"
|
|
|
:before-upload="beforeAvatarUpload"
|
|
|
@@ -212,7 +212,7 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-upload
|
|
|
- action="https://mxys.chuanghai-tech.com/sqx_fast/alioss/upload"
|
|
|
+ :action="Tupiantou"
|
|
|
list-type="picture-card"
|
|
|
:on-success="handleUploadSuccess"
|
|
|
:on-change="handleChange"
|
|
|
@@ -576,7 +576,7 @@
|
|
|
</div>
|
|
|
<div class="imgs" style="width: 50%;">
|
|
|
<el-upload
|
|
|
- action="https://mxys.chuanghai-tech.com/sqx_fast/alioss/upload"
|
|
|
+ :action="Tupiantou"
|
|
|
list-type="picture-card"
|
|
|
:show-file-list="false"
|
|
|
:on-success="handleUploadSuccessXq"
|
|
|
@@ -829,6 +829,8 @@ export default {
|
|
|
// 'coverImg': this.goodsCover,
|
|
|
})
|
|
|
}).then(({ data }) => {
|
|
|
+ console.log(data,'获取单规格的sku');
|
|
|
+
|
|
|
let returnData = data.data;
|
|
|
this.valueData2 = returnData.value;
|
|
|
this.headerData2 = returnData.header;
|
|
|
@@ -904,6 +906,8 @@ export default {
|
|
|
goodsId: goodsId
|
|
|
})
|
|
|
}).then(({ data }) => {
|
|
|
+ console.log(data);
|
|
|
+
|
|
|
let returnData = data.data;
|
|
|
if (returnData.goodsPicture) {
|
|
|
let imgs = returnData.goodsPicture.split(",");
|
|
|
@@ -1263,6 +1267,8 @@ export default {
|
|
|
id: val
|
|
|
})
|
|
|
}).then(({ data }) => {
|
|
|
+ console.log(data,'查询商品规格');
|
|
|
+
|
|
|
let returnData = data.data;
|
|
|
this.ruleValue = returnData.ruleValue;
|
|
|
this.attrName = returnData.ruleName;
|
|
|
@@ -1356,6 +1362,8 @@ export default {
|
|
|
goodsId: goodsId
|
|
|
})
|
|
|
}).then(({ data }) => {
|
|
|
+ console.log(data,'初始化商品属性');
|
|
|
+
|
|
|
let returnData = data.data;
|
|
|
this.headerData = returnData.header;
|
|
|
this.valueData = returnData.value;
|
|
|
@@ -1382,14 +1390,31 @@ export default {
|
|
|
if (this.memberPrice == "") {
|
|
|
this.memberPrice = "0";
|
|
|
}
|
|
|
+ var axx = [];
|
|
|
+ if (Array.isArray(this.attr) && this.attr.length > 0) {
|
|
|
+ console.log(this.attr[0].attrValue, "ddkhg", this.attr[0]);
|
|
|
+ axx = this.attr[0].attrValue;
|
|
|
+ } else {
|
|
|
+ axx = [];
|
|
|
+ }
|
|
|
this.$http({
|
|
|
url: this.$http.adornUrl(
|
|
|
// `admin/goods/isFormatAttr?coverImg=${this.goodsCover}&originalPrice=${this.originalMoney}&price=${this.goodsMoney}`
|
|
|
- `admin/goods/isFormatAttr?originalPrice=${this.originalMoney}&price=${this.goodsMoney}`
|
|
|
+ `admin/goods/isFormatAttr` //?originalPrice=${this.originalMoney}&price=${this.goodsMoney}
|
|
|
),
|
|
|
method: "post",
|
|
|
- data: this.attr[0]
|
|
|
+ params: this.$http.adornParams({
|
|
|
+ originalPrice: this.originalMoney,
|
|
|
+ price: this.goodsMoney
|
|
|
+ }),
|
|
|
+ data: this.$http.adornData({
|
|
|
+ attrName: this.attr[0].attrName,
|
|
|
+ attrValue: axx,
|
|
|
+ ruleId: this.attr[0].ruleId
|
|
|
+ })
|
|
|
}).then(({ data }) => {
|
|
|
+ console.log(data,'ppp');
|
|
|
+
|
|
|
let returnData = data.data;
|
|
|
this.headerData = returnData.header;
|
|
|
this.valueData = returnData.value;
|