270 lines
7.7 KiB
Vue
270 lines
7.7 KiB
Vue
<template>
|
||
<view style="letter-spacing: 1rpx;">
|
||
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||
<view style="padding-left: 15rpx;" @click="goBack()">
|
||
<text class="tn-icon-left" style="font-size: 40rpx;"></text>
|
||
</view>
|
||
<view class="tn-margin-top"
|
||
style=";text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
||
<tn-tabs :list="[{name:'搜索'}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||
:fontSize="36"></tn-tabs>
|
||
</view>
|
||
</view>
|
||
</tn-nav-bar>
|
||
<view>
|
||
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin"
|
||
:style="{marginTop: vuex_custom_bar_height + 20+'px'}">
|
||
<view class="justify-content-item align-content-item" style="width: 100%;">
|
||
<view class="tn-flex tn-flex-col-center"
|
||
style="border-radius: 100rpx;padding: 10rpx 20rpx 10rpx 20rpx;width: 95%;background-color: rgba(248, 247, 248, 0.9);">
|
||
<text
|
||
class="tn-icon-search justify-content-item tn-padding-right-xs tn-color-gray tn-text-lg"></text>
|
||
<input @input="chenkContent" v-model="content" class="justify-content-item"
|
||
placeholder="请填写搜索内容" name="input" placeholder-style="color:#AAAAAA"
|
||
style="width: 90%;"></input>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="align-content-item">
|
||
<view class="justify-content-item tn-text-center">
|
||
<tn-button backgroundColor="#3668fc" shape="round" padding="20rpx 20rpx" width="150rpx" @tap="">
|
||
<text class="tn-color-white">搜 索</text>
|
||
</tn-button>
|
||
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view>
|
||
<block>
|
||
<view>
|
||
<view class="tn-flex tn-flex-row-between tn-margin">
|
||
<view class="justify-content-item tn-text-bold">
|
||
<text class="tn-text-df tn-color-black">最近搜索</text>
|
||
</view>
|
||
<view class="justify-content-item tn-text-df tn-color-gray">
|
||
<text class="tn-padding-xs">删除</text>
|
||
<text class="tn-icon-delete"></text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="">
|
||
<view class="tn-tag-search tn-text-justify" style="padding: 0rpx 30rpx;">
|
||
<view v-for="(item, index) in tagList" :key="index"
|
||
class="tn-tag-search__item tn-margin-right tn-round tn-text-sm tn-bg-gray--light tn-color-gray">
|
||
{{ item.name }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</block>
|
||
<view class="tn-flex tn-flex-row-between tn-padding-bottom"
|
||
style="padding-top: 20rpx;margin: 30rpx 30rpx 0rpx 30rpx;">
|
||
<view class="justify-content-item tn-text-bold">
|
||
<text class="tn-text-df tn-color-black">会员搜索结果</text>
|
||
</view>
|
||
</view>
|
||
<view style="padding:0rpx 30rpx;">
|
||
<view class="tn-flex tn-flex-center tn-flex-col-center" @click="tn('/pages/index/user_info')"
|
||
style="background-color: #ffffff;padding:30rpx;border-radius: 15rpx;margin-bottom: 20rpx;box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);">
|
||
<view>
|
||
<image src="/static/u1.jpg" style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
|
||
</view>
|
||
<view style="margin-left: 20rpx;">
|
||
<view style="font-size: 31rpx;font-weight: 600;letter-spacing: 5rpx;">朱荣梅</view>
|
||
<view style="font-size: 24rpx;color: #808080;margin-top: 15rpx;">康桥集团执行总裁</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="tn-flex tn-flex-row-between tn-padding-bottom"
|
||
style="padding-top: 20rpx;margin: 30rpx 30rpx 0rpx 30rpx;">
|
||
<view class="justify-content-item tn-text-bold">
|
||
<text class="tn-text-df tn-color-black">协会搜索结果</text>
|
||
</view>
|
||
</view>
|
||
<view style="padding:0rpx 30rpx;">
|
||
<view class="tn-flex tn-flex-center tn-flex-col-center"
|
||
style="background-color: #ffffff;padding:30rpx;border-radius: 15rpx;margin-bottom: 20rpx;box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);">
|
||
<view>
|
||
<image src="/static/123.png" style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
|
||
</view>
|
||
<view style="margin-left: 20rpx;">
|
||
<view style="font-size: 31rpx;font-weight: 600;letter-spacing: 5rpx;">河南机器人行业协会</view>
|
||
<view style="font-size: 24rpx;color: #808080;margin-top: 15rpx;">成立时间:2021-09-08</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="tn-flex tn-flex-row-between tn-padding-bottom"
|
||
style="padding-top: 20rpx;margin: 30rpx 30rpx 0rpx 30rpx;">
|
||
<view class="justify-content-item tn-text-bold">
|
||
<text class="tn-text-df tn-color-black">文章搜索结果</text>
|
||
</view>
|
||
</view>
|
||
<view style="padding:0px 30rpx;">
|
||
<view v-for="(item,index) in 5" class="tn-flex tn-flex-row-between" @click="tn('/pages/index/new_info')"
|
||
style="background-color: #ffffff;padding: 20rpx;border-radius: 10rpx;margin-bottom: 20rpx;box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);">
|
||
<view style="position:relative;">
|
||
<view style="font-size: 28rpx;">团省委书记王笃波一行到访中青 企协开展对接洽谈</view>
|
||
<view class="tn-flex tn-flex-row-between"
|
||
style="position: absolute;bottom: 0rpx;width: 100%;color: #808080;">
|
||
<view>河南青企协</view>
|
||
<view>
|
||
<text class="tn-icon-eye"></text>
|
||
<text>568</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view style="margin-left: 20rpx;">
|
||
<image src="/static/c1.jpg" style="width: 240rpx;border-radius: 10rpx;" mode="widthFix"></image>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
data() {
|
||
return {
|
||
topCurrent: 0,
|
||
tagList: [{
|
||
name: '李小兵'
|
||
}, {
|
||
name: '李小兵'
|
||
}]
|
||
}
|
||
},
|
||
methods: {
|
||
tn(e) {
|
||
uni.navigateTo({
|
||
url: e
|
||
})
|
||
},
|
||
goBack() {
|
||
if (getCurrentPages().length > 1) {
|
||
uni.navigateBack()
|
||
} else {
|
||
uni.redirectTo({
|
||
url: '/pages/index/index'
|
||
})
|
||
|
||
}
|
||
},
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.tn-search-fixed {
|
||
position: fixed;
|
||
top: 50rpx;
|
||
width: 100%;
|
||
transition: all 0.25s ease-out;
|
||
z-index: 1;
|
||
}
|
||
|
||
|
||
/* 搜索标签 start*/
|
||
.tn-tag-search {
|
||
&__item {
|
||
display: inline-block;
|
||
line-height: 45rpx;
|
||
padding: 10rpx 30rpx;
|
||
margin: 20rpx 20rpx 5rpx 0rpx;
|
||
|
||
&--prefix {
|
||
padding-right: 10rpx;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* 标签内容 end*/
|
||
|
||
/* 标题 start */
|
||
.nav_title {
|
||
-webkit-background-clip: text;
|
||
color: transparent;
|
||
|
||
&--wrap {
|
||
position: relative;
|
||
display: flex;
|
||
height: 120rpx;
|
||
font-size: 42rpx;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-weight: bold;
|
||
background-image: url(https://resource.tuniaokj.com/images/title_bg/title00.png);
|
||
background-size: cover;
|
||
}
|
||
}
|
||
|
||
/* 标题 end */
|
||
|
||
/* 富文本图示意 start */
|
||
.news-img {
|
||
z-index: -1;
|
||
padding-bottom: 40rpx;
|
||
|
||
image {
|
||
width: 100%;
|
||
margin: 20rpx 0;
|
||
// height: 3373rpx;
|
||
// z-index: -1;
|
||
}
|
||
}
|
||
|
||
/* 资讯主图 start*/
|
||
.image-article {
|
||
border-radius: 8rpx;
|
||
border: 1rpx solid #F8F7F8;
|
||
width: 200rpx;
|
||
height: 200rpx;
|
||
position: relative;
|
||
}
|
||
|
||
.image-pic {
|
||
background-size: cover;
|
||
background-repeat: no-repeat;
|
||
// background-attachment:fixed;
|
||
background-position: top;
|
||
border-radius: 10rpx;
|
||
}
|
||
|
||
.article-shadow {
|
||
border-radius: 15rpx;
|
||
box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07);
|
||
}
|
||
|
||
/* 文字截取*/
|
||
.clamp-text-1 {
|
||
-webkit-line-clamp: 1;
|
||
display: -webkit-box;
|
||
-webkit-box-orient: vertical;
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.clamp-text-2 {
|
||
-webkit-line-clamp: 2;
|
||
display: -webkit-box;
|
||
-webkit-box-orient: vertical;
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* 标签内容 start*/
|
||
.tn-tag-content {
|
||
&__item {
|
||
display: inline-block;
|
||
line-height: 35rpx;
|
||
padding: 7rpx 25rpx 5rpx 25rpx;
|
||
|
||
&--prefix {
|
||
padding-right: 10rpx;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* 标签内容 end*/
|
||
</style> |