index.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053
  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" type="digit" :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>