coll.vue 21 KB

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