index.vue 22 KB

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