index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868
  1. <template>
  2. <view :data-theme="theme" class="discover borderPad">
  3. <!-- 表单 -->
  4. <form v-if="!topicShow" @submit="formSubmit" report-submit='true'>
  5. <view class="release_content">
  6. <view class="release_item">
  7. <view class="title mb30">
  8. <input placeholder='填写标题会有更多赞噢~' name="title" placeholder-class='placeholder' v-model="formData.title" maxlength="20" />
  9. </view>
  10. <view class="textarea">
  11. <textarea :placeholder="formData.type == 1?'分享使用体验和心得,获得更多点赞和关注哦~(600字以内)':'分享使用体验和心得,获得更多点赞和关注哦~(200字以内)'"
  12. auto-height name="comment" placeholder-class='placeholder' v-model="formData.content" :maxlength="formData.type == 1?'600':'200'"></textarea>
  13. <view class="discoverlist acea-row mt-10">
  14. <view v-for="(item, index) in discoverTopicList" :key="item.id" class="list mr-12 font-color">
  15. <text class="icon iconfont icon-huati"></text>{{item.name}}
  16. </view>
  17. </view>
  18. </view>
  19. <view class="photo_count mt-30">
  20. <view class="input_photo acea-row row-middle">
  21. <view class="pictrue" v-if="formData.video">
  22. <image class="video-bg" mode="widthFix" src="../static/images/video_bg.png"></image>
  23. <view class="videoHover" @click="videoshow">
  24. <view>
  25. <text class="iconfont icon-24gf-play"></text>
  26. </view>
  27. </view>
  28. <text class="video-text">点击可预览视频</text>
  29. <view class="close_btn" @click="formData.video = ''"><text class="iconfont icon-guanbi4"></text></view>
  30. </view>
  31. <view class="pictrue" v-for="(item, index) in image" :key="index">
  32. <easy-loadimage mode="widthFix" :image-src="item.url"></easy-loadimage>
  33. <text class="cover_text" v-if="item.isCover">封面</text>
  34. <view class="close_btn" @click="DelPic(index)"><text class="iconfont icon-guanbi4"></text></view>
  35. <view class="cover_change" v-if="!item.isCover" @click="onChangeCover(item, index)">更换封面
  36. </view>
  37. </view>
  38. <view v-if="image.length < 9 && !formData.video" class="pictrue acea-row row-center-wrapper row-column add"
  39. @click="upload('image')">
  40. <view><text class='iconfont icon-paizhao'></text></view>
  41. <view class="text">添加图片</view>
  42. </view>
  43. <view v-if="image.length === 0 && !formData.video" class="pictrue acea-row row-center-wrapper row-column add"
  44. @click="upload('video',1)">
  45. <view><text class='iconfont icon-tianjiashipin'></text></view>
  46. <view class="text">添加视频</view>
  47. </view>
  48. <view v-if="formData.video && image.length=== 0" class="pictrue acea-row row-center-wrapper row-column add"
  49. @click="upload('video',2)">
  50. <view><text class='iconfont icon-paizhao'></text></view>
  51. <view class="text">添加封面</view>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- <view @click="addTopic" class="flex flex-wrap mt-120">
  56. <view class="h-52 px-16 rd-30rpx border-eee flex-center fs-24">
  57. <span class="line-heightOne">#话题</span>
  58. </view>
  59. </view> -->
  60. </view>
  61. </view>
  62. <view class="release_content">
  63. <view class="release_item" style="padding: 0 24rpx;">
  64. <!-- <view class='item acea-row row-between-wrapper' @click.stop="addProduct">
  65. <view class='name color28'><text class="iconfont icon-tianjiabaobei"></text>添加宝贝({{productList.length}})
  66. </view>
  67. <view class="select">
  68. <view class="select_count">
  69. <text v-if="productList.length == 0" class="text">请选择</text>
  70. <view v-else class="text">
  71. <image class="image" v-for="(item,index) in productList" :key="index" :src="item.image || item.productImage"></image>
  72. </view>
  73. <text class="iconfont icon-xiangyou"></text>
  74. </view>
  75. </view>
  76. </view> -->
  77. <view class='item acea-row row-between-wrapper'>
  78. <view class='name color28'><text class="iconfont icon-neirongfenlei"></text>内容分类
  79. </view>
  80. <view class="select">
  81. <view class="select_count">
  82. <picker class="pickerIpt" @change="bindSexChange" :value="sexindex" :range="categoryList" range-key="name">
  83. <text v-if="!categoryName" class="text">请选择</text>
  84. <view class="uni-input color28 text">{{categoryName}}</view>
  85. </picker>
  86. <text @change="bindSexChange" class="iconfont icon-xiangyou"></text>
  87. </view>
  88. </view>
  89. </view>
  90. <view v-if="!replyPlatformSwitch" class='item acea-row row-between-wrapper'>
  91. <view class='name color28'>总平台禁止评论</view>
  92. </view>
  93. <view v-else class='item acea-row row-between-wrapper'>
  94. <view class='name color28'><text class="iconfont icon-pinglun3"></text>是否禁止评论</view>
  95. <view class="select">
  96. <switch @change="switch1Change" :checked="replyStatus" :color="indicatorBg" style="transform:scale(0.7)" />
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <button class="release_btn button" form-type="submit">发布</button>
  102. </form>
  103. <!-- 商品列表 -->
  104. <tui-bottom-popup class="topic" :zIndex="1002" :maskZIndex="1001" :show="popupShow" @close="popup">
  105. <associated-product v-if="popupShow" :checkedObj="productList" @getProduct="getProduct" @close="popup"></associated-product>
  106. </tui-bottom-popup>
  107. <!-- 话题列表 -->
  108. <tui-bottom-popup class="topic" :zIndex="1002" :maskZIndex="1001" :show="topicShow" @close="popupTopic">
  109. <discover-topic v-if="topicShow" @onClose="popupTopic"></discover-topic>
  110. </tui-bottom-popup>
  111. <!--视频预览弹窗-->
  112. <tui-bottom-popup class="topic" :zIndex="1002" :maskZIndex="1001" :show="showVideo" @close="showVideo=false">
  113. <view v-if="showVideo" class="video-count">
  114. <!--#ifndef APP-PLUS-->
  115. <video id="myVideo" class="videoLink" autoplay loop muted :src="formData.video"></video>
  116. <!--#endif-->
  117. <!--#ifdef APP-PLUS-->
  118. <view v-html="videoHtml"></view>
  119. <!--#endif-->
  120. </view>
  121. </tui-bottom-popup>
  122. </view>
  123. </template>
  124. <script>
  125. // #ifdef MP
  126. import {
  127. base64src
  128. } from '@/utils/base64src.js'
  129. // #endif
  130. import {
  131. mapGetters
  132. } from "vuex";
  133. import {
  134. setThemeColor
  135. } from '@/utils/setTheme.js'
  136. import {
  137. noteDetailApi,
  138. communityCategoryListApi,
  139. noteUpdateApi,
  140. noteAddApi,
  141. replyPlatformSwitchApi
  142. } from '@/api/discover.js';
  143. import {
  144. Debounce
  145. } from '@/utils/validate.js';
  146. import {
  147. HTTP_REQUEST_URL
  148. } from '@/config/app.js';
  149. import tuiBottomPopup from "../components/tui-bottom-popup.vue"
  150. import associatedProduct from "../components/associatedProduct.vue"
  151. import easyLoadimage from '@/components/base/easy-loadimage.vue';
  152. import discoverTopic from '../components/discover_topic.vue';
  153. let app = getApp();
  154. export default {
  155. components: {
  156. tuiBottomPopup,
  157. associatedProduct,
  158. easyLoadimage,
  159. discoverTopic
  160. },
  161. computed: {
  162. ...mapGetters(['discoverTopic']),
  163. videoHtml: function() {
  164. return `<video autoplay loop muted controls="controls" width="100%" height="870px"><source src="${this.formData.video}" type="video/mp4"></video>`;
  165. }
  166. },
  167. data() {
  168. return {
  169. topicShow: false,
  170. popupShow: false,
  171. theme: app.globalData.theme,
  172. image: [], //图片集合
  173. cover: '', //视频第一帧作为封面
  174. filesLen: 0,
  175. exceeded_list: [],
  176. uploadMaxSize: 50, //上传图片大小限制
  177. formData: {
  178. categoryId: 0,
  179. image: "",
  180. content: "",
  181. cover: '',
  182. topicIds: "",
  183. proIds: "",
  184. video: '',
  185. id: 0,
  186. replyStatus: 1,
  187. title: "",
  188. type: 1 //1图文,2视频
  189. },
  190. productList: [], //商品
  191. topicList: [], //话题
  192. noteId: 0, //内容id
  193. sexindex: 0, //分类索引
  194. categoryName: '', //分类名称
  195. categoryList: [], //逛逛分类
  196. indicatorBg: '#e93323',
  197. discoverTopicList: [], //选中的话题列表
  198. replyStatus: false, //开关
  199. showVideo: false, //预览视频弹窗
  200. replyPlatformSwitch: false, //评论总开关状态,true开启,false关闭
  201. videoContext: ''
  202. }
  203. },
  204. onShow() {
  205. this.getReplyPlatformSwitch();
  206. },
  207. mounted() {
  208. // #ifndef APP-PLUS
  209. this.videoContext = uni.createVideoContext('myVideo', this);
  210. // #endif
  211. },
  212. onLoad(options) {
  213. this.discoverTopicList = [];
  214. this.$store.commit('DiscoverTopic', this.discoverTopicList);
  215. this.indicatorBg = setThemeColor();
  216. this.noteId = options.noteId ? Number(options.noteId) : 0;
  217. if (this.noteId > 0) this.getDetail();
  218. this.getCommunityCategoryList();
  219. this.videoContext = uni.createVideoContext("myvideo", this);
  220. },
  221. // 滚动监听
  222. onPageScroll(e) {
  223. // 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
  224. uni.$emit('scroll');
  225. },
  226. methods: {
  227. /*更换封面*/
  228. onChangeCover(item) {
  229. uni.showLoading({
  230. title: '加载中',
  231. mask: true
  232. })
  233. setTimeout(() => {
  234. this.image.map(items => {
  235. items.isCover = false
  236. })
  237. this.$set(item, 'isCover', true);
  238. uni.hideLoading();
  239. }, 500);
  240. },
  241. /*获取评论总开关状态*/
  242. getReplyPlatformSwitch() {
  243. replyPlatformSwitchApi().then(res => {
  244. this.replyPlatformSwitch = res.data == 1 ? true : false;
  245. })
  246. },
  247. /*查看视频*/
  248. videoshow() {
  249. this.showVideo = true
  250. this.videoContext = uni.createVideoContext('myVideo', this);
  251. this.$nextTick(() => {
  252. this.videoContext.play();
  253. })
  254. },
  255. //开关
  256. switch1Change: function(e) {
  257. this.formData.replyStatus = e.detail.value ? 2 : 1;
  258. },
  259. //分类列表
  260. getCommunityCategoryList() {
  261. communityCategoryListApi().then(res => {
  262. this.categoryList = res.data;
  263. })
  264. },
  265. //选择分类
  266. bindSexChange(e) {
  267. this.sexindex = e.detail.value;
  268. this.formData.categoryId = this.categoryList[this.sexindex].id;
  269. this.categoryName = this.categoryList[this.sexindex].name;
  270. },
  271. /*获取图文详情*/
  272. getDetail() {
  273. noteDetailApi(this.noteId).then(res => {
  274. this.formData = res.data;
  275. this.productList = res.data.productList || [];
  276. this.topicList = res.data.topicList || [];
  277. //视频2 图文1
  278. if (this.formData.type === 2) {
  279. this.image = [{
  280. url: res.data.cover,
  281. isCover: true
  282. }];
  283. } else {
  284. let images = res.data.image ? res.data.image.split(',') : [];
  285. let index = images.findIndex(item => {
  286. if (item === this.formData.cover) {
  287. return true
  288. }
  289. });
  290. images.map(item => {
  291. this.image.push({
  292. isCover: false,
  293. url: item
  294. })
  295. })
  296. this.$set(this.image[index], 'isCover', true);
  297. }
  298. this.discoverTopicList = res.data.topicList || [];
  299. this.$store.commit('DiscoverTopic', this.discoverTopicList);
  300. this.replyStatus = this.formData.replyStatus == 2 ? true : false;
  301. this.categoryName = this.formData.categoryName;
  302. this.sexindex = this.formData.categoryId;
  303. }).catch(err => {
  304. return this.$util.Tips({
  305. title: err
  306. });
  307. })
  308. },
  309. /*删除话题*/
  310. onDel(i) {
  311. this.discoverTopicList.splice(i, 1);
  312. this.$store.commit('DiscoverTopic', this.discoverTopicList);
  313. },
  314. /*参与话题*/
  315. addTopic() {
  316. this.topicShow = true;
  317. },
  318. popup() {
  319. this.popupShow = false;
  320. },
  321. popupTopic() {
  322. this.topicShow = false;
  323. this.discoverTopicList = [...this.discoverTopic]
  324. },
  325. /*添加宝贝*/
  326. addProduct() {
  327. this.popupShow = true;
  328. },
  329. // 上传
  330. upload(name, n) {
  331. if (name === 'image') {
  332. this.formData.type = 1
  333. this.getImage();
  334. } else {
  335. this.formData.type = 2
  336. n === 1 ? this.getVideo() : this.getImage();
  337. }
  338. },
  339. //传图片
  340. getImage() {
  341. this.$util.uploadImageOne({
  342. name: 'multipart',
  343. model: "product",
  344. pid: 1,
  345. count: 9
  346. }, res => {
  347. let data = []
  348. res.map(item => {
  349. data.push({
  350. isCover: false,
  351. url: item
  352. })
  353. })
  354. this.image = [...this.image, ...data];
  355. if (this.image && this.image.length) this.image[0].isCover = true;
  356. });
  357. },
  358. //传视频
  359. getVideo() {
  360. this.$util.uploadVideo({
  361. name: 'multipart',
  362. model: "product",
  363. pid: 1,
  364. }, async res => {
  365. this.formData.video = res.fils;
  366. // #ifdef H5
  367. this.image = [{
  368. url: res.coverURL,
  369. isCover: true
  370. }];
  371. // #endif
  372. });
  373. },
  374. /**删除图片*/
  375. DelPic(index) {
  376. this.image.splice(index, 1);
  377. },
  378. /*获取选中的宝贝*/
  379. getProduct(data) {
  380. this.productList = data;
  381. this.popupShow = false;
  382. },
  383. /**
  384. * 提交数据
  385. */
  386. formSubmit: Debounce(function(e) {
  387. let that = this;
  388. // if (that.image.length == 0) return that.$util.Tips({
  389. // title: '请添加内容图片'
  390. // });
  391. // if (that.formData.type == 2 && !that.formData.video) {
  392. // return that.$util.Tips({
  393. // title: '请添加内容视频'
  394. // });
  395. // }
  396. if (!that.formData.categoryId) return that.$util.Tips({
  397. title: '请选择内容分类'
  398. });
  399. if (this.formData.type == 1) {
  400. let images = [];
  401. this.image.map(item => {
  402. images.push(item.url)
  403. });
  404. this.formData.image = images.join(',');
  405. let index = this.image.findIndex(item => {
  406. if (item.isCover) {
  407. return true
  408. }
  409. });
  410. if (this.image.length) this.formData.cover = this.image[index].url;
  411. } else {
  412. if (this.image.length > 0) {
  413. this.formData.cover = this.image[0].url;
  414. } else {
  415. this.formData.cover = this.cover;
  416. }
  417. }
  418. this.formData.proIds = this.productList.map(val => val.productId).join(',');
  419. this.formData.topicIds = this.discoverTopicList.map(val => val.id).join(',');
  420. // if (!that.formData.cover) return that.$util.Tips({
  421. // title: '请上传封面图'
  422. // });
  423. uni.showLoading({
  424. title: '保存中',
  425. mask: true
  426. })
  427. that.noteId ? noteUpdateApi(that.formData).then(res => {
  428. uni.hideLoading()
  429. that.$util.Tips({
  430. title: '提交成功',
  431. icon: 'success'
  432. });
  433. setTimeout(function() {
  434. uni.redirectTo({
  435. url: '/pages/discover/discover_user/index'
  436. })
  437. }, 500);
  438. }).catch(err => {
  439. uni.hideLoading()
  440. return that.$util.Tips({
  441. title: err
  442. });
  443. }) : noteAddApi(that.formData).then(res => {
  444. that.$util.Tips({
  445. title: '提交成功',
  446. icon: 'success'
  447. });
  448. uni.hideLoading()
  449. setTimeout(function() {
  450. uni.redirectTo({
  451. url: '/pages/discover/discover_user/index'
  452. })
  453. }, 500);
  454. }).catch(err => {
  455. uni.hideLoading()
  456. return that.$util.Tips({
  457. title: err
  458. });
  459. })
  460. })
  461. }
  462. }
  463. </script>
  464. <style lang="scss" scoped>
  465. .pickerIpt {
  466. width: 300rpx;
  467. }
  468. .icon-huati {
  469. font-size: 24rpx;
  470. }
  471. .icon-guanbi5 {
  472. font-size: 20rpx;
  473. }
  474. .discover {
  475. padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/ */
  476. padding-bottom: constant(safe-area-inset-bottom) !important; ///兼容 IOS<11.2/
  477. }
  478. .topic {
  479. /deep/.tui-popup-class {
  480. height: 95% !important;
  481. }
  482. }
  483. .discoverlist {
  484. .list {
  485. // height: 62rpx;
  486. // line-height: 62rpx;
  487. // border-radius: 31rpx;
  488. @include main_color(theme);
  489. border: none;
  490. font-size: 24rpx;
  491. .icon {
  492. margin-right: 2rpx;
  493. }
  494. }
  495. }
  496. .crop_btn {
  497. line-height: 90rpx;
  498. height: 90rpx;
  499. height: calc(90rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  500. height: calc(90rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  501. }
  502. .container {
  503. position: fixed;
  504. top: 0;
  505. left: 0;
  506. z-index: 20;
  507. width: 750rpx;
  508. height: 100vh;
  509. }
  510. .release_content {
  511. margin-top: 20rpx;
  512. .release_tab {
  513. border-radius: 16rpx 16rpx 0 0;
  514. border-bottom: 1rpx solid #E4E4E4;
  515. background: #fff;
  516. align-items: center;
  517. justify-content: center;
  518. height: 86rpx;
  519. .tab_item {
  520. margin: 0 40rpx;
  521. font-size: 32rpx;
  522. color: #999;
  523. position: relative;
  524. line-height: 86rpx;
  525. cursor: pointer;
  526. &.on {
  527. color: #E93323;
  528. &::after {
  529. content: "";
  530. display: inline-block;
  531. width: 100%;
  532. height: 3rpx;
  533. background: #E93323;
  534. position: absolute;
  535. bottom: 2rpx;
  536. left: 0;
  537. }
  538. }
  539. .iconfont {
  540. margin-right: 10rpx;
  541. font-size: 32rpx;
  542. }
  543. }
  544. }
  545. .release_item {
  546. background: #ffffff;
  547. padding: 30rpx;
  548. border-radius: 10rpx;
  549. }
  550. .photo_count {}
  551. }
  552. /deep/.input_photo .easy-loadimage,
  553. /deep/.input_photo uni-image,
  554. /deep/.input_photo image {
  555. width: 200rpx;
  556. height: 200rpx;
  557. border-radius: 12rpx !important;
  558. }
  559. .input_photo .pictrue {
  560. width: 200rpx;
  561. height: 200rpx;
  562. border-radius: 12rpx !important;
  563. margin-right: 20rpx;
  564. position: relative;
  565. overflow: hidden;
  566. &:nth-child(3n) {
  567. margin-right: 0;
  568. }
  569. .close_btn {
  570. width: 30rpx;
  571. height: 30rpx;
  572. background: rgba(0, 0, 0, .6);
  573. border-radius: 0 12rpx 0 12rpx;
  574. position: absolute;
  575. top: 0;
  576. right: 0;
  577. display: flex;
  578. align-items: center;
  579. justify-content: center;
  580. z-index: 10;
  581. .iconfont {
  582. color: #ffffff;
  583. font-size: 12rpx;
  584. }
  585. }
  586. .cover_text {
  587. display: flex;
  588. width: 58rpx;
  589. height: 29rpx;
  590. background: #E93323;
  591. border-radius: 0px 12rpx 0px 12rpx;
  592. position: absolute;
  593. left: 0;
  594. bottom: 0;
  595. z-index: 10;
  596. align-items: center;
  597. justify-content: center;
  598. font-size: 18rpx;
  599. color: #fff;
  600. }
  601. .cover_change {
  602. width: 200rpx;
  603. height: 40rpx;
  604. background: rgba(0, 0, 0, 0.5);
  605. border-radius: 0px 0px 12rpx 12rpx;
  606. opacity: 1;
  607. color: #fff;
  608. text-align: center;
  609. font-size: 18rpx;
  610. position: absolute;
  611. z-index: 10;
  612. bottom: 0;
  613. line-height: 38rpx;
  614. }
  615. }
  616. /deep/.loading-img {
  617. width: 200rpx;
  618. height: 200rpx;
  619. border-radius: 12rpx;
  620. }
  621. .input_photo .pictrue {
  622. margin-bottom: 20rpx;
  623. .videoHover {
  624. width: 200rpx;
  625. height: 200rpx;
  626. display: flex;
  627. align-items: center;
  628. justify-content: center;
  629. position: absolute;
  630. top: 0;
  631. left: 0;
  632. z-index: 10;
  633. >view {
  634. width: 50rpx;
  635. height: 50rpx;
  636. background: #000000;
  637. border-radius: 50rpx;
  638. display: flex;
  639. align-items: center;
  640. justify-content: center;
  641. .iconfont {
  642. color: #ffffff;
  643. font-size: 21rpx;
  644. }
  645. }
  646. }
  647. .video-text {
  648. display: block;
  649. width: 200rpx;
  650. text-align: center;
  651. color: #ffffff;
  652. font-size: 18rpx;
  653. z-index: 13;
  654. position: absolute;
  655. bottom: 20rpx;
  656. }
  657. video {
  658. width: 200rpx;
  659. height: 200rpx;
  660. border-radius: 12rpx;
  661. }
  662. }
  663. .input_photo .add {
  664. background: #f6f6f6;
  665. color: #666666;
  666. .iconfont {
  667. font-size: 50rpx;
  668. }
  669. .text {
  670. margin-top: 20rpx;
  671. font-size: 27rpx;
  672. }
  673. }
  674. .textarea {
  675. padding-top: 30rpx;
  676. border-top: 1px solid #EEEEEE;
  677. // min-height: 120rpx;
  678. textarea {
  679. font-size: 28rpx;
  680. width: 100%;
  681. box-sizing: border-box;
  682. // overflow: hidden;
  683. }
  684. }
  685. .title {
  686. font-size: 30rpx !important;
  687. margin-top: 20rpx;
  688. .placeholder {
  689. font-size: 30rpx !important;
  690. }
  691. }
  692. .textarea .placeholder,
  693. .title .placeholder {
  694. color: #999999;
  695. overflow: auto !important;
  696. }
  697. .release_item .item {
  698. height: 106rpx;
  699. border-bottom: 1rpx solid #eee;
  700. position: relative;
  701. font-size: 30rpx;
  702. &:nth-child(3) {
  703. height: auto;
  704. padding: 30rpx 0 10rpx;
  705. }
  706. &:last-child {
  707. border-bottom: none;
  708. }
  709. .name {
  710. .iconfont {
  711. margin-right: 20rpx;
  712. font-size: 32rpx;
  713. }
  714. }
  715. .select {
  716. // width: 300rpx;
  717. color: #bbbbbb;
  718. text-align: right;
  719. .select_count {
  720. display: flex;
  721. align-items: center;
  722. justify-content: flex-end;
  723. }
  724. .text {
  725. margin-right: 15rpx;
  726. text-align: right;
  727. .image,
  728. image,
  729. uni-image {
  730. width: 60rpx;
  731. height: 60rpx;
  732. border-radius: 6rpx;
  733. overflow: hidden;
  734. margin-right: 10rpx;
  735. }
  736. }
  737. .iconfont {
  738. font-size: 24rpx;
  739. }
  740. .text_name {
  741. color: var(--view-theme);
  742. padding: 5rpx 12rpx;
  743. background: var(--view-minorColor);
  744. border-radius: 23rpx;
  745. font-size: 24rpx;
  746. margin-right: 10rpx;
  747. .icon {
  748. color: var(--view-theme);
  749. font-weight: bold;
  750. font-size: 24rpx;
  751. }
  752. .title {
  753. margin: 0 10rpx;
  754. }
  755. .iconfont {
  756. font-size: 16rpx;
  757. }
  758. }
  759. }
  760. }
  761. .button {
  762. width: 710rpx;
  763. height: 86rpx;
  764. line-height: 84rpx;
  765. color: #ffffff;
  766. text-align: center;
  767. font-size: 32rpx;
  768. @include main_bg_color(theme);
  769. border-radius: 43rpx;
  770. }
  771. .release_btn {
  772. position: fixed;
  773. bottom: 30rpx;
  774. padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  775. padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
  776. }
  777. .video-count {
  778. position: fixed;
  779. width: 600rpx;
  780. height: 500rpx;
  781. top: 50%;
  782. left: 50%;
  783. margin-left: -300rpx;
  784. margin-top: -250rpx;
  785. z-index: 100;
  786. display: flex;
  787. align-items: center;
  788. justify-content: center;
  789. .videoLink {
  790. width: 600rpx;
  791. height: 500rpx;
  792. }
  793. }
  794. </style>