123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <template>
- <view class="">
- <view class="box">
- <view class="box_top">
- <image style="width: 100%; height: 100%" src="https://huli-app.wenlvti.net/app_static/minnanhun/image/ccbg.png"></image>
- </view>
- <view class="gy_box" @click="tougaoBtn">
- <view class="">投稿</view>
- <uni-icons type="compose" size="22" color="#ffffff"></uni-icons>
- </view>
- <view class="box_search" @click="searchBtn">
- <view class="">
- <uni-icons type="search" size="20"></uni-icons>
- </view>
- <view class="">请输入搜索内容</view>
- </view>
- <view class="box_tab">
- <u-tabs
- :duration="200"
- :list="listTab"
- :lineWidth="25"
- :lineHeight="12"
- lineColor="#4E7198"
- :lineColor="`url(${tabImg}) 100% 100%`"
- :activeStyle="{
- color: '#4E7198',
- fontSize: '34rpx'
- }"
- ></u-tabs>
- </view>
- <!-- 瀑布流 -->
- <custom-waterfalls-flow :value="list" style="width: 90%; margin: auto">
- <view class="item" style="position: relative" v-for="(item, index) in list" :key="index" slot="slot{{index}}">
- <view class="title_pubu">
- {{ item.title }}
- </view>
- <!-- <view class="desc">{{ item.desc }}</view> -->
- </view>
- </custom-waterfalls-flow>
- </view>
- <mntabBar footerTab="2" :messageCount="0"></mntabBar>
- </view>
- </template>
- <script>
- import { mapState } from 'vuex';
- let that;
- export default {
- components: {},
- data() {
- return {
- tabImg: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tab.png',
- list: [
- {
- image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy1.png',
- title: '传统捏泥人',
- desc: '描述描述描述描述描述描述描述描述2'
- },
- {
- image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy2.png',
- title: '青龙宫',
- desc: '描述描述描述描述描述描述描述描述1'
- },
- {
- image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy3.png',
- title: '火把节',
- desc: '11'
- },
- {
- image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy9.png',
- title: '老物件',
- desc: '描述描述描述描述描述描述描述描述2'
- },
- {
- image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy4.png',
- title: '林后青龙宫',
- desc: '描述描述描述描述描述描述描述描述2'
- },
- {
- image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy10.png',
- title: '书籍',
- desc: '描述描述描述描述描述描述描述描述2'
- },
- {
- image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy7.png',
- title: '建筑',
- desc: '描述描述描述描述描述描述描述描述2'
- },
- {
- image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy8.png',
- title: '老钟表',
- desc: '描述描述描述描述描述描述描述描述2'
- },
- {
- image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy14.png',
- title: '老物件',
- desc: '描述描述描述描述描述描述描述描述2'
- }
- ],
- listTab: [
- {
- name: '书法',
- tabid: 1
- },
- {
- name: '戏曲',
- tabid: 2
- },
- {
- name: '非遗',
- tabid: 3
- },
- {
- name: '文化',
- tabid: 4
- },
- {
- name: '创作',
- tabid: 5
- }
- ]
- };
- },
- onLoad(option) {
- that = this;
- },
- computed: {},
- methods: {
- searchBtn() {
- uni.navigateTo({
- url: '/chuanCheng_fenbao/search/search'
- });
- },
- tougaoBtn() {
- uni.navigateTo({
- url: '/chuanCheng_fenbao/touGao'
- });
- }
- }
- };
- </script>
- <style>
- .body {
- /* background-image: url('https://huli-app.wenlvti.net/uploads/20230512/88f8347924d08296bbde9d55afd74c15.jpg');
- background-size: 100% 100%; */
- background-attachment: fixed;
- }
- /deep/.u-tabs__wrapper__nav__item.data-v-48634e29 {
- padding: 0 40rpx !important;
- }
- /deep/.u-tabs__wrapper__nav__line.data-v-48634e29 {
- bottom: 16rpx !important;
- }
- /deep/.u-tabs__wrapper__nav__item.data-v-48634e29 {
- align-items: end !important;
- }
- /deep/.column-value.data-v-ddfcbb1c {
- border-radius: 25rpx 60rpx 0rpx 30rpx !important;
- }
- .box {
- height: auto;
- width: 100%;
- background-color: #eff6ff;
- background-attachment: fixed;
- border-radius: 16px 16px 0 0;
- position: relative;
- display: flex;
- flex-direction: column;
- }
- .box_top {
- width: 100%;
- height: 410rpx;
- }
- .box_search {
- display: flex;
- align-items: center;
- padding-left: 20rpx;
- box-sizing: border-box;
- width: 685rpx;
- height: 80rpx;
- color: #999999;
- font-size: 28rpx;
- background-color: #ffffff;
- z-index: 2;
- border-radius: 40rpx;
- margin: -90rpx 32rpx 0 34rpx;
- }
- .box_tab {
- margin: 45rpx 32rpx 0 32rpx;
- }
- .title_pubu {
- width: 100%;
- height: 65rpx;
- line-height: 65rpx;
- background-color: #ca5642;
- font-size: 30rpx;
- color: #ffffff;
- text-align: center;
- position: absolute;
- bottom: 0;
- left: 0;
- }
- .gy_box {
- width: 160rpx;
- height: 60rpx;
- display: flex;
- align-items: center;
- position: absolute;
- top: 240rpx;
- right: 0;
- padding-left: 10rpx;
- font-size: 28rpx;
- font-family: MiSans, MiSans;
- font-weight: 500;
- color: #ffffff;
- justify-content: space-evenly;
- line-height: 44rpx;
- z-index: 11;
- border-radius: 20rpx 0rpx 0rpx 20rpx;
- background-color: #ca5642;
- }
- </style>
|