Commit 61cadde8 authored by 王炽's avatar 王炽

666666

parent b54d668d
......@@ -395,7 +395,6 @@ onMounted(async () => {
// //获取我的藏品列表
// const data2 = await fetchRecordMyrecords(cangpinListIdx.value, 8);
// cangpinList.value = cangpinList.value.concat(data2.data.list);
// // debugger;
// cangpinTotalPage.value = data2.data.totalPage;
// // cangpinList.value = data.data.list;
......@@ -436,7 +435,7 @@ const reloadShoucangList = async () => {
showLoading()
shoucangListIdx.value = 1;
shoucangList.value = [];
const data = await fetchFavoriteList(shoucangListIdx.value, 4);
const data = await fetchFavoriteList(shoucangListIdx.value, 8);
shoucangList.value = data.data.list;
shoucangTotalPage.value = data.data.totalPage;
hideLoading()
......@@ -454,13 +453,13 @@ const handleGlobalRefresh = async (payload) => {
}
// uni.$emit('xingmaLab:refresh', { type: 'all' }) // or type: 'cangpin' | 'shoucang' | 'cangguan'
onMounted(() => {
uni.$on('xingmaLab:refresh', handleGlobalRefresh)
})
// onMounted(() => {
// uni.$on('xingmaLab:refresh', handleGlobalRefresh)
// })
onUnmounted(() => {
uni.$off('xingmaLab:refresh', handleGlobalRefresh)
})
// onUnmounted(() => {
// uni.$off('xingmaLab:refresh', handleGlobalRefresh)
// })
const convertDobuleList = (list) => {
let newList = [];
......@@ -604,8 +603,7 @@ const handleBottomNavClick = async (navType) => {
if(currentButtomNavType != 'wodecangguan'){
currentButtomNavType = 'wodecangguan';
if(currentFrontNavType == ''){
if(!(cangpinList && cangpinList.length > 0)){
if(!(cangpinList.value && cangpinList.value.length > 0)){
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "星妈lab-我的藏品页",
......@@ -625,12 +623,12 @@ const handleBottomNavClick = async (navType) => {
activeSubTab.value = 'collections'
currentFrontNavType = 'collections'
await reloadCangpinList();
// await reloadCangpinList();
}else{
currentFrontNavType = activeSubTab.value;
if(activeSubTab.value == 'collections'){
if(!(cangpinList && cangpinList.length > 0)){
if(!(cangpinList.value && cangpinList.value.length > 0)){
md.sensorComponentLogTake({
xcxComponentExposure: "true",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment