|
@@ -14,7 +14,7 @@
|
|
|
<!-- 蛋 -->
|
|
|
<egg-dialog ref="eggDialogRef" @eggBtn="eggBtn"></egg-dialog>
|
|
|
<catalogue ref="catalogueRef" :list=zhangList @change-zhang="handleChangeZhang"></catalogue>
|
|
|
- <CustomTabBar :cardId="cardId" :nianji="nianji" :zhangId="zhangId"></CustomTabBar>
|
|
|
+ <CustomTabBar :cardId="cardId" :currentTabNumber="0" :nianji="nianji" :zhangId="zhangId"></CustomTabBar>
|
|
|
<tip-small-dialog ref="goPayDialogRef" @confirm-btn="goPayPage" :content="tipContent"></tip-small-dialog>
|
|
|
<tip-middle-dialog ref="youkeDialogRef" @confirm-btn="ykConfirm" :content="YouKeContent"></tip-middle-dialog>
|
|
|
</template>
|
|
@@ -98,14 +98,18 @@
|
|
|
init(options)
|
|
|
})
|
|
|
|
|
|
- function onChangeTab(e) {
|
|
|
- console.log(e.detail.current);
|
|
|
- infoData.zhangId = cacheManager.get('zhangInfo').zhangList[e.detail.current].zhangId
|
|
|
- cacheManager.updateObject('auth', {
|
|
|
- currentZhang: e.detail.current,
|
|
|
- zhangId: infoData.zhangId
|
|
|
- })
|
|
|
-
|
|
|
+ function onChangeTab(e) {
|
|
|
+ console.log('e',e);
|
|
|
+ console.log(e.detail.current);
|
|
|
+ if( cacheManager.get('auth')){
|
|
|
+ infoData.zhangId = cacheManager.get('zhangInfo').zhangList[e.detail.current].zhangId
|
|
|
+ cacheManager.updateObject('auth', {
|
|
|
+ currentZhang: e.detail.current,
|
|
|
+ zhangId: infoData.zhangId
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
//current.value = e.detail.current;
|
|
|
}
|
|
|
|