coll.vue 22 KB

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