detail.vue 22 KB

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