123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <template>
- <view>
- <!-- content -->
- <view class="content">
- <t-o-news-tab-2 ref="tab_2"></t-o-news-tab-2>
- </view>
- <view class="go_top" @click="go_top">
- <uni-icons type="top" size="22"></uni-icons>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: "t-o-news",
- data() {
- return {
- };
- },
- methods: {
- tab_2_onReachBottom() {
- this.$refs.tab_2.nextPage();
- },
- go_top() {
- uni.pageScrollTo({
- scrollTop: 0,
- duration: 200
- });
- }
- }
- }
- </script>
- <style lang="scss">
- page {
- background-color: #F2FAF7;
- }
- .tab {
- background-color: #FFFFFF;
- box-sizing: border-box;
- padding: 25rpx 50rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .item {
- text-align: center;
- .icon {
- height: 80rpx;
- image {
- width: 95rpx;
- height: 66rpx;
- }
- }
- .title {
- margin-top: 10rpx;
- .text {
- font-size: 30rpx;
- color: #727272;
- }
- .tip {
- margin-top: 5rpx;
- font-size: 24rpx;
- color: #979797;
- }
- }
- }
- }
- .content {
- margin-top: 20rpx;
- }
- .go_top {
- z-index: 999;
- position: fixed;
- bottom: 150rpx;
- right: 50rpx;
- width: 100rpx;
- height: 100rpx;
- line-height: 100rpx;
- text-align: center;
- // background-color: #FFFFFF;
- background-color: #EEEEEE;
- border-radius: 50%;
- font-weight: 700;
- }
- </style>
|