publish.vue 23 KB

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