index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948
  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:430 + '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="430*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. heightH: 0
  238. }
  239. },
  240. props: {
  241. /* 内容详情 */
  242. noteRecommendList: {
  243. type: Object,
  244. default: function() {
  245. return {};
  246. },
  247. },
  248. /* 跳入组件类型,关注 follow 推荐页list,详情detail */
  249. type: {
  250. type: String,
  251. default: function() {
  252. return '';
  253. },
  254. },
  255. imageH: {
  256. type: Number,
  257. default: 0
  258. },
  259. // 评论列表是否出现在详情视图内,出现就展示弹窗
  260. isShowCommentView: {
  261. type: Boolean,
  262. default: function() {
  263. return false;
  264. },
  265. }
  266. },
  267. watch: {
  268. noteRecommendList: {
  269. immediate: true,
  270. deep: true,
  271. handler(nVal, oVal) {
  272. this.noteDetails = nVal
  273. if (this.noteDetails.productList && this.noteDetails.productList.length !== 0) {
  274. this.noteDetails.isPay = this.noteDetails.productList.some(function(items) {
  275. if (items.isPay == 1) {
  276. return true;
  277. }
  278. })
  279. }
  280. }
  281. },
  282. imageH(nval, oval) {
  283. this.heightH = nval
  284. console.log(this.heightH, 'chulailelelelelle')
  285. }
  286. },
  287. onLoad() {
  288. this.windowWidth = uni.getSystemInfoSync().screenWidth; //获取屏幕宽度
  289. this.isWeixin = this.$wechat.isWeixin()
  290. this.computedHeight()
  291. },
  292. onBackPress(options) {
  293. console.log(options, 11111111111)
  294. this.heightH = 0
  295. },
  296. // 滚动监听
  297. onPageScroll(e) {
  298. // 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
  299. uni.$emit('scroll');
  300. },
  301. methods: {
  302. //关闭操作管理
  303. closeManage() {
  304. this.$refs.manageRef.close();
  305. },
  306. //操作管理
  307. handleManage() {
  308. this.$refs.manageRef.open('bottom');
  309. },
  310. appShare(scene, noteDetails) {
  311. let that = this
  312. let data = noteDetails;
  313. // #ifdef APP-PLUS
  314. uni.showLoading({
  315. title: '加载中',
  316. mask: true
  317. });
  318. let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
  319. let curRoute = routes[routes.length - 1].$page.fullPath // 获取当前页面路由,也就是最后一个打开的页面路由
  320. uni.share({
  321. provider: "weixin",
  322. scene: scene,
  323. type: 0,
  324. href: `${HTTP_H5_URL}${curRoute}&sd=${that.uid}&id=${data.id}`,
  325. title: data.title || '',
  326. summary: data.content || '',
  327. imageUrl: data.cover || '',
  328. success: function(res) {
  329. uni.showToast({
  330. title: '分享成功',
  331. icon: 'success'
  332. })
  333. uni.hideLoading();
  334. },
  335. fail: function(err) {
  336. uni.hideLoading();
  337. uni.showToast({
  338. title: '分享失败',
  339. icon: 'none',
  340. duration: 2000
  341. })
  342. },
  343. });
  344. uni.hideLoading();
  345. // #endif
  346. // #ifdef H5
  347. if (that.$wechat.isWeixin()) {
  348. uni.showLoading({
  349. title: '加载中',
  350. mask: true
  351. });
  352. let configAppMessage = {
  353. desc: data.content || '',
  354. title: data.title || '',
  355. link: `/pages/goods/goods_details/index?id=${that.noteDetails.id}&mt=0&sd=${that.uid}`,
  356. imgUrl: data.cover || ''
  357. };
  358. uni.hideLoading();
  359. that.$wechat.wechatEvevt(["updateAppMessageShareData", "updateTimelineShareData"],
  360. configAppMessage);
  361. } else {
  362. this.H5ShareBox = true;
  363. }
  364. // #endif
  365. },
  366. //分享信息
  367. shareFriend(item) {
  368. this.noteDetails = item
  369. },
  370. //修改完评论之后的数量
  371. getReplyNum(n) {
  372. //this.noteRecommendListNew[this.noteIndex].replyNum = n;
  373. },
  374. // 关注作者
  375. followAuthor: Debounce(function(noteDetails) {
  376. if (this.isLogin) {
  377. discoverFollowAuthor(noteDetails.authorId).then(() => {
  378. this.$set(noteDetails, 'isConcerned', !noteDetails.isConcerned);
  379. });
  380. } else {
  381. toLogin();
  382. }
  383. }),
  384. moreTap(noteDetails, i) {
  385. this.$set(noteDetails, 'isMore', true);
  386. },
  387. popup() {
  388. this.$refs.goods.close();
  389. this.popupShow = false;
  390. },
  391. /*查看提到的宝贝*/
  392. openMore(item) {
  393. //此处为了处理小程序的兼容性,在父组件中去调取子组件的内容
  394. if (this.type === 'follow') {
  395. this.$emit('getPro', item);
  396. } else {
  397. this.proList = item.productList;
  398. this.$refs.goods.open('bottom');
  399. this.popupShow = true;
  400. }
  401. },
  402. //禁止评论
  403. replySwitch(noteDetails) {
  404. if (!noteDetails.platReplySwitch && noteDetails.replyStatus === 3) {
  405. this.$util.Tips({
  406. title: '平台设置不可评论'
  407. });
  408. } else {
  409. noteReplySwitchApi(noteDetails.id).then(res => {
  410. this.$emit('onChangeReplyStatus', noteDetails.replyStatus)
  411. }).catch(err => {
  412. uni.showToast({
  413. title: err,
  414. icon: 'none'
  415. })
  416. });
  417. }
  418. },
  419. // 去个人主人
  420. goUser(noteDetails) {
  421. // #ifdef MP || H5
  422. uni.navigateTo({
  423. url: `/pages/discover/discover_user/index?id=${noteDetails.authorId}`
  424. })
  425. // #endif
  426. // #ifdef APP-PLUS
  427. uni.navigateTo({
  428. animationType: animationType.type,
  429. animationDuration: animationType.duration,
  430. url: `/pages/discover/discover_user/index?id=${noteDetails.authorId}`
  431. })
  432. // #endif
  433. },
  434. // 删除内容
  435. deleteTopic(noteDetails) {
  436. let that = this;
  437. uni.showModal({
  438. content: '确定要删除该内容么?',
  439. success: function(res) {
  440. if (res.confirm) {
  441. noteDelApi(noteDetails.id).then(res => {
  442. that.$util.Tips({
  443. title: '删除成功'
  444. });
  445. setTimeout(function() {
  446. uni.redirectTo({
  447. url: '/pages/discover/discover_user/index'
  448. })
  449. }, 1000);
  450. }).catch(err => {
  451. uni.showToast({
  452. title: err,
  453. icon: 'none'
  454. })
  455. });
  456. } else if (res.cancel) {
  457. console.log('用户点击取消');
  458. }
  459. }
  460. });
  461. },
  462. //点赞
  463. likeToggle: Debounce(function(item) {
  464. if (this.isLogin) {
  465. discoverNoteLike(item.id).then(() => {
  466. this.$set(item, 'userIsLike', !item.userIsLike);
  467. if (!item.userIsLike) {
  468. item.likeNum--;
  469. item.likeNum = item.likeNum == 0 ? 0 : item.likeNum
  470. } else {
  471. item.likeNum++;
  472. }
  473. });
  474. } else {
  475. toLogin();
  476. }
  477. }),
  478. close() {
  479. this.$refs.comment.close('bottom');
  480. this.showComment = false;
  481. },
  482. //打开评论弹窗
  483. openCommon(item) {
  484. if (!this.isLogin) {
  485. toLogin();
  486. } else {
  487. //如果评论列表展示在视图中,就展示评论输入框
  488. //如果没在试图中,就展示评论弹窗
  489. if (this.isShowCommentView) {
  490. this.$emit('getComment', item);
  491. } else {
  492. uni.hideTabBar();
  493. this.$refs.comment.open('bottom');
  494. this.showComment = true
  495. }
  496. }
  497. },
  498. goTopic(id) {
  499. // #ifdef MP || H5
  500. uni.navigateTo({
  501. url: `/pages/discover/discover_note_topic/index?topicId=${id}`
  502. })
  503. // #endif
  504. // #ifdef APP-PLUS
  505. uni.navigateTo({
  506. animationType: animationType.type,
  507. animationDuration: animationType.duration,
  508. url: `/pages/discover/discover_note_topic/index?topicId=${id}`
  509. })
  510. // #endif
  511. },
  512. goDetail(noteDetails) {
  513. if (noteDetails.type === 2) {
  514. uni.navigateTo({
  515. //#ifdef APP
  516. url: '/pages/discover/discover_video/appVideo/index?noteId=' + noteDetails.id+`&sd=${this.uid}`,
  517. //#endif
  518. //#ifndef APP
  519. url: '/pages/discover/discover_video/routineVideo/index?noteId=' + noteDetails.id+`&sd=${this.uid}`,
  520. //#endif
  521. });
  522. }
  523. },
  524. }
  525. }
  526. </script>
  527. <style lang="scss" scoped>
  528. .author-follow{
  529. background: none !important;
  530. @include coupons_border_color(theme);
  531. }
  532. .footer_bar {
  533. background-color: #fff;
  534. flex-shrink: 0;
  535. width: 100%;
  536. position: fixed; // input 所在盒子设置绝对定位
  537. left: 0;
  538. z-index: 9;
  539. display: flex;
  540. bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  541. bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
  542. align-items: center;
  543. justify-content: space-between;
  544. padding: 0 24rpx;
  545. border-top: 1px solid #F5F5F5;
  546. }
  547. .release_bar_detail {
  548. height: calc(90rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  549. height: calc(90rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  550. padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  551. padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
  552. background-color: #fff;
  553. }
  554. .author {
  555. display: flex;
  556. align-items: center;
  557. position: relative;
  558. .level_icon {
  559. position: absolute;
  560. width: 20rpx;
  561. height: 20rpx;
  562. margin: 4rpx 0 0 -4rpx;
  563. border: none;
  564. z-index: 1;
  565. bottom: 2rpx;
  566. left: 50rpx;
  567. }
  568. .picture,
  569. uni-image {
  570. width: 60rpx;
  571. height: 60rpx;
  572. border-radius: 100%;
  573. }
  574. .name {
  575. margin-left: 20rpx;
  576. color: #282828;
  577. font-size: 32rpx;
  578. font-weight: bold;
  579. align-items: center;
  580. }
  581. }
  582. /deep/.uni-swiper-dots-horizontal {
  583. bottom: 40rpx !important;
  584. }
  585. .shareImg {
  586. z-index: 1000;
  587. position: fixed;
  588. left: 0;
  589. top: 0;
  590. width: 100%;
  591. height: 100%;
  592. }
  593. .isPay {
  594. padding: 3rpx 5rpx;
  595. @include main_color(theme);
  596. @include coupons_border_color(theme);
  597. font-size: 20rpx;
  598. border-radius: 3px 3px 3px 3px;
  599. }
  600. .more {
  601. font-weight: 600;
  602. margin-left: 6rpx;
  603. }
  604. .ml24 {
  605. margin-left: 24rpx;
  606. }
  607. .follow_btn {
  608. color: #282828 !important;
  609. border: 1px solid #282828 !important;
  610. }
  611. .approval_status {
  612. padding: 24rpx 24rpx 0 24rpx;
  613. .status_count {
  614. padding: 26rpx 30rpx 20rpx;
  615. border-radius: 10rpx;
  616. .title {
  617. margin-left: 10rpx;
  618. font-size: 28rpx;
  619. font-weight: bold;
  620. }
  621. &.status0 {
  622. background: #FDF3F2;
  623. .title {
  624. color: #E93323;
  625. }
  626. }
  627. &.status1 {
  628. background: #FFF4EB;
  629. .title {
  630. color: #FC8327;
  631. }
  632. }
  633. .iconfont {
  634. font-size: 30rpx;
  635. }
  636. .icon-shijian {
  637. color: #FC8327;
  638. }
  639. .icon-tishi {
  640. color: #E93323;
  641. }
  642. .status_info {
  643. font-size: 22rpx;
  644. color: #666666;
  645. margin: 10rpx 0 0 36rpx;
  646. }
  647. }
  648. }
  649. .createTime {
  650. font-size: 24rpx;
  651. font-family: PingFang SC-Regular, PingFang SC;
  652. font-weight: 400;
  653. color: #999999;
  654. }
  655. .tab-conts {
  656. // /deep/.container {
  657. // padding-bottom: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  658. // padding-bottom: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  659. // }
  660. }
  661. .bodyNo {
  662. border: none !important;
  663. }
  664. .foot_bar {
  665. display: flex;
  666. align-items: center;
  667. justify-content: space-between;
  668. .item {
  669. display: flex;
  670. align-items: center;
  671. color: #282828;
  672. &.icon-fenxiang {
  673. font-size: 46rpx;
  674. }
  675. }
  676. .item_count {
  677. font-size: 26rpx;
  678. display: flex;
  679. align-items: center;
  680. margin-left: 30rpx;
  681. &:first-child {
  682. margin-left: 0;
  683. }
  684. .iconfont {
  685. font-size: 40rpx;
  686. margin-right: 5rpx;
  687. }
  688. .icon-shoucang1 {
  689. @include main_color(theme);
  690. }
  691. }
  692. }
  693. .create_time {
  694. color: #909399;
  695. font-size: 22rpx;
  696. margin-top: 28rpx;
  697. }
  698. .pro_describle {
  699. overflow-x: hidden;
  700. .product_info {
  701. // line-height: 45rpx;
  702. margin-top: 30rpx;
  703. .noteTitle {
  704. font-size: 30rpx;
  705. font-family: PingFang SC-Medium, PingFang SC;
  706. font-weight: 700;
  707. color: #282828;
  708. margin-bottom: 14rpx;
  709. }
  710. .text {
  711. font-size: 28rpx;
  712. color: #282828;
  713. text-align: justify;
  714. text-justify: newspaper;
  715. word-break: break-all;
  716. }
  717. .unfold_btn {
  718. margin-left: 30rpx;
  719. font-size: 30rpx;
  720. color: #282828;
  721. font-weight: bold;
  722. }
  723. }
  724. .topicList {
  725. margin-right: -20rpx;
  726. >view {
  727. display: flex;
  728. align-items: center;
  729. border-radius: 30rpx;
  730. margin-right: 20rpx;
  731. // line-height: 62rpx;
  732. // height: 62rpx;
  733. @include main_color(theme);
  734. .text {
  735. font-size: 28rpx;
  736. }
  737. .icon {
  738. font-size: 35rpx;
  739. }
  740. }
  741. }
  742. }
  743. .imageBox {
  744. width: 702rpx;
  745. // height: 702rpx;
  746. position: relative;
  747. swiper {
  748. width: 100%;
  749. height: 100%;
  750. position: relative;
  751. }
  752. .cover {
  753. width: 702rpx;
  754. position: relative;
  755. border-radius: 10px 10px 10px 10px;
  756. /deep/image,
  757. /deep/.easy-loadimage,
  758. uni-image {
  759. width: 702rpx;
  760. border-radius: 10px 10px 10px 10px;
  761. overflow: hidden;
  762. }
  763. .circle {
  764. width: 100rpx;
  765. height: 100rpx;
  766. border-radius: 50%;
  767. background: rgba(0, 0, 0, .5);
  768. position: absolute;
  769. top: 50%;
  770. left: 50%;
  771. margin-left: -50rpx;
  772. margin-top: -50rpx;
  773. z-index: 10;
  774. line-height: 50px;
  775. text-align: center;
  776. color: #fff;
  777. }
  778. }
  779. .slide-image {
  780. width: 100%;
  781. height: 100%;
  782. border-radius: 16rpx;
  783. }
  784. .pages {
  785. position: absolute;
  786. background-color: #fff;
  787. height: 34rpx;
  788. padding: 0 10rpx;
  789. border-radius: 3rpx;
  790. right: 30rpx;
  791. bottom: 30rpx;
  792. line-height: 34rpx;
  793. font-size: 24rpx;
  794. color: #050505;
  795. }
  796. }
  797. .tab-cont {
  798. background: #fff;
  799. }
  800. .follow_count {
  801. padding: 30rpx 24rpx 20rpx 24rpx;
  802. border-bottom: 1px solid #F5F5F5;
  803. .title {
  804. padding: 0 10rpx;
  805. display: flex;
  806. align-items: center;
  807. justify-content: space-between;
  808. }
  809. .author {
  810. display: flex;
  811. align-items: center;
  812. position: relative;
  813. .level_icon {
  814. position: absolute;
  815. width: 26rpx;
  816. height: 26rpx;
  817. margin: 4rpx 0 0 6rpx;
  818. border: none;
  819. z-index: 1;
  820. bottom: 2rpx;
  821. left: 50rpx;
  822. }
  823. .picture,
  824. uni-image {
  825. width: 78rpx;
  826. height: 78rpx;
  827. border-radius: 100%;
  828. }
  829. .name {
  830. margin-left: 20rpx;
  831. color: #282828;
  832. font-size: 32rpx;
  833. font-weight: bold;
  834. align-items: center;
  835. }
  836. }
  837. .icon-fenxiang {
  838. font-size: 40rpx !important;
  839. }
  840. .time {
  841. color: #282828;
  842. font-size: 46rpx;
  843. }
  844. .product {
  845. margin-top: 20rpx;
  846. border-radius: 16rpx;
  847. }
  848. }
  849. .manage {
  850. width: 100%;
  851. background: #ffffff;
  852. box-shadow: 0 2rpx 15rpx rgba(0, 0, 0, 0.1);
  853. padding: 30rpx 24rpx;
  854. z-index: 10;
  855. border-radius: 40rpx 40rpx 0 0;
  856. .items {
  857. // border-bottom: 1px solid #EEEEEE;
  858. color: #333333;
  859. font-size: 28rpx;
  860. display: flex;
  861. justify-content: center;
  862. margin-bottom: 64rpx;
  863. &:last-child {
  864. border-bottom: none;
  865. }
  866. .iconfont {
  867. margin: 0 16rpx 0;
  868. }
  869. }
  870. }
  871. </style>