index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  1. <template>
  2. <view :style="viewColor">
  3. <form @submit="formSubmit" report-submit='true'>
  4. <view class="release_content">
  5. <view>
  6. <view class="release_item">
  7. <view class="photo_count">
  8. <view class="input_photo acea-row row-middle">
  9. <block v-if="tabLength == 2 || tabLength == 3">
  10. <view class="pictrue" v-if="formData.video_link">
  11. <image class="video-bg" mode="widthFix" src="../static/images/video_bg.png"></image>
  12. <view class="videoHover" @click="videoshow">
  13. <view>
  14. <text class="iconfont icon-24gf-play"></text>
  15. </view>
  16. </view>
  17. <text class="video-text">点击可预览视频</text>
  18. <view class="close_btn" @click="deleteLink"><text class="iconfont icon-guanbi4"></text></view>
  19. </view>
  20. <view v-else-if="!formData.video_link&&formData.image.length<=1" class="pictrue acea-row row-center-wrapper row-column add" @click="uploadVideo">
  21. <view><text class='iconfont icon-tianjiashipin'></text></view>
  22. <view class="text">添加视频</view>
  23. </view>
  24. <block v-if="(tabLength == 3 && formData.video_link) || tabLength==2">
  25. <view v-if="formData.image.length < 1" class="pictrue acea-row row-center-wrapper row-column add" @click.stop="clk(1)">
  26. <view><text class='iconfont icon-fengmian'></text></view>
  27. <view class="text">添加图片</view>
  28. </view>
  29. </block>
  30. </block>
  31. <view class="pictrue" v-for="(item, index) in formData.image" :key="index">
  32. <easy-loadimage mode="widthFix" :image-src="item"></easy-loadimage>
  33. <text class="cover_text" v-if="index == 0">封面</text>
  34. <view class="close_btn" @click="DelPic(index)"><text class="iconfont icon-guanbi4"></text></view>
  35. </view>
  36. <!--图文或者图文加视频-->
  37. <block v-if="(tabLength == 1 && !formData.video_link) || (tabLength == 3 && !formData.video_link)">
  38. <view v-if="formData.image.length < 9" class="pictrue acea-row row-center-wrapper row-column add" @click.stop="clk(9)">
  39. <view><text class='iconfont icon-icon25201'></text></view>
  40. <view class="text">添加图片</view>
  41. </view>
  42. </block>
  43. </view>
  44. </view>
  45. <view class="textarea">
  46. <textarea placeholder='分享使用体验和心得,获得更多点赞和关注哦~(1000字以内)' name="comment" placeholder-class='placeholder'v-model="formData.content" maxlength="1000"></textarea>
  47. </view>
  48. </view>
  49. <view class="release_item">
  50. <view class='item acea-row row-between-wrapper'>
  51. <view class='name'><text class="iconfont icon-baobeilianjie"></text>添加宝贝({{productList.length}})</view>
  52. <view class="select">
  53. <view class="select_count" @click.stop="addProduct">
  54. <text v-if="productList.length == 0" class="text">选择商品</text>
  55. <view v-else class="text">
  56. <image class="image" v-for="(item,index) in productList" :key="index" :src="item.image || (item.spu && item.spu.image)"></image>
  57. </view>
  58. <text class="iconfont icon-xiangyou"></text>
  59. </view>
  60. </view>
  61. </view>
  62. <view class='item acea-row row-between-wrapper'>
  63. <view class='name'><text class="iconfont icon-canyuhuati"></text>参与话题</view>
  64. <view class="select">
  65. <view class="select_count" @click="addTopic">
  66. <text v-if="!topicName.topic_name"class="text">选择话题</text>
  67. <text v-else class="text_name" @click.stop="deleteTopic">
  68. <text class="icon">#</text>
  69. <text class="title">{{topicName.topic_name}}</text>
  70. <text class="iconfont icon-guanbi5"></text>
  71. </text>
  72. <text class="iconfont icon-xiangyou"></text>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <button class="release_btn button" form-type="submit">发布</button>
  79. </view>
  80. </form>
  81. <!--视频预览弹窗-->
  82. <view v-if="showVideo" class="video-count">
  83. <!--#ifndef APP-PLUS-->
  84. <video id="myVideo" class="videoLink" autoplay loop :src="formData.video_link"></video>
  85. <!--#endif-->
  86. <!--#ifdef APP-PLUS-->
  87. <view v-html="videoHtml"></view>
  88. <!--#endif-->
  89. </view>
  90. <view class='mask' catchtouchmove="true" :hidden='showVideo==false' @click.stop="showVideo=false"></view>
  91. <avatar @upload="doUpload" @getName="getImgName" quality="1" ref="avatar" selWidth="250upx" selHeight="250upx"></avatar>
  92. <!-- 提到的宝贝弹窗 -->
  93. <uni-popup ref="associated" type="bottom">
  94. <associated @close="close" @getProduct="getProduct" :checkedObj="productList"></associated>
  95. </uni-popup>
  96. <!-- 话题弹窗 -->
  97. <uni-popup ref="participateTopic" type="bottom">
  98. <participate-topic @close="close" @getTopic="getTopic"></participate-topic>
  99. </uni-popup>
  100. <!-- 绑定手机号 -->
  101. <uni-popup ref="bindmobile" type="bottom">
  102. <bindmobile @close="closepoup" :isCommuity="true"></bindmobile>
  103. </uni-popup>
  104. </view>
  105. </template>
  106. <script>
  107. // +----------------------------------------------------------------------
  108. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  109. // +----------------------------------------------------------------------
  110. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  111. // +----------------------------------------------------------------------
  112. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  113. // +----------------------------------------------------------------------
  114. // | Author: CRMEB Team <admin@crmeb.com>
  115. // +----------------------------------------------------------------------
  116. import { mapGetters } from "vuex";
  117. import avatar from "@/components/yq-avatar/yq-avatar.vue";
  118. import associated from '../components/associated.vue';
  119. import participateTopic from '../components/participateTopic.vue';
  120. import bindmobile from '@/components/bindmobile.vue';
  121. import {TOKENNAME, HTTP_REQUEST_URL} from '@/config/app.js';
  122. import { toLogin } from '@/libs/login.js';
  123. import {createPlantApi, updatePlantApi, plantDetailApi, orderAssociatePlantApi} from "@/api/community";
  124. import { getUserInfo } from '@/api/user.js';
  125. import { setStorage, getStorage } from '../../../libs/uniApi.js';
  126. import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
  127. import { configMap } from '@/utils';
  128. import store from '@/store';
  129. export default {
  130. components: {
  131. avatar,
  132. associated,
  133. participateTopic,
  134. bindmobile,
  135. easyLoadimage
  136. },
  137. data() {
  138. return {
  139. formData: {
  140. image: [],
  141. content: "",
  142. topic_id: "",
  143. spu_id: [],
  144. video_link: ''
  145. },
  146. imageSrc: '',
  147. productList: [],
  148. topicName: {},
  149. isUpload: true,
  150. showCd: false,
  151. id: "",
  152. order_id: "",
  153. imgName: "",
  154. upload_max: 50,
  155. uploadUrl: `${HTTP_REQUEST_URL}/api/upload/video`,
  156. tabList: [
  157. {name: '图文', value: 1, icon: 'icon-tuwen'},
  158. {name: '视频', value: 2, icon: 'icon-shipin'},
  159. ],
  160. tabActive: 1,
  161. tabLength: 3,
  162. isPlay: false,
  163. videoContext: "",
  164. video_link: "",
  165. showVideo: false,
  166. videoplay: false,
  167. videoContext: '',
  168. };
  169. },
  170. computed: {
  171. ...mapGetters(['isLogin', 'viewColor', 'uid']),
  172. ...configMap({community_app_switch: [],community_auth:0}),
  173. videoHtml: function() {
  174. return `<video autoplay loop muted controls="controls" width="100%" height="500rpx"><source src="${this.formData.video_link}" type="video/mp4"></video>`;
  175. }
  176. },
  177. watch:{},
  178. mounted() {
  179. // #ifndef APP-PLUS
  180. this.videoContext = uni.createVideoContext('myVideo', this);
  181. // #endif
  182. },
  183. onLoad(options) {
  184. this.id = options.id;
  185. this.order_id = options.order_id;
  186. if(this.community_app_switch.length == 1){
  187. if(this.community_app_switch[0] == 1){ //只显示图文
  188. this.tabLength = 1
  189. }else{
  190. this.tabLength = 2 //只显示视频
  191. }
  192. }else if(this.community_app_switch.length == 0){
  193. this.tabLength = 1
  194. }
  195. if (!this.isLogin) {
  196. toLogin()
  197. }else{
  198. if(this.id){
  199. this.getDetail()
  200. } else {
  201. if(this.tabLength == 2 || this.tabLength == 3){
  202. this.formData.video_link = getStorage('video_link') || ""
  203. console.log(getStorage('imageArr'))
  204. if(this.tabLength == 2){
  205. this.formData.image = getStorage('imageArr')&&getStorage('imageArr').length>0 ? [getStorage('imageArr')[0]] : []
  206. }else{
  207. this.formData.image = getStorage('imageArr') || []
  208. }
  209. }else{
  210. this.formData.image = getStorage('imageArr') || []
  211. }
  212. }
  213. if(this.order_id)this.getOrderGoods()
  214. }
  215. this.videoContext = uni.createVideoContext("myvideo", this);
  216. },
  217. methods: {
  218. /*获取图文详情*/
  219. getDetail(){
  220. let that = this
  221. plantDetailApi(that.id).then(res => {
  222. that.formData = res.data
  223. that.productList = res.data.relevance || []
  224. that.topicName = res.data.topic || {}
  225. }).catch(err => {
  226. return that.$util.Tips({
  227. title: err
  228. });
  229. })
  230. },
  231. /*获取关联订单商品*/
  232. getOrderGoods(){
  233. let that = this
  234. orderAssociatePlantApi(that.order_id).then(res => {
  235. that.productList = res.data || []
  236. that.formData.spu_id = res.data.map(val => val.spu_id)
  237. }).catch(err => {
  238. return that.$util.Tips({
  239. title: err
  240. });
  241. })
  242. },
  243. /*删除话题*/
  244. deleteTopic(){
  245. this.formData.topic = {}
  246. this.topicName = {}
  247. },
  248. deleteLink(){
  249. this.formData.video_link = ""
  250. this.showVideo = false;
  251. setStorage('video_link', "");
  252. },
  253. clk(count) {
  254. let that = this
  255. that.$util.uploadImageOne({url:'upload/image',count:count}, res=> {
  256. if(count == 1){
  257. that.formData.image = [res.data.path];
  258. }else{
  259. let data = []
  260. res.map(item => {
  261. data.push(item)
  262. })
  263. that.formData.image = [...that.formData.image, ...data];
  264. if(that.formData.image.length >= 9)that.formData.image.length=9
  265. }
  266. setStorage('imageArr', that.formData.image);
  267. });
  268. },
  269. doUpload(rsp) {
  270. let that = this
  271. uni.uploadFile({
  272. url: HTTP_REQUEST_URL + '/api/upload/image/field',
  273. filePath: rsp,
  274. name: 'field',
  275. formData: {
  276. 'filename': rsp,
  277. 'name': that.imgName
  278. },
  279. header: {
  280. // #ifdef MP
  281. "Content-Type": "multipart/form-data",
  282. // #endif
  283. [TOKENNAME]: 'Bearer ' + store.state.app.token
  284. },
  285. success: (uploadFileRes) => {
  286. let imgData = JSON.parse(uploadFileRes.data)
  287. if(imgData.data.path){
  288. that.formData.image.push(imgData.data.path)
  289. uni.hideLoading()
  290. }
  291. },
  292. complete(res) {}
  293. });
  294. },
  295. // 上传视频
  296. uploadVideo() {
  297. let that = this
  298. uni.chooseVideo({
  299. sourceType: ['camera', 'album'],
  300. success: res => {
  301. uni.showLoading({
  302. title: '视频上传中',
  303. });
  304. if (Math.ceil(res.size / 1024) < that.upload_max * 1024) {
  305. uni.uploadFile({
  306. url: that.uploadUrl, //仅为示例,非真实的接口地址
  307. filePath: res.tempFilePath,
  308. name: 'file',
  309. //请求参数
  310. formData: {
  311. user: 'test'
  312. },
  313. header: {
  314. // #ifdef MP
  315. 'Content-Type': 'multipart/form-data',
  316. // #endif
  317. [TOKENNAME]: 'Bearer ' + store.state.app.token
  318. },
  319. success: uploadFileRes => {
  320. uni.hideLoading();
  321. let data = JSON.parse(uploadFileRes.data);
  322. that.formData.video_link = (data.data.src);
  323. setStorage('video_link', that.formData.video_link);
  324. },
  325. complete: a => {
  326. uni.hideLoading();
  327. },
  328. fail: function(res) {
  329. uni.hideLoading();
  330. that.Tips({
  331. title: res.message
  332. });
  333. }
  334. });
  335. } else {
  336. uni.hideLoading();
  337. uni.showModal({
  338. title: '提示',
  339. content: `视频超出限制${that.upload_max}MB`
  340. });
  341. }
  342. },
  343. fail: err => {
  344. that.$util.Tips({
  345. title: err
  346. });
  347. }
  348. });
  349. },
  350. getImgName(name){
  351. this.imgName = name
  352. },
  353. /**删除图片*/
  354. DelPic: function(index) {
  355. let that = this
  356. that.formData.image.splice(index, 1);
  357. setStorage('imageArr', that.formData.image);
  358. },
  359. /*添加宝贝*/
  360. addProduct(){
  361. this.$refs.associated.open();
  362. },
  363. /*添加话题*/
  364. addTopic(){
  365. this.$refs.participateTopic.open();
  366. },
  367. close(){
  368. this.$refs.associated.close();
  369. this.$refs.participateTopic.close();
  370. },
  371. /*查看视频*/
  372. videoshow() {
  373. this.showVideo = true
  374. this.videoContext = uni.createVideoContext('myVideo', this);
  375. this.$nextTick(()=>{
  376. this.videoContext.play();
  377. })
  378. },
  379. screenChange(e) {
  380. let fullScreen = e.detail.fullScreen; //值true为进入全屏,false为退出全屏
  381. if (!fullScreen) {
  382. this.videoplay = false
  383. //退出全屏 this.videoplay = false; // 隐藏播放盒子
  384. }
  385. },
  386. /*获取选中的宝贝*/
  387. getProduct(data){
  388. this.productList = data;
  389. this.formData.spu_id = data.map(val => val.spu_id)
  390. this.$refs.associated.close();
  391. },
  392. /*获取选中的话题*/
  393. getTopic(item){
  394. if(!item.topic_id){
  395. this.topicName = {}
  396. }else{
  397. this.topicName = item
  398. }
  399. this.formData.topic_id = item.topic_id;
  400. this.$refs.participateTopic.close();
  401. },
  402. /**
  403. * 提交数据
  404. */
  405. formSubmit: function(e) {
  406. let that = this;
  407. if(that.community_auth == 0){
  408. that.submitData()
  409. }else{
  410. getUserInfo().then(res => {
  411. /*判断是否绑定手机号*/
  412. if(res.data.phone){
  413. that.submitData()
  414. }else{
  415. that.$refs.bindmobile.open()
  416. }
  417. });
  418. }
  419. },
  420. closepoup(){
  421. this.$refs.bindmobile.close()
  422. },
  423. submitData(){
  424. let that = this;
  425. let value = that.formData;
  426. that.tabActive = that.formData.video_link ? 2 :1
  427. if (!that.isLogin) {
  428. toLogin()
  429. }else{
  430. if (value.image.length == 0) return that.$util.Tips({
  431. title: '请添加话题图片'
  432. });
  433. if (!value.content) return that.$util.Tips({
  434. title: '请分享使用心得和体会'
  435. });
  436. if(that.tabLength == 2 && !value.video_link){
  437. return that.$util.Tips({
  438. title: '请添加话题视频'
  439. });
  440. }
  441. if(that.id){
  442. if (value.relevance.length){
  443. value.spu_id = value.relevance.map(val => (val.spu&&val.spu.spu_id) || val.spu_id)
  444. }
  445. }
  446. value.order_id = that.order_id
  447. value.is_type = that.tabActive
  448. uni.showLoading({
  449. title: '保存中',
  450. mask: true
  451. })
  452. that.id ? updatePlantApi(that.id, value).then(res => {
  453. uni.hideLoading()
  454. that.$util.Tips({
  455. title: res.messge,
  456. icon: 'success'
  457. });
  458. setStorage('video_link', "");
  459. setStorage('imageArr', []);
  460. if(that.tabActive == 2){
  461. uni.navigateTo({
  462. //#ifdef APP
  463. url: '/pages/short_video/appSwiper/index?id='+res.data.community_id+'&user=1&uid='+that.uid
  464. //#endif
  465. //#ifndef APP
  466. url: '/pages/short_video/nvueSwiper/index?id='+res.data.community_id+'&user=1&uid='+that.uid
  467. //#endif
  468. });
  469. }else{
  470. uni.redirectTo({
  471. url:'/pages/plantGrass/plant_detail/index?id='+res.data.community_id+'&type='+that.tabActive
  472. })
  473. }
  474. }).catch(err => {
  475. return that.$util.Tips({
  476. title: err
  477. });
  478. }) : createPlantApi(value).then(res => {
  479. uni.hideLoading()
  480. that.$util.Tips({
  481. title: res.messge,
  482. icon: 'success'
  483. });
  484. setStorage('video_link', "");
  485. setStorage('imageArr', []);
  486. if(that.tabActive == 2){
  487. uni.navigateTo({
  488. //#ifdef APP
  489. url: '/pages/short_video/appSwiper/index?id='+res.data.community_id+'&user=1&uid='+that.uid
  490. //#endif
  491. //#ifndef APP
  492. url: '/pages/short_video/nvueSwiper/index?id='+res.data.community_id+'&user=1&uid='+that.uid
  493. //#endif
  494. });
  495. }else{
  496. uni.redirectTo({
  497. url:'/pages/plantGrass/plant_detail/index?id='+res.data.community_id+'&type='+that.tabActive
  498. })
  499. }
  500. }).catch(err => {
  501. return that.$util.Tips({
  502. title: err
  503. });
  504. })
  505. }
  506. }
  507. }
  508. }
  509. </script>
  510. <style lang="scss" scoped>
  511. page{
  512. background: #F5F5F5;
  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: 30rpx 20rpx 0;
  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: 0 30rpx;
  566. border-radius: 10rpx;
  567. }
  568. .photo_count{
  569. padding: 30rpx 0;
  570. }
  571. }
  572. /deep/.input_photo .easy-loadimage,/deep/.input_photo uni-image,/deep/.input_photo image{
  573. width: 202rpx;
  574. height: 202rpx;
  575. border-radius: 12rpx!important;
  576. }
  577. .input_photo .pictrue{
  578. width: 202rpx;
  579. height: 202rpx;
  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. }
  620. /deep/.loading-img{
  621. width: 180rpx;
  622. height: 180rpx;
  623. border-radius: 12rpx;
  624. }
  625. .input_photo .pictrue{
  626. margin-bottom: 20rpx;
  627. .videoHover{
  628. width: 204rpx;
  629. height: 204rpx;
  630. display: flex;
  631. align-items: center;
  632. justify-content: center;
  633. position: absolute;
  634. top: 0;
  635. left: 0;
  636. >view{
  637. width: 50rpx;
  638. height: 50rpx;
  639. background: #000000;
  640. border-radius: 50rpx;
  641. display: flex;
  642. align-items: center;
  643. justify-content: center;
  644. .iconfont{
  645. color: #ffffff;
  646. font-size: 21rpx;
  647. }
  648. }
  649. }
  650. .video-text{
  651. display: block;
  652. width: 180rpx;
  653. text-align: center;
  654. color: #ffffff;
  655. font-size: 18rpx;
  656. z-index: 13;
  657. position: absolute;
  658. bottom: 20rpx;
  659. }
  660. video{
  661. width: 180rpx;
  662. height: 180rpx;
  663. border-radius: 12rpx;
  664. }
  665. }
  666. .input_photo .add{
  667. background: #f6f6f6;
  668. color: #666666;
  669. .iconfont{
  670. font-size: 50rpx;
  671. }
  672. .text{
  673. margin-top: 20rpx;
  674. font-size: 27rpx;
  675. }
  676. }
  677. .textarea textarea {
  678. font-size: 28rpx;
  679. padding-bottom: 38rpx;
  680. width: 100%;
  681. box-sizing: border-box;
  682. height: 400rpx;
  683. overflow: hidden;
  684. }
  685. .textarea .placeholder {
  686. color: #BBBBBB;
  687. }
  688. .release_item .item{
  689. height: 106rpx;
  690. border-bottom: 1rpx solid #eee;
  691. position: relative;
  692. font-size: 30rpx;
  693. &:last-child{
  694. border-bottom: none;
  695. }
  696. .name{
  697. color: #333333;
  698. .iconfont {
  699. margin-right: 10rpx;
  700. font-size: 28rpx;
  701. }
  702. }
  703. .select{
  704. color: #bbbbbb;
  705. .select_count{
  706. display: flex;
  707. align-items: center;
  708. }
  709. .text{
  710. margin-right: 15rpx;
  711. display: flex;
  712. align-items: center;
  713. .image,image,uni-image{
  714. width: 60rpx;
  715. height: 60rpx;
  716. margin-right: 5rpx;
  717. }
  718. }
  719. .iconfont{
  720. font-size: 24rpx;
  721. }
  722. .text_name{
  723. color: var(--view-theme);
  724. padding: 5rpx 12rpx;
  725. background: var(--view-minorColor);
  726. border-radius: 23rpx;
  727. font-size: 24rpx;
  728. margin-right: 10rpx;
  729. .icon{
  730. color: var(--view-theme);
  731. font-weight: bold;
  732. font-size: 24rpx;
  733. }
  734. .title{
  735. margin: 0 10rpx;
  736. }
  737. .iconfont{
  738. font-size: 16rpx;
  739. }
  740. }
  741. }
  742. }
  743. .button{
  744. width: 710rpx;
  745. height: 86rpx;
  746. line-height: 86rpx;
  747. color: #ffffff;
  748. text-align: center;
  749. font-size: 32rpx;
  750. background: var(--view-theme);
  751. border-radius: 43rpx;
  752. }
  753. .release_btn{
  754. margin: 0 auto;
  755. position: fixed;
  756. bottom: 40rpx;
  757. left: 0;
  758. z-index: 80;
  759. left: 20rpx;
  760. }
  761. .video-count{
  762. position: fixed;
  763. width: 600rpx;
  764. height: 500rpx;
  765. top: 50%;
  766. left: 50%;
  767. margin-left: -300rpx;
  768. margin-top: -250rpx;
  769. z-index: 90;
  770. display: flex;
  771. align-items: center;
  772. justify-content: center;
  773. .videoLink{
  774. width: 600rpx;
  775. height: 500rpx;
  776. }
  777. }
  778. .mask{
  779. z-index: 80;
  780. }
  781. </style>