index.vue 26 KB

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