coll.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. <template>
  2. <view>
  3. <tn-nav-bar fixed customBack>
  4. <view slot="back" class='tn-custom-nav-bar__back' @click="goBack">
  5. <text class='icon tn-icon-left'></text>
  6. </view>
  7. <view slot="default">
  8. <text :style="{fontSize:(wxFontSize)+'px'}">我的收藏</text>
  9. </view>
  10. </tn-nav-bar>
  11. <view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
  12. <uv-sticky :offsetTop="vuex_custom_bar_height + 'px'" bgColor="#ffffff">
  13. <tn-tabs-swiper :list="list" :isScroll="false" :fontSize="(wxFontSize+12)" :barWidth="wxFontSize+50" :current="current" name="tab-name" @change="change" style="border-bottom: 1rpx solid #f1f1f1cc;"></tn-tabs-swiper>
  14. </uv-sticky>
  15. <view>
  16. <!-- 图文信息 -->
  17. <block v-for="(item,index) in content" :key="index">
  18. <view class="blogger__item">
  19. <view class="blogger__author tn-flex tn-flex-row-between tn-flex-col-center">
  20. <view class="justify__author__info" @click="tn('')">
  21. <view class="tn-flex tn-flex-row-center">
  22. <view class="tn-flex tn-flex-row-center tn-flex-col-center">
  23. <!-- <view class="">
  24. <tn-avatar class="" shape="circle" :src="item.userAvatar" size="lg">
  25. </tn-avatar>
  26. </view> -->
  27. <view class="tn-padding-right">
  28. <view class="tn-padding-right tn-text-bold tn-text-lg" :style="{fontSize:(wxFontSize)+'px'}">
  29. {{ item.company||(item.contactNickName||item.contactPerson) }}
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view v-if="item.validDate&&current==0"
  36. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  37. <text class="" style="background: #3F51B542;font-size: 12px;word-break: keep-all;
  38. padding: 8px;
  39. color: #0000FF;
  40. border-radius: 24px;
  41. border-top-right-radius: 0;" :style="{fontSize:(wxFontSize-6)+'px'}">{{item.validDate}}</text>
  42. </view>
  43. </view>
  44. <view
  45. class="blogger__desc tn-margin-top-sm tn-margin-bottom-sm tn-text-justify tn-flex-col-center tn-flex-row-left"
  46. >
  47. <!-- 不用限制长度了,因为发布的时候限制长度了-->
  48. <tn-tag margin="-4px 4px 0 0" backgroundColor="#3a96d733" v-if="item.brand" fontColor="#3a96d7" shape="circle" :fontSize="wxFontSize+11">{{ item.brand }}</tn-tag>
  49. <tn-tag margin="-4px 4px 0 0" backgroundColor="#3a96d733" v-if="!item.company"
  50. fontColor="#3a96d7" shape="circle" :fontSize="wxFontSize+11">个人</tn-tag>
  51. <text
  52. class="blogger__desc__content tn-flex-1 tn-text-justify tn-text-df" :style="{fontSize:(wxFontSize-2)+'px'}">{{ item.content }}</text>
  53. </view>
  54. <!-- 内容太多疲劳了-->
  55. <view v-if="item.shareExt&&item.shareExt.length>0" class="blogger__content"
  56. :id="`blogger__content--${index}`">
  57. <basic-table header-row-class-name="basic-table-header" :columns="columns" :border="true" :fontSize="(wxFontSize-3)"
  58. :stripe="true" :data="item.shareExt">
  59. </basic-table>
  60. </view>
  61. <block v-if="item.imgList">
  62. <view v-if="[1,2,4].indexOf(item.imgList.length) != -1" class="tn-padding-top-xs"
  63. @click="tn('')">
  64. <image v-for="(image_item,image_index) in item.imgList" :key="image_index"
  65. class="blogger__main-image" :class="{
  66. 'blogger__main-image--1 tn-margin-bottom-sm': item.imgList.length === 1,
  67. 'blogger__main-image--2 tn-margin-right-sm tn-margin-bottom-sm': item.imgList.length === 2 || item.imgList.length === 4
  68. }" :src="image_item.ftpUrl" mode="aspectFill" @click="showImg(item.imgList,image_index)"></image>
  69. </view>
  70. <view v-else class="tn-padding-top-xs" @click="tn('')">
  71. <tn-grid hoverClass="none" :col="3">
  72. <block v-for="(image_item,image_index) in item.imgList" :key="image_index">
  73. <!-- #ifndef MP-WEIXIN -->
  74. <tn-grid-item style="width: 30%;margin: 10rpx;">
  75. <image class="blogger__main-image blogger__main-image--3"
  76. :src="image_item.ftpUrl" mode="aspectFill" @click="showImg(item.imgList,image_index)"></image>
  77. </tn-grid-item>
  78. <!-- #endif-->
  79. <!-- #ifdef MP-WEIXIN -->
  80. <tn-grid-item style="width: 30%;margin: 10rpx;">
  81. <image class="blogger__main-image blogger__main-image--3"
  82. aspectFill :src="image_item.ftpUrl" mode="aspectFill" @click="showImg(item.imgList,image_index)"></image>
  83. </tn-grid-item>
  84. <!-- #endif-->
  85. </block>
  86. </tn-grid>
  87. </view>
  88. </block>
  89. <view v-for="file in item.fileDetailList" :key="file.id" v-if="!isImage(file.fileName)">
  90. <view>
  91. <text class="tn-icon-link" :style="{fontSize:(wxFontSize-4)+'px'}"></text>
  92. <view style="display: inline;margin-left:8px" @click="clickLink(file.ftpUrl,file.fileName)" :style="{fontSize:(wxFontSize-3)+'px'}">
  93. {{file.fileName}}
  94. </view>
  95. </view>
  96. </view>
  97. <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-top-xs">
  98. <view class="justify-content-item tn-color-gray tn-text-center">
  99. <view class="tn-padding-right tn-padding-top-xs tn-color-gray" :style="{fontSize:(wxFontSize-3)+'px'}">
  100. {{ item.createTime2|formatDate }}
  101. </view>
  102. </view>
  103. <view class="justify-content-item tn-flex tn-flex-col-center" style="position: relative;">
  104. <button type="warn" plain="true" style="height: 26px;line-height: 26px" size="mini" @click="delColl(item)"><text style="font-size: 18px;" class="tn-icon-delete"></text></button>
  105. <text class="tn-icon-more-vertical tn-color-gray tn-text-bold tn-text-xxl"
  106. @click="showActionSheet(item)" style="margin-left: 12px;"></text>
  107. <view v-if="curItem.id==item.id&&showSheet" style="position: absolute;
  108. background: #ddd;
  109. display: block;
  110. right: 10px;
  111. top: 30px;border-radius: 16px;z-index: 900;border-top-right-radius: 0">
  112. <text class="tn-icon-close" style="float: right;padding:8px;color:#333" @click="hideSheet()"></text>
  113. <view class="content" style="padding: 24px 36px;font-size: 16px;line-height: 24px; width: calc(100vw - 52px); border-radius: 16px;
  114. border-top-right-radius: 0;"
  115. v-if="!showContact">
  116. <button @click="linkTel()" style="border-radius:30px;color:#fff;background-color: #1d60b1;"><text
  117. class="tn-icon-service" style="margin-right: 12px;"></text> {{current==0?'联系需方':'联系供方'}}</button>
  118. <!-- <view>联系我们帮助对接</view> -->
  119. <!-- <button v-if="!collStatus" @click="addColl"
  120. style="margin-top:10px;border-radius:30px;color:#3a96d7;background-color: #d3e3fd;"><text
  121. class="tn-icon-star" style="margin-right: 12px;"></text>
  122. 收&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;藏</button>
  123. <button v-if="collStatus" @click="delColl"
  124. style="margin-top:10px;border-radius:30px;color:#3a96d7;background-color: #d3e3fd;"><text
  125. class="tn-icon-star-fill" style="margin-right: 12px;"></text> 取消收藏</button> -->
  126. <button open-type="share"
  127. style="margin-top:10px;border-radius:30px;" type="default" plain="true"><text
  128. class="tn-icon-send" style="margin-right: 12px;"></text>
  129. 转&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发</button>
  130. </view>
  131. <view class="content bg-content" style="padding: 50px 36px;padding-bottom: 32px;font-size: 16px;width: calc(100vw - 52px);line-height: 24px;border-radius: 16px;border-top-right-radius: 0;"
  132. v-if="showContact">
  133. <view><text style="font-size: 20px;font-weight: bold;" v-if="curContact.company">{{curContact.company}}</text></view>
  134. <view style="margin-top:20px;
  135. font-weight: bold;
  136. font-size: 20px;"><text class="tn-icon-my-formal"></text><text style="margin-left: 6px;">{{curContact.contactPerson}}</text> </view>
  137. <view style="font-size: 20px;font-weight: bold;margin-top:20px" @click="showTel(curContact.contactMethod)"><text class="tn-icon-tel"></text>
  138. <text style="margin-left: 4px;">{{curContact.contactMethod}}</text> </view>
  139. </view>
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. <!-- 边距间隔 -->
  145. <view class="tn-strip-bottom" v-if="index != content.length - 1"></view>
  146. </block>
  147. </view>
  148. <view v-if="showEmpty" style="margin-top: 32vh;">
  149. <tn-empty mode="data"></tn-empty>
  150. </view>
  151. </view>
  152. <!-- 提示窗示例 -->
  153. <uni-popup ref="alertDialog" type="dialog">
  154. <uni-popup-dialog type="info" cancelText="关闭" confirmText="确认" title=" " content="确定取消收藏吗?" @confirm="dialogConfirm"
  155. @close="dialogClose"></uni-popup-dialog>
  156. </uni-popup>
  157. <tn-popup v-model="showSheet2" mode="center" closeBtn="true" borderRadius="16">
  158. <view class="content" style="padding: 24px 36px;font-size: 16px;line-height: 24px; width: 320px;"
  159. v-if="!showContact">
  160. <button @click="linkTel()" style="border-radius:30px;color:#fff;background-color: #1d60b1;"><text
  161. class="tn-icon-service" style="margin-right: 12px;"></text> {{current==0?'联系需方':'联系供方'}}</button>
  162. <!-- <view>联系我们帮助对接</view> -->
  163. <!-- <button v-if="!collStatus" @click="addColl"
  164. style="margin-top:10px;border-radius:30px;color:#3a96d7;background-color: #d3e3fd;"><text
  165. class="tn-icon-star" style="margin-right: 12px;"></text>
  166. 收&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;藏</button>
  167. <button v-if="collStatus" @click="delColl"
  168. style="margin-top:10px;border-radius:30px;color:#3a96d7;background-color: #d3e3fd;"><text
  169. class="tn-icon-star-fill" style="margin-right: 12px;"></text> 取消收藏</button> -->
  170. <button open-type="share"
  171. style="margin-top:10px;border-radius:30px;" type="default" plain="true"><text
  172. class="tn-icon-send" style="margin-right: 12px;"></text>
  173. 转&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发</button>
  174. </view>
  175. <view class="content bg-content" style="padding: 50px 36px;padding-bottom: 32px;font-size: 16px;width:320px;line-height: 24px;"
  176. v-if="showContact">
  177. <view><text style="font-size: 20px;font-weight: bold;" v-if="curContact.company">{{curContact.company}}</text></view>
  178. <view style="margin-top:20px;
  179. font-weight: bold;
  180. font-size: 20px;"><text class="tn-icon-my-formal"></text><text style="margin-left: 6px;">{{curContact.contactPerson}}</text> </view>
  181. <view style="font-size: 20px;font-weight: bold;margin-top:20px" @click="showTel(curContact.contactMethod)"><text class="tn-icon-tel"></text>
  182. <text style="margin-left: 4px;">{{curContact.contactMethod}}</text> </view>
  183. </view>
  184. </tn-popup>
  185. </view>
  186. </template>
  187. <script>
  188. import request from '../../utils/request'
  189. import {
  190. uniShowModal
  191. } from '../../utils/uni_api'
  192. export default {
  193. data() {
  194. return {
  195. list: [{
  196. 'tab-name': '需求'
  197. }, {
  198. 'tab-name': '供应'
  199. }],
  200. current: 0,
  201. showEmpty: false,
  202. content: [],
  203. curItem:{},
  204. showSheet:false,
  205. showContact:false,
  206. curContact:{},
  207. columns: [{
  208. fieldName: 'prodName',
  209. fieldDesc: '产品名称',
  210. }, {
  211. fieldName: 'prodSpec',
  212. fieldDesc: '产品型号',
  213. }, {
  214. fieldName: 'prodDesc',
  215. fieldDesc: '产品介绍',
  216. }],
  217. wxFontSize:17
  218. }
  219. },
  220. filters: {
  221. formatDate(value) {
  222. if (!value) return '';
  223. const date = new Date(value);
  224. const today = new Date();
  225. const yesterday = new Date(today); // 昨天的日期
  226. yesterday.setDate(yesterday.getDate() - 1); // 将昨天的日期设置为前一天
  227. if (date.getFullYear() == today.getFullYear() && date.getMonth() == today.getMonth() && date.getDate() ==
  228. today.getDate()) {
  229. return '今天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  230. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  231. }
  232. if (date.getFullYear() == yesterday.getFullYear() && date.getMonth() == yesterday.getMonth() && date
  233. .getDate() == yesterday.getDate()) {
  234. return '昨天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  235. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  236. }
  237. return date.toLocaleDateString() + ' ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  238. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  239. },
  240. },
  241. onLoad(){
  242. const appBaseInfo = wx.getAppBaseInfo();
  243. this.wxFontSize = uni.getStorageSync('fontSize')||appBaseInfo.fontSizeSetting||17;
  244. },
  245. onShow() {
  246. if(!uni.getStorageSync('userNo')){
  247. //去登录
  248. uni.navigateTo({
  249. url: '/pages/login/login',
  250. });
  251. return false;
  252. }
  253. this.loadData();
  254. },
  255. methods: {
  256. goBack() {
  257. const pages = getCurrentPages()
  258. // 有可返回的页面则直接返回,uni.navigateBack 默认返回失败之后会自动刷新页面 ,无法继续返回
  259. if (pages.length > 1) {
  260. uni.navigateBack()
  261. return;
  262. }else{
  263. uni.navigateTo({
  264. url: '/pages/index/index'
  265. })
  266. }
  267. },
  268. change(index) {
  269. this.current = index;
  270. this.loadData();
  271. },
  272. isImage(fileName) {
  273. const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'ico']
  274. const extension = fileName.split('.').pop().toLowerCase();
  275. return imageExtensions.includes(extension);
  276. },
  277. loadData() {
  278. let that = this;
  279. that.content = [];
  280. request.post('/slbCollect/show/my', {
  281. userNo: uni.getStorageSync('userNo'),
  282. bisType: that.current == 1 ? '2' : '1',
  283. }).then(res => {
  284. let newList = res.list || [];
  285. if (res&&res.success) {
  286. let cList = [];
  287. for (let i = 0; i < newList.length; i++) {
  288. if (newList[i].fkBisMap) {
  289. newList[i].fkBisMap.collId = newList[i].id;
  290. newList[i].fkBisMap.createTime2 = newList[i].createTime;
  291. newList[i].fkBisMap.imgList = [];
  292. for (let j = 0; j < newList[i].fkBisMap.fileDetailList.length; j++) {
  293. if (that.isImage(newList[i].fkBisMap.fileDetailList[j].fileName)) {
  294. newList[i].fkBisMap.imgList.push(newList[i].fkBisMap.fileDetailList[j]);
  295. }
  296. }
  297. cList.push(newList[i].fkBisMap);
  298. }
  299. }
  300. that.content = cList;
  301. }
  302. if(res._redirect){
  303. uni.navigateTo({
  304. url: '/pages/login/login',
  305. });
  306. return false;
  307. }
  308. if (newList.length == 0) {
  309. that.showEmpty = true;
  310. } else {
  311. that.showEmpty = false;
  312. }
  313. })
  314. },
  315. dialogConfirm(){
  316. let item = this.curItem;
  317. let that = this;
  318. request.post('/slbCollect/del', {
  319. id: item.collId,
  320. userNo: uni.getStorageSync('userNo'),
  321. }).then(res => {
  322. if (res.success) {
  323. uni.showToast({
  324. title: '取消成功'
  325. })
  326. that.loadData();
  327. } else {
  328. uni.showToast({
  329. title: res.msg,
  330. icon: 'none'
  331. })
  332. }
  333. })
  334. },
  335. delColl(item) {
  336. this.curItem = item;
  337. let that = this;
  338. // this.$refs.alertDialog.open()
  339. uniShowModal('确定取消收藏吗?', '', {
  340. showCancel: true,
  341. confirmText:'确定',
  342. success: (res) => {
  343. if(res.confirm){
  344. that.dialogConfirm();
  345. }
  346. }
  347. })
  348. },
  349. showImg(items, index) {
  350. let urls = [];
  351. for (let i = 0; i < items.length; i++) {
  352. urls.push(items[i].ftpUrl);
  353. }
  354. // 预览图片
  355. uni.previewImage({
  356. urls: urls,
  357. current: index,
  358. });
  359. },
  360. clickLink(url,fileName) {
  361. // uni.navigateTo({
  362. // url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title='+fileName+'&url='+ url),
  363. // })
  364. uni.downloadFile({
  365. url: url,
  366. filePath: wx.env.USER_DATA_PATH + "/" + fileName,
  367. success: function (res) {
  368. const filePath = res.filePath
  369. uni.openDocument({
  370. filePath: filePath,
  371. showMenu: true,
  372. success: function (res) {
  373. console.log('打开文档成功')
  374. },
  375. fail: function(){
  376. uni.navigateTo({
  377. url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title='+fileName+'&url='+ url),
  378. })
  379. }
  380. })
  381. }
  382. })
  383. // uni.navigateTo({
  384. // url:'/pages/webview/web-view?url='+url,
  385. // })
  386. },
  387. hideSheet(){
  388. this.curItem = {};
  389. this.showSheet = false;
  390. },
  391. showActionSheet(item) {
  392. let that = this;
  393. console.warn(item);
  394. if(!this.curItem.id){
  395. this.curItem = item;
  396. }else{
  397. this.curItem = {}
  398. this.showSheet = false;
  399. return false;
  400. }
  401. this.showSheet = true;
  402. that.showContact = false;
  403. },
  404. linkTel() {
  405. if (!uni.getStorageSync('userNo')) {
  406. uni.showToast({
  407. title: '请登录'
  408. })
  409. uni.navigateTo({
  410. url: '/pages/login/login'
  411. })
  412. return false;
  413. }
  414. let that = this;
  415. let params = {};
  416. params.slbBisContact = JSON.stringify({
  417. fkBisNo: that.curItem.bisNo,
  418. bisType: that.current==0?'1':'2',
  419. type: '1',
  420. company: that.curItem.company,
  421. companyNo: that.curItem.companyNo,
  422. userNo: uni.getStorageSync('userNo'),
  423. });
  424. request.post('/slbBisContact/add', params).then(res => {
  425. if (res.success) {
  426. that.showContact = true;
  427. that.curContact.company = that.curItem.company;
  428. that.curContact.contactMethod = res.resultMap.contactMethod;
  429. that.curContact.contactPerson = res.resultMap.contactPerson;
  430. } else {
  431. that.showContact = false;
  432. uni.showToast({
  433. title: res.msg,
  434. icon: 'none'
  435. })
  436. }
  437. })
  438. },
  439. showTel(tel){
  440. uni.makePhoneCall({
  441. phoneNumber: tel,
  442. });
  443. },
  444. }
  445. }
  446. </script>
  447. <style lang="scss" scoped>
  448. /* 胶囊*/
  449. .tn-custom-nav-bar__back {
  450. width: 60%;
  451. height: 100%;
  452. position: relative;
  453. display: flex;
  454. justify-content: space-evenly;
  455. align-items: center;
  456. box-sizing: border-box;
  457. // background-color: rgba(0, 0, 0, 0.15);
  458. border-radius: 1000rpx;
  459. border: 1rpx solid rgba(255, 255, 255, 0.5);
  460. // color: #FFFFFF;
  461. font-size: 18px;
  462. .icon {
  463. display: block;
  464. flex: 1;
  465. margin: auto;
  466. text-align: center;
  467. }
  468. &:before {
  469. content: " ";
  470. width: 1rpx;
  471. height: 110%;
  472. position: absolute;
  473. top: 22.5%;
  474. left: 0;
  475. right: 0;
  476. margin: auto;
  477. transform: scale(0.5);
  478. transform-origin: 0 0;
  479. pointer-events: none;
  480. box-sizing: border-box;
  481. opacity: 0.7;
  482. background-color: #FFFFFF;
  483. }
  484. }
  485. /* 文章内容 start*/
  486. .blogger {
  487. &__item {
  488. padding: 30rpx;
  489. }
  490. &__author {
  491. &__btn {
  492. margin-right: -12rpx;
  493. opacity: 0.5;
  494. }
  495. }
  496. &__desc {
  497. line-height: 30rpx;
  498. &__label {
  499. color: #1D2541;
  500. background-color: #F3F2F7;
  501. border-radius: 10rpx;
  502. font-size: 22rpx;
  503. padding: 5rpx 15rpx;
  504. margin: 5rpx 18rpx 0 0;
  505. &--prefix {
  506. font-size: 24rpx;
  507. color: #1D2541;
  508. padding-right: 10rpx;
  509. }
  510. }
  511. &__content {
  512. line-height: 50rpx;
  513. }
  514. }
  515. &__content {
  516. margin-top: 18rpx;
  517. padding-right: 18rpx;
  518. &__data {
  519. line-height: 46rpx;
  520. text-align: justify;
  521. overflow: hidden;
  522. transition: all 0.25s ease-in-out;
  523. }
  524. &__status {
  525. margin-top: 10rpx;
  526. font-size: 26rpx;
  527. color: #82B2FF;
  528. }
  529. }
  530. &__main-image {
  531. border: 1rpx solid #F8F7F8;
  532. border-radius: 16rpx;
  533. &--1 {
  534. max-width: 80%;
  535. max-height: 300rpx;
  536. }
  537. &--2 {
  538. max-width: 260rpx;
  539. max-height: 260rpx;
  540. }
  541. &--3 {
  542. height: 212rpx;
  543. width: 100%;
  544. }
  545. }
  546. &__count-icon {
  547. font-size: 40rpx;
  548. padding-right: 5rpx;
  549. }
  550. &__ad {
  551. width: 100%;
  552. height: 500rpx;
  553. transform: translate3d(0px, 0px, 0px) !important;
  554. ::v-deep .uni-swiper-slide-frame {
  555. transform: translate3d(0px, 0px, 0px) !important;
  556. }
  557. .uni-swiper-slide-frame {
  558. transform: translate3d(0px, 0px, 0px) !important;
  559. }
  560. &__item {
  561. position: absolute;
  562. width: 100%;
  563. height: 100%;
  564. transform-origin: left center;
  565. transform: translate3d(100%, 0px, 0px) scale(1) !important;
  566. transition: transform 0.25s ease-in-out;
  567. z-index: 1;
  568. &--0 {
  569. transform: translate3d(0%, 0px, 0px) scale(1) !important;
  570. z-index: 4;
  571. }
  572. &--1 {
  573. transform: translate3d(13%, 0px, 0px) scale(0.9) !important;
  574. z-index: 3;
  575. }
  576. &--2 {
  577. transform: translate3d(26%, 0px, 0px) scale(0.8) !important;
  578. z-index: 2;
  579. }
  580. }
  581. &__content {
  582. border-radius: 40rpx;
  583. width: 640rpx;
  584. height: 500rpx;
  585. overflow: hidden;
  586. }
  587. &__image {
  588. width: 100%;
  589. height: 100%;
  590. }
  591. }
  592. }
  593. /* 文章内容 end*/
  594. /* 间隔线 start*/
  595. .tn-strip-bottom {
  596. width: 100%;
  597. border-bottom: 20rpx solid rgba(241, 241, 241, 0.8);
  598. }
  599. .bg-content{
  600. color: #fff;
  601. background-image: url(./../../static/bg.png);
  602. background-size: cover;
  603. }
  604. /* 间隔线 end*/
  605. </style>