index.vue 21 KB

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