index-bak.vue 21 KB

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