|
@@ -5,6 +5,9 @@ const _Http = getApp().globalData.http,
|
|
precision: 2
|
|
precision: 2
|
|
}).format();
|
|
}).format();
|
|
let downCount = {};
|
|
let downCount = {};
|
|
|
|
+import {
|
|
|
|
+ getCustomText
|
|
|
|
+} from "../../utils/customItemType";
|
|
Page({
|
|
Page({
|
|
data: {
|
|
data: {
|
|
list: [],
|
|
list: [],
|
|
@@ -74,6 +77,7 @@ Page({
|
|
this.setData({
|
|
this.setData({
|
|
list: res.data.map(v => {
|
|
list: res.data.map(v => {
|
|
v.showPrice = CNY(v.gradeprice)
|
|
v.showPrice = CNY(v.gradeprice)
|
|
|
|
+ if (v.iscustomsize) v.customText = getCustomText(v);
|
|
return v
|
|
return v
|
|
})
|
|
})
|
|
});
|
|
});
|
|
@@ -226,6 +230,7 @@ Page({
|
|
} = my ? e : e.currentTarget.dataset;
|
|
} = my ? e : e.currentTarget.dataset;
|
|
let results = this.data.results,
|
|
let results = this.data.results,
|
|
sa_brandid = this.data.sa_brandid;
|
|
sa_brandid = this.data.sa_brandid;
|
|
|
|
+ console.log(item)
|
|
if (sa_brandid && sa_brandid != item.sa_brandid) return;
|
|
if (sa_brandid && sa_brandid != item.sa_brandid) return;
|
|
if (results.length == 0) {
|
|
if (results.length == 0) {
|
|
results.push(item.sa_favoritesid);
|
|
results.push(item.sa_favoritesid);
|