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

666666

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