index.vue 24 KB

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