jufubao-admin-library 1.1.201 → 1.1.203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1322,18 +1322,27 @@ export default {
|
|
|
1322
1322
|
handleRemoteCategorySearch ({ node, resolve }) {
|
|
1323
1323
|
let value = 0
|
|
1324
1324
|
if (node.level !== 0) value = node.value
|
|
1325
|
-
this.
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1325
|
+
if(this.channelParams.scene&&this.channelParams.scene==='select'){
|
|
1326
|
+
this.getChildrenAndProfitRate({
|
|
1327
|
+
value,
|
|
1328
|
+
agg_channel_code: this.channelActiveName
|
|
1329
|
+
}).then(res => {
|
|
1330
|
+
console.log(res,'res')
|
|
1331
|
+
if(this.channelActiveName === 'jufubao') {
|
|
1332
|
+
res.data.list.map(item=>{
|
|
1333
|
+
item.profit_rate_string = '('+item.profit_rate/100+'%)'
|
|
1334
|
+
})
|
|
1335
|
+
}
|
|
1336
|
+
resolve(res.data.list)
|
|
1337
|
+
}) .catch((err) => { console.error(err) })
|
|
1338
|
+
}else{
|
|
1339
|
+
getOptions({ server: "product-partner", fn: "categories", path: "p4", params: { value } })
|
|
1340
|
+
.then(res => {
|
|
1341
|
+
resolve(res.data.list)
|
|
1342
|
+
})
|
|
1343
|
+
.catch((err) => { console.error(err) })
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1337
1346
|
},
|
|
1338
1347
|
|
|
1339
1348
|
/**
|