| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <template>
- <view class="page">
- <view>
- <mescroll-item ref="MescrollItem" :i="0" :index="0" :height="height">
- </mescroll-item>
- </view>
- <view class="addGroup" @click="goAddGroup">
- <text>新增分组</text>
- </view>
- <!--#ifdef H5-->
- <liu-drag-button @clickBtn="back">返回</liu-drag-button>
- <!--#endif-->
- </view>
- </template>
- <script>
- import MescrollItem from "./module/mescrollUni-item.vue";
- export default {
- components: {
- MescrollItem
- },
- data() {
- return {
- height:'',
- list:[]
- }
- },
- onLoad(e) {
- let sysInfo = uni.getSystemInfoSync()
- this.height = sysInfo.windowHeight - 120 + 'px' //除标题栏栏外的屏幕可用高度
- },
- onShow(){
- if (this.$refs.MescrollItem){
- this.$refs.MescrollItem.downCallback()
- }
- },
- methods: {
- back() {
- uni.navigateBack({
- delta: 1
- })
- },
- goAddGroup(){
- uni.navigateTo({
- url:'/pages/addGroup/addGroup'
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- @import './index.rpx.css';
- </style>
|