index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941
  1. <template>
  2. <view class="tab-conts" :data-theme="theme">
  3. <!-- 0-待审核,1-审核通过,2-审核失败,3-平台关闭 -->
  4. <view v-if="noteDetails.auditStatus == 0 || noteDetails.auditStatus == 2 || noteDetails.auditStatus == 3"
  5. class="approval_status">
  6. <view class="status_count" :class="noteDetails.auditStatus == 0 ? 'status1' : 'status0'">
  7. <view class="status_title">
  8. <text class="iconfont"
  9. :class="(noteDetails.auditStatus == 2 || noteDetails.auditStatus == 3) ? 'icon-tishi' : 'icon-shijian'"></text>
  10. <text v-if="noteDetails.auditStatus == 2" class="title">审核未通过,内容仅自己可见</text>
  11. <text v-if="noteDetails.auditStatus == 3" class="title">平台关闭,内容仅自己可见</text>
  12. <text v-if="noteDetails.auditStatus == 0" class="title">正在审核,内容仅自己可见</text>
  13. </view>
  14. <view v-if="noteDetails.auditStatus == 2 || noteDetails.auditStatus == 3" class="status_info">
  15. {{noteDetails.refusal}}
  16. </view>
  17. <view v-if="noteDetails.auditStatus == 0" class="status_info">
  18. 发布的内容审核通过后,将展示在首页!
  19. </view>
  20. </view>
  21. </view>
  22. <view class="follow_count"
  23. :class="(type=='list' || type =='follow' || !noteDetails.platReplySwitch)?'bodyNo':''">
  24. <view class="list_count">
  25. <view class="imageBox">
  26. <swiper v-if="noteDetails.type ===1 && noteDetails.image && noteDetails.image.split(',').length>1"
  27. :indicator-dots="indicatorDots" indicator-active-color="#e93323" :circular="circular"
  28. :interval="interval" :duration="duration" :style="{height:imageH + 'px'}">
  29. <block v-for="(item,index) in noteDetails.image.split(',')" :key='index'>
  30. <swiper-item class="cover">
  31. <!-- <image class="w-full" show-menu-by-longpress :src="item"
  32. :mode="isAuto ? 'aspectFill' : 'heightFix'" :style="{height:imageH + 'px'}"
  33. @tap="proview(item)"></image> -->
  34. <easy-loadimage mode="heightFix" :image-src="item"
  35. :height="imageH*2+'rpx'"></easy-loadimage>
  36. </swiper-item>
  37. </block>
  38. </swiper>
  39. <view
  40. v-if="noteDetails.type ===2 || (noteDetails.type ===1 &&noteDetails.image && noteDetails.image.split(',').length===1)">
  41. <view class="cover" @click="goDetail(noteDetails)">
  42. <easy-loadimage mode="heightFix" :image-src="noteDetails.cover"></easy-loadimage>
  43. <view v-if="noteDetails.type ===2" class="circle">
  44. <text class="iconfont icon-24gf-play"></text>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- 查看TA提到的宝贝 -->
  50. <view class="pro_describle">
  51. <view class="product_info">
  52. <view class="noteTitle">{{noteDetails.title}}</view>
  53. <view>
  54. <view class="text"
  55. v-if="noteDetails.isMore || (noteDetails.content && noteDetails.content.length<=70)">
  56. <text class="info">{{noteDetails.content}}</text>
  57. </view>
  58. <view class="text mt10" v-else>
  59. <text v-show="noteDetails.content"
  60. class="info">{{noteDetails.content && noteDetails.content.slice(0,70)}}...</text>
  61. <text class="more" v-if="noteDetails.content && noteDetails.content.length>70"
  62. @click.stop="moreTap(noteDetails,i)">
  63. 展开</text>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="topicList acea-row"
  68. v-if="noteDetails.topicList && noteDetails.topicList.length>0">
  69. <view style="line-height: 1.2;" @click="goTopic(item.id)" v-for="(item, j) in noteDetails.topicList" :key="j">
  70. <text class="icon">#</text><text class="text">{{item.name}}</text>
  71. </view>
  72. </view>
  73. <view v-if="type==='detail'" class="create_time">{{noteDetails.createTime}}</view>
  74. <scroll-view v-if="noteDetails.productList && noteDetails.productList.length" scroll-x="true" class="white-nowrap vertical-middle w-full mt-22 mb-12"
  75. show-scrollbar="false">
  76. <mentioned :list="noteDetails.productList" @close="popup" class=""></mentioned>
  77. </scroll-view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="footer_bar acea-row fixed release_bar_detail" style="bottom: 0;">
  82. <view class="acea-row items-center">
  83. <view class="author mr-16" @click="goUser(noteDetails)">
  84. <image v-if="noteDetails.authorLevelIcon" class="level_icon" :src="noteDetails.authorLevelIcon"
  85. alt="">
  86. <image class="picture"
  87. :src="noteDetails.authorAvatar || urlDomain+'crmebimage/presets/morenT.png'">
  88. </image>
  89. <view class="name acea-row">
  90. <text>{{noteDetails.authorName}}</text>
  91. </view>
  92. </view>
  93. <!-- 1关注 -->
  94. <view v-if="noteDetails.authorId!==uid && type !=='follow'" @click.stop="followAuthor(noteDetails)">
  95. <view v-if="!noteDetails.isConcerned" class="author-follow flex-around-center font-color"><text
  96. class="iconfont icon-shangpinshuliang-jia"></text>
  97. <view class="line-heightOne">关注</view>
  98. </view>
  99. <view v-else class="author-focused flex-around-center">
  100. <view class="line-heightOne">已关注</view>
  101. </view>
  102. </view>
  103. <!-- 管理 -->
  104. <view class="manageCount" v-if="noteDetails.authorId==uid && type==='detail'">
  105. <view class="follow_btn author-focused flex-around-center" @click.stop="handleManage">
  106. <view class="line-heightOne">管理</view>
  107. </view>
  108. </view>
  109. </view>
  110. <!-- 末尾处分享、关注、评论 -->
  111. <view class="foot_bar">
  112. <view class="item">
  113. <view class="item_count" @click.stop="likeToggle(noteDetails)">
  114. <text class="iconfont"
  115. :class="noteDetails.userIsLike ? 'icon-shoucang1' : 'icon-dianzan'"></text>
  116. <text>{{noteDetails.likeNum > 0 ? noteDetails.likeNum < 10000 ? noteDetails.likeNum : (noteDetails.likeNum / 10000).toFixed(2) : '点赞'}}</text>
  117. </view>
  118. <!-- -->
  119. <view v-if="noteDetails.platReplySwitch" class="item_count" @click="openCommon(noteDetails)">
  120. <text class="iconfont icon-pinglun"></text>
  121. <text>{{noteDetails.replyNum > 0 ? noteDetails.replyNum : '评论'}}</text>
  122. </view>
  123. </view>
  124. <!-- #ifdef MP -->
  125. <button v-if="noteDetails.auditStatus == 1" class="time iconfont icon-fenxiang ml-20" open-type="share"
  126. hover-class='none' :data-id="noteDetails.id" :data-cover="noteDetails.cover" :data-uid="uid"
  127. :data-title="noteDetails.title" @click="shareFriend(noteDetails)"></button>
  128. <!-- #endif -->
  129. <!-- #ifdef APP -->
  130. <button v-if="noteDetails.auditStatus == 1" @click="appShare('WXSceneSession',noteDetails)"
  131. class="time iconfont icon-fenxiang ml-20" hover-class='none'></button>
  132. <!-- #endif -->
  133. <!-- #ifdef H5 -->
  134. <button v-if="noteDetails.auditStatus == 1 && isWeixin" @click="appShare('WXSceneSession',noteDetails)"
  135. class="time iconfont icon-fenxiang ml-20" hover-class='none'></button>
  136. <button></button>
  137. <!-- #endif -->
  138. </view>
  139. </view>
  140. <!-- 分享按钮 -->
  141. <image v-if="H5ShareBox" class="shareImg" :src="urlDomain+'crmebimage/presets/share-info.png'"
  142. @click="H5ShareBox = false">
  143. </image>
  144. <!-- 商品列表 -->
  145. <uni-popup type="bottom" ref="goods">
  146. <mentioned v-if="popupShow" :list="proList" @close="popup" class=""></mentioned>
  147. </uni-popup>
  148. <!-- 评论弹窗 -->
  149. <uni-popup type="bottom" ref="comment">
  150. <view
  151. :style="'width: 100%; background-color: #fff; border-top-left-radius: 10px; border-top-right-radius: 10px;'">
  152. <discoverComment v-if="showComment" @getReplyNum="getReplyNum" :noteId="noteDetails.id"
  153. fromTo="popupView" :noteDetails="noteDetails" @close="close" :isShowCommentView="isShowCommentView">
  154. </discoverComment>
  155. </view>
  156. </uni-popup>
  157. <!-- 管理弹窗 -->
  158. <uni-popup type="bottom" ref="manageRef">
  159. <view class="manage">
  160. <popup-header title="内容管理" @close="closeManage"></popup-header>
  161. <navigator hover-class="none" :url="'/pages/discover/discover_release/index?noteId='+noteDetails.id"
  162. class="items">
  163. <text>编辑</text>
  164. </navigator>
  165. <view class="items" @click.stop="deleteTopic(noteDetails)">
  166. <text>删除</text>
  167. </view>
  168. <view disabled="true" class="items" @click.stop="replySwitch(noteDetails)">
  169. <text>{{noteDetails.replyStatus ==1 ? '禁止评论' : '开启评论'}}</text>
  170. </view>
  171. </view>
  172. </uni-popup>
  173. </view>
  174. </template>
  175. <script>
  176. import discoverComment from '@/components/discoverComment/index.vue';
  177. import {
  178. mapGetters
  179. } from "vuex";
  180. import {
  181. toLogin
  182. } from '@/libs/login.js';
  183. import {
  184. discoverNoteLike
  185. } from '@/libs/follow.js';
  186. import {
  187. noteDelApi,
  188. noteReplySwitchApi
  189. } from '@/api/discover.js';
  190. import {
  191. discoverFollowAuthor
  192. } from '@/libs/follow.js';
  193. import {
  194. Debounce
  195. } from '@/utils/validate.js'
  196. import mentioned from '@/components/mentioned.vue';
  197. import easyLoadimage from '@/components/base/easy-loadimage.vue';
  198. import popupHeader from '@/components/popupHeader.vue'
  199. import animationType from '@/utils/animationType.js'
  200. import {
  201. HTTP_H5_URL
  202. } from '@/config/app.js';
  203. let app = getApp();
  204. export default {
  205. computed: mapGetters(['globalData', 'isLogin', 'userInfo', 'uid', 'bottomNavigationIsCustom']),
  206. components: {
  207. discoverComment,
  208. easyLoadimage,
  209. mentioned,
  210. popupHeader
  211. },
  212. data() {
  213. return {
  214. urlDomain: this.$Cache.get("imgHost"),
  215. H5ShareBox: false,
  216. isMore: false,
  217. theme: app.globalData.theme,
  218. popupShow: false, //商品弹窗
  219. showManage: false, //管理展示
  220. indicatorDots: true,
  221. circular: true,
  222. autoplay: true,
  223. interval: 5000,
  224. duration: 500,
  225. currents: "1",
  226. controls: true,
  227. isPlay: true,
  228. videoContext: '',
  229. proList: [], //商品列表
  230. showComment: false, //评论弹窗
  231. imageList: [], //轮播图
  232. isPay: false, //是否买过。true买过
  233. isWeixin: false, //是否是微信
  234. noteIndex: 0, //当前的索引
  235. noteDetails: this.noteRecommendList,
  236. windowWidth: 0, //获取屏幕宽度🌟💗
  237. }
  238. },
  239. props: {
  240. /* 内容详情 */
  241. noteRecommendList: {
  242. type: Object,
  243. default: function() {
  244. return {};
  245. },
  246. },
  247. /* 跳入组件类型,关注 follow 推荐页list,详情detail */
  248. type: {
  249. type: String,
  250. default: function() {
  251. return '';
  252. },
  253. },
  254. imageH: {
  255. type: Number,
  256. default: function() {
  257. return 0;
  258. },
  259. },
  260. // 评论列表是否出现在详情视图内,出现就展示弹窗
  261. isShowCommentView: {
  262. type: Boolean,
  263. default: function() {
  264. return false;
  265. },
  266. }
  267. },
  268. watch: {
  269. noteRecommendList: {
  270. immediate: true,
  271. deep: true,
  272. handler(nVal, oVal) {
  273. this.noteDetails = nVal
  274. if (this.noteDetails.productList && this.noteDetails.productList.length !== 0) {
  275. this.noteDetails.isPay = this.noteDetails.productList.some(function(items) {
  276. if (items.isPay == 1) {
  277. return true;
  278. }
  279. })
  280. }
  281. }
  282. }
  283. },
  284. onLoad() {
  285. this.windowWidth = uni.getSystemInfoSync().screenWidth; //获取屏幕宽度
  286. this.isWeixin = this.$wechat.isWeixin()
  287. this.computedHeight()
  288. },
  289. // 滚动监听
  290. onPageScroll(e) {
  291. // 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
  292. uni.$emit('scroll');
  293. },
  294. methods: {
  295. //关闭操作管理
  296. closeManage() {
  297. this.$refs.manageRef.close();
  298. },
  299. //操作管理
  300. handleManage() {
  301. this.$refs.manageRef.open('bottom');
  302. },
  303. appShare(scene, noteDetails) {
  304. let that = this
  305. let data = noteDetails;
  306. // #ifdef APP-PLUS
  307. uni.showLoading({
  308. title: '加载中',
  309. mask: true
  310. });
  311. let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
  312. let curRoute = routes[routes.length - 1].$page.fullPath // 获取当前页面路由,也就是最后一个打开的页面路由
  313. uni.share({
  314. provider: "weixin",
  315. scene: scene,
  316. type: 0,
  317. href: `${HTTP_H5_URL}${curRoute}&sd=${that.uid}&id=${data.id}`,
  318. title: data.title || '',
  319. summary: data.content || '',
  320. imageUrl: data.cover || '',
  321. success: function(res) {
  322. uni.showToast({
  323. title: '分享成功',
  324. icon: 'success'
  325. })
  326. uni.hideLoading();
  327. },
  328. fail: function(err) {
  329. uni.hideLoading();
  330. uni.showToast({
  331. title: '分享失败',
  332. icon: 'none',
  333. duration: 2000
  334. })
  335. },
  336. });
  337. uni.hideLoading();
  338. // #endif
  339. // #ifdef H5
  340. if (that.$wechat.isWeixin()) {
  341. uni.showLoading({
  342. title: '加载中',
  343. mask: true
  344. });
  345. let configAppMessage = {
  346. desc: data.content || '',
  347. title: data.title || '',
  348. link: `/pages/goods/goods_details/index?id=${that.noteDetails.id}&mt=0&sd=${that.uid}`,
  349. imgUrl: data.cover || ''
  350. };
  351. uni.hideLoading();
  352. that.$wechat.wechatEvevt(["updateAppMessageShareData", "updateTimelineShareData"],
  353. configAppMessage);
  354. } else {
  355. this.H5ShareBox = true;
  356. }
  357. // #endif
  358. },
  359. //分享信息
  360. shareFriend(item) {
  361. this.noteDetails = item
  362. },
  363. //修改完评论之后的数量
  364. getReplyNum(n) {
  365. //this.noteRecommendListNew[this.noteIndex].replyNum = n;
  366. },
  367. // 关注作者
  368. followAuthor: Debounce(function(noteDetails) {
  369. if (this.isLogin) {
  370. discoverFollowAuthor(noteDetails.authorId).then(() => {
  371. this.$set(noteDetails, 'isConcerned', !noteDetails.isConcerned);
  372. });
  373. } else {
  374. toLogin();
  375. }
  376. }),
  377. moreTap(noteDetails, i) {
  378. this.$set(noteDetails, 'isMore', true);
  379. },
  380. popup() {
  381. this.$refs.goods.close();
  382. this.popupShow = false;
  383. },
  384. /*查看提到的宝贝*/
  385. openMore(item) {
  386. //此处为了处理小程序的兼容性,在父组件中去调取子组件的内容
  387. if (this.type === 'follow') {
  388. this.$emit('getPro', item);
  389. } else {
  390. this.proList = item.productList;
  391. this.$refs.goods.open('bottom');
  392. this.popupShow = true;
  393. }
  394. },
  395. //禁止评论
  396. replySwitch(noteDetails) {
  397. if (!noteDetails.platReplySwitch && noteDetails.replyStatus === 3) {
  398. this.$util.Tips({
  399. title: '平台设置不可评论'
  400. });
  401. } else {
  402. noteReplySwitchApi(noteDetails.id).then(res => {
  403. this.$emit('onChangeReplyStatus', noteDetails.replyStatus)
  404. }).catch(err => {
  405. uni.showToast({
  406. title: err,
  407. icon: 'none'
  408. })
  409. });
  410. }
  411. },
  412. // 去个人主人
  413. goUser(noteDetails) {
  414. // #ifdef MP || H5
  415. uni.navigateTo({
  416. url: `/pages/discover/discover_user/index?id=${noteDetails.authorId}`
  417. })
  418. // #endif
  419. // #ifdef APP-PLUS
  420. uni.navigateTo({
  421. animationType: animationType.type,
  422. animationDuration: animationType.duration,
  423. url: `/pages/discover/discover_user/index?id=${noteDetails.authorId}`
  424. })
  425. // #endif
  426. },
  427. // 删除内容
  428. deleteTopic(noteDetails) {
  429. let that = this;
  430. uni.showModal({
  431. content: '确定要删除该内容么?',
  432. success: function(res) {
  433. if (res.confirm) {
  434. noteDelApi(noteDetails.id).then(res => {
  435. that.$util.Tips({
  436. title: '删除成功'
  437. });
  438. setTimeout(function() {
  439. uni.redirectTo({
  440. url: '/pages/discover/discover_user/index'
  441. })
  442. }, 1000);
  443. }).catch(err => {
  444. uni.showToast({
  445. title: err,
  446. icon: 'none'
  447. })
  448. });
  449. } else if (res.cancel) {
  450. console.log('用户点击取消');
  451. }
  452. }
  453. });
  454. },
  455. //点赞
  456. likeToggle: Debounce(function(item) {
  457. if (this.isLogin) {
  458. discoverNoteLike(item.id).then(() => {
  459. this.$set(item, 'userIsLike', !item.userIsLike);
  460. if (!item.userIsLike) {
  461. item.likeNum--;
  462. item.likeNum = item.likeNum == 0 ? 0 : item.likeNum
  463. } else {
  464. item.likeNum++;
  465. }
  466. });
  467. } else {
  468. toLogin();
  469. }
  470. }),
  471. close() {
  472. this.$refs.comment.close('bottom');
  473. this.showComment = false;
  474. },
  475. //打开评论弹窗
  476. openCommon(item) {
  477. if (!this.isLogin) {
  478. toLogin();
  479. } else {
  480. //如果评论列表展示在视图中,就展示评论输入框
  481. //如果没在试图中,就展示评论弹窗
  482. if (this.isShowCommentView) {
  483. this.$emit('getComment', item);
  484. } else {
  485. uni.hideTabBar();
  486. this.$refs.comment.open('bottom');
  487. this.showComment = true
  488. }
  489. }
  490. },
  491. goTopic(id) {
  492. // #ifdef MP || H5
  493. uni.navigateTo({
  494. url: `/pages/discover/discover_note_topic/index?topicId=${id}`
  495. })
  496. // #endif
  497. // #ifdef APP-PLUS
  498. uni.navigateTo({
  499. animationType: animationType.type,
  500. animationDuration: animationType.duration,
  501. url: `/pages/discover/discover_note_topic/index?topicId=${id}`
  502. })
  503. // #endif
  504. },
  505. goDetail(noteDetails) {
  506. if (noteDetails.type === 2) {
  507. uni.navigateTo({
  508. //#ifdef APP
  509. url: '/pages/discover/discover_video/appVideo/index?noteId=' + noteDetails.id+`&sd=${this.uid}`,
  510. //#endif
  511. //#ifndef APP
  512. url: '/pages/discover/discover_video/routineVideo/index?noteId=' + noteDetails.id+`&sd=${this.uid}`,
  513. //#endif
  514. });
  515. }
  516. },
  517. }
  518. }
  519. </script>
  520. <style lang="scss" scoped>
  521. .author-follow{
  522. background: none !important;
  523. @include coupons_border_color(theme);
  524. }
  525. .footer_bar {
  526. background-color: #fff;
  527. flex-shrink: 0;
  528. width: 100%;
  529. position: fixed; // input 所在盒子设置绝对定位
  530. left: 0;
  531. z-index: 9;
  532. display: flex;
  533. bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  534. bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
  535. align-items: center;
  536. justify-content: space-between;
  537. padding: 0 24rpx;
  538. border-top: 1px solid #F5F5F5;
  539. }
  540. .release_bar_detail {
  541. height: calc(90rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  542. height: calc(90rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  543. padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  544. padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
  545. background-color: #fff;
  546. }
  547. .author {
  548. display: flex;
  549. align-items: center;
  550. position: relative;
  551. .level_icon {
  552. position: absolute;
  553. width: 20rpx;
  554. height: 20rpx;
  555. margin: 4rpx 0 0 -4rpx;
  556. border: none;
  557. z-index: 1;
  558. bottom: 2rpx;
  559. left: 50rpx;
  560. }
  561. .picture,
  562. uni-image {
  563. width: 60rpx;
  564. height: 60rpx;
  565. border-radius: 100%;
  566. }
  567. .name {
  568. margin-left: 20rpx;
  569. color: #282828;
  570. font-size: 32rpx;
  571. font-weight: bold;
  572. align-items: center;
  573. }
  574. }
  575. /deep/.uni-swiper-dots-horizontal {
  576. bottom: 40rpx !important;
  577. }
  578. .shareImg {
  579. z-index: 1000;
  580. position: fixed;
  581. left: 0;
  582. top: 0;
  583. width: 100%;
  584. height: 100%;
  585. }
  586. .isPay {
  587. padding: 3rpx 5rpx;
  588. @include main_color(theme);
  589. @include coupons_border_color(theme);
  590. font-size: 20rpx;
  591. border-radius: 3px 3px 3px 3px;
  592. }
  593. .more {
  594. font-weight: 600;
  595. margin-left: 6rpx;
  596. }
  597. .ml24 {
  598. margin-left: 24rpx;
  599. }
  600. .follow_btn {
  601. color: #282828 !important;
  602. border: 1px solid #282828 !important;
  603. }
  604. .approval_status {
  605. padding: 24rpx 24rpx 0 24rpx;
  606. .status_count {
  607. padding: 26rpx 30rpx 20rpx;
  608. border-radius: 10rpx;
  609. .title {
  610. margin-left: 10rpx;
  611. font-size: 28rpx;
  612. font-weight: bold;
  613. }
  614. &.status0 {
  615. background: #FDF3F2;
  616. .title {
  617. color: #E93323;
  618. }
  619. }
  620. &.status1 {
  621. background: #FFF4EB;
  622. .title {
  623. color: #FC8327;
  624. }
  625. }
  626. .iconfont {
  627. font-size: 30rpx;
  628. }
  629. .icon-shijian {
  630. color: #FC8327;
  631. }
  632. .icon-tishi {
  633. color: #E93323;
  634. }
  635. .status_info {
  636. font-size: 22rpx;
  637. color: #666666;
  638. margin: 10rpx 0 0 36rpx;
  639. }
  640. }
  641. }
  642. .createTime {
  643. font-size: 24rpx;
  644. font-family: PingFang SC-Regular, PingFang SC;
  645. font-weight: 400;
  646. color: #999999;
  647. }
  648. .tab-conts {
  649. // /deep/.container {
  650. // padding-bottom: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  651. // padding-bottom: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  652. // }
  653. }
  654. .bodyNo {
  655. border: none !important;
  656. }
  657. .foot_bar {
  658. display: flex;
  659. align-items: center;
  660. justify-content: space-between;
  661. .item {
  662. display: flex;
  663. align-items: center;
  664. color: #282828;
  665. &.icon-fenxiang {
  666. font-size: 46rpx;
  667. }
  668. }
  669. .item_count {
  670. font-size: 26rpx;
  671. display: flex;
  672. align-items: center;
  673. margin-left: 30rpx;
  674. &:first-child {
  675. margin-left: 0;
  676. }
  677. .iconfont {
  678. font-size: 40rpx;
  679. margin-right: 5rpx;
  680. }
  681. .icon-shoucang1 {
  682. @include main_color(theme);
  683. }
  684. }
  685. }
  686. .create_time {
  687. color: #909399;
  688. font-size: 22rpx;
  689. margin-top: 28rpx;
  690. }
  691. .pro_describle {
  692. overflow-x: hidden;
  693. .product_info {
  694. // line-height: 45rpx;
  695. margin-top: 30rpx;
  696. .noteTitle {
  697. font-size: 30rpx;
  698. font-family: PingFang SC-Medium, PingFang SC;
  699. font-weight: 700;
  700. color: #282828;
  701. margin-bottom: 14rpx;
  702. }
  703. .text {
  704. font-size: 28rpx;
  705. color: #282828;
  706. text-align: justify;
  707. text-justify: newspaper;
  708. word-break: break-all;
  709. }
  710. .unfold_btn {
  711. margin-left: 30rpx;
  712. font-size: 30rpx;
  713. color: #282828;
  714. font-weight: bold;
  715. }
  716. }
  717. .topicList {
  718. margin-right: -20rpx;
  719. >view {
  720. display: flex;
  721. align-items: center;
  722. border-radius: 30rpx;
  723. margin-right: 20rpx;
  724. // line-height: 62rpx;
  725. // height: 62rpx;
  726. @include main_color(theme);
  727. .text {
  728. font-size: 28rpx;
  729. }
  730. .icon {
  731. font-size: 35rpx;
  732. }
  733. }
  734. }
  735. }
  736. .imageBox {
  737. width: 702rpx;
  738. // height: 702rpx;
  739. position: relative;
  740. swiper {
  741. width: 100%;
  742. height: 100%;
  743. position: relative;
  744. }
  745. .cover {
  746. width: 702rpx;
  747. position: relative;
  748. border-radius: 10px 10px 10px 10px;
  749. /deep/image,
  750. /deep/.easy-loadimage,
  751. uni-image {
  752. width: 702rpx;
  753. border-radius: 10px 10px 10px 10px;
  754. overflow: hidden;
  755. }
  756. .circle {
  757. width: 100rpx;
  758. height: 100rpx;
  759. border-radius: 50%;
  760. background: rgba(0, 0, 0, .5);
  761. position: absolute;
  762. top: 50%;
  763. left: 50%;
  764. margin-left: -50rpx;
  765. margin-top: -50rpx;
  766. z-index: 10;
  767. line-height: 50px;
  768. text-align: center;
  769. color: #fff;
  770. }
  771. }
  772. .slide-image {
  773. width: 100%;
  774. height: 100%;
  775. border-radius: 16rpx;
  776. }
  777. .pages {
  778. position: absolute;
  779. background-color: #fff;
  780. height: 34rpx;
  781. padding: 0 10rpx;
  782. border-radius: 3rpx;
  783. right: 30rpx;
  784. bottom: 30rpx;
  785. line-height: 34rpx;
  786. font-size: 24rpx;
  787. color: #050505;
  788. }
  789. }
  790. .tab-cont {
  791. background: #fff;
  792. }
  793. .follow_count {
  794. padding: 30rpx 24rpx 20rpx 24rpx;
  795. border-bottom: 1px solid #F5F5F5;
  796. .title {
  797. padding: 0 10rpx;
  798. display: flex;
  799. align-items: center;
  800. justify-content: space-between;
  801. }
  802. .author {
  803. display: flex;
  804. align-items: center;
  805. position: relative;
  806. .level_icon {
  807. position: absolute;
  808. width: 26rpx;
  809. height: 26rpx;
  810. margin: 4rpx 0 0 6rpx;
  811. border: none;
  812. z-index: 1;
  813. bottom: 2rpx;
  814. left: 50rpx;
  815. }
  816. .picture,
  817. uni-image {
  818. width: 78rpx;
  819. height: 78rpx;
  820. border-radius: 100%;
  821. }
  822. .name {
  823. margin-left: 20rpx;
  824. color: #282828;
  825. font-size: 32rpx;
  826. font-weight: bold;
  827. align-items: center;
  828. }
  829. }
  830. .icon-fenxiang {
  831. font-size: 40rpx !important;
  832. }
  833. .time {
  834. color: #282828;
  835. font-size: 46rpx;
  836. }
  837. .product {
  838. margin-top: 20rpx;
  839. border-radius: 16rpx;
  840. }
  841. }
  842. .manage {
  843. width: 100%;
  844. background: #ffffff;
  845. box-shadow: 0 2rpx 15rpx rgba(0, 0, 0, 0.1);
  846. padding: 30rpx 24rpx;
  847. z-index: 10;
  848. border-radius: 40rpx 40rpx 0 0;
  849. .items {
  850. // border-bottom: 1px solid #EEEEEE;
  851. color: #333333;
  852. font-size: 28rpx;
  853. display: flex;
  854. justify-content: center;
  855. margin-bottom: 64rpx;
  856. &:last-child {
  857. border-bottom: none;
  858. }
  859. .iconfont {
  860. margin: 0 16rpx 0;
  861. }
  862. }
  863. }
  864. </style>