|
@@ -23,9 +23,9 @@
|
|
|
></view>
|
|
></view>
|
|
|
</view>
|
|
</view>
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
- <view class="nut-elevator__code--current" v-show="scrollStart" v-if="indexList.length">{{
|
|
|
|
|
- indexList[currentIndex][acceptKey]
|
|
|
|
|
- }}</view>
|
|
|
|
|
|
|
+ <view class="nut-elevator__code--current" v-show="scrollStart" v-if="indexList.length">
|
|
|
|
|
+ {{ indexList[currentIndex][acceptKey] }}
|
|
|
|
|
+ </view>
|
|
|
<view class="nut-elevator__bars" @touchstart="touchStart" @touchmove.stop.prevent="touchMove" @touchend="touchEnd">
|
|
<view class="nut-elevator__bars" @touchstart="touchStart" @touchmove.stop.prevent="touchMove" @touchend="touchEnd">
|
|
|
<view class="nut-elevator__bars__inner">
|
|
<view class="nut-elevator__bars__inner">
|
|
|
<view
|
|
<view
|
|
@@ -179,11 +179,13 @@ export default create({
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
- setTimeout(() => {
|
|
|
|
|
- Taro.nextTick(() => {
|
|
|
|
|
|
|
+ if (Taro.getEnv() === 'WEB') {
|
|
|
|
|
+ calculateHeight();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ eventCenter.once((getCurrentInstance() as any).router.onReady, () => {
|
|
|
calculateHeight();
|
|
calculateHeight();
|
|
|
});
|
|
});
|
|
|
- }, 300);
|
|
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
return {
|
|
return {
|