|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(response.data.categories) { |
|
|
|
|
|
app.categories = response.data.categories ; |
|
|
|
|
|
app.setCategoryCurrent(response.data.categories[0]) ; |
|
|
|
|
|
} |
|
|
|
|
|
app.producer = response.data.producer; |
|
|
app.producer = response.data.producer; |
|
|
app.user = response.data.user; |
|
|
app.user = response.data.user; |
|
|
app.useCredit = response.data.producer.use_credit_checked_default; |
|
|
app.useCredit = response.data.producer.use_credit_checked_default; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(response.data.categories) { |
|
|
|
|
|
app.categories = response.data.categories ; |
|
|
|
|
|
if(app.countProductsByCategory(response.data.categories[0])) { |
|
|
|
|
|
app.setCategoryCurrent(response.data.categories[0]) ; |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
app.setCategoryCurrent(response.data.categories[1]) ; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
setTimeout(function() { |
|
|
setTimeout(function() { |
|
|
app.responsive(); |
|
|
app.responsive(); |
|
|
opendistrib_products(); |
|
|
opendistrib_products(); |