detail.vue 22 KB

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