由于自身的项目比较简单,只有几个H5页面,用来嵌入app中,所有没有引入移动端的UI框架,但是介于能让用户在浏览H5页面时有下拉刷新和上拉加载,有更好的用户体验,自己写组件实现。
1、下拉刷新DropDownRefresh.vue
{{dropDownStateText.downTxt}}
{{dropDownStateText.upTxt}}
{{dropDownStateText.refreshTxt}}
2、上拉加载PullUpReload.vue
{{pullUpStateText.moreDataTxt}}
{{pullUpStateText.loadingMoreDataTxt}}
{{pullUpStateText.noMoreDataTxt}}
3、对两个组件的使用
{{hot_centent_left.name}}
{{hot_centent_left.desc}}
{{hot_c_r_one.name}}
{{hot_c_r_one.desc}}
{{hot_c_r_two.name}}
{{hot_c_r_two.desc}}
{{card_progress.name}}
{{card_progress.desc}}
{{card_activation.name}}
{{card_activation.desc}}
{{item.cardName}}
{{item.cardTitle}}