|
|
@@ -9,6 +9,8 @@
|
|
|
<lianxiCardVue v-if="data.lianxiList.length" :data="{ count: data.lianxiCount,...data.lianxiList[0],iconsArr:data.iconsArr}"></lianxiCardVue>
|
|
|
<!-- 课程 -->
|
|
|
<kechengCardVue v-if="data.kechengList.length" :data="{ count: data.kechengCount,...data.kechengList[0],iconsArr:data.iconsArr}"></kechengCardVue>
|
|
|
+ <!-- 合同 -->
|
|
|
+ <hetongCardVue v-if="data.hetongList!={}" :data="{...data.hetongList[0],iconsArr:data.iconsArr}"></hetongCardVue>
|
|
|
</template>
|
|
|
<view class="default-img-box" v-else>
|
|
|
<icon :style="{ backgroundImage: 'url(' + data.defaultIndexImg + ')' }"></icon>
|
|
|
@@ -24,6 +26,7 @@
|
|
|
import kaoshiCardVue from '@/components/listCard/kaoshiCard.vue';
|
|
|
import kechengCardVue from '@/components/listCard/kechengCard.vue';
|
|
|
import lianxiCardVue from '@/components/listCard/lianxiCard.vue';
|
|
|
+ import hetongCardVue from '@/components/listCard/hetongCard.vue';
|
|
|
import customTabbarClient from "@/components/custom-tabbar/custom-tabbar-client.vue"
|
|
|
|
|
|
import * as httpApi from "@/api/shouye.js"
|
|
|
@@ -44,11 +47,16 @@
|
|
|
lianxiList: [],
|
|
|
realName: '',
|
|
|
defaultIndexImg: '',
|
|
|
+ hetongList: [],
|
|
|
iconsArr: {
|
|
|
timeIcon: '',
|
|
|
numIcon: '',
|
|
|
sumIcon: '',
|
|
|
jgIcon: '',
|
|
|
+ htJzIcon: '',
|
|
|
+ htKhIcon: '',
|
|
|
+ htTimeIcon: '',
|
|
|
+ htZtIcon: '',
|
|
|
},
|
|
|
})
|
|
|
|
|
|
@@ -60,7 +68,8 @@
|
|
|
kechengCount,
|
|
|
kechengList,
|
|
|
lianxiCount,
|
|
|
- lianxiList
|
|
|
+ lianxiList,
|
|
|
+ hetong
|
|
|
} = res.data;
|
|
|
|
|
|
data.kaoshiCount = kaoshiCount;
|
|
|
@@ -69,6 +78,8 @@
|
|
|
data.kechengList = kechengList || [];
|
|
|
data.lianxiCount = lianxiCount;
|
|
|
data.lianxiList = lianxiList || [];
|
|
|
+ data.hetongList = [hetong] || [];
|
|
|
+ console.log('data.hetongList',data.hetongList);
|
|
|
})
|
|
|
}
|
|
|
|
|
|
@@ -81,6 +92,10 @@
|
|
|
data.iconsArr.numIcon = cacheManager.get('projectImg').index_content_icon2;
|
|
|
data.iconsArr.sumIcon = cacheManager.get('projectImg').index_content_icon3;
|
|
|
data.iconsArr.jgIcon = cacheManager.get('projectImg').index_content_icon4;
|
|
|
+ data.iconsArr.htJzIcon = cacheManager.get('projectImg').user_green_icon;
|
|
|
+ data.iconsArr.htKhIcon = cacheManager.get('projectImg').zymc_icon;
|
|
|
+ data.iconsArr.htTimeIcon = cacheManager.get('projectImg').my_score_icon;
|
|
|
+ data.iconsArr.htZtIcon = cacheManager.get('projectImg').htzt_icon;
|
|
|
})
|
|
|
|
|
|
onShow(() => {
|