index.vue 25 KB

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