detail.vue 22 KB

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