share.vue 20 KB

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