share.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  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: 12px 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: 8px 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. <!-- 边距间隔 -->
  187. <view class="tn-strip-bottom" v-if="index != content.length - 1"></view>
  188. </block>
  189. <!-- 边距间隔 -->
  190. <!-- <view class="tn-strip-bottom"></view> -->
  191. </view>
  192. </view>
  193. <tn-modal v-model="showModel" @click="clickModel" :title="titleModel" :content="contentModel" :button="buttonModel"></tn-modal>
  194. <view class='tn-tabbar-height'></view>
  195. <view v-if="showEmpty" style="margin-top: 32vh;">
  196. <tn-empty mode="data"></tn-empty>
  197. </view>
  198. </view>
  199. </template>
  200. <script>
  201. import request from '../../utils/request'
  202. import {
  203. uniShowModal
  204. } from '../../utils/uni_api'
  205. export default {
  206. data() {
  207. return {
  208. showModel:false,
  209. titleModel:'下架供应提示',
  210. contentModel:'下架之后内容不再展示在供应页面里, 是否继续?',
  211. buttonModel:[{
  212. text: '取消',
  213. plain: true,
  214. shape: 'round'
  215. },
  216. {
  217. text: '继续',
  218. backgroundColor: 'tn-bg-indigo',
  219. fontColor: '#FFFFFF'
  220. }],
  221. list: [{
  222. 'tab-name': '已通过'
  223. }, {
  224. 'tab-name': '审核中'
  225. }, {
  226. 'tab-name': '暂存'
  227. }, {
  228. 'tab-name': '已拒绝'
  229. }],
  230. current: 0,
  231. showEmpty: false,
  232. content:[],
  233. curItem:{},
  234. columns: [{
  235. fieldName: 'prodName',
  236. fieldDesc: '产品名称',
  237. }, {
  238. fieldName: 'prodSpec',
  239. fieldDesc: '产品型号',
  240. }, {
  241. fieldName: 'prodDesc',
  242. fieldDesc: '产品介绍',
  243. }],
  244. wxFontSize:17
  245. }
  246. },
  247. filters: {
  248. formatDate(value) {
  249. if (!value) return '';
  250. const date = new Date(value);
  251. const today = new Date();
  252. const yesterday = new Date(today); // 昨天的日期
  253. yesterday.setDate(yesterday.getDate() - 1); // 将昨天的日期设置为前一天
  254. if (date.getFullYear() == today.getFullYear() && date.getMonth() == today.getMonth() && date.getDate() ==
  255. today.getDate()) {
  256. return '今天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  257. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  258. }
  259. if (date.getFullYear() == yesterday.getFullYear() && date.getMonth() == yesterday.getMonth() && date
  260. .getDate() == yesterday.getDate()) {
  261. return '昨天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  262. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  263. }
  264. return date.toLocaleDateString() + ' ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  265. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  266. },
  267. },
  268. onLoad(props){
  269. const appBaseInfo = wx.getAppBaseInfo();
  270. this.wxFontSize = uni.getStorageSync('fontSize')||appBaseInfo.fontSizeSetting||17;
  271. if(props.tab==1){
  272. this.current= 1;
  273. }
  274. if(props.tab==2){
  275. this.current= 2;
  276. }
  277. },
  278. onShow() {
  279. this.loadData();
  280. },
  281. methods: {
  282. showBrand(text){
  283. uni.showToast({
  284. title: text,
  285. icon: 'none'
  286. })
  287. },
  288. goBack() {
  289. const pages = getCurrentPages()
  290. // 有可返回的页面则直接返回,uni.navigateBack 默认返回失败之后会自动刷新页面 ,无法继续返回
  291. if (pages.length > 1) {
  292. uni.navigateBack()
  293. return;
  294. }else{
  295. uni.reLaunch({
  296. url: '/pages/index/index'
  297. })
  298. }
  299. },
  300. change(index) {
  301. this.current = index;
  302. this.loadData();
  303. },
  304. isImage(fileName) {
  305. const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'ico']
  306. const extension = fileName.split('.').pop().toLowerCase();
  307. return imageExtensions.includes(extension);
  308. },
  309. loadData() {
  310. let that = this;
  311. that.content = [];
  312. request.post('/slbResourceShare/show/my', {
  313. userNo: uni.getStorageSync('userNo'),
  314. // 状态(1:暂存,2:待处理,3:审核中,4:已通过,9:已拒绝,10:已取消)
  315. status: that.current == 1 ? '3' : that.current == 2 ? '1' : that.current == 3 ? '9' : '4',
  316. limit: 1000,
  317. index: 1
  318. }).then(res => {
  319. let newList = res.list || [];
  320. if (res.success) {
  321. let newList = res.list || [];
  322. for (let i = 0; i < newList.length; i++) {
  323. newList[i].imgList = [];
  324. for (let j = 0; j < newList[i].fileDetailList.length; j++) {
  325. if (that.isImage(newList[i].fileDetailList[j].fileName)) {
  326. newList[i].imgList.push(newList[i].fileDetailList[j]);
  327. }
  328. }
  329. }
  330. that.content = newList;
  331. if (newList.length == 0) {
  332. that.showEmpty = true;
  333. } else {
  334. that.showEmpty = false;
  335. }
  336. }else{
  337. if(res._redirect){
  338. uni.showToast({
  339. title: '操作过期,请登录后重试',
  340. duration: 2000,
  341. icon:'none'
  342. });
  343. that.goBack();
  344. }
  345. }
  346. })
  347. },
  348. showImg(items, index) {
  349. let urls = [];
  350. for (let i = 0; i < items.length; i++) {
  351. urls.push(items[i].ftpUrl);
  352. }
  353. // 预览图片
  354. uni.previewImage({
  355. urls: urls,
  356. current: index,
  357. });
  358. },
  359. clickLink(url,fileName) {
  360. // uni.navigateTo({
  361. // url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title='+fileName+'&url='+ url),
  362. // })
  363. uni.downloadFile({
  364. url: url,
  365. filePath: wx.env.USER_DATA_PATH + "/" + fileName,
  366. success: function (res) {
  367. const filePath = res.filePath
  368. uni.openDocument({
  369. filePath: filePath,
  370. showMenu: true,
  371. success: function (res) {
  372. console.log('打开文档成功')
  373. },
  374. fail: function(){
  375. uni.navigateTo({
  376. url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title='+fileName+'&url='+ url),
  377. })
  378. }
  379. })
  380. }
  381. })
  382. // uni.navigateTo({
  383. // url:'/pages/webview/web-view?url='+url,
  384. // })
  385. },
  386. finishItem(item){
  387. let that = this;
  388. uniShowModal('下架提醒', '下架之后内容不再展示在我有什么页面里, 是否继续?', {
  389. showCancel: true,
  390. confirmText:'继续',
  391. success: (res) => {
  392. if(res.confirm){
  393. that.finishNext(item);
  394. }
  395. }
  396. })
  397. },
  398. clickModel(e){
  399. if(e.index==1){
  400. this.showModel = false;
  401. this.finishNext(this.curItem)
  402. }else{
  403. this.showModel = false;
  404. }
  405. },
  406. finishNext(item){
  407. let that = this;
  408. request.post('/slbResourceShare/offShelf', {
  409. id: item.id,
  410. userNo: uni.getStorageSync('userNo'),
  411. }).then(res => {
  412. if (res.success) {
  413. uni.showToast({
  414. title: '下架成功'
  415. })
  416. that.loadData();
  417. } else {
  418. uni.showToast({
  419. title: res.msg,
  420. icon: 'none'
  421. })
  422. }
  423. })
  424. },
  425. editItem(item){
  426. uni.setStorageSync(item.bisNo,JSON.stringify(item))
  427. uni.navigateTo({
  428. url: '/circlePages/addShare?sid=' + item.bisNo,
  429. })
  430. },
  431. reOpen(item){
  432. this.curItem = item;
  433. let that = this;
  434. uniShowModal('确定恢复供应吗?', '', {
  435. showCancel: true,
  436. confirmText:'确定',
  437. success: (res) => {
  438. if(res.confirm){
  439. //update
  440. let params = {};
  441. let postData = JSON.parse(JSON.stringify(item));
  442. postData.status = 4;
  443. postData.showFlag = '是';
  444. postData.fileDetailList = undefined;
  445. postData.companyEntity = {};
  446. postData.companyEntity.company = postData.company;
  447. postData.companyEntity.jobTitle = postData.jobTitle;
  448. postData.companyEntity.creditCode = postData.creditCode;
  449. postData.companyEntity.address = postData.base;
  450. postData.companyEntity.regStatus = postData.regStatus;
  451. postData.companyEntity.contactPerson = postData.contactPerson;
  452. postData.companyEntity.contactMethod = postData.contactMethod;
  453. postData.companyEntity.contactNickName = postData.contactNickName;
  454. postData.slbUserExt = {};
  455. postData.slbUserExt.userContactMethod = postData.contactMethod;
  456. postData.slbUserExt.contactPerson = postData.contactPerson;
  457. postData.slbUserExt.contactMethod = postData.contactMethod;
  458. postData.slbUserExt.contactNickName = postData.contactNickName;
  459. postData.slbUserExt.userRealName = postData.userRealName;
  460. params.slbResourceShare = JSON.stringify(postData);
  461. params.fileDetailList = JSON.stringify(item.fileDetailList);
  462. request.post('/slbResourceShare/update', params).then(res => {
  463. if(res.success){
  464. uni.showToast({
  465. title: '恢复成功'
  466. })
  467. that.loadData();
  468. }else{
  469. uni.showToast({
  470. title:res.msg,
  471. icon:'none'
  472. })
  473. that.canSave = true;
  474. }
  475. })
  476. }
  477. }
  478. })
  479. },
  480. }
  481. }
  482. </script>
  483. <style lang="scss" scoped>
  484. /* 胶囊*/
  485. .tn-custom-nav-bar__back {
  486. width: 60%;
  487. height: 100%;
  488. position: relative;
  489. display: flex;
  490. justify-content: space-evenly;
  491. align-items: center;
  492. box-sizing: border-box;
  493. // background-color: rgba(0, 0, 0, 0.15);
  494. border-radius: 1000rpx;
  495. // border: 1rpx solid rgba(255, 255, 255, 0.5);
  496. // color: #FFFFFF;
  497. font-size: 18px;
  498. .icon {
  499. display: block;
  500. flex: 1;
  501. margin: auto;
  502. text-align: center;
  503. }
  504. &:before {
  505. content: " ";
  506. width: 1rpx;
  507. height: 110%;
  508. position: absolute;
  509. top: 22.5%;
  510. left: 0;
  511. right: 0;
  512. margin: auto;
  513. transform: scale(0.5);
  514. transform-origin: 0 0;
  515. pointer-events: none;
  516. box-sizing: border-box;
  517. opacity: 0.7;
  518. background-color: #FFFFFF;
  519. }
  520. }
  521. /* 文章内容 start*/
  522. .blogger {
  523. &__item {
  524. padding: 30rpx;
  525. }
  526. &__author {
  527. &__btn {
  528. margin-right: -12rpx;
  529. opacity: 0.5;
  530. }
  531. }
  532. &__desc {
  533. line-height: 30rpx;
  534. &__label {
  535. color: #1D2541;
  536. background-color: #F3F2F7;
  537. border-radius: 10rpx;
  538. font-size: 22rpx;
  539. padding: 5rpx 15rpx;
  540. margin: 5rpx 18rpx 0 0;
  541. &--prefix {
  542. font-size: 24rpx;
  543. color: #1D2541;
  544. padding-right: 10rpx;
  545. }
  546. }
  547. &__content {
  548. line-height: 50rpx;
  549. }
  550. }
  551. &__content {
  552. margin-top: 18rpx;
  553. padding-right: 18rpx;
  554. &__data {
  555. line-height: 46rpx;
  556. text-align: justify;
  557. overflow: hidden;
  558. transition: all 0.25s ease-in-out;
  559. }
  560. &__status {
  561. margin-top: 10rpx;
  562. font-size: 26rpx;
  563. color: #82B2FF;
  564. }
  565. }
  566. &__main-image {
  567. border: 1rpx solid #F8F7F8;
  568. border-radius: 16rpx;
  569. &--1 {
  570. max-width: 80%;
  571. max-height: 300rpx;
  572. }
  573. &--2 {
  574. max-width: 260rpx;
  575. max-height: 260rpx;
  576. }
  577. &--3 {
  578. height: 212rpx;
  579. width: 100%;
  580. }
  581. }
  582. &__count-icon {
  583. font-size: 40rpx;
  584. padding-right: 5rpx;
  585. }
  586. &__ad {
  587. width: 100%;
  588. height: 500rpx;
  589. transform: translate3d(0px, 0px, 0px) !important;
  590. ::v-deep .uni-swiper-slide-frame {
  591. transform: translate3d(0px, 0px, 0px) !important;
  592. }
  593. .uni-swiper-slide-frame {
  594. transform: translate3d(0px, 0px, 0px) !important;
  595. }
  596. &__item {
  597. position: absolute;
  598. width: 100%;
  599. height: 100%;
  600. transform-origin: left center;
  601. transform: translate3d(100%, 0px, 0px) scale(1) !important;
  602. transition: transform 0.25s ease-in-out;
  603. z-index: 1;
  604. &--0 {
  605. transform: translate3d(0%, 0px, 0px) scale(1) !important;
  606. z-index: 4;
  607. }
  608. &--1 {
  609. transform: translate3d(13%, 0px, 0px) scale(0.9) !important;
  610. z-index: 3;
  611. }
  612. &--2 {
  613. transform: translate3d(26%, 0px, 0px) scale(0.8) !important;
  614. z-index: 2;
  615. }
  616. }
  617. &__content {
  618. border-radius: 40rpx;
  619. width: 640rpx;
  620. height: 500rpx;
  621. overflow: hidden;
  622. }
  623. &__image {
  624. width: 100%;
  625. height: 100%;
  626. }
  627. }
  628. }
  629. /* 文章内容 end*/
  630. /* 间隔线 start*/
  631. .tn-strip-bottom {
  632. width: 100%;
  633. border-bottom: 20rpx solid rgba(241, 241, 241, 0.8);
  634. }
  635. /* 间隔线 end*/
  636. /* 底部安全边距 start*/
  637. .tn-tabbar-height {
  638. min-height: 120rpx;
  639. height: calc(140rpx + env(safe-area-inset-bottom) / 2);
  640. height: calc(140rpx + constant(safe-area-inset-bottom));
  641. }
  642. </style>