用户钱包及明细.搜索页修复.个人信息移除多余页面.商品列表字段优化,分类子商品展示

This commit is contained in:
落日晚风
2023-11-07 17:49:02 +08:00
parent 627b3d015f
commit a9afb6452d
15 changed files with 563 additions and 525 deletions
+6 -4
View File
@@ -82,7 +82,8 @@
});
if (code === 0) {
state.categoryList = {
children: data
children: data,
style: 'first_one'
};
}
}
@@ -96,17 +97,18 @@
total: 1,
last_page: 1,
};
getGoodsList(state.categoryList.children[val].id);
}
// 这段代码本来是在判断里的
getGoodsList(state.categoryList.children[val].id);
// getGoodsList(state.categoryList.children[val].id);
};
async function getGoodsList(id, page = 1, list_rows = 6) {
state.loadStatus = 'loading';
const res = await sheep.$api.goods.list({
categoryId: id,
pageSize:list_rows,
pageNo:page,
pageSize: list_rows,
pageNo: page,
});
if (res.code === 0) {
let couponList = _.concat(state.pagination.data, res.data.list);
+9 -1
View File
@@ -27,11 +27,19 @@
uni.hideTabBar();
const template = computed(() => sheep.$store('app').template?.home);
// 在此处拦截改变一下首页轮播图 此处先写死后期复活
// 在此处拦截改变一下首页轮播图 此处先写死后期复活 放到启动函数里
(async function() {
console.log('原代码首页定制化数据',template)
let {
data
} = await index2Api.decorate();
console.log('首页导航配置化过高无法兼容',JSON.parse(data[1].value))
// 改变首页底部数据 但是没有通过数组id获取商品数据接口
// let {
// data: datas
// } = await index2Api.spids();
// template.value.data[9].data.goodsIds = datas.list.map(item => item.id);
template.value.data[0].data.list = JSON.parse(data[0].value).map(item => {
return {
src: item.picUrl,