|
|
@@ -103,15 +103,14 @@ Component({
|
|
|
icon: "none"
|
|
|
})
|
|
|
res.data = res.data.map(v => {
|
|
|
- if (v.cover) {
|
|
|
- v.cover = _Http.getImageUrl(v.cover)
|
|
|
+ if (v.attinfos.length != 0) {
|
|
|
+ v.attinfos = file.fileList(v.attinfos)
|
|
|
+ let image = v.attinfos.find(v => v.fileType == "image");
|
|
|
+ v.cover = image ? _Http.getSpecifiedImage(image) : "";
|
|
|
} else {
|
|
|
- if (v.attinfos.length != 0) {
|
|
|
- v.attinfos = file.fileList(v.attinfos)
|
|
|
- let image = v.attinfos.find(v => v.fileType == "image");
|
|
|
- v.cover = image ? _Http.getSpecifiedImage(image) : "";
|
|
|
- }
|
|
|
+ if (v.cover) v.cover = _Http.getImageUrl(v.cover)
|
|
|
}
|
|
|
+
|
|
|
v.deliveryIdenx = this.data.deliverys.findIndex(s => s.value == v.delivery) || 0;
|
|
|
v.showPrice = CNY(v.price)
|
|
|
v.showAmount = CNY(v.amount)
|
|
|
@@ -302,6 +301,7 @@ Component({
|
|
|
/* 处理新增产品 */
|
|
|
handleSelect(detail) {
|
|
|
let that = this;
|
|
|
+ console.log("that.data.base", that.data.base)
|
|
|
_Http.basic({
|
|
|
"id": 2024020201095102,
|
|
|
"content": {
|
|
|
@@ -359,7 +359,7 @@ Component({
|
|
|
v.sa_promotion_itemsid = v.sa_promotion_itemsid || 0;
|
|
|
v.custamount = v.custamount || 0;
|
|
|
v.price = this.data.type == '工具订单' ? v.marketprice : v.contractprice;
|
|
|
- v.delivery = this.data.delivery
|
|
|
+ v.delivery = this.data.delivery || this.data.deliverys[0].value
|
|
|
return v
|
|
|
})
|
|
|
}
|