publish.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982
  1. <template>
  2. <view class="publish">
  3. <statusBar :item="navBarData"></statusBar>
  4. <view class="" style="background-color: #ffffff;">
  5. <view class="pubTitle">
  6. <input class="title" style="" placeholder="活动标题" v-model="activitytitle" />
  7. </view>
  8. <view class="pubMid">
  9. <view class="mid">
  10. <view class="txt">
  11. <textarea class="txtClass" value="" placeholder="请输入内容" v-model="activityintro" />
  12. </view>
  13. <!-- <uni-file-picker :v-model="imageValue" fileMediatype="image" file-extname="png,jpg,jpeg"
  14. @select="select" @success="success" limit="1"> -->
  15. <!-- 上传图片 -->
  16. <view class="pic" @click="uploadPic">
  17. <view class="picCont">
  18. <image :src="pic" mode="aspectFill"></image>
  19. <view
  20. style="font-size: 24rpx;line-height: 40rpx;font-weight: 400;color: rgba(0, 0, 0, 0.6);">
  21. 添加图片
  22. </view>
  23. <view
  24. style="font-size: 20rpx;line-height: 36rpx;font-weight: 400;color: rgba(0, 0, 0, 0.4);">
  25. (0/1)
  26. </view>
  27. </view>
  28. <view class="pic_show" v-if="imageValue!==''">
  29. <image :src="imageValue" mode="aspectFill"></image>
  30. </view>
  31. </view>
  32. <!-- <view class="pic_show">
  33. <image :src="imageValue" mode="aspectFill"></image>
  34. </view> -->
  35. <!-- </uni-file-picker> -->
  36. <!-- <beUpload @getFile="getFile" :navName="'上传文件'" :accept="accept" :progress="progress"></beUpload> -->
  37. </view>
  38. </view>
  39. <view class="userOptionsBox">
  40. <view class="optionsItemBox">
  41. <picker mode="selector" :range="classifyList" @change="handelclassify">
  42. <view class="optionItem">
  43. <view class="option_left">
  44. <text class="option_text">
  45. 活动分类
  46. </text>
  47. </view>
  48. <view class="option_right">
  49. <view class="input_details">
  50. <view class="details">
  51. <view class="uni-input text">{{classify}}</view>
  52. </view>
  53. <view class="arrow">
  54. <image
  55. src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png"
  56. mode="aspectFill"></image>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </picker>
  62. </view>
  63. </view>
  64. <view class="userOptionsBox">
  65. <view class="optionsItemBox">
  66. <picker mode="selector" :range="recruitmentList" @change="handelRecruitment">
  67. <view class="optionItem">
  68. <view class="option_left">
  69. <text class="option_text">
  70. 招募人数
  71. </text>
  72. </view>
  73. <view class="option_right">
  74. <view class="input_details">
  75. <view class="details">
  76. <view class="uni-input text">{{recruitment}}</view>
  77. </view>
  78. <view class="arrow">
  79. <image
  80. src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png"
  81. mode="aspectFill"></image>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </picker>
  87. </view>
  88. </view>
  89. <view class="userOptionsBox">
  90. <view class="optionsItemBox">
  91. <picker mode="selector" :range="activityformList" @change="handelActivityform">
  92. <view class="optionItem">
  93. <view class="option_left">
  94. <text class="option_text">
  95. 活动形式
  96. </text>
  97. </view>
  98. <view class="option_right">
  99. <view class="input_details">
  100. <view class="details">
  101. <view class="uni-input text">{{activityform}}</view>
  102. </view>
  103. <view class="arrow">
  104. <image
  105. src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png"
  106. mode="aspectFill"></image>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </picker>
  112. </view>
  113. </view>
  114. <view class="userOptionsBox">
  115. <view class="optionsItemBox">
  116. <picker mode="selector" :range="addressList" @change="handeladdress">
  117. <view class="optionItem">
  118. <view class="option_left">
  119. <text class="option_text">
  120. 活动地址
  121. </text>
  122. </view>
  123. <view class="option_right">
  124. <view class="input_details">
  125. <view class="details">
  126. <view class="uni-input text">{{address}}</view>
  127. </view>
  128. <view class="arrow">
  129. <image
  130. src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png"
  131. mode="aspectFill"></image>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. </picker>
  137. </view>
  138. </view>
  139. <view class="userOptionsBox">
  140. <view class="optionsItemBox">
  141. <!-- <picker mode="date" :value="activityDate" :start="startDate" :end="endDate"
  142. @change="activityDateChange">
  143. <view class="optionItem">
  144. <view class="option_left">
  145. <text class="option_text">
  146. 活动时间
  147. </text>
  148. </view>
  149. <view class="option_right">
  150. <view class="input_details">
  151. <view class="details">
  152. <view class="uni-input text">{{ activityDate }}</view>
  153. </view>
  154. <view class="arrow">
  155. <image src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png" mode="aspectFill"></image>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. </picker> -->
  161. <view class="optionItem" @click="show = true">
  162. <view class="option_left">
  163. <text class="option_text">
  164. 活动时间
  165. </text>
  166. </view>
  167. <view class="option_right">
  168. <view class="input_details">
  169. <view class="details">
  170. <!-- <view class="uni-input text">{{ activityDate }}</view> -->
  171. <u-calendar :show="show" :mode="mode" @confirm="confirm" :closeOnClickOverlay="true"
  172. @close="show=false"></u-calendar>
  173. <view class="text">
  174. {{ activityDate }}
  175. </view>
  176. </view>
  177. <view class="arrow">
  178. <image
  179. src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png"
  180. mode="aspectFill"></image>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. </view>
  187. <view class="userOptionsBox">
  188. <view class="optionsItemBox">
  189. <picker mode="selector" :range="fundsList" @change="handelFunds">
  190. <view class="optionItem">
  191. <view class="option_left">
  192. <text class="option_text">
  193. 活动费用
  194. </text>
  195. </view>
  196. <view class="option_right">
  197. <view class="input_details">
  198. <view class="details">
  199. <view class="uni-input text">{{funds}}</view>
  200. </view>
  201. <view class="arrow">
  202. <image
  203. src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png"
  204. mode="aspectFill"></image>
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. </picker>
  210. </view>
  211. </view>
  212. <view class="userOptionsBox">
  213. <view class="optionsItemBox">
  214. <picker mode="date" :value="deadlineDate" :start="startDate" :end="endDate"
  215. @change="deadlineDateChange">
  216. <view class="optionItem">
  217. <view class="option_left">
  218. <text class="option_text">
  219. 报名截止
  220. </text>
  221. </view>
  222. <view class="option_right">
  223. <view class="input_details">
  224. <view class="details">
  225. <view class="uni-input text">{{ deadlineDate }}</view>
  226. </view>
  227. <view class="arrow">
  228. <image
  229. src="https://teacherapi.cocorobo.cn/teaching-file/static//mine/arrow-right.png"
  230. mode="aspectFill"></image>
  231. </view>
  232. </view>
  233. </view>
  234. </view>
  235. </picker>
  236. </view>
  237. </view>
  238. </view>
  239. <view class="" style="height: 10vh;width: 750rpx;position: relative;">
  240. <view class="publish_now">
  241. <button class="btn" @click="submitForm">{{ btntext }}</button>
  242. </view>
  243. </view>
  244. <!-- 弹窗 -->
  245. <view>
  246. <view class="mask" v-show="showPopup" @click="closePopup"></view>
  247. <view class="popup-container" v-show="showPopup">
  248. <view class="popup">
  249. <view class="header">
  250. <text>确认{{ poptext }}</text>
  251. </view>
  252. <view class="footer">
  253. <button class="cancel-btn" @click="closePopup">取消</button>
  254. <button class="confirm-btn" @click="conf">确认</button>
  255. </view>
  256. </view>
  257. </view>
  258. </view>
  259. <view>
  260. <view class="mask" v-show="showPopupConfirm" @click="closePopup"></view>
  261. <view class="popup-container" style="height: 175px;" v-show="showPopupConfirm">
  262. <view class="popup">
  263. <view class="header" style="margin-top: 15px;">
  264. <image src="https://teacherapi.cocorobo.cn/teaching-file/static//gou1.png" mode="aspectFill">
  265. </image>
  266. <text style="margin-bottom: 24px;">{{ poptext }}成功</text>
  267. </view>
  268. <view class="footer" style="padding-top: 0px;">
  269. <button class="confirm-btn_2" @click="closePopup">确认</button>
  270. </view>
  271. </view>
  272. </view>
  273. </view>
  274. </view>
  275. </template>
  276. <script>
  277. export default {
  278. data() {
  279. const currentDate = this.getDate({
  280. format: true
  281. })
  282. return {
  283. navBarData: {
  284. title: '发布', //导航栏标题
  285. btn: 1 //是否显示返回按钮 0不显示 1 显示
  286. },
  287. //时间选择器
  288. show: false,
  289. mode: 'range',
  290. //控制弹窗
  291. showPopup: false,
  292. showPopupConfirm: false,
  293. isFirstShow: true,
  294. //按钮文本
  295. btntext: '立即发布',
  296. // 弹窗文本
  297. poptext: '发布',
  298. //acId
  299. acId: '',
  300. // 标题
  301. activitytitle: '',
  302. // 内容
  303. activityintro: '',
  304. // 图片
  305. pic: 'https://teacherapi.cocorobo.cn/teaching-file/static//publish/photo.png',
  306. imageValue: '',
  307. // 分类
  308. classifyList: ['直播活动', '常规教研活动', '专题教研活动'],
  309. classify: '请选择',
  310. // 人数
  311. recruitmentList: Array.from({
  312. length: 100
  313. }, (_, index) => index + 1), //100人
  314. recruitment: '请选择',
  315. // 活动形式
  316. activityformList: ['户外活动', 'xxxx', 'xxxx'],
  317. activityform: '请选择',
  318. // 活动地址
  319. addressList: ['深圳xxxx大学', '深圳xxxx大学', '深圳xxxx大学'],
  320. address: '请选择',
  321. // 活动费用
  322. fundsList: Array.from({
  323. length: 30
  324. }, (_, index) => (index + 1) * 100).map(item => item),
  325. funds: '请选择',
  326. // activityDate: currentDate,
  327. activityDate: '请选择',
  328. deadlineDate: currentDate,
  329. activeList: [],
  330. formData: {}
  331. };
  332. },
  333. computed: {
  334. startDate() {
  335. return this.getDate('start');
  336. },
  337. endDate() {
  338. return this.getDate('end');
  339. }
  340. },
  341. methods: {
  342. clearData() {
  343. this.$store.commit('removeData');
  344. },
  345. confirm(e) {
  346. console.log(e);
  347. console.log(e[0], e[e.length - 1]);
  348. this.activityDate = e[0] + '~' + e[e.length - 1]
  349. this.show = false
  350. },
  351. editPublish() {
  352. const routes = getCurrentPages()
  353. console.log(routes);
  354. if (routes.length == 3) {
  355. const acId = routes[2].options.acId
  356. const type = routes[2].options.ty
  357. if (acId) {
  358. this.navBarData.title = '修改发布'
  359. this.btntext = '修改发布'
  360. this.poptext = '修改'
  361. console.log(acId);
  362. console.log(type);
  363. let data = {
  364. acId: acId,
  365. ty: type
  366. }
  367. this.$request('/selectActivityID', "POST", data).then(res => {
  368. console.log(res[0]);
  369. // this.actItemList = res[0]
  370. const item = res[0][0]
  371. this.acId = item.acId
  372. this.activitytitle = item.acName
  373. this.activityintro = item.brief
  374. this.imageValue = item.pic
  375. this.classify = item.type
  376. this.recruitment = item.pers
  377. this.activityform = item.acshape
  378. this.address = item.address
  379. this.funds = item.cost
  380. this.activityDate = item.begin_at
  381. this.deadlineDate = item.endTime
  382. if (this.classify == 0) {
  383. this.classify = "直播活动"
  384. } else if (this.classify == 1) {
  385. this.classify = "常规教研活动"
  386. } else {
  387. this.classify = "专题教研活动"
  388. }
  389. })
  390. }
  391. }
  392. },
  393. submitForm() {
  394. //判断表单内容是否完整
  395. const conditions = [
  396. // 添加提示信息
  397. {
  398. value: this.activitytitle.trim(),
  399. message: '请填写活动标题'
  400. },
  401. {
  402. value: this.activityintro.trim(),
  403. message: '请填写活动内容'
  404. },
  405. {
  406. value: this.classify,
  407. message: '请填写活动分类'
  408. },
  409. {
  410. value: this.recruitment,
  411. message: '请填写招募人数'
  412. },
  413. {
  414. value: this.address,
  415. message: '请填写活动地址'
  416. },
  417. {
  418. value: this.activityDate,
  419. message: '请填写活动时间'
  420. },
  421. ];
  422. for (const condition of conditions) {
  423. if (!condition.value || condition.value === '请选择') {
  424. uni.showToast({
  425. title: condition.message,
  426. icon: 'none'
  427. });
  428. return;
  429. }
  430. }
  431. //判断没有填写的表单内容是否填写,如果没有替换
  432. if (
  433. this.imageValue == '' ||
  434. this.activityform === '请选择' ||
  435. this.funds === '请选择'
  436. ) {
  437. this.imageValue = 'https://teacherapi.cocorobo.cn/teaching-file/static//zanwu_img.png'
  438. this.activityform = '暂无'
  439. this.funds = '暂无'
  440. }
  441. this.showPopup = true; //显示弹窗
  442. },
  443. closePopup() {
  444. // 取消操作
  445. this.showPopup = false;
  446. this.showPopupConfirm = false;
  447. },
  448. conf() {
  449. // 确认操作
  450. if (this.classify == "直播活动") {
  451. this.classify = 0
  452. } else if (this.classify == "常规教研活动") {
  453. this.classify = 1
  454. } else {
  455. this.classify = 2
  456. }
  457. // 将文本框内容和图片链接存储在一个对象中
  458. this.formData = {
  459. // id: this.$store.state.user.openid,
  460. id: this.btntext === '修改发布' ? this.acId : this.$store.state.user.openid,
  461. activitytitle: this.activitytitle,
  462. activityintro: this.activityintro,
  463. img: this.imageValue,
  464. recruitment: this.recruitment,
  465. activityform: this.activityform,
  466. address: this.address,
  467. classify: this.classify,
  468. activityDate: this.activityDate,
  469. deadlineDate: this.deadlineDate,
  470. funds: this.funds
  471. // price: "188",
  472. // count: "6",
  473. };
  474. this.showPopup = false;
  475. this.showPopupConfirm = true
  476. // return console.log(formData);
  477. console.log(this.btntext);
  478. if (this.btntext === '修改发布') {
  479. // formData.acId = this.acId
  480. // console.log(formData);
  481. this.$request('/updateMyPublish', 'POST', this.formData).then(res => {
  482. console.log(res);
  483. setTimeout(() => {
  484. uni.navigateBack();
  485. }, 500)
  486. })
  487. } else {
  488. this.$request('/insertActive', 'POST', this.formData).then(res => {
  489. console.log(res.data);
  490. if (res.code == 200) {
  491. this.activitytitle = ''
  492. this.activityintro = ''
  493. this.imageValue = ''
  494. this.classify = '请选择'
  495. this.recruitment = '请选择'
  496. this.activityform = '请选择'
  497. this.address = '请选择'
  498. this.funds = '请选择'
  499. this.activityDate = '请选择'
  500. this.deadlineDate = '请选择'
  501. setTimeout(() => {
  502. this.clearData()
  503. uni.navigateBack();
  504. }, 500)
  505. }
  506. })
  507. }
  508. },
  509. handelclassify(e) {
  510. this.classify = this.classifyList[e.detail.value]
  511. console.log(this.classify);
  512. },
  513. handelRecruitment(e) {
  514. this.recruitment = this.recruitmentList[e.detail.value]
  515. console.log(this.imageValue);
  516. },
  517. handelActivityform(e) {
  518. this.activityform = this.activityformList[e.detail.value]
  519. },
  520. handeladdress(e) {
  521. this.address = this.addressList[e.detail.value]
  522. },
  523. handelFunds(e) {
  524. this.funds = this.fundsList[e.detail.value]
  525. },
  526. // activityDateChange: function(e) {
  527. // this.activityDate = e.detail.value
  528. // },
  529. deadlineDateChange: function(e) {
  530. this.deadlineDate = e.detail.value
  531. },
  532. getDate(type) {
  533. const date = new Date();
  534. let year = date.getFullYear();
  535. let month = date.getMonth() + 1;
  536. let day = date.getDate();
  537. if (type === 'start') {
  538. year = year - 60;
  539. } else if (type === 'end') {
  540. year = year + 2;
  541. }
  542. month = month > 9 ? month : '0' + month;
  543. day = day > 9 ? day : '0' + day;
  544. return `${year}-${month}-${day}`;
  545. },
  546. // 上传图片
  547. uploadPic() {
  548. uni.chooseImage({
  549. count: 1, // 图片数量
  550. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  551. sourceType: ['album', 'camera'], //从相册选择或者拍照
  552. success: (res) => {
  553. const tempFilePaths = res.tempFilePaths[0];
  554. console.log(this);
  555. let that = this
  556. const uploadTask = uni.uploadFile({
  557. url: 'http://139.159.246.165:7006/img', // post请求地址
  558. // url: 'https://cxcy.ssti.net.cn/api/UploadFirmFile', // post请求地址
  559. // filePath: tempFilePaths,
  560. filePath: tempFilePaths,
  561. name: 'file', // 待确认
  562. header: {
  563. // 不要写这个不然报错
  564. // 'Content-Type': 'multipart/form-data',
  565. },
  566. success: function(res) {
  567. // console.log(res.data);
  568. that.imageValue = res.data
  569. // let url = JSON.parse(res.data)
  570. // console.log(url.data);
  571. },
  572. fail: function(uploadFileFail) {
  573. console.log('Error:', uploadFileFail.data);
  574. },
  575. complete: () => {
  576. // 接口调用结束的回调函数(调用成功、失败都会执行)
  577. // console.log('Complete:');
  578. }
  579. });
  580. }
  581. });
  582. },
  583. },
  584. onShow() {
  585. if (this.isFirstShow) {
  586. this.editPublish()
  587. this.isFirstShow = false
  588. }
  589. this.formData = this.$store.state.formData
  590. console.log(this.formData);
  591. this.activitytitle = this.formData.activitytitle
  592. this.activityintro = this.formData.activityintro
  593. this.imageValue = this.formData.imageValue
  594. this.classify = this.formData.classify
  595. this.recruitment = this.formData.recruitment
  596. this.activityform = this.formData.activityform
  597. this.address = this.formData.address
  598. this.funds = this.formData.funds
  599. this.activityDate = this.formData.activityDate
  600. this.deadlineDate = this.formData.deadlineDate
  601. switch (this.classify) {
  602. case 0:
  603. this.classify = "直播活动";
  604. break;
  605. case 1:
  606. this.classify = "常规教研活动";
  607. break;
  608. case 2:
  609. this.classify = "专题教研活动";
  610. break;
  611. default:
  612. this.classify = "请选择";
  613. }
  614. },
  615. beforeDestroy() {
  616. // 在组件销毁之前保存表单数据到 Vuex 中
  617. this.formData = {
  618. activitytitle: this.activitytitle,
  619. activityintro: this.activityintro,
  620. imageValue: this.imageValue,
  621. classify: this.classify,
  622. recruitment: this.recruitment,
  623. activityform: this.activityform,
  624. address: this.address,
  625. funds: this.funds,
  626. activityDate: this.activityDate,
  627. deadlineDate: this.deadlineDate
  628. }
  629. this.$store.commit('saveformData', this.formData);
  630. console.log('Submitted formData:', this.formData);
  631. console.log('Current state.formData:', this.$store.state.formData);
  632. },
  633. }
  634. </script>
  635. <style lang="scss" scoped>
  636. .publish {
  637. .liu {
  638. //留白
  639. width: 750rpx;
  640. height: 68rpx;
  641. position: absolute;
  642. bottom: 0;
  643. background-color: #ffffff;
  644. }
  645. .pubTitle {
  646. width: 750rpx;
  647. height: 96rpx;
  648. padding: 24rpx 30rpx 0 30rpx;
  649. .title {
  650. font-size: 32rpx;
  651. line-height: 48rpx;
  652. font-weight: 500;
  653. }
  654. }
  655. .pubMid {
  656. width: 750rpx;
  657. // height: 504rpx;
  658. padding: 24rpx 30rpx 0 30rpx;
  659. // background-color: #8BBEFF;
  660. .mid {
  661. width: 690rpx;
  662. height: 440rpx;
  663. // background-color: #f2f2f2;
  664. .txt {
  665. width: 690rpx;
  666. height: 192rpx;
  667. .txtClass {
  668. width: 100%;
  669. height: 100%;
  670. font-size: 28rpx;
  671. font-weight: 400;
  672. line-height: 48rpx;
  673. }
  674. }
  675. .pic {
  676. width: 224rpx;
  677. height: 224rpx;
  678. background-color: rgba(242, 242, 242, 1);
  679. display: flex;
  680. position: relative;
  681. justify-content: center;
  682. align-items: center;
  683. .pic_show {
  684. position: absolute;
  685. top: 0;
  686. left: 0;
  687. width: 100%;
  688. height: 100%;
  689. z-index: 10;
  690. background-color: #8BBEFF;
  691. image {
  692. width: 100%;
  693. height: 100%;
  694. }
  695. }
  696. .picCont {
  697. display: flex;
  698. flex-direction: column;
  699. justify-content: center;
  700. align-items: center;
  701. image {
  702. width: 56rpx;
  703. height: 66rpx;
  704. }
  705. }
  706. }
  707. }
  708. }
  709. // background-color: #fff;
  710. height: 100vh;
  711. .textCont {
  712. padding: 16px;
  713. }
  714. .addPhoto {
  715. background-color: #f2f2f2;
  716. width: 224rpx;
  717. height: 224rpx;
  718. display: flex;
  719. color: #616161;
  720. flex-direction: column;
  721. align-items: center;
  722. justify-content: center;
  723. margin-left: 30rpx;
  724. image {
  725. width: 50px;
  726. height: 50px;
  727. // margin-left: 48px;
  728. }
  729. .photo {
  730. color: #000000A3;
  731. // padding-left: 44px;
  732. // font-size: 14px;
  733. }
  734. .num {
  735. color: #919191;
  736. // padding-left: 56px;
  737. // font-size: 14px;
  738. }
  739. }
  740. .userOptionsBox {
  741. width: 750rpx;
  742. height: 96rpx;
  743. display: flex;
  744. justify-content: center;
  745. align-items: center;
  746. .optionsItemBox {
  747. width: 690rpx;
  748. .optionItem {
  749. display: flex;
  750. justify-content: space-between;
  751. align-items: center;
  752. .option_left {
  753. display: flex;
  754. align-items: center;
  755. font-size: 28rpx;
  756. line-height: 48rpx;
  757. font-weight: 400;
  758. }
  759. .option_right {
  760. height: 40rpx;
  761. .input_details {
  762. display: flex;
  763. align-items: center;
  764. .details {
  765. display: flex;
  766. flex-direction: row;
  767. .text {
  768. font-size: 28rpx;
  769. color: rgb(153, 153, 153);
  770. }
  771. }
  772. .arrow {
  773. display: flex;
  774. image {
  775. width: 32rpx;
  776. height: 32rpx;
  777. }
  778. }
  779. }
  780. }
  781. }
  782. }
  783. }
  784. .publish_now {
  785. position: absolute;
  786. // bottom: 100rpx;
  787. display: flex;
  788. width: 750rpx;
  789. justify-content: center;
  790. padding-bottom: 50rpx;
  791. .btn {
  792. width: 432rpx;
  793. height: 88rpx;
  794. line-height: 88rpx;
  795. // background-color: #8BBEFF;
  796. background: rgba(0, 86, 168, 1);
  797. color: #fff;
  798. display: flex;
  799. flex-direction: column;
  800. align-items: center;
  801. margin-top: 20px;
  802. }
  803. }
  804. .mask {
  805. position: fixed;
  806. top: 0;
  807. left: 0;
  808. width: 100%;
  809. height: 100%;
  810. background-color: rgba(0, 0, 0, 0.3);
  811. z-index: 999;
  812. // display: none;
  813. }
  814. .popup-container {
  815. position: fixed;
  816. top: 50%;
  817. left: 50%;
  818. transform: translate(-50%, -50%);
  819. width: 520rpx;
  820. height: 260rpx;
  821. z-index: 1000;
  822. // display: none;
  823. .popup {
  824. width: 100%;
  825. height: 100%;
  826. display: flex;
  827. flex-direction: column;
  828. background-color: #fff;
  829. border-radius: 16rpx;
  830. .header {
  831. flex: 1;
  832. display: flex;
  833. justify-content: center;
  834. align-items: center;
  835. flex-direction: column;
  836. margin-top: 24px;
  837. font-size: 34rpx;
  838. font-weight: 600;
  839. image {
  840. width: 150rpx;
  841. height: 150rpx;
  842. margin-top: 15px;
  843. margin-bottom: 15px;
  844. }
  845. }
  846. .footer {
  847. flex: 1;
  848. display: flex;
  849. justify-content: space-around;
  850. align-items: end;
  851. padding-top: 17px;
  852. .cancel-btn {
  853. width: 259rpx;
  854. height: 100rpx;
  855. background-color: #F7F7F7;
  856. color: #000;
  857. font-size: 34rpx;
  858. text-align: center;
  859. border-radius: 0;
  860. border-bottom-left-radius: 16rpx;
  861. line-height: 50px;
  862. }
  863. .confirm-btn {
  864. width: 259rpx;
  865. height: 100rpx;
  866. background-color: #0081FE;
  867. color: #fff;
  868. font-size: 34rpx;
  869. text-align: center;
  870. border-radius: 0;
  871. border-bottom-right-radius: 16rpx;
  872. line-height: 50px;
  873. }
  874. .confirm-btn_2 {
  875. width: 518rpx;
  876. height: 100rpx;
  877. background-color: #F7F7F7;
  878. color: #000;
  879. font-size: 34rpx;
  880. text-align: center;
  881. border-radius: 0;
  882. border-bottom-left-radius: 16rpx;
  883. border-bottom-right-radius: 16rpx;
  884. line-height: 50px;
  885. }
  886. }
  887. }
  888. }
  889. }
  890. </style>