coll.vue 21 KB

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