mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 21:29:31 +08:00
修改:调整恋爱日记相关UI
This commit is contained in:
@@ -2,14 +2,19 @@
|
||||
<view class="app-page">
|
||||
<view class="page-title">我们的故事</view>
|
||||
<view class="html-typed" v-html="html">内容渲染</view>
|
||||
|
||||
<scroll-btn bottom="60rpx" :scrollTop.sync="scrollTop"></scroll-btn>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import LoveConfig from '@/config/love.config.js';
|
||||
import ScrollBtn from '@/components/scroll-btn/scroll-btn.vue';
|
||||
export default {
|
||||
components: { ScrollBtn },
|
||||
data() {
|
||||
return {
|
||||
scrollTop: 0,
|
||||
html: '',
|
||||
timer: null
|
||||
};
|
||||
@@ -17,6 +22,9 @@ export default {
|
||||
created() {
|
||||
this.fnInit();
|
||||
},
|
||||
onPageScroll(e) {
|
||||
this.scrollTop = e.scrollTop;
|
||||
},
|
||||
onBackPress() {
|
||||
clearTimeout(this.timer);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user