index.vue 25 KB

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