publish.vue 23 KB

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