index.vue 23 KB

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