share.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  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" :current="current" name="tab-name"
  14. @change="change" activeColor="#005DA6" inactiveColor="#333" :fontSize="(wxFontSize+12)" :barWidth="wxFontSize+50"></tn-tabs-swiper>
  15. </uv-sticky>
  16. <view class="tn-flex tn-flex-direction-column tn-margin-top-sm tn-margin-bottom">
  17. <!-- 图文信息 -->
  18. <block v-for="(item,index) in content">
  19. <view class="blogger__item" :key="index" style="border-radius: 12px;margin: 0px 16px 12px 16px; background-color: #fff;position: relative;">
  20. <view class="blogger__author tn-flex tn-flex-row-between tn-flex-col-center">
  21. <view class="justify__author__info" @click="tn('')">
  22. <view class="tn-flex tn-flex-row-center">
  23. <view class="tn-flex tn-flex-row-center tn-flex-col-center">
  24. <view class="" style="width: 5px;height: 5px;background: #E18730;border-radius: 50%;margin-right: 4px;">
  25. </view>
  26. <view class="tn-padding-right">
  27. <view class="tn-padding-right tn-text-bold tn-text-lg" style="color:#333;font-weight: 600;" :style="{fontSize:(wxFontSize)+'px'}">
  28. {{ item.company||(item.contactNickName||item.contactPerson)}} </view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 状态(1:暂存,2:待处理,3:审核中,4:已通过,9:已拒绝,10:已取消) -->
  34. <view v-if="item.status=='1'"
  35. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  36. <text class="" style="background: #e6e6e6;font-size: 12px;word-break: keep-all;
  37. padding: 8px;
  38. color: #999;
  39. border-radius: 10px;
  40. border-top-left-radius: 0;
  41. border-bottom-right-radius: 0;
  42. position: absolute;
  43. top: 0;
  44. right: 0;
  45. " :style="{fontSize:(wxFontSize-6)+'px'}">暂存</text>
  46. </view>
  47. <view v-if="item.status=='3'"
  48. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  49. <text class="" style="background: #fbf3ea;font-size: 12px;word-break: keep-all;
  50. padding: 8px;
  51. color: #E18730;
  52. border-radius: 10px;
  53. border-top-left-radius: 0;
  54. border-bottom-right-radius: 0;
  55. position: absolute;
  56. top: 0;
  57. right: 0;
  58. " :style="{fontSize:(wxFontSize-6)+'px'}">审核中</text>
  59. </view>
  60. <view v-if="item.status=='4'&&item.showFlag!='否'"
  61. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  62. <text class="" style="background: #ecf8e9;font-size: 12px;word-break: keep-all;
  63. padding: 8px;
  64. color: #2FB120;
  65. border-radius: 10px;
  66. border-top-left-radius: 0;
  67. border-bottom-right-radius: 0;
  68. position: absolute;
  69. top: 0;
  70. right: 0;
  71. " :style="{fontSize:(wxFontSize-6)+'px'}">已通过</text>
  72. </view>
  73. <view v-if="item.status=='9'"
  74. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  75. <text class="" style="background: #fce9e9;font-size: 12px;word-break: keep-all;
  76. padding: 8px;
  77. color: #EF2121;
  78. border-radius: 10px;
  79. border-top-left-radius: 0;
  80. border-bottom-right-radius: 0;
  81. position: absolute;
  82. top: 0;
  83. right: 0;
  84. " @click="showTips(item)" :style="{fontSize:(wxFontSize-6)+'px'}">已拒绝</text>
  85. </view>
  86. <view v-if="item.status=='4'&&item.showFlag=='否'"
  87. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  88. <text class="" style="background: #e6e6e6;font-size: 12px;word-break: keep-all;
  89. padding: 8px;
  90. color: #999;
  91. border-radius: 10px;
  92. border-top-left-radius: 0;
  93. border-bottom-right-radius: 0;
  94. position: absolute;
  95. top: 0;
  96. right: 0;
  97. " :style="{fontSize:(wxFontSize-6)+'px'}">已下架</text>
  98. </view>
  99. </view>
  100. <view
  101. class="blogger__desc tn-margin-top-sm tn-margin-bottom-sm tn-text-justify tn-flex-col-center tn-flex-row-left"
  102. >
  103. <tn-tag margin="-4px 4px 0 0" backgroundColor="#005da61a" v-if="item.brand"
  104. fontColor="#005DA6" shape="circle" :fontSize="wxFontSize+8" @click="showBrand('品牌:'+item.brand)">{{ item.brand }}</tn-tag>
  105. <tn-tag margin="-4px 4px 0 0" backgroundColor="#005da61a" v-if="!item.company"
  106. fontColor="#005DA6" shape="circle" :fontSize="wxFontSize+8" @click="showBrand('个人发布')">个人</tn-tag>
  107. </view>
  108. <view style="border-radius: 0px 0px 0px 0px;width:calc(100% + 32px);margin-left:-16px;border-bottom: 1px solid #E6E6E6;"></view>
  109. <view v-if="item.content" style="padding: 12px 12px 5px 5px;">
  110. <text
  111. class="blogger__desc__content tn-flex-1 tn-text-justify tn-text-df" style="color:#747E87" :style="{fontSize:(wxFontSize-2)+'px'}">{{ item.content }}</text>
  112. </view>
  113. <!-- 内容太多疲劳了-->
  114. <view v-if="item.shareExt&&item.shareExt.length>0" :id="`blogger__content--${index}`">
  115. <view v-for="(sitem,index) in item.shareExt" :key="sitem.id">
  116. <view style="padding: 12px 0 8px 5px;color:#005DA6;" :style="{fontSize:(wxFontSize-3)+'px'}">
  117. {{sitem.prodName}}
  118. </view>
  119. <view style="padding: 0px 8px 0 5px;color:#333;display: flex;" :style="{fontSize:(wxFontSize-3)+'px'}">
  120. <text style="color: #777;white-space: nowrap;">产品型号:</text>{{sitem.prodSpec}}
  121. </view>
  122. <view v-if="sitem.prodDesc" style="padding: 8px 8px 0 5px;color:#333;display: flex;" :style="{fontSize:(wxFontSize-3)+'px'}">
  123. <text style="color: #777;white-space: nowrap;">产品介绍:</text><text>{{sitem.prodDesc}}</text>
  124. </view>
  125. </view>
  126. </view>
  127. <block v-if="item.imgList&&item.imgList.length>0">
  128. <view v-if="[1,2,4].indexOf(item.imgList.length) != -1" class="tn-padding-top-xs"
  129. @click="tn('')">
  130. <image v-for="(image_item,image_index) in item.imgList" :key="image_index"
  131. class="blogger__main-image" :class="{
  132. 'blogger__main-image--1 tn-margin-bottom-sm': item.imgList.length === 1,
  133. 'blogger__main-image--2 tn-margin-right-sm tn-margin-bottom-sm': item.imgList.length === 2 || item.imgList.length === 4
  134. }" :src="image_item.ftpUrl" mode="aspectFill" @click="showImg(item.imgList,image_index)"></image>
  135. </view>
  136. <view v-else class="tn-padding-top-xs">
  137. <tn-grid hoverClass="none" :col="3">
  138. <block v-for="(image_item,image_index) in item.imgList" :key="image_index">
  139. <!-- #ifndef MP-WEIXIN -->
  140. <tn-grid-item style="width: 30%;margin: 10rpx;">
  141. <image class="blogger__main-image blogger__main-image--3"
  142. :src="image_item.ftpUrl" mode="aspectFill" @click="showImg(item.imgList,image_index)"></image>
  143. </tn-grid-item>
  144. <!-- #endif-->
  145. <!-- #ifdef MP-WEIXIN -->
  146. <tn-grid-item style="width: 30%;margin: 10rpx;">
  147. <image class="blogger__main-image blogger__main-image--3"
  148. :src="image_item.ftpUrl" mode="aspectFill" @click="showImg(item.imgList,image_index)"></image>
  149. </tn-grid-item>
  150. <!-- #endif-->
  151. </block>
  152. </tn-grid>
  153. </view>
  154. </block>
  155. <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)">
  156. <view>
  157. <image src="../../static/tu/link.png" style="width: 18px;height: 18px;vertical-align: bottom;"></image>
  158. <view style="display: inline;margin-left:8px;color:#005DA6;" :style="{fontSize:(wxFontSize-3)+'px'}">
  159. {{file.fileName}}</view>
  160. </view>
  161. </view>
  162. <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-top-xs">
  163. <view class="justify-content-item tn-color-gray tn-text-center">
  164. <view class="tn-padding-right tn-padding-top-xs tn-color-gray" style="display: flex;">
  165. <view style="white-space: nowrap;" :style="{fontSize:(wxFontSize-3)+'px'}">{{ item.createTime|formatDate }}</view>
  166. <view v-if="item.status==9&&item.feedback" style="color: red;margin-left:8px;" :style="{fontSize:(wxFontSize-3)+'px'}">
  167. 反馈意见:{{item.feedback||'--'}}
  168. </view>
  169. </view>
  170. </view>
  171. <view class="justify-content-item tn-flex tn-flex-col-center">
  172. <view class="justify-content-item tn-flex tn-flex-col-center" v-if="item.status==4&&item.showFlag!='否'">
  173. <!-- <tn-button shadow shape="round" fontColor="tn-color-white" backgroundColor="tn-bg-blue" :fontSize="24" height="auto" padding="10rpx 18rpx" @click="finishItem(item)">下架</tn-button> -->
  174. <button type="warn" plain="true" size="mini" style="color:#EF2121;border-color:#EF2121;" @click="finishItem(item)" :style="{fontSize:(wxFontSize-4)+'px'}">下架供应</button>
  175. </view>
  176. <view class="justify-content-item tn-flex tn-flex-col-center" style="flex:none" v-if="item.status==1||item.status==9||(item.status==4&&item.showFlag=='否')">
  177. <button type="warn" plain="true" size="mini" style="color:#E18730;border-color:#E18730;" @click="editItem(item)" :style="{fontSize:(wxFontSize-4)+'px'}">编辑</button>
  178. <button v-if="item.status==4&&item.showFlag=='否'" style="border-color: #2FB120;color:#2FB120;margin-left:12px" type="warn" plain="true" size="mini" @click="reOpen(item)" :style="{fontSize:(wxFontSize-4)+'px'}">恢复</button>
  179. <!-- <tn-button shadow shape="round" fontColor="tn-color-white" backgroundColor="tn-bg-blue"
  180. :fontSize="24" height="auto" padding="10rpx 18rpx"
  181. @click="finishItem(item)">结束需求</tn-button> -->
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. </block>
  187. </view>
  188. </view>
  189. <tn-modal v-model="showModel" @click="clickModel" :title="titleModel" :content="contentModel" :button="buttonModel"></tn-modal>
  190. <view class='tn-tabbar-height'></view>
  191. <view v-if="showEmpty" style="margin-top: 32vh;">
  192. <tn-empty mode="data"></tn-empty>
  193. </view>
  194. </view>
  195. </template>
  196. <script>
  197. import request from '../../utils/request'
  198. import {
  199. uniShowModal
  200. } from '../../utils/uni_api'
  201. export default {
  202. data() {
  203. return {
  204. showModel:false,
  205. titleModel:'下架供应提示',
  206. contentModel:'下架之后内容不再展示在供应页面里, 是否继续?',
  207. buttonModel:[{
  208. text: '取消',
  209. plain: true,
  210. shape: 'round'
  211. },
  212. {
  213. text: '继续',
  214. backgroundColor: 'tn-bg-indigo',
  215. fontColor: '#FFFFFF'
  216. }],
  217. list: [{
  218. 'tab-name': '已通过'
  219. }, {
  220. 'tab-name': '审核中'
  221. }, {
  222. 'tab-name': '暂存'
  223. }, {
  224. 'tab-name': '已拒绝'
  225. }],
  226. current: 0,
  227. showEmpty: false,
  228. content:[],
  229. curItem:{},
  230. wxFontSize:17
  231. }
  232. },
  233. filters: {
  234. formatDate(value) {
  235. if (!value) return '';
  236. const date = new Date(value);
  237. const today = new Date();
  238. const yesterday = new Date(today); // 昨天的日期
  239. yesterday.setDate(yesterday.getDate() - 1); // 将昨天的日期设置为前一天
  240. if (date.getFullYear() == today.getFullYear() && date.getMonth() == today.getMonth() && date.getDate() ==
  241. today.getDate()) {
  242. return '今天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  243. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  244. }
  245. if (date.getFullYear() == yesterday.getFullYear() && date.getMonth() == yesterday.getMonth() && date
  246. .getDate() == yesterday.getDate()) {
  247. return '昨天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  248. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  249. }
  250. return date.toLocaleDateString() + ' ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  251. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  252. },
  253. },
  254. onLoad(props){
  255. const appBaseInfo = wx.getAppBaseInfo();
  256. this.wxFontSize = uni.getStorageSync('fontSize')||appBaseInfo.fontSizeSetting||17;
  257. if(props.tab==1){
  258. this.current= 1;
  259. }
  260. if(props.tab==2){
  261. this.current= 2;
  262. }
  263. },
  264. onShow() {
  265. this.loadData();
  266. },
  267. methods: {
  268. showBrand(text){
  269. uni.showToast({
  270. title: text,
  271. icon: 'none'
  272. })
  273. },
  274. goBack() {
  275. const pages = getCurrentPages()
  276. // 有可返回的页面则直接返回,uni.navigateBack 默认返回失败之后会自动刷新页面 ,无法继续返回
  277. if (pages.length > 1) {
  278. uni.navigateBack()
  279. return;
  280. }else{
  281. uni.reLaunch({
  282. url: '/pages/index/index'
  283. })
  284. }
  285. },
  286. change(index) {
  287. this.current = index;
  288. this.loadData();
  289. },
  290. isImage(fileName) {
  291. const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'ico']
  292. const extension = fileName.split('.').pop().toLowerCase();
  293. return imageExtensions.includes(extension);
  294. },
  295. loadData() {
  296. let that = this;
  297. that.content = [];
  298. request.post('/slbResourceShare/show/my', {
  299. userNo: uni.getStorageSync('userNo'),
  300. // 状态(1:暂存,2:待处理,3:审核中,4:已通过,9:已拒绝,10:已取消)
  301. status: that.current == 1 ? '3' : that.current == 2 ? '1' : that.current == 3 ? '9' : '4',
  302. limit: 1000,
  303. index: 1
  304. }).then(res => {
  305. let newList = res.list || [];
  306. if (res.success) {
  307. let newList = res.list || [];
  308. for (let i = 0; i < newList.length; i++) {
  309. newList[i].imgList = [];
  310. for (let j = 0; j < newList[i].fileDetailList.length; j++) {
  311. if (that.isImage(newList[i].fileDetailList[j].fileName)) {
  312. newList[i].imgList.push(newList[i].fileDetailList[j]);
  313. }
  314. }
  315. }
  316. that.content = newList;
  317. if (newList.length == 0) {
  318. that.showEmpty = true;
  319. } else {
  320. that.showEmpty = false;
  321. }
  322. }else{
  323. if(res._redirect){
  324. uni.showToast({
  325. title: '操作过期,请登录后重试',
  326. duration: 2000,
  327. icon:'none'
  328. });
  329. that.goBack();
  330. }
  331. }
  332. })
  333. },
  334. showImg(items, index) {
  335. let urls = [];
  336. for (let i = 0; i < items.length; i++) {
  337. urls.push(items[i].ftpUrl);
  338. }
  339. // 预览图片
  340. uni.previewImage({
  341. urls: urls,
  342. current: index,
  343. });
  344. },
  345. clickLink(url,fileName) {
  346. // uni.navigateTo({
  347. // url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title='+fileName+'&url='+ url),
  348. // })
  349. uni.downloadFile({
  350. url: url,
  351. filePath: wx.env.USER_DATA_PATH + "/" + fileName,
  352. success: function (res) {
  353. const filePath = res.filePath
  354. uni.openDocument({
  355. filePath: filePath,
  356. showMenu: true,
  357. success: function (res) {
  358. console.log('打开文档成功')
  359. },
  360. fail: function(){
  361. uni.navigateTo({
  362. url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title='+fileName+'&url='+ url),
  363. })
  364. }
  365. })
  366. }
  367. })
  368. // uni.navigateTo({
  369. // url:'/pages/webview/web-view?url='+url,
  370. // })
  371. },
  372. finishItem(item){
  373. let that = this;
  374. uniShowModal('下架提醒', '下架之后内容不再展示在我有什么页面里, 是否继续?', {
  375. showCancel: true,
  376. confirmText:'继续',
  377. success: (res) => {
  378. if(res.confirm){
  379. that.finishNext(item);
  380. }
  381. }
  382. })
  383. },
  384. clickModel(e){
  385. if(e.index==1){
  386. this.showModel = false;
  387. this.finishNext(this.curItem)
  388. }else{
  389. this.showModel = false;
  390. }
  391. },
  392. finishNext(item){
  393. let that = this;
  394. request.post('/slbResourceShare/offShelf', {
  395. id: item.id,
  396. userNo: uni.getStorageSync('userNo'),
  397. }).then(res => {
  398. if (res.success) {
  399. uni.showToast({
  400. title: '下架成功'
  401. })
  402. that.loadData();
  403. } else {
  404. uni.showToast({
  405. title: res.msg,
  406. icon: 'none'
  407. })
  408. }
  409. })
  410. },
  411. editItem(item){
  412. uni.setStorageSync(item.bisNo,JSON.stringify(item))
  413. uni.navigateTo({
  414. url: '/circlePages/addShare?sid=' + item.bisNo,
  415. })
  416. },
  417. reOpen(item){
  418. this.curItem = item;
  419. let that = this;
  420. uniShowModal('确定恢复供应吗?', '', {
  421. showCancel: true,
  422. confirmText:'确定',
  423. success: (res) => {
  424. if(res.confirm){
  425. //update
  426. let params = {};
  427. let postData = JSON.parse(JSON.stringify(item));
  428. postData.status = 4;
  429. postData.showFlag = '是';
  430. postData.fileDetailList = undefined;
  431. postData.companyEntity = {};
  432. postData.companyEntity.company = postData.company;
  433. postData.companyEntity.jobTitle = postData.jobTitle;
  434. postData.companyEntity.creditCode = postData.creditCode;
  435. postData.companyEntity.address = postData.base;
  436. postData.companyEntity.regStatus = postData.regStatus;
  437. postData.companyEntity.contactPerson = postData.contactPerson;
  438. postData.companyEntity.contactMethod = postData.contactMethod;
  439. postData.companyEntity.contactNickName = postData.contactNickName;
  440. postData.slbUserExt = {};
  441. postData.slbUserExt.userContactMethod = postData.contactMethod;
  442. postData.slbUserExt.contactPerson = postData.contactPerson;
  443. postData.slbUserExt.contactMethod = postData.contactMethod;
  444. postData.slbUserExt.contactNickName = postData.contactNickName;
  445. postData.slbUserExt.userRealName = postData.userRealName;
  446. params.slbResourceShare = JSON.stringify(postData);
  447. params.fileDetailList = JSON.stringify(item.fileDetailList);
  448. request.post('/slbResourceShare/update', params).then(res => {
  449. if(res.success){
  450. uni.showToast({
  451. title: '恢复成功'
  452. })
  453. that.loadData();
  454. }else{
  455. uni.showToast({
  456. title:res.msg,
  457. icon:'none'
  458. })
  459. that.canSave = true;
  460. }
  461. })
  462. }
  463. }
  464. })
  465. },
  466. }
  467. }
  468. </script>
  469. <style lang="scss" scoped>
  470. /* 胶囊*/
  471. .tn-custom-nav-bar__back {
  472. width: 60%;
  473. height: 100%;
  474. position: relative;
  475. display: flex;
  476. justify-content: space-evenly;
  477. align-items: center;
  478. box-sizing: border-box;
  479. // background-color: rgba(0, 0, 0, 0.15);
  480. border-radius: 1000rpx;
  481. // border: 1rpx solid rgba(255, 255, 255, 0.5);
  482. // color: #FFFFFF;
  483. font-size: 18px;
  484. .icon {
  485. display: block;
  486. flex: 1;
  487. margin: auto;
  488. text-align: center;
  489. }
  490. &:before {
  491. content: " ";
  492. width: 1rpx;
  493. height: 110%;
  494. position: absolute;
  495. top: 22.5%;
  496. left: 0;
  497. right: 0;
  498. margin: auto;
  499. transform: scale(0.5);
  500. transform-origin: 0 0;
  501. pointer-events: none;
  502. box-sizing: border-box;
  503. opacity: 0.7;
  504. background-color: #FFFFFF;
  505. }
  506. }
  507. /* 文章内容 start*/
  508. .blogger {
  509. &__item {
  510. padding: 30rpx;
  511. }
  512. &__author {
  513. &__btn {
  514. margin-right: -12rpx;
  515. opacity: 0.5;
  516. }
  517. }
  518. &__desc {
  519. line-height: 30rpx;
  520. &__label {
  521. color: #1D2541;
  522. background-color: #F3F2F7;
  523. border-radius: 10rpx;
  524. font-size: 22rpx;
  525. padding: 5rpx 15rpx;
  526. margin: 5rpx 18rpx 0 0;
  527. &--prefix {
  528. font-size: 24rpx;
  529. color: #1D2541;
  530. padding-right: 10rpx;
  531. }
  532. }
  533. &__content {
  534. line-height: 50rpx;
  535. }
  536. }
  537. &__content {
  538. margin-top: 18rpx;
  539. padding-right: 18rpx;
  540. &__data {
  541. line-height: 46rpx;
  542. text-align: justify;
  543. overflow: hidden;
  544. transition: all 0.25s ease-in-out;
  545. }
  546. &__status {
  547. margin-top: 10rpx;
  548. font-size: 26rpx;
  549. color: #82B2FF;
  550. }
  551. }
  552. &__main-image {
  553. border: 1rpx solid #F8F7F8;
  554. border-radius: 16rpx;
  555. &--1 {
  556. max-width: 80%;
  557. max-height: 300rpx;
  558. }
  559. &--2 {
  560. max-width: 260rpx;
  561. max-height: 260rpx;
  562. }
  563. &--3 {
  564. height: 212rpx;
  565. width: 100%;
  566. }
  567. }
  568. &__count-icon {
  569. font-size: 40rpx;
  570. padding-right: 5rpx;
  571. }
  572. &__ad {
  573. width: 100%;
  574. height: 500rpx;
  575. transform: translate3d(0px, 0px, 0px) !important;
  576. ::v-deep .uni-swiper-slide-frame {
  577. transform: translate3d(0px, 0px, 0px) !important;
  578. }
  579. .uni-swiper-slide-frame {
  580. transform: translate3d(0px, 0px, 0px) !important;
  581. }
  582. &__item {
  583. position: absolute;
  584. width: 100%;
  585. height: 100%;
  586. transform-origin: left center;
  587. transform: translate3d(100%, 0px, 0px) scale(1) !important;
  588. transition: transform 0.25s ease-in-out;
  589. z-index: 1;
  590. &--0 {
  591. transform: translate3d(0%, 0px, 0px) scale(1) !important;
  592. z-index: 4;
  593. }
  594. &--1 {
  595. transform: translate3d(13%, 0px, 0px) scale(0.9) !important;
  596. z-index: 3;
  597. }
  598. &--2 {
  599. transform: translate3d(26%, 0px, 0px) scale(0.8) !important;
  600. z-index: 2;
  601. }
  602. }
  603. &__content {
  604. border-radius: 40rpx;
  605. width: 640rpx;
  606. height: 500rpx;
  607. overflow: hidden;
  608. }
  609. &__image {
  610. width: 100%;
  611. height: 100%;
  612. }
  613. }
  614. }
  615. /* 文章内容 end*/
  616. /* 底部安全边距 start*/
  617. .tn-tabbar-height {
  618. min-height: 120rpx;
  619. height: calc(140rpx + env(safe-area-inset-bottom) / 2);
  620. height: calc(140rpx + constant(safe-area-inset-bottom));
  621. }
  622. </style>