mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 02:06:38 +08:00
Product detail ajax api data structure updated
This commit is contained in:
parent
ae9f2e34e6
commit
3201a6ee2e
@ -344,12 +344,13 @@ export default {
|
||||
let stopIndex = 0;
|
||||
for(let singleCode of productCode) {
|
||||
let data = await goodsmessage(singleCode);
|
||||
if (data && data.data.length>0) {
|
||||
newlist.push(data.data[0]);
|
||||
console.log(data);
|
||||
if (data && data.length>0) {
|
||||
newlist.push(data[0]);
|
||||
|
||||
if(data.data[0].leftAllotment>0 && !stopLeftAllotmentChecking) {
|
||||
if(data[0].leftAllotment>0 && !stopLeftAllotmentChecking) {
|
||||
activeIndexa = stopIndex;
|
||||
curItem = data.data[0];
|
||||
curItem = data[0];
|
||||
stopLeftAllotmentChecking=true;
|
||||
}
|
||||
stopIndex++;
|
||||
|
Loading…
Reference in New Issue
Block a user