release.vue 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202
  1. <template>
  2. <view class="release">
  3. <!-- 发布页面 -->
  4. <navbar :config="config" id="noticePapup" backColor="#666"></navbar>
  5. <view class="" id="noticePapup">
  6. </view>
  7. <view v-if="stap == -1">
  8. <view class="article">
  9. <view class="symbol" @click="showitem">
  10. <!-- 要改成iconfont -->
  11. <view class="addsymbol"><text class="plus"> + </text></view>
  12. <view class="content"> 发布文章或者视频 </view>
  13. </view>
  14. </view>
  15. <view class="addimage" v-if="type != null" style="display: flex;padding-bottom:0">
  16. <view class="imagefont" style="margin-bottom:0"> 发布类型: </view>
  17. <view>
  18. <text v-if="type == 0">文章</text>
  19. <text v-if="type == 1">视频</text>
  20. </view>
  21. </view>
  22. <view class="contenttitle">
  23. <textarea class="title" v-model="title" placeholder-class="titla-plac" placeholder="请输入您发布的内容标题"
  24. placeholder-style="color: #cccccc;font-size:28rpx;font-weight:400;display: flex;align-items: center;" @input="onchangeText"
  25. maxlength="20"></textarea>
  26. </view>
  27. <view class="remind">
  28. <view class="tips"> 提示 </view>
  29. <view class="tipsone"> 1、标题是必填的,需要您认真填写哦~ </view>
  30. <view class="tipsone"> 2、好的标题是吸引用户关注的第一步。 </view>
  31. </view>
  32. <view class="addimage">
  33. <view class="imagefont"> 封面图 </view>
  34. <unloadimg imgCount="1" :imgArr="identty_images" :type="upimgtype" url="" @result="resultUrlone">
  35. </unloadimg>
  36. </view>
  37. </view>
  38. <!-- -->
  39. <view class="showhidden" v-if="stap == 1">
  40. <view>
  41. <image :src="coverImg" mode="widthFix" class="identty_images" />
  42. </view>
  43. <view class="u-font32 u-ml30 u-mt30 u-bold">
  44. {{title}}
  45. </view>
  46. <view class="line-2 u-ml30 u-mt30">
  47. <!-- 灰色的8rpx的线 -->
  48. </view>
  49. <view class="copywriting">
  50. <view class="copywritingitem"> 请输入简介文案 </view>
  51. <view class="texterea">
  52. <textarea v-model="content" class="textereaitem" placeholder="请输入简介文案"
  53. placeholder-style="color: #cccccc;padding:'22rpx 20rpx';font-size:24rpx;" maxlength="100"></textarea>
  54. </view>
  55. </view>
  56. <view class="addimage" v-if="type == 0">
  57. <view class="imagefont"> 添加图片 </view>
  58. <releaseImg imgCount="10" :imgArr="images" :type="upimgtype" @result="resultUr" uploadImgCount='10'>
  59. </releaseImg>
  60. </view>
  61. <view :style="videoFalge">
  62. <view class="addimage" v-if="type == 1">
  63. <view class="imagefont"> 添加视频 </view>
  64. <unloadVideo :videoSrc="media_address" @resultVideo="resultVideo"></unloadVideo>
  65. </view>
  66. </view>
  67. <view class="onesolid"> </view>
  68. <view class="speak">
  69. <view class="addspeak" @click="addProduct()">
  70. <view class="peakleft">
  71. 添加商品 <text class="six">(选填,一次最多添加6件商品)</text>
  72. </view>
  73. <view class="peakright">
  74. <text class="iconfont u-ml15 u-font24 u-999">&#xe6c7;</text>
  75. </view>
  76. </view>
  77. <view class="onesolid">
  78. <!-- 1像素的线 -->
  79. </view>
  80. <view class="speaklist">
  81. <view class="listcontent" v-for="(item, index) in backgroundoptio" :key="index">
  82. <view class="img">
  83. <image :src="item.cover" mode=""></image>
  84. </view>
  85. <view class="same">
  86. <view class="item">
  87. # {{ item.title }}
  88. </view>
  89. <view class="num">
  90. <rich-text :nodes="$mUtil.priceBigSmall(item.min_sale_price)"></rich-text>
  91. </view>
  92. </view>
  93. <view class="del" @click="deleteoption(index, item)"> × </view>
  94. </view>
  95. </view>
  96. <!-- 8像素灰色的线 -->
  97. <view class="eightborder"> </view>
  98. <view class="lasttopic" @click="showSpeak">
  99. <view class="addtopic">
  100. 添加话题
  101. <text class="six">(选填,一次最多2个话题)</text>
  102. </view>
  103. <view class="addtopicright">
  104. <text class="iconfont u-ml15 u-font24 u-999">&#xe6c7;</text>
  105. </view>
  106. </view>
  107. <!-- 1像素灰色的线 -->
  108. <view class="onesolid"> </view>
  109. <view class="hotsale">
  110. <view class="item" v-for="(item, index) in themeList" :key="index">
  111. # {{ item.title }}
  112. <view class="itemdel" @click="deleteItem(index)"> × </view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <!-- 底部 -->
  118. <!-- -->
  119. <view class="nextstep" v-if="stap == 1">
  120. <view class="reward"> 发布、分享均能获得积分奖励 !</view>
  121. <button class="btn" @click="gostep()">发送</button>
  122. </view>
  123. <view class="nextstep" v-if="stap == -1">
  124. <view class="reward"> 发布、分享均能获得积分奖励 !</view>
  125. <button class="btn" @click="goNext()">下一步</button>
  126. </view>
  127. <!-- 底部弹出层 -->
  128. <uni-popup ref="popup" type="bottom" :maskClick="false">
  129. <view class="showpopup">
  130. <view class="top">
  131. <view class="addedspeak">
  132. <view class="item"> 添加话题 </view>
  133. <view class="line"> </view>
  134. </view>
  135. <view class="determine" @click="determineChoice()"> 确定 </view>
  136. </view>
  137. <view class="selected">
  138. <view class="selecteditem"> 已选 </view>
  139. <view class="tobeselected">
  140. <view class="block" v-for="(item, index) in themeList" :key="index" @click="deleteItem(item, index)">
  141. #{{ item.title }}
  142. <view class="rederror"> × </view>
  143. </view>
  144. </view>
  145. <view class="allspeak">
  146. <view class="allspeaktitle"> 所有话题 </view>
  147. <view class="allspeakitem">
  148. <view class="item" v-for="(item, index) in speakData" :key="index" @click="switchStyle(item, index)"
  149. :class="{'active':themeList.findIndex(e=>{return e.id == item.id})>-1}">
  150. # {{ item.title }}
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <!-- 灰格子 -->
  156. <view class="greygrid"> </view>
  157. <view class="cancel" @click="cancelChoice()"> 取消 </view>
  158. </view>
  159. </uni-popup>
  160. <!-- 底部弹出框 -->
  161. <!-- 中间弹出框 -->
  162. <uni-popup ref="popuptwo" type="center">
  163. <view class="final">
  164. <view class="topmargin"> </view>
  165. <view class="image">
  166. <image :src="imgUrl+'/workingday.png'" mode=""></image>
  167. </view>
  168. <view class="waitfor"> 等待审核 </view>
  169. <view class="content">
  170. 预计1-3个工作日, 届时会有站内信通知, 或是在个人中心查看审核状态!感谢您使用平台
  171. </view>
  172. <view class="close" @click="hiddenExamine()"> 关闭 </view>
  173. <view class="bottommargin"> </view>
  174. <view class="rightclose" @click="hiddenExamine()">
  175. <image :src="imgUrl+'/release-close.png'" mode=""></image>
  176. </view>
  177. <!-- 右上角× -->
  178. </view>
  179. </uni-popup>
  180. <uni-popup ref="popupthree" type="bottom">
  181. <view class="showpopup">
  182. <view class="top">
  183. <view class="addedspeak">
  184. <view class="item" style="border-radius: 8rpx;"> 选择类型</view>
  185. <view class="line"> </view>
  186. </view>
  187. <!-- <view class="determine" @click="determineChoice()"> 确定 </view> -->
  188. </view>
  189. <view class="addtype">
  190. <view class="addimg" @click="clickAddimg">
  191. 添加图片
  192. </view>
  193. <view class="addvideo" @click="clickAddVideo">
  194. 添加视频
  195. </view>
  196. </view>
  197. <!-- 灰格子 -->
  198. <view class="greygrid"> </view>
  199. <view class="cancel" @click="noType()"> 取消 </view>
  200. </view>
  201. </uni-popup>
  202. </view>
  203. </template>
  204. <script>
  205. import unloadimg from "../../../components/uploadImg/imgUpload.vue";
  206. import releaseImg from "../../../components/uploadImg/releaseImg.vue"
  207. import unloadVideo from "../../../components/uploadImg/unloadVideo.vue";
  208. export default {
  209. data() {
  210. return {
  211. config: {
  212. back: true, //false是tolbar页面 是则不写
  213. title: "发布",
  214. color: "#1A1A1A",
  215. switchnextstep: true, //切换底部样式
  216. //背景颜色;参数一:透明度(0-1);参数二:背景颜色(array则为线性渐变,string为单色背景)
  217. backgroundColor: [1, "#fff"],
  218. // fixed: false,
  219. },
  220. //横向滚动块
  221. backgroundoptio: [],
  222. content: null,
  223. bottomlist: [],
  224. replaceblock: true,
  225. title: null,
  226. content: null, //内容
  227. speakData: [],
  228. smallBox: [],
  229. topInput: "",
  230. type: null,
  231. identty_images: [],
  232. coverImg: "",
  233. upimgtype: "other",
  234. stap: -1,
  235. themeList: [], //选择的主题列表
  236. images: [], //上传的图片
  237. media_address: null,
  238. duration: null,
  239. size: null,
  240. videoFalge: {
  241. display: "block"
  242. },
  243. view: null,
  244. view2: null,
  245. placeHolder: '1111',
  246. imgUrl: this.$mConfig.staticUrl
  247. };
  248. },
  249. onLoad(options) {
  250. // const subNvue = uni.getSubNVueById("noticePapup");
  251. // this.view0 = new plus.nativeObj.View('test0', {
  252. // top: '0px',
  253. // left: '0px',
  254. // height: '15px',
  255. // width: '100%'
  256. // });
  257. // this.view0.drawRect({
  258. // color: '#0B844A'
  259. // }, {
  260. // top: '0px',
  261. // left: '0px',
  262. // width: '100%',
  263. // height: '100%'
  264. // });
  265. // subNvue.show()
  266. // this.view = new plus.nativeObj.View('test', {
  267. // top: '0px',
  268. // left: '0px',
  269. // height: '74px',
  270. // width: '100%'
  271. // });
  272. //在这个view上面画一个矩形,填充白色背景,color: #fff,铺满全屏。
  273. // this.view.drawRect({
  274. // color: '#0B844A'
  275. // }, {
  276. // top: '0px',
  277. // left: '0px',
  278. // width: '100%',
  279. // height: '100%'
  280. // });
  281. // this.view.drawText('发布', {
  282. // top: '0px',
  283. // left: '0px',
  284. // width: '100%',
  285. // height: '100%'
  286. // }, {
  287. // align: 'center',
  288. // color: '#fff'
  289. // });
  290. //z这个view上面画一个input输入框,input输入框只能设置特定的属性,也不能设置背景。想要设置背景,就才有上面的方法。
  291. // this.view.drawInput({
  292. // top: '8px',
  293. // left: '35px',
  294. // width: '280px',
  295. // height: '30px'
  296. // }, {
  297. // type: 'text',
  298. // placeholder: this.placeHolder,
  299. // borderColor: '#eee',
  300. // background: 'red',
  301. // borderRadius: '15px',
  302. // onFocus: () => {
  303. // //监听输入框的聚焦事件。
  304. // this.hideTig()
  305. // }
  306. // }, 'input');
  307. //给input输入框填充背景
  308. // this.view.drawRect({
  309. // color: '#eee',
  310. // borderWidth: '2px',
  311. // radius: '14px'
  312. // }, {
  313. // top: '8px',
  314. // left: '15px',
  315. // width: '300px',
  316. // height: '30px'
  317. // });
  318. //这个是左边的按钮,因为没有提供画按钮的方法,只能画一个view填充上文字。来实现按钮
  319. // this.view2 = new plus.nativeObj.View('aps', {
  320. // bottom: '23px',
  321. // zIndex: '10',
  322. // right: '20px',
  323. // height: '30px',
  324. // width: '60px'
  325. // });
  326. // //给view填充背景。
  327. // this.view2.drawRect({
  328. // color: 'rgba(91,183,28,1)',
  329. // borderWidth: '2px',
  330. // radius: '14px'
  331. // }, {
  332. // top: '0px',
  333. // left: '0px',
  334. // width: '100%',
  335. // height: '100%'
  336. // });
  337. //给view加上文字
  338. // this.view2.drawText('发送', {
  339. // top: '0px',
  340. // left: '0px',
  341. // width: '100%',
  342. // height: '100%'
  343. // }, {
  344. // align: 'center',
  345. // color: '#fff'
  346. // });
  347. // //给按钮加上点击事件
  348. // this.view2.addEventListener("click", this.fs, false)
  349. // //让view显示出来
  350. // this.view.show()
  351. // this.view2.show()
  352. },
  353. onUnload() {
  354. uni.removeStorageSync("ischeckbox")
  355. },
  356. onShow() {
  357. let box = uni.getStorageSync("ischeckbox");
  358. this.backgroundoptio = box;
  359. this.getTheme();
  360. },
  361. components: {
  362. unloadimg,
  363. unloadVideo,
  364. releaseImg
  365. },
  366. methods: {
  367. getTheme() {
  368. this.$http.get("/opus/theme/list", this.params).then((res) => {
  369. if (res && res.code == 200) {
  370. this.speakData = res.list;
  371. }
  372. });
  373. },
  374. goNext() {
  375. if (this.type == null) {
  376. this.$mUtil.toast("请选择需要发布的类型");
  377. return false;
  378. }
  379. if (this.title == null) {
  380. this.$mUtil.toast("请输入您要发布的标题");
  381. return false;
  382. }
  383. if (this.identty_images.length == 0 || this.identty_images == null) {
  384. this.$mUtil.toast("请上传封面图");
  385. return false;
  386. }
  387. this.stap = 1;
  388. },
  389. resultUrlone(e) {
  390. this.identty_images = e;
  391. this.coverImg = this.identty_images[0]
  392. },
  393. resultUr(e) {
  394. this.images = e;
  395. },
  396. resultVideo(e) {
  397. (this.media_address = e.url),
  398. (this.size = Number(e.size));
  399. this.duration = Number(e.duration.toFixed(0));
  400. },
  401. //删除底部的块
  402. deleteItem(index) {
  403. this.bottomlist.splice(index, 1);
  404. console.log(index);
  405. },
  406. //点击删除
  407. deleteoption(index) {
  408. this.backgroundoptio.splice(index, 1);
  409. uni.setStorageSync("ischeckbox", this.backgroundoptio)
  410. },
  411. //确定按钮现在先写到关闭,后面再写提交数据
  412. determineChoice() {
  413. this.videoFalge.display = "block"
  414. this.$refs.popup.close();
  415. },
  416. //关闭审核
  417. hiddenExamine() {
  418. this.$refs.popuptwo.close();
  419. setTimeout(() => {
  420. uni.navigateBack({
  421. delta: 1
  422. });
  423. }, 1000);
  424. },
  425. //清楚弹出框
  426. cancelChoice() {
  427. this.videoFalge.display = "block"
  428. this.$refs.popup.close();
  429. },
  430. //点击添加
  431. switchStyle(item, index) {
  432. if (this.themeList.some((val) => val.id == item.id)) {
  433. this.$mUtil.toast(item.title + "已经添加了,请重新选择");
  434. return false;
  435. }
  436. if (this.themeList.length >= 2) {
  437. this.$mUtil.toast("最多添加两个话题");
  438. } else {
  439. this.themeList.unshift(item);
  440. let newArr = Array.from(new Set(this.themeList));
  441. this.themeList = newArr;
  442. }
  443. // this.speakData.splice(index, 1);
  444. },
  445. deleteItem(item, index) {
  446. this.themeList.splice(index, 1);
  447. },
  448. showSpeak(e) {
  449. this.videoFalge.display = "none"
  450. this.$refs.popup.open();
  451. console.log(e)
  452. },
  453. addProduct() {
  454. uni.navigateTo({
  455. url: "./list",
  456. });
  457. },
  458. onchangeText(e) {
  459. //input框里的内容变更切换样式
  460. this.conent = e.detail.value;
  461. if (e.detail.cursor >= 1) {
  462. // nextstep.className = "nextsteptwo"
  463. this.replaceblock = false;
  464. this.topInput = e.detail.value;
  465. } else {
  466. // nextsteptwo.className = "nextstep"
  467. this.replaceblock = true;
  468. }
  469. },
  470. //前往下一步
  471. gostep() {
  472. if (this.content == null) {
  473. this.$mUtil.toast("请输入简介文案");
  474. return false;
  475. }
  476. if (this.type == 0) {
  477. if (this.images.length == 0 || this.images == null) {
  478. this.$mUtil.toast("请添加图片");
  479. return false;
  480. }
  481. if (this.images.length > 10) {
  482. this.$mUtil.toast("图片上传数量超过最大限制");
  483. return false;
  484. }
  485. }
  486. //视频
  487. if (this.type == 1) {
  488. if (this.media_address == null) {
  489. this.$mUtil.toast("请添加视频");
  490. return false;
  491. }
  492. }
  493. //话题管理
  494. // let theme_ids: this.themeList.map((val) => val.id),
  495. //图文
  496. // let goods_ids: this.backgroundoptio.map((val) => val.id),
  497. let params = {
  498. title: this.title,
  499. cover: this.identty_images.join(","),
  500. opus_type: this.type,
  501. content: this.content,
  502. };
  503. if (Array.isArray(this.backgroundoptio)) {
  504. params.goods_ids = this.backgroundoptio.map((val) => val.id)
  505. }
  506. if (Array.isArray(this.themeList)) {
  507. params.theme_ids = this.themeList.map((val) => val.id)
  508. }
  509. if (this.type == 0) {
  510. if (this.images.length == 0 || this.images == null) {
  511. this.$mUtil.toast("请添加图片");
  512. return false;
  513. }
  514. params.images = this.images.join(",");
  515. }
  516. //视频
  517. if (this.type == 1) {
  518. if (this.media_address == null) {
  519. this.$mUtil.toast("请添加视频");
  520. return false;
  521. }
  522. (params.media_address = this.media_address),
  523. (params.media_size = this.size),
  524. (params.duration = this.duration);
  525. }
  526. this.$http.post("/opus/add", params).then(res => {
  527. if (res && res.code == 200) {
  528. uni.removeStorageSync("ischeckbox");
  529. this.$refs.popuptwo.open();
  530. }
  531. });
  532. },
  533. showitem(e) {
  534. // uni.showActionSheet({
  535. // itemList: ["添加图片", "添加视频"],
  536. // success: (res) => {
  537. // console.log(res.tapIndex)
  538. // this.type = res.tapIndex;
  539. // this.$mUtil.toast("类型选择成功")
  540. // },
  541. // fail: (res) => {
  542. // console.log(res.errMsg);
  543. // },
  544. // });
  545. this.$refs.popupthree.open();
  546. },
  547. clickAddVideo() {
  548. this.type = 1
  549. this.$refs.popupthree.close()
  550. this.$mUtil.toast("类型选择成功")
  551. },
  552. clickAddimg() {
  553. this.type = 0
  554. this.$refs.popupthree.close()
  555. this.$mUtil.toast("类型选择成功")
  556. },
  557. noType() {
  558. this.$refs.popupthree.close()
  559. }
  560. },
  561. };
  562. </script>
  563. <style lang="scss" scoped>
  564. /deep/ .titla-plac {
  565. line-height: 106rpx;
  566. }
  567. .addtype {
  568. text-align: center;
  569. font-size: 30rpx;
  570. color: #1A1A1A;
  571. font-weight: 500;
  572. .addvideo {
  573. margin: 40rpx 0;
  574. }
  575. .addimg {
  576. margin: 83rpx 0 0 0;
  577. border-bottom: 1rpx solid #E6E6E6;
  578. padding-bottom: 40rpx;
  579. }
  580. }
  581. .active {
  582. color: #DCCCA4 !important;
  583. background-color: #0B844A !important;
  584. }
  585. .identty_images {
  586. width: 750rpx;
  587. }
  588. .peakleft {
  589. font-weight: 700;
  590. }
  591. .final {
  592. width: 459rpx;
  593. background: linear-gradient(270deg, rgba(0, 50, 29, 1), rgba(40, 69, 51, 1));
  594. border-radius: 20rpx;
  595. text-align: center;
  596. // overflow: hidden;
  597. position: relative;
  598. .rightclose {
  599. image {
  600. width: 41rpx;
  601. height: 41rpx;
  602. position: absolute;
  603. right: 0;
  604. top: -59rpx;
  605. }
  606. }
  607. .image {
  608. margin: 0 auto;
  609. image {
  610. width: 80rpx;
  611. height: 80rpx;
  612. }
  613. }
  614. .topmargin {
  615. height: 53rpx;
  616. }
  617. .waitfor {
  618. font-size: 34rpx;
  619. font-weight: 500;
  620. color: #dccca4;
  621. margin-top: 20rpx;
  622. line-height: 34rpx;
  623. }
  624. .content {
  625. color: #dccca4;
  626. font-size: 26rpx;
  627. font-weight: 500;
  628. width: 280rpx;
  629. margin: auto;
  630. margin-top: 9rpx;
  631. }
  632. .addintegral {
  633. font-weight: 500;
  634. font-size: 24rpx;
  635. color: #ffffff;
  636. margin-top: 39rpx;
  637. }
  638. .close {
  639. width: 346rpx;
  640. margin: 0 auto;
  641. height: 80rpx;
  642. background-color: rgba(220, 204, 164, 1);
  643. color: rgba(6, 53, 33, 1);
  644. border-radius: 40rpx;
  645. font-size: 30rpx;
  646. font-weight: 500;
  647. margin-top: 14rpx;
  648. line-height: 80rpx;
  649. }
  650. .bottommargin {
  651. height: 53rpx;
  652. }
  653. }
  654. .showpopup {
  655. .cancel {
  656. text-align: center;
  657. padding: 37rpx 0;
  658. font-size: 30rpx;
  659. font-weight: 500;
  660. color: #1a1a1a;
  661. border-bottom: 1rpx solid #e6e6e6;
  662. // margin-bottom: 40rpx;
  663. }
  664. .greygrid {
  665. height: 20rpx;
  666. background-color: #e6e6e6;
  667. }
  668. .selected {
  669. margin-top: 48rpx;
  670. padding: 0 30rpx;
  671. .selecteditem {
  672. font-size: 28rpx;
  673. font-weight: 700;
  674. color: #1a1a1a;
  675. }
  676. .allspeak {
  677. padding-bottom: 31rpx;
  678. .allspeaktitle {
  679. font-size: 28rpx;
  680. font-weight: 700;
  681. color: #1a1a1a;
  682. margin-top: 11rpx;
  683. margin-bottom: 17rpx;
  684. }
  685. .allspeakitem {
  686. display: flex;
  687. flex-wrap: wrap;
  688. .item {
  689. margin-right: 25rpx;
  690. margin-bottom: 23rpx;
  691. padding: 19rpx 24rpx 18rpx 25rpx;
  692. // line-height: 24rpx;
  693. font-weight: 400;
  694. border-radius: 8rpx;
  695. color: #1a1a1a;
  696. background-color: #f5f5f5;
  697. // color: #dccca4;
  698. // background: #0B844A;
  699. }
  700. }
  701. }
  702. .tobeselected {
  703. display: flex;
  704. flex-wrap: wrap;
  705. margin-top: 17rpx;
  706. .block {
  707. font-size: 24rpx;
  708. margin-bottom: 23rpx;
  709. font-weight: 400;
  710. line-height: 24rpx;
  711. border-radius: 8rpx;
  712. margin-right: 29rpx;
  713. color: #1a1a1a;
  714. background-color: #f5f5f5;
  715. padding: 19rpx 24rpx 18rpx 25rpx;
  716. position: relative;
  717. }
  718. .rederror {
  719. color: #ffffff;
  720. width: 34rpx;
  721. height: 34rpx;
  722. background-color: #ef3124;
  723. border-radius: 50%;
  724. text-align: center;
  725. line-height: 34rpx;
  726. position: absolute;
  727. top: -17rpx;
  728. right: -17rpx;
  729. }
  730. }
  731. }
  732. background-color: #ffffff;
  733. border-radius: 50rpx 50rpx 0 0;
  734. // padding: 37rpx 30rpx 0 30rpx ;
  735. position: relative;
  736. .top {
  737. display: flex;
  738. justify-content: center;
  739. padding-top: 37rpx;
  740. .addedspeak {
  741. .item {
  742. font-size: 36rpx;
  743. font-weight: 700;
  744. text-align: center;
  745. color: #1a1a1a;
  746. margin-bottom: 12rpx;
  747. }
  748. .line {
  749. width: 64rpx;
  750. height: 8rpx;
  751. background-color: #cccccc;
  752. margin: 0 auto;
  753. }
  754. }
  755. .determine {
  756. position: absolute;
  757. right: 30rpx;
  758. top: 41rpx;
  759. font-size: 30rpx;
  760. font-weight: 500;
  761. color: #1a1a1a;
  762. }
  763. }
  764. .line {
  765. display: flex;
  766. justify-content: space-between;
  767. .linetwo {
  768. width: 64rpx;
  769. height: 8rpx;
  770. background-color: #cccccc;
  771. border-radius: 50rpx;
  772. }
  773. }
  774. }
  775. .hotsale {
  776. display: flex;
  777. flex-wrap: wrap;
  778. margin-bottom: 104rpx;
  779. .item {
  780. background-color: #f5f5f5;
  781. color: rgba(26, 26, 26, 1);
  782. margin: 27rpx 29rpx 0 30rpx;
  783. border-radius: 8rpx;
  784. padding: 19rpx 41rpx 18rpx 25rpx;
  785. position: relative;
  786. .itemdel {
  787. position: absolute;
  788. top: -17rpx;
  789. right: -17rpx;
  790. width: 34rpx;
  791. height: 34rpx;
  792. background-color: rgba(239, 49, 36, 1);
  793. border-radius: 50%;
  794. text-align: center;
  795. line-height: 34rpx;
  796. color: #fff;
  797. }
  798. }
  799. }
  800. .lasttopic {
  801. display: flex;
  802. justify-content: space-between;
  803. .addtopic {
  804. font-size: 28rpx;
  805. font-weight: 700;
  806. color: #1a1a1a;
  807. margin: 26rpx 0 27rpx 30rpx;
  808. text {
  809. color: rgba(153, 153, 153, 1);
  810. font-weight: Regular;
  811. }
  812. .six {
  813. font-weight: 400;
  814. }
  815. }
  816. .addtopicright {
  817. margin: 33rpx 30rpx 33rpx 0;
  818. color: #999999;
  819. }
  820. }
  821. .eightborder {
  822. height: 8rpx;
  823. background-color: #f5f5f5;
  824. }
  825. .speak {
  826. .speaklist {
  827. overflow-x: hidden;
  828. // width: 100%;
  829. display: flex;
  830. white-space: nowrap;
  831. overflow: hidden;
  832. overflow-x: auto;
  833. padding: 27rpx 30rpx 40rpx 30rpx;
  834. .listcontent {
  835. border-radius: 16rpx;
  836. display: flex;
  837. // box-shadow: 10rpx 10rpx 5rpx #fdfdfd;
  838. box-shadow: #e6e6e6 0rpx 0rpx 20rpx;
  839. // align-items: center;
  840. width: 582rpx;
  841. position: relative;
  842. padding: 30rpx 34rpx;
  843. display: flex;
  844. justify-content: space-between;
  845. align-items: center;
  846. margin-right: 36rpx;
  847. box-sizing: border-box;
  848. // background-color: yellow;
  849. .del {
  850. position: absolute;
  851. right: -17rpx;
  852. top: -17rpx;
  853. width: 34rpx;
  854. color: #fff;
  855. height: 34rpx;
  856. background-color: #ef3124;
  857. border-radius: 50%;
  858. text-align: center;
  859. line-height: 34rpx;
  860. }
  861. .same {
  862. display: flex;
  863. flex-direction: column;
  864. margin-left: 30rpx;
  865. justify-content: space-between;
  866. height: 140rpx;
  867. .item {
  868. width: 336rpx;
  869. font-size: 24rpx;
  870. color: #1a1a1a;
  871. opacity: 1;
  872. overflow: hidden;
  873. text-overflow: ellipsis;
  874. display: -webkit-box;
  875. -webkit-line-clamp: 2;
  876. -webkit-box-orient: vertical;
  877. word-wrap: break-word;
  878. word-break: break-all;
  879. white-space: normal !important;
  880. }
  881. .num {
  882. // display: flex;
  883. color: #ff0000;
  884. .alarm {
  885. font-weight: 700;
  886. font-size: 38rpx;
  887. opacity: 1;
  888. .large {
  889. font-size: 38rpx;
  890. font-weight: Bold;
  891. opacity: 1;
  892. }
  893. .spot {
  894. font-size: 38rpx;
  895. font-weight: Regular;
  896. }
  897. .small {
  898. font-size: 20rpx;
  899. font-weight: Regular;
  900. }
  901. }
  902. }
  903. }
  904. .img {
  905. image {
  906. width: 139rpx;
  907. height: 139rpx;
  908. border-radius: 16rpx;
  909. }
  910. }
  911. }
  912. }
  913. .onesolid {
  914. height: 1rpx;
  915. background-color: #e6e6e6;
  916. }
  917. .addspeak {
  918. line-height: 38rpx;
  919. margin: 26rpx 30rpx 28rpx 30rpx;
  920. font-size: 28rpx;
  921. color: #1a1a1a;
  922. font-weight: 400;
  923. display: flex;
  924. justify-content: space-between;
  925. .six {
  926. color: rgba(153, 153, 153, 1);
  927. font-weight: 400;
  928. }
  929. }
  930. }
  931. .addimage {
  932. padding: 30rpx 0rpx 40rpx 0rpx;
  933. margin-left: 30rpx;
  934. .imagefont {
  935. margin-bottom: 22rpx;
  936. font-weight: 700;
  937. color: #1a1a1a;
  938. font-size: 28rpx;
  939. opacity: 1;
  940. }
  941. }
  942. .line {
  943. width: 100%;
  944. height: 8rpx;
  945. background: #f5f5f5;
  946. }
  947. .line-2 {
  948. width: 690rpx;
  949. margin-left: 30rpx;
  950. background: #E6E6E6;
  951. height: 2rpx;
  952. }
  953. .showhidden {
  954. .copywriting {
  955. margin: 35rpx 30rpx 0rpx 30rpx;
  956. .copywritingitem {
  957. font-weight: 700;
  958. font-size: 28rpx;
  959. color: #1a1a1a;
  960. opacity: 1;
  961. margin-bottom: 8rpx;
  962. }
  963. .texterea {
  964. height: 234rpx;
  965. background-color: #fafafa;
  966. border-radius: 21rpx;
  967. padding: 22rpx 0 0 20rpx;
  968. .textereaitem {
  969. font-size: 24rpx;
  970. height: 212rpx;
  971. // background-color: red;
  972. }
  973. }
  974. }
  975. }
  976. .nextstep {
  977. text-align: center;
  978. margin-top: 50rpx;
  979. padding-bottom: 100rpx;
  980. .btn {
  981. background-color: #0B844A;
  982. border-radius: 43px;
  983. width: 690rpx;
  984. margin: 0 auto;
  985. color: #ffffff;
  986. }
  987. .reward {
  988. margin-bottom: 13rpx;
  989. font-weight: 400;
  990. color: #999999;
  991. font-size: 24rpx;
  992. }
  993. }
  994. .nextsteptwo {
  995. text-align: center;
  996. .btn {
  997. background-color: #0B844A;
  998. border-radius: 43px;
  999. width: 690rpx;
  1000. margin: 0 auto;
  1001. color: #ffffff;
  1002. }
  1003. .reward {
  1004. margin-bottom: 13rpx;
  1005. font-weight: 400;
  1006. color: #999999;
  1007. font-size: 24rpx;
  1008. }
  1009. }
  1010. .remind {
  1011. margin: 22rpx 30rpx 0 30rpx;
  1012. .tips {
  1013. font-weight: 700;
  1014. font-size: 28rpx;
  1015. opacity: 1;
  1016. color: #1a1a1a;
  1017. text-align: left;
  1018. }
  1019. .tipsone {
  1020. margin: 15rpx 0;
  1021. font-weight: 400;
  1022. font-size: 24rpx;
  1023. opacity: 1;
  1024. color: #999999;
  1025. }
  1026. }
  1027. .uni-textarea-textarea {
  1028. // padding: 0 30rpx !important;
  1029. }
  1030. .contenttitle {
  1031. // height: 106rpx;
  1032. margin: 0 30rpx;
  1033. textarea {
  1034. // height: 80rpx !important;
  1035. // display: flex;
  1036. // align-items: center;
  1037. }
  1038. .title {
  1039. // line-height: 106rpx;
  1040. margin-right: 30rpx;
  1041. font-size: 32rpx;
  1042. border-bottom: 1rpx solid #e6e6e6;
  1043. font-weight: 700;
  1044. color: #1a1a1a;
  1045. width: 100%;
  1046. font-weight: 500;
  1047. height: 80rpx !important;
  1048. line-height: 80rpx;
  1049. display: flex;
  1050. align-items: center;
  1051. margin-top: 20rpx;
  1052. }
  1053. }
  1054. .article {
  1055. width: 100%;
  1056. height: 584rpx;
  1057. background: #f5f5f5;
  1058. text-align: center;
  1059. margin: 0 auto;
  1060. display: flex;
  1061. justify-content: center;
  1062. align-items: center;
  1063. opacity: 1;
  1064. .addsymbol {
  1065. width: 81rpx;
  1066. height: 81rpx;
  1067. border: 6rpx solid #0B844A;
  1068. border-radius: 50%;
  1069. text-align: center;
  1070. line-height: 81rpx;
  1071. font-size: 60rpx;
  1072. color: #0B844A;
  1073. margin: 0 auto;
  1074. margin-bottom: 30rpx;
  1075. font-weight: 700;
  1076. position: relative;
  1077. .plus {
  1078. position: absolute;
  1079. top: 50%;
  1080. left: 50%;
  1081. transform: translate(-50%, -55%);
  1082. }
  1083. }
  1084. .content {
  1085. font-size: 28rpx;
  1086. font-weight: 400;
  1087. color: #666666;
  1088. opacity: 1;
  1089. }
  1090. }
  1091. </style>