1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228 |
- <template>
- <view class="circle tn-safe-area-inset-bottom">
- <tn-nav-bar customBack>
- <view slot="back" class='tn-custom-nav-bar__back' @click="reFetchData()">
- <text v-if="!loading" class="tn-icon-circle-arrow" style="font-size: 50rpx;"></text>
- <tn-loading v-if="loading" :size="46"></tn-loading>
- </view>
- <view slot="default" style="display: flex;">
- <view style="flex:1;margin-left:25px">
- <text>我有什么</text>
- </view>
- <view>
- <text class="tn-icon-add-fill" style="font-size: 30px;margin-right: 4px;"
- @click="addButton()"></text>
- </view>
- </view>
- </tn-nav-bar>
- <!-- 发现 -->
- <view class="" v-if="current==0" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
- <uv-sticky :offsetTop="vuex_custom_bar_height + 'px'" bgColor="#ffffff">
- <view style="width: 100%;" v-if="currentTab==0">
- <view style="display: flex; padding: 10px 12px;">
- <view
- style="flex:1;background-color: #f8f8f8;border-radius: 18px;color: #bbb;line-height: 35px;"
- @click="showSearch">
- <view>
- <uni-icons type="search" color="#bbbbbb" size="18" style="margin: 8px;"></uni-icons>
- <text v-if="!searchProdValue">产品名称/品牌/产品型号</text>
- <text v-if="searchProdValue">{{searchProdValue}}</text>
- </view>
- </view>
- <view v-if="searchProdValue" @click="clearProd" style="line-height: 36px;margin-left: 10px;">取消
- </view>
- </view>
- </view>
- <uni-search-bar radius="15" placeholder="搜索" v-if="currentTab==1" @confirm="search"
- v-model="searchValue" @blur="search" @cancel="cancel" @clear="clear" cancelButton="auto"
- clearButton="auto">
- </uni-search-bar>
- <tn-tabs-swiper :list="tabList" :isScroll="false" :current="currentTab" name="tab-name"
- @change="changeTab" style="border-bottom: 1rpx solid #f1f1f1cc;">
- </tn-tabs-swiper>
- </uv-sticky>
-
- <view class="tn-flex tn-flex-direction-column tn-margin-top-sm tn-margin-bottom">
- <!-- 图文信息 -->
- <block v-for="(item,index) in content">
- <view class="blogger__item" :key="index">
- <view class="blogger__author tn-flex tn-flex-row-between tn-flex-col-center">
- <view class="justify__author__info" @click="tn('')">
- <view class="tn-flex tn-flex-row-center">
- <view class="tn-flex tn-flex-row-center tn-flex-col-center">
- <!-- <view class="">
- <tn-avatar
- class=""
- shape="circle"
- :src="item.userAvatar"
- size="lg">
- </tn-avatar>
- </view> -->
- <view class="tn-padding-right tn-text-ellipsis">
- <view class="tn-padding-right tn-color-grey tn-text-lg">
- {{ item.company||'个人/'+(item.contactNickName||item.contactPerson) }}
- </view>
- <!-- <view class="tn-padding-right tn-padding-left-sm tn-padding-top-xs tn-color-gray">{{ item.date }}</view> -->
- </view>
- </view>
- </view>
- </view>
- <view v-if="item.validDate"
- class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
- <text class="" style="background: #3F51B542;font-size: 12px;
- padding: 8px;
- color: #0000FF;
- border-radius: 24px;
- border-top-right-radius: 0;">{{item.validDate}}</text>
- </view>
-
- </view>
- <view v-if="item.content||item.brand"
- class="blogger__desc tn-margin-top-sm tn-margin-bottom-sm tn-text-justify tn-flex-col-center tn-flex-row-left"
- @click="tn('')">
-
- <!-- 不用限制长度了,因为发布的时候限制长度了-->
- <tn-tag margin="-4px 4px 0 0" backgroundColor="#3a96d733" v-if="item.brand"
- fontColor="#3a96d7" shape="circle">{{ item.brand }}</tn-tag>
- <text v-if="item.content"
- class="blogger__desc__content tn-flex-1 tn-text-justify tn-text-df">{{ item.content }}</text>
- </view>
- <block v-if="item.imgList">
- <view v-if="[1,2,4].indexOf(item.imgList.length) != -1" class="tn-padding-top-xs"
- @click="tn('')">
- <image v-for="(image_item,image_index) in item.imgList" :key="image_index"
- class="blogger__main-image" :class="{
- 'blogger__main-image--1 tn-margin-bottom-sm': item.imgList.length === 1,
- 'blogger__main-image--2 tn-margin-right-sm tn-margin-bottom-sm': item.imgList.length === 2 || item.imgList.length === 4
- }" :src="image_item.ftpUrl" mode="scaleToFill" @click="showImg(item.imgList,image_index)"></image>
- </view>
- <view v-else class="tn-padding-top-xs" @click="tn('')">
- <tn-grid hoverClass="none" :col="3">
- <block v-for="(image_item,image_index) in item.imgList" :key="image_index">
- <!-- #ifndef MP-WEIXIN -->
- <tn-grid-item style="width: 30%;margin: 10rpx;">
- <image class="blogger__main-image blogger__main-image--3"
- :src="image_item.ftpUrl" mode="scaleToFill"></image>
- </tn-grid-item>
- <!-- #endif-->
- <!-- #ifdef MP-WEIXIN -->
- <tn-grid-item style="width: 30%;margin: 10rpx;">
- <image class="blogger__main-image blogger__main-image--3"
- :src="image_item.ftpUrl" mode="scaleToFill"></image>
- </tn-grid-item>
- <!-- #endif-->
- </block>
- </tn-grid>
- </view>
- </block>
- <!-- 内容太多疲劳了-->
- <view v-if="item.shareExt&&item.shareExt.length>0" class="blogger__content"
- :id="`blogger__content--${index}`">
- <basic-table header-row-class-name="basic-table-header" :columns="columns" :border="true"
- :stripe="true" :data="item.shareExt">
- </basic-table>
- </view>
- <view v-for="file in item.fileDetailList" v-if="!isImage(file.fileName)">
- <view style="margin-top:10px">
- <text class="tn-icon-link"></text>
- <view style="display: inline-block;margin-left:8px" @click="clickLink(file.ftpUrl)">
- {{file.fileName}}</view>
- </view>
- </view>
- <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-top-xs">
- <view class="justify-content-item tn-color-gray tn-text-center">
- <view class="tn-padding-right tn-padding-top-xs tn-color-gray">
- {{ item.createTime|formatDate }}
- </view>
- </view>
- <view class="justify-content-item tn-flex tn-flex-col-center">
- <text class="tn-icon-more-vertical tn-color-gray tn-text-bold tn-text-xxl"
- @click="showActionSheet(item)"></text>
- </view>
- </view>
- </view>
- <!-- 边距间隔 -->
- <view class="tn-strip-bottom" v-if="index != content.length - 1"></view>
- </block>
- <!-- 边距间隔 -->
- <view class="tn-strip-bottom"></view>
- <view v-if="showEmpty&&content.length==0" style="margin-top: 32vh;">
- <tn-empty mode="list"></tn-empty>
- </view>
- <!-- 广告 -->
- </view>
- <view class='tn-tabbar-height'></view>
- </view>
-
- <tn-popup v-model="showSheet" mode="center" closeBtn="true" borderRadius="16">
- <view class="content" style="padding: 24px 36px;font-size: 16px;line-height: 24px; width: 300px;"
- v-if="!showContact">
- <button @click="linkTel()" style="border-radius:30px;color:#3a96d7;background-color: #d3e3fd;"><text
- class="tn-icon-service" style="margin-right: 12px;"></text> 联系供方</button>
- <!-- <view>联系我们帮助对接</view> -->
- <button v-if="!collStatus" @click="addColl"
- style="margin-top:10px;border-radius:30px;color:#3a96d7;background-color: #d3e3fd;"><text
- class="tn-icon-star" style="margin-right: 12px;"></text>
- 收 藏</button>
- <button v-if="collStatus" @click="delColl"
- style="margin-top:10px;border-radius:30px;color:#3a96d7;background-color: #d3e3fd;"><text
- class="tn-icon-star-fill" style="margin-right: 12px;"></text> 取消收藏</button>
- <button open-type="share"
- style="margin-top:10px;border-radius:30px;color:#3a96d7;background-color: #d3e3fd;"><text
- class="tn-icon-send" style="margin-right: 12px;"></text>
- 转 发</button>
- </view>
- <view class="content" style="padding: 24px 36px;font-size: 16px;line-height: 24px; width: 300px;"
- v-if="showContact">
- <view><text v-if="curContact.company">公司名称:{{curContact.company}}</text></view>
- <view><text>联系人姓名:{{curContact.contactPerson}}</text> </view>
- <view><text>联系方式:{{curContact.contactMethod}}</text> </view>
- </view>
- </tn-popup>
-
- </view>
- </template>
- <script>
- import request from '../../utils/request'
- export default {
- name: 'Circle',
- data() {
- return {
- loading: false,
- searchProdValue: '',
- tabList: [{
- 'tab-name': '产品'
- }, {
- 'tab-name': '服务'
- }],
- currentTab: 0,
- showEmpty: false,
- columns: [{
- fieldName: 'prodName',
- fieldDesc: '产品名称',
- }, {
- fieldName: 'prodSpec',
- fieldDesc: '规格型号',
- }, {
- fieldName: 'prodDesc',
- fieldDesc: '产品介绍',
- }],
- showSheet: false,
- curItem: {},
- collId: '',
- showContact: false,
- curContact: {},
- current: 0,
- collStatus: '',
- searchValue: '',
- scrollList: [{
- name: '产品'
- },
- {
- name: '服务'
- },
- {
- name: '其他'
- }
- ],
-
- // 内容默认隐藏显示的高度
- contentHideShowHeight: 0,
- content: [],
- totalSize: 0,
- curIndex: 1,
- }
- },
- onLoad() {
- this.initContentData()
- this.contentHideShowHeight = uni.upx2px(56) * 3
- },
- onReady() {
- this.$nextTick(() => {
- this.fetchData()
- })
- },
- onShow() {
- this.fetchData()
- },
- onHide() {
- this.adAutoplay = false
- },
- filters: {
- formatDate(value) {
- if (!value) return '';
- const date = new Date(value);
- const today = new Date();
- const yesterday = new Date(today); // 昨天的日期
- yesterday.setDate(yesterday.getDate() - 1); // 将昨天的日期设置为前一天
- if (date.getFullYear() == today.getFullYear() && date.getMonth() == today.getMonth() && date.getDate() ==
- today.getDate()) {
- return '今天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
- .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
- }
- if (date.getFullYear() == yesterday.getFullYear() && date.getMonth() == yesterday.getMonth() && date
- .getDate() == yesterday.getDate()) {
- return '昨天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
- .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
- }
- return date.toLocaleDateString() + ' ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
- .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
- },
- },
- methods: {
- showSearch(item) {
- uni.showToast({
- title: '请输入',
- icon: 'none',
- duration: 100
- })
- // 或者可以直接设置body的tabindex属性为-1,然后移除焦点
- // 注意:这种方式可能会导致一些浏览器的兼容性问题
- uni.navigateTo({
- url: '/pages/comm/search'
- })
- },
- isImage(fileName) {
- const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'ico']
- const extension = fileName.split('.').pop().toLowerCase();
- return imageExtensions.includes(extension);
- },
- addButton() {
- if (!uni.getStorageSync('userNo')) {
- uni.showToast({
- title: '请登录'
- })
- uni.navigateTo({
- url: '/pages/login/login'
- })
- return false;
- } else {
- uni.navigateTo({
- url: '/circlePages/addShare'
- })
- }
- },
- showImg(items, index) {
- let urls = [];
- for (let i = 0; i < items.length; i++) {
- urls.push(items[i].ftpUrl);
- }
- // wx.chooseMessageFile({
- // count: 3, //默认100
- // type:'file',
- // extension:['.pdf','.doc'],
- // success: function (res) {
- // console.error(JSON.stringify(res));
- // }
- // });
- // 预览图片
- uni.previewImage({
- urls: urls,
- current: index,
- });
- },
- clickLink(url) {
- uni.navigateTo({
- url: '/pages/webview/web-view?url=' + url,
- })
- },
- // tab选项卡切换
- tabChange(index) {
- this.current = index
- },
- // 跳转
- tn(e) {
- uni.navigateTo({
- url: e,
- });
- },
- // 震动跳转
- navEdit(e) {
- wx.vibrateLong();
- uni.navigateTo({
- url: '/circlePages/edit'
- })
- },
- // 震动跳转
- navCreate(e) {
- wx.vibrateLong();
- uni.navigateTo({
- url: '/circlePages/create'
- })
- },
- // 震动跳转
- navBuild(e) {
- wx.vibrateLong();
- uni.navigateTo({
- url: '/circlePages/build'
- })
- },
- // 处理内容,给内容添加对应的标识信息
- initContentData() {
- this.content.forEach((item, index) => {
- // 是否需要隐藏内容
- item.hideContent = false
- // 显示所有内容
- item.showAllContent = false
- // 内容容器的实际高度
- item.contentContainerHeight = 0
- // 内容容器是否初始化完成
- item.contentContainerInit = false
- this.$set(this.content, index, item)
- })
- },
- reFetchData() {
- this.loading = true;
- uni.showToast({
- title: '正在刷新...',
- icon: 'none'
- });
- this.fetchData();
- },
- loadMore() {
- if (this.totalSize > this.content.length) {
- this.fetchData(this.curIndex + 1);
- }
- console.error('正在加载更多');
- },
- changeTab(index) {
- this.currentTab = index;
- this.fetchData();
- },
- // 获取内容容器的信息
- fetchData(curIndex = 1) {
- let that = this;
- that.showEmpty = false;
- if (uni.getStorageSync('searchProdValue')) {
- that.searchProdValue = uni.getStorageSync('searchProdValue');
- }
- request.post('/slbResourceShare/query', {
- type: that.currentTab == 1 ? '2' : '1',
- index: curIndex,
- content: that.currentTab == 1 ? that.searchValue : undefined,
- prodDesc: that.currentTab == 0 ? (that.searchProdValue ? that.searchProdValue.split('/')[2] :
- '') : undefined,
- prodName: that.currentTab == 0 ? (that.searchProdValue ? that.searchProdValue.split('/')[0] :
- '') : undefined,
- prodSpec: that.currentTab == 0 ? (that.searchProdValue ? that.searchProdValue.split('/')[1] :
- '') : undefined,
- }).then(res => {
- that.loading = false;
- if (res && res.success) {
- that.totalSize = res.total || 0;
- let newList = res.list || [];
- for (let i = 0; i < newList.length; i++) {
- newList[i].imgList = [];
- for (let j = 0; j < newList[i].fileDetailList.length; j++) {
- if (that.isImage(newList[i].fileDetailList[j].fileName)) {
- newList[i].imgList.push(newList[i].fileDetailList[j]);
- }
- }
- }
- if (curIndex == 1) {
- that.content = newList || [];
- } else {
- that.content = that.content.concat(newList || []);
- }
- }
- that.showEmpty = true;
- console.warn(res);
- })
- // let contentRect = {}
- // const query = uni.createSelectorQuery().in(this)
- // // 筛选出存在内容的数据
- // this.content.forEach((item, index) => {
- // if (item?.content) {
- // query.select(`#blogger__content--${index}`).boundingClientRect()
- // contentRect[index] = item
- // }
- // })
- // // 获取所有内容的宽高信息
- // query.exec(res => {
- // if (!res) {
- // setTimeout(() => {
- // this.fetchData()
- // }, 10)
- // return
- // }
- // // console.log(res);
- // res.map((item) => {
- // // console.log(item.height, this.contentHideShowHeight);
- // // 获取对应的标号
- // const id = item.id
- // const idIndex = /blogger__content--(\d)/.exec(id)[1]
- // let contentItem = this.content[idIndex]
- // contentItem.hideContent = item.height > this.contentHideShowHeight
- // contentItem.showAllContent = false
- // contentItem.contentContainerHeight = item.height
- // contentItem.contentContainerInit = true
- // this.$set(this.content, idIndex, contentItem)
- // // console.log(/blogger__content--(\d)/.exec(id)[1]);
- // })
- // })
- },
- showActionSheet(item) {
- let that = this;
- this.curItem = item;
- this.collStatus = false;
- this.showSheet = true;
- that.showContact = false;
- if (uni.getStorageSync('userNo')) {
- let params = {};
- params = {
- fkBisNo: that.curItem.bisNo,
- userNo: uni.getStorageSync('userNo'),
- };
- request.post('/slbCollect/query', params).then(res => {
- if (res.success) {
- if (res.list && res.list.length > 0) {
- that.collStatus = true;
- that.collId = res.list[0].id;
- }
- }
- })
- }
- },
- linkTel() {
- if (!uni.getStorageSync('userNo')) {
- uni.showToast({
- title: '请登录'
- })
- uni.navigateTo({
- url: '/pages/login/login'
- })
- return false;
- }
- let that = this;
- let params = {};
- params.slbBisContact = JSON.stringify({
- fkBisNo: that.curItem.bisNo,
- bisType: '2',
- type: '1',
- userNo: uni.getStorageSync('userNo'),
- });
- request.post('/slbBisContact/add', params).then(res => {
- if (res.success) {
- that.showContact = true;
- that.curContact.company = that.curItem.company;
- that.curContact.contactMethod = res.resultMap.contactMethod;
- that.curContact.contactPerson = res.resultMap.contactPerson;
- } else {
- that.showContact = false;
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- })
- },
- addColl() {
- if (!uni.getStorageSync('userNo')) {
- uni.showToast({
- title: '请登录'
- })
- uni.navigateTo({
- url: '/pages/login/login'
- })
- return false;
- }
- let that = this;
- let params = {};
- params.slbCollect = JSON.stringify({
- fkBisNo: that.curItem.bisNo,
- bisType: '2',
- userNo: uni.getStorageSync('userNo'),
- });
- request.post('/slbCollect/add', params).then(res => {
- if (res.success) {
- uni.showToast({
- title: '信息已收藏,请在我的收藏里查看阅读',
- duration: 2000,
- icon: 'none'
- });
- that.showSheet = false;
- } else {
- uni.showToast({
- title: res.msg
- })
- }
- })
- },
- delColl() {
- let that = this;
- request.post('/slbCollect/del', {
- id: that.collId
- }).then(res => {
- if (res.success) {
- uni.showToast({
- title: '取消成功'
- })
- that.showSheet = false;
- } else {
- uni.showToast({
- title: res.msg
- })
- }
- })
- },
-
- search() {
- this.fetchData();
- },
- searchProd() {
- this.searchProdValue = '';
- this.fetchData();
- },
- cancel() {
- this.searchValue = '';
- this.fetchData();
- },
- clear() {
- this.searchValue = '';
- this.fetchData();
- },
- clearProd() {
- this.searchProdValue = '';
- uni.removeStorageSync('searchProdValue');
- this.fetchData();
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .circle {
- max-height: 100vh;
- }
- /* 底部安全边距 start*/
- .tn-tabbar-height {
- min-height: 120rpx;
- height: calc(140rpx + env(safe-area-inset-bottom) / 2);
- height: calc(140rpx + constant(safe-area-inset-bottom));
- }
- /* 自定义导航栏内容 start */
- .custom-nav {
- height: 100%;
- &__back {
- margin: auto 5rpx;
- font-size: 40rpx;
- margin-right: 10rpx;
- margin-left: 30rpx;
- flex-basis: 5%;
- }
- &__search {
- flex-basis: 60%;
- width: 100%;
- height: 100%;
- &__box {
- width: 100%;
- height: 70%;
- padding: 10rpx 0;
- margin: 0 30rpx;
- border-radius: 60rpx 60rpx 0 60rpx;
- font-size: 24rpx;
- }
- &__icon {
- padding-right: 10rpx;
- margin-left: 20rpx;
- font-size: 30rpx;
- }
- &__text {
- color: #AAAAAA;
- }
- }
- }
- .logo-image {
- width: 60rpx;
- height: 60rpx;
- position: relative;
- margin-top: -15rpx;
- }
- .logo-pic {
- background-size: cover;
- background-repeat: no-repeat;
- // background-attachment:fixed;
- background-position: top;
- border-radius: 50%;
- }
- /* 自定义导航栏内容 end */
- /* 博主头像 start*/
- .image-circle {
- // padding: 95rpx;
- width: 190rpx;
- height: 190rpx;
- font-size: 40rpx;
- font-weight: 300;
- position: relative;
- }
- .image-pic {
- border: 1rpx solid #F8F7F8;
- background-size: cover;
- background-repeat: no-repeat;
- // background-attachment:fixed;
- background-position: top;
- border-radius: 10rpx;
- }
- .tn-color-cat {
- color: #1D2541;
- }
- .tn-bg-cat {
- background-color: #1D2541;
- }
- /* 文章内容 start*/
- .blogger {
- &__item {
- padding: 30rpx;
- }
- &__author {
- &__btn {
- margin-right: -12rpx;
- opacity: 0.5;
- }
- }
- &__desc {
- line-height: 30rpx;
- &__label {
- color: #1D2541;
- background-color: #F3F2F7;
- border-radius: 10rpx;
- font-size: 22rpx;
- padding: 5rpx 15rpx;
- margin: 5rpx 18rpx 0 0;
- &--prefix {
- font-size: 24rpx;
- color: #1D2541;
- padding-right: 10rpx;
- }
- }
- &__content {
- line-height: 50rpx;
- }
- }
- &__content {
- margin-top: 18rpx;
- padding-right: 18rpx;
- &__data {
- line-height: 46rpx;
- text-align: justify;
- overflow: hidden;
- transition: all 0.25s ease-in-out;
- }
- &__status {
- margin-top: 10rpx;
- font-size: 26rpx;
- color: #82B2FF;
- }
- }
- &__main-image {
- border: 1rpx solid #F8F7F8;
- border-radius: 16rpx;
- &--1 {
- max-width: 80%;
- max-height: 300rpx;
- }
- &--2 {
- max-width: 260rpx;
- max-height: 260rpx;
- }
- &--3 {
- height: 212rpx;
- width: 100%;
- }
- }
- &__count-icon {
- font-size: 40rpx;
- padding-right: 5rpx;
- }
- &__ad {
- width: 100%;
- height: 500rpx;
- transform: translate3d(0px, 0px, 0px) !important;
- ::v-deep .uni-swiper-slide-frame {
- transform: translate3d(0px, 0px, 0px) !important;
- }
- .uni-swiper-slide-frame {
- transform: translate3d(0px, 0px, 0px) !important;
- }
- &__item {
- position: absolute;
- width: 100%;
- height: 100%;
- transform-origin: left center;
- transform: translate3d(100%, 0px, 0px) scale(1) !important;
- transition: transform 0.25s ease-in-out;
- z-index: 1;
- &--0 {
- transform: translate3d(0%, 0px, 0px) scale(1) !important;
- z-index: 4;
- }
- &--1 {
- transform: translate3d(13%, 0px, 0px) scale(0.9) !important;
- z-index: 3;
- }
- &--2 {
- transform: translate3d(26%, 0px, 0px) scale(0.8) !important;
- z-index: 2;
- }
- }
- &__content {
- border-radius: 40rpx;
- width: 640rpx;
- height: 500rpx;
- overflow: hidden;
- }
- &__image {
- width: 100%;
- height: 100%;
- }
- }
- }
- /* 文章内容 end*/
- /* 间隔线 start*/
- .tn-strip-bottom {
- width: 100%;
- border-bottom: 20rpx solid rgba(241, 241, 241, 0.8);
- }
- /* 间隔线 end*/
- /* 广告内容 start */
- .ad-image {
- width: 80rpx;
- height: 80rpx;
- position: relative;
- }
- .ad-pic {
- background-size: cover;
- background-repeat: no-repeat;
- // background-attachment:fixed;
- background-position: top;
- border-radius: 20%;
- }
- /* 自定义导航栏内容 end */
- /* 全屏轮播 start*/
- .card-swiper {
- height: 100vh !important;
- }
- .card-swiper swiper-item {
- width: 750rpx !important;
- left: 0rpx;
- box-sizing: border-box;
- overflow: initial;
- }
- .card-swiper swiper-item .swiper-item {
- width: 100%;
- display: block;
- height: 100vh;
- border-radius: 0rpx;
- transform: scale(1);
- transition: all 0.2s ease-in 0s;
- overflow: hidden;
- }
- .card-swiper swiper-item.cur .swiper-item {
- transform: none;
- transition: all 0.2s ease-in 0s;
- }
- .card-swiper swiper-item .swiper-item-png {
- margin-top: -50vh;
- width: 100%;
- display: block;
- border-radius: 0rpx;
- transform: translate(1040rpx, 20rpx) scale(0.5, 0.5);
- transition: all 0.6s ease 0s;
- // overflow: hidden;
- }
- .card-swiper swiper-item.cur .swiper-item-png {
- margin-top: -100vh;
- width: 900rpx;
- transform: translate(-80rpx, 0rpx) scale(1, 1);
- transition: all 0.6s ease 0s;
- }
- .image-banner {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .image-banner image {
- width: 100%;
- }
- /* 轮播指示点 start*/
- .indication {
- z-index: 9999;
- width: 100%;
- height: 36rpx;
- position: fixed;
- // display:flex;
- display: block;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- }
- .spot {
- background-color: #000;
- opacity: 0.3;
- width: 10rpx;
- height: 10rpx;
- border-radius: 20rpx;
- margin: 20rpx 0 !important;
- left: 95vw;
- top: -60vh;
- position: relative;
- }
- .spot.active {
- opacity: 0.6;
- height: 30rpx;
- background-color: #000;
- }
- /* 资讯主图 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;
- color: #1D2541;
- background-color: #F3F2F7;
- border-radius: 10rpx;
- font-size: 22rpx;
- padding: 5rpx 15rpx;
- &--prefix {
- padding-right: 10rpx;
- }
- }
- }
- /* 图标容器9 start */
- .icon9 {
- &__item {
- width: 30%;
- background-color: #FFFFFF;
- border-radius: 10rpx;
- padding: 30rpx;
- margin: 20rpx 10rpx;
- transform: scale(1);
- transition: transform 0.3s linear;
- transform-origin: center center;
- &--icon {
- width: 110rpx;
- height: 110rpx;
- font-size: 65rpx;
- border-radius: 50%;
- margin: 20rpx 40rpx;
- position: relative;
- z-index: 1;
- &::after {
- content: " ";
- position: absolute;
- z-index: -1;
- width: 100%;
- height: 100%;
- left: 0;
- bottom: 0;
- border-radius: inherit;
- opacity: 1;
- transform: scale(1, 1);
- background-size: 100% 100%;
- background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg5.png);
- }
- }
- }
- }
- /* 悬浮 */
- .tnxuanfu {
- animation: suspension 3s ease-in-out infinite;
- }
- @keyframes suspension {
- 0%,
- 100% {
- transform: translateY(0);
- }
- 50% {
- transform: translateY(-0.8rem);
- }
- }
- /* 悬浮按钮 */
- .button-shop {
- width: 90rpx;
- height: 90rpx;
- display: flex;
- flex-direction: row;
- position: fixed;
- /* bottom:200rpx;
- right: 20rpx; */
- left: 5rpx;
- top: 5rpx;
- z-index: 1001;
- border-radius: 100px;
- opacity: 0.9;
- }
- /* 按钮 */
- .edit {
- bottom: 300rpx;
- right: 75rpx;
- position: fixed;
- z-index: 9999;
- }
- .pa,
- .pa0 {
- position: absolute
- }
- .pa0 {
- left: 0;
- top: 0
- }
- .bg0 {
- width: 100rpx;
- height: 100rpx;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- .bg1 {
- width: 100%;
- height: 100%;
- }
- .hx-box {
- top: 50%;
- left: 50%;
- width: 100rpx;
- height: 100rpx;
- transform-style: preserve-3d;
- transform: translate(-50%, -50%) rotateY(75deg) rotateZ(10deg);
- }
- .hx-box .pr {
- width: 100rpx;
- height: 100rpx;
- transform-style: preserve-3d;
- animation: hxz 20s linear infinite;
- }
- @keyframes hxz {
- 0% {
- transform: rotateX(0deg);
- }
- 100% {
- transform: rotateX(-360deg);
- }
- }
- .hx-box .pr .pa0 {
- width: 100rpx;
- height: 100rpx;
- /* border: 4px solid #5ec0ff; */
- border-radius: 1000px;
- }
- .hx-box .pr .pa0 .span {
- display: block;
- width: 100%;
- height: 100%;
- background: url(https://resource.tuniaokj.com/images/cool_bg_image/arc4.png) no-repeat center center;
- background-size: 100% 100%;
- animation: hx 4s linear infinite;
- }
- @keyframes hx {
- to {
- transform: rotate(360deg);
- }
- }
- .hx-k1 {
- transform: rotateX(-60deg) rotateZ(-60deg)
- }
- .hx-k2 {
- transform: rotateX(-30deg) rotateZ(-30deg)
- }
- .hx-k3 {
- transform: rotateX(0deg) rotateZ(0deg)
- }
- .hx-k4 {
- transform: rotateX(30deg) rotateZ(30deg)
- }
- .hx-k5 {
- transform: rotateX(60deg) rotateZ(60deg)
- }
- .hx-k6 {
- transform: rotateX(90deg) rotateZ(90deg)
- }
- /deep/ .basic-table-header {
- background-color: #edeeee;
- }
- </style>
|