|
@@ -149,18 +149,12 @@
|
|
|
status: '0'
|
|
|
});
|
|
|
if (res.errcode == '0') {
|
|
|
- let data = res.data.sort(function(a, b) {
|
|
|
- return a.sort - b.sort
|
|
|
- });
|
|
|
- that.$set(that, `bannerList`, data);
|
|
|
+ that.$set(that, `bannerList`, res.data);
|
|
|
}
|
|
|
// 首页模块管理
|
|
|
res = await that.$api(`/indexModule`, 'GET', {});
|
|
|
if (res.errcode == '0') {
|
|
|
- let data = res.data.sort(function(a, b) {
|
|
|
- return a.sort - b.sort
|
|
|
- });
|
|
|
- that.$set(that, `btnList`, data);
|
|
|
+ that.$set(that, `btnList`, res.data);
|
|
|
}
|
|
|
// 推荐好货
|
|
|
res = await that.$api(`/viewGoods/iatg`, 'GET', {});
|