coll.vue 22 KB

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