fix(merch/detail): 滚动时立即隐藏滚动提示
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<text class="icox icox-xing"></text>
|
||||
</view>
|
||||
<view class="desc-wrap">
|
||||
<view class="desc-text" :key="descKey" :class="{ 'desc-expanded': isDescExpanded }" @click="toggleDesc">
|
||||
<view class="desc-text" :key="descKey" :class="{ 'desc-expanded': isDescExpanded }" @click="toggleDesc" @scroll="handleDescScroll">
|
||||
<view class="scroll-desc">{{ merch.desc }}</view>
|
||||
<view class="scroll-hint" v-if="isShowScrollHint">
|
||||
<text class="scroll-icon">↓</text>
|
||||
@@ -379,6 +379,11 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
handleDescScroll() {
|
||||
if (this.isShowScrollHint) {
|
||||
this.isShowScrollHint = false;
|
||||
}
|
||||
},
|
||||
initHeaderHeight() {
|
||||
if (!this.merch || !this.merch.merch_name) return;
|
||||
if (this.headerHeightInited) return;
|
||||
|
||||
Reference in New Issue
Block a user