index.vue 26 KB

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