share.vue 22 KB

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