publish.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984
  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" :value="index" @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">{{classifyList[index]}}</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. // index判断选择分类 0 1 2 3 ,对应上面
  310. index:1,
  311. classify: '请选择',
  312. // 人数
  313. recruitmentList: Array.from({
  314. length: 100
  315. }, (_, index) => index + 1), //100人
  316. recruitment: '请选择',
  317. // 活动形式
  318. activityformList: ['户外活动', 'xxxx', 'xxxx'],
  319. activityform: '请选择',
  320. // 活动地址
  321. addressList: ['深圳xxxx大学', '深圳xxxx大学', '深圳xxxx大学'],
  322. address: '请选择',
  323. // 活动费用
  324. fundsList: Array.from({
  325. length: 30
  326. }, (_, index) => (index + 1) * 100).map(item => item),
  327. funds: '请选择',
  328. // activityDate: currentDate,
  329. activityDate: '请选择',
  330. deadlineDate: currentDate,
  331. activeList: [],
  332. formData: {}
  333. };
  334. },
  335. computed: {
  336. startDate() {
  337. return this.getDate('start');
  338. },
  339. endDate() {
  340. return this.getDate('end');
  341. }
  342. },
  343. methods: {
  344. clearData() {
  345. this.$store.commit('removeData');
  346. },
  347. confirm(e) {
  348. console.log(e);
  349. console.log(e[0], e[e.length - 1]);
  350. this.activityDate = e[0] + '~' + e[e.length - 1]
  351. this.show = false
  352. },
  353. editPublish() {
  354. const routes = getCurrentPages()
  355. console.log(routes);
  356. if (routes.length == 3) {
  357. const acId = routes[2].options.acId
  358. const type = routes[2].options.ty
  359. if (acId) {
  360. this.navBarData.title = '修改发布'
  361. this.btntext = '修改发布'
  362. this.poptext = '修改'
  363. console.log(acId);
  364. console.log(type);
  365. let data = {
  366. acId: acId,
  367. ty: type
  368. }
  369. this.$request('/selectActivityID', "POST", data).then(res => {
  370. console.log(res[0]);
  371. // this.actItemList = res[0]
  372. const item = res[0][0]
  373. this.acId = item.acId
  374. this.activitytitle = item.acName
  375. this.activityintro = item.brief
  376. this.imageValue = item.pic
  377. this.classify = item.type
  378. this.recruitment = item.pers
  379. this.activityform = item.acshape
  380. this.address = item.address
  381. this.funds = item.cost
  382. this.activityDate = item.begin_at
  383. this.deadlineDate = item.endTime
  384. if (this.classify == 0) {
  385. this.classify = "直播活动"
  386. } else if (this.classify == 1) {
  387. this.classify = "常规教研活动"
  388. } else {
  389. this.classify = "专题教研活动"
  390. }
  391. })
  392. }
  393. }
  394. },
  395. submitForm() {
  396. //判断表单内容是否完整
  397. const conditions = [
  398. // 添加提示信息
  399. {
  400. value: this.activitytitle.trim(),
  401. message: '请填写活动标题'
  402. },
  403. {
  404. value: this.activityintro.trim(),
  405. message: '请填写活动内容'
  406. },
  407. {
  408. value: this.index,
  409. message: '请填写活动分类'
  410. },
  411. {
  412. value: this.recruitment,
  413. message: '请填写招募人数'
  414. },
  415. {
  416. value: this.address,
  417. message: '请填写活动地址'
  418. },
  419. {
  420. value: this.activityDate,
  421. message: '请填写活动时间'
  422. },
  423. ];
  424. for (const condition of conditions) {
  425. if (!condition.value || condition.value === '请选择') {
  426. uni.showToast({
  427. title: condition.message,
  428. icon: 'none'
  429. });
  430. return;
  431. }
  432. }
  433. //判断没有填写的表单内容是否填写,如果没有替换
  434. if (
  435. this.imageValue == '' ||
  436. this.activityform === '请选择' ||
  437. this.funds === '请选择'
  438. ) {
  439. this.imageValue = 'https://teacherapi.cocorobo.cn/teaching-file/static//zanwu_img.png'
  440. this.activityform = '暂无'
  441. this.funds = '暂无'
  442. }
  443. this.showPopup = true; //显示弹窗
  444. },
  445. closePopup() {
  446. // 取消操作
  447. this.showPopup = false;
  448. this.showPopupConfirm = false;
  449. },
  450. // 上传发布
  451. conf() {
  452. this.formData = {
  453. // id: this.$store.state.user.openid,
  454. id: this.btntext === '修改发布' ? this.acId : this.$store.state.user.openid,
  455. activitytitle: this.activitytitle,
  456. activityintro: this.activityintro,
  457. img: this.imageValue,
  458. recruitment: this.recruitment,
  459. activityform: this.activityform,
  460. address: this.address,
  461. classify: this.index,
  462. activityDate: this.activityDate,
  463. deadlineDate: this.deadlineDate,
  464. funds: this.funds
  465. };
  466. this.showPopup = false;
  467. this.showPopupConfirm = true
  468. // return console.log(formData);
  469. console.log(this.btntext);
  470. if (this.btntext === '修改发布') {
  471. // formData.acId = this.acId
  472. // console.log(formData);
  473. this.$request('/updateMyPublish', 'POST', this.formData).then(res => {
  474. console.log(res);
  475. setTimeout(() => {
  476. uni.navigateBack();
  477. }, 500)
  478. })
  479. } else {
  480. this.$request('/insertActive', 'POST', this.formData).then(res => {
  481. console.log(res.data);
  482. if (res.code == 200) {
  483. this.activitytitle = ''
  484. this.activityintro = ''
  485. this.imageValue = ''
  486. this.classify = '请选择'
  487. this.recruitment = '请选择'
  488. this.activityform = '请选择'
  489. this.address = '请选择'
  490. this.funds = '请选择'
  491. this.activityDate = '请选择'
  492. this.deadlineDate = '请选择'
  493. setTimeout(() => {
  494. this.clearData()
  495. uni.navigateBack();
  496. }, 500)
  497. }
  498. })
  499. }
  500. },
  501. handelclassify(e) {
  502. // console.log(e);
  503. this.index=e.detail.value
  504. console.log(this.index);
  505. // this.classify = this.classifyList[e.detail.value]
  506. // console.log(this.classify);
  507. },
  508. handelRecruitment(e) {
  509. this.recruitment = this.recruitmentList[e.detail.value]
  510. console.log(this.imageValue);
  511. },
  512. handelActivityform(e) {
  513. this.activityform = this.activityformList[e.detail.value]
  514. },
  515. handeladdress(e) {
  516. this.address = this.addressList[e.detail.value]
  517. },
  518. handelFunds(e) {
  519. this.funds = this.fundsList[e.detail.value]
  520. },
  521. // activityDateChange: function(e) {
  522. // this.activityDate = e.detail.value
  523. // },
  524. deadlineDateChange: function(e) {
  525. this.deadlineDate = e.detail.value
  526. },
  527. getDate(type) {
  528. const date = new Date();
  529. let year = date.getFullYear();
  530. let month = date.getMonth() + 1;
  531. let day = date.getDate();
  532. if (type === 'start') {
  533. year = year - 60;
  534. } else if (type === 'end') {
  535. year = year + 2;
  536. }
  537. month = month > 9 ? month : '0' + month;
  538. day = day > 9 ? day : '0' + day;
  539. return `${year}-${month}-${day}`;
  540. },
  541. // 上传图片
  542. uploadPic() {
  543. uni.chooseImage({
  544. count: 1, // 图片数量
  545. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  546. sourceType: ['album', 'camera'], //从相册选择或者拍照
  547. success: (res) => {
  548. const tempFilePaths = res.tempFilePaths[0];
  549. console.log(this);
  550. let that = this
  551. const uploadTask = uni.uploadFile({
  552. url: 'http://139.159.246.165:7006/img', // post请求地址
  553. // url: 'https://cxcy.ssti.net.cn/api/UploadFirmFile', // post请求地址
  554. // filePath: tempFilePaths,
  555. filePath: tempFilePaths,
  556. name: 'file', // 待确认
  557. header: {
  558. // 不要写这个不然报错
  559. // 'Content-Type': 'multipart/form-data',
  560. },
  561. success: function(res) {
  562. // console.log(res.data);
  563. that.imageValue = res.data
  564. // let url = JSON.parse(res.data)
  565. // console.log(url.data);
  566. },
  567. fail: function(uploadFileFail) {
  568. console.log('Error:', uploadFileFail.data);
  569. },
  570. complete: () => {
  571. // 接口调用结束的回调函数(调用成功、失败都会执行)
  572. // console.log('Complete:');
  573. }
  574. });
  575. }
  576. });
  577. },
  578. },
  579. onShow() {
  580. if (this.isFirstShow) {
  581. this.editPublish()
  582. this.isFirstShow = false
  583. }
  584. this.formData = this.$store.state.formData
  585. console.log(this.formData);
  586. this.activitytitle = this.formData.activitytitle
  587. this.activityintro = this.formData.activityintro
  588. this.imageValue = this.formData.imageValue
  589. this.index = this.formData.classify
  590. this.recruitment = this.formData.recruitment
  591. this.activityform = this.formData.activityform
  592. this.address = this.formData.address
  593. this.funds = this.formData.funds
  594. this.activityDate = this.formData.activityDate
  595. this.deadlineDate = this.formData.deadlineDate
  596. console.log(this.index);
  597. // switch (this.classify) {
  598. // case 0:
  599. // this.classify = "直播活动";
  600. // break;
  601. // case 1:
  602. // this.classify = "常规教研活动";
  603. // break;
  604. // case 2:
  605. // this.classify = "专题教研活动";
  606. // break;
  607. // default:
  608. // this.classify = "请选择";
  609. // }
  610. },
  611. beforeDestroy() {
  612. // 在组件销毁之前保存表单数据到 Vuex 中
  613. this.formData = {
  614. activitytitle: this.activitytitle,
  615. activityintro: this.activityintro,
  616. imageValue: this.imageValue,
  617. classify: this.index,
  618. recruitment: this.recruitment,
  619. activityform: this.activityform,
  620. address: this.address,
  621. funds: this.funds,
  622. activityDate: this.activityDate,
  623. deadlineDate: this.deadlineDate
  624. }
  625. this.$store.commit('saveformData', this.formData);
  626. console.log('Submitted formData:', this.formData);
  627. console.log('Current state.formData:', this.$store.state.formData);
  628. },
  629. }
  630. </script>
  631. <style lang="scss" scoped>
  632. .publish {
  633. .liu {
  634. //留白
  635. width: 750rpx;
  636. height: 68rpx;
  637. position: absolute;
  638. bottom: 0;
  639. background-color: #ffffff;
  640. }
  641. .pubTitle {
  642. width: 750rpx;
  643. height: 96rpx;
  644. padding: 24rpx 30rpx 0 30rpx;
  645. .title {
  646. font-size: 32rpx;
  647. line-height: 48rpx;
  648. font-weight: 500;
  649. }
  650. }
  651. .pubMid {
  652. width: 750rpx;
  653. // height: 504rpx;
  654. padding: 24rpx 30rpx 0 30rpx;
  655. // background-color: #8BBEFF;
  656. .mid {
  657. width: 690rpx;
  658. height: 440rpx;
  659. // background-color: #f2f2f2;
  660. .txt {
  661. width: 690rpx;
  662. height: 192rpx;
  663. .txtClass {
  664. width: 100%;
  665. height: 100%;
  666. font-size: 28rpx;
  667. font-weight: 400;
  668. line-height: 48rpx;
  669. }
  670. }
  671. .pic {
  672. width: 224rpx;
  673. height: 224rpx;
  674. background-color: rgba(242, 242, 242, 1);
  675. display: flex;
  676. position: relative;
  677. justify-content: center;
  678. align-items: center;
  679. .pic_show {
  680. position: absolute;
  681. top: 0;
  682. left: 0;
  683. width: 100%;
  684. height: 100%;
  685. z-index: 10;
  686. background-color: #8BBEFF;
  687. image {
  688. width: 100%;
  689. height: 100%;
  690. }
  691. }
  692. .picCont {
  693. display: flex;
  694. flex-direction: column;
  695. justify-content: center;
  696. align-items: center;
  697. image {
  698. width: 56rpx;
  699. height: 66rpx;
  700. }
  701. }
  702. }
  703. }
  704. }
  705. // background-color: #fff;
  706. height: 100vh;
  707. .textCont {
  708. padding: 16px;
  709. }
  710. .addPhoto {
  711. background-color: #f2f2f2;
  712. width: 224rpx;
  713. height: 224rpx;
  714. display: flex;
  715. color: #616161;
  716. flex-direction: column;
  717. align-items: center;
  718. justify-content: center;
  719. margin-left: 30rpx;
  720. image {
  721. width: 50px;
  722. height: 50px;
  723. // margin-left: 48px;
  724. }
  725. .photo {
  726. color: #000000A3;
  727. // padding-left: 44px;
  728. // font-size: 14px;
  729. }
  730. .num {
  731. color: #919191;
  732. // padding-left: 56px;
  733. // font-size: 14px;
  734. }
  735. }
  736. .userOptionsBox {
  737. width: 750rpx;
  738. height: 96rpx;
  739. display: flex;
  740. justify-content: center;
  741. align-items: center;
  742. .optionsItemBox {
  743. width: 690rpx;
  744. .optionItem {
  745. display: flex;
  746. justify-content: space-between;
  747. align-items: center;
  748. .option_left {
  749. display: flex;
  750. align-items: center;
  751. font-size: 28rpx;
  752. line-height: 48rpx;
  753. font-weight: 400;
  754. }
  755. .option_right {
  756. height: 40rpx;
  757. .input_details {
  758. display: flex;
  759. align-items: center;
  760. .details {
  761. display: flex;
  762. flex-direction: row;
  763. .text {
  764. font-size: 28rpx;
  765. color: rgb(153, 153, 153);
  766. }
  767. }
  768. .arrow {
  769. display: flex;
  770. image {
  771. width: 32rpx;
  772. height: 32rpx;
  773. }
  774. }
  775. }
  776. }
  777. }
  778. }
  779. }
  780. .publish_now {
  781. position: absolute;
  782. // bottom: 100rpx;
  783. display: flex;
  784. width: 750rpx;
  785. justify-content: center;
  786. padding-bottom: 50rpx;
  787. .btn {
  788. width: 432rpx;
  789. height: 88rpx;
  790. line-height: 88rpx;
  791. // background-color: #8BBEFF;
  792. background: rgba(0, 86, 168, 1);
  793. color: #fff;
  794. display: flex;
  795. flex-direction: column;
  796. align-items: center;
  797. margin-top: 20px;
  798. }
  799. }
  800. .mask {
  801. position: fixed;
  802. top: 0;
  803. left: 0;
  804. width: 100%;
  805. height: 100%;
  806. background-color: rgba(0, 0, 0, 0.3);
  807. z-index: 999;
  808. // display: none;
  809. }
  810. .popup-container {
  811. position: fixed;
  812. top: 50%;
  813. left: 50%;
  814. transform: translate(-50%, -50%);
  815. width: 520rpx;
  816. height: 260rpx;
  817. z-index: 1000;
  818. // display: none;
  819. .popup {
  820. width: 100%;
  821. height: 100%;
  822. display: flex;
  823. flex-direction: column;
  824. background-color: #fff;
  825. border-radius: 16rpx;
  826. .header {
  827. flex: 1;
  828. display: flex;
  829. justify-content: center;
  830. align-items: center;
  831. flex-direction: column;
  832. margin-top: 24px;
  833. font-size: 34rpx;
  834. font-weight: 600;
  835. image {
  836. width: 150rpx;
  837. height: 150rpx;
  838. margin-top: 15px;
  839. margin-bottom: 15px;
  840. }
  841. }
  842. .footer {
  843. flex: 1;
  844. display: flex;
  845. justify-content: space-around;
  846. align-items: end;
  847. padding-top: 17px;
  848. .cancel-btn {
  849. width: 259rpx;
  850. height: 100rpx;
  851. background-color: #F7F7F7;
  852. color: #000;
  853. font-size: 34rpx;
  854. text-align: center;
  855. border-radius: 0;
  856. border-bottom-left-radius: 16rpx;
  857. line-height: 50px;
  858. }
  859. .confirm-btn {
  860. width: 259rpx;
  861. height: 100rpx;
  862. background-color: #0081FE;
  863. color: #fff;
  864. font-size: 34rpx;
  865. text-align: center;
  866. border-radius: 0;
  867. border-bottom-right-radius: 16rpx;
  868. line-height: 50px;
  869. }
  870. .confirm-btn_2 {
  871. width: 518rpx;
  872. height: 100rpx;
  873. background-color: #F7F7F7;
  874. color: #000;
  875. font-size: 34rpx;
  876. text-align: center;
  877. border-radius: 0;
  878. border-bottom-left-radius: 16rpx;
  879. border-bottom-right-radius: 16rpx;
  880. line-height: 50px;
  881. }
  882. }
  883. }
  884. }
  885. }
  886. </style>