|
|
@@ -7,6 +7,7 @@
|
|
|
<ezyActiveVue
|
|
|
v-if="currentStickyTitle"
|
|
|
class="item-dy-box item-fixed"
|
|
|
+ @aclick="handleClickDanyuan(currentDanyuanId)"
|
|
|
>
|
|
|
<view class="ezy-list-item-active item-dy-body">
|
|
|
<view class="dy-left-box">L{{ currentStickyDengjiId }}</view>
|
|
|
@@ -137,6 +138,7 @@
|
|
|
stickyHeight: 0, // 吸顶栏高度(px)
|
|
|
currentStickyTitle: '', // 初始为空,不显示吸顶
|
|
|
currentStickyIntro: '',
|
|
|
+ currentDanyuanId:'',
|
|
|
currentStickyDengjiId: '',
|
|
|
titlePositions: [],
|
|
|
scrollTop: 0,
|
|
|
@@ -321,10 +323,11 @@
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ console.log('matched',matched);
|
|
|
if (matched) {
|
|
|
this.currentStickyTitle = matched.name;
|
|
|
this.currentStickyIntro = matched.intro;
|
|
|
+ this.currentDanyuanId = matched.danyuanId;
|
|
|
this.currentStickyDengjiId = this.banbenInfo.dengjiId || 1;
|
|
|
} else {
|
|
|
this.currentStickyTitle = '';
|
|
|
@@ -394,15 +397,15 @@
|
|
|
}
|
|
|
this.saveAndNavigate(jieId, da.type, da, code);
|
|
|
},
|
|
|
- handleClickDanyuan(item) {
|
|
|
- if (!item.danyuanId) {
|
|
|
+ handleClickDanyuan(danyuanId) {
|
|
|
+ if (!danyuanId) {
|
|
|
toast("danyuanId丢失")
|
|
|
return false
|
|
|
}
|
|
|
this.isShow = true;
|
|
|
setTimeout(() => {
|
|
|
// 更新为点击的动态单元Id [临时]
|
|
|
- this.$refs.dyRef.handleShow(item.danyuanId)
|
|
|
+ this.$refs.dyRef.handleShow(danyuanId)
|
|
|
}, 100)
|
|
|
},
|
|
|
handleBack() {
|