publish.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970
  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.classify = 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. conf() {
  447. this.formData = {
  448. // id: this.$store.state.user.openid,
  449. id: this.btntext === '修改发布' ? this.acId : this.$store.state.user.openid,
  450. activitytitle: this.activitytitle,
  451. activityintro: this.activityintro,
  452. img: this.imageValue,
  453. recruitment: this.recruitment,
  454. activityform: this.activityform,
  455. address: this.address,
  456. classify: this.index,
  457. activityDate: this.activityDate,
  458. deadlineDate: this.deadlineDate,
  459. funds: this.funds
  460. };
  461. this.showPopup = false;
  462. this.showPopupConfirm = true
  463. // return console.log(formData);
  464. console.log(this.btntext);
  465. if (this.btntext === '修改发布') {
  466. // formData.acId = this.acId
  467. // console.log(formData);
  468. this.$request('/updateMyPublish', 'POST', this.formData).then(res => {
  469. console.log(res);
  470. setTimeout(() => {
  471. uni.navigateBack();
  472. }, 500)
  473. })
  474. } else {
  475. this.$request('/insertActive', 'POST', this.formData).then(res => {
  476. console.log(res.data);
  477. if (res.code == 200) {
  478. this.activitytitle = ''
  479. this.activityintro = ''
  480. this.imageValue = ''
  481. this.index = null
  482. this.recruitment = ''
  483. this.activityform = '请选择'
  484. this.address = '请选择'
  485. this.funds = ''
  486. this.activityDate = '请选择'
  487. this.deadlineDate = '请选择'
  488. setTimeout(() => {
  489. uni.switchTab({
  490. url: '/pages/activityPage/activityPage'
  491. })
  492. }, 2000)
  493. }
  494. })
  495. }
  496. },
  497. handelclassify(e) {
  498. // console.log(e);
  499. this.index = e.detail.value
  500. console.log(this.index);
  501. // this.classify = this.classifyList[e.detail.value]
  502. // console.log(this.classify);
  503. },
  504. handelActivityform(e) {
  505. this.activityform = this.activityformList[e.detail.value]
  506. },
  507. handeladdress(e) {
  508. this.address = this.addressList[e.detail.value]
  509. },
  510. // activityDateChange: function(e) {
  511. // this.activityDate = e.detail.value
  512. // },
  513. deadlineDateChange: function(e) {
  514. this.deadlineDate = e.detail.value
  515. },
  516. getDate(type) {
  517. const date = new Date();
  518. let year = date.getFullYear();
  519. let month = date.getMonth() + 1;
  520. let day = date.getDate();
  521. if (type === 'start') {
  522. year = year - 60;
  523. } else if (type === 'end') {
  524. year = year + 2;
  525. }
  526. month = month > 9 ? month : '0' + month;
  527. day = day > 9 ? day : '0' + day;
  528. return `${year}-${month}-${day}`;
  529. },
  530. // 上传图片
  531. uploadPic() {
  532. uni.chooseImage({
  533. count: 1, // 图片数量
  534. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  535. sourceType: ['album', 'camera'], //从相册选择或者拍照
  536. success: (res) => {
  537. const tempFilePaths = res.tempFilePaths[0];
  538. console.log(this);
  539. let that = this
  540. const uploadTask = uni.uploadFile({
  541. url: 'http://139.159.246.165:7006/img', // post请求地址
  542. // url: 'https://cxcy.ssti.net.cn/api/UploadFirmFile', // post请求地址
  543. // filePath: tempFilePaths,
  544. filePath: tempFilePaths,
  545. name: 'file', // 待确认
  546. header: {
  547. // 不要写这个不然报错
  548. // 'Content-Type': 'multipart/form-data',
  549. },
  550. success: function(res) {
  551. // console.log(res.data);
  552. that.imageValue = res.data
  553. // let url = JSON.parse(res.data)
  554. // console.log(url.data);
  555. },
  556. fail: function(uploadFileFail) {
  557. console.log('Error:', uploadFileFail.data);
  558. },
  559. complete: () => {
  560. // 接口调用结束的回调函数(调用成功、失败都会执行)
  561. // console.log('Complete:');
  562. }
  563. });
  564. }
  565. });
  566. },
  567. },
  568. onShow() {
  569. if (this.isFirstShow) {
  570. this.editPublish()
  571. this.isFirstShow = false
  572. }
  573. this.formData = this.$store.state.formData
  574. let data = uni.getStorageSync('formData')
  575. console.log(data);
  576. this.activitytitle = data.activitytitle
  577. this.activityintro = data.activityintro
  578. this.imageValue = data.imageValue
  579. this.index = data.classify
  580. this.recruitment = data.recruitment
  581. this.activityform = data.activityform
  582. this.address = data.address
  583. this.funds = data.funds
  584. this.activityDate = data.activityDate
  585. this.deadlineDate = data.deadlineDate
  586. console.log(this.index);
  587. },
  588. beforeDestroy() {
  589. // 在组件销毁之前保存表单数据到 Vuex 中
  590. let data = {
  591. activitytitle: this.activitytitle,
  592. activityintro: this.activityintro,
  593. imageValue: this.imageValue,
  594. classify: this.index,
  595. recruitment: this.recruitment,
  596. activityform: this.activityform,
  597. address: this.address,
  598. funds: this.funds,
  599. activityDate: this.activityDate,
  600. deadlineDate: this.deadlineDate
  601. }
  602. uni.setStorageSync('formData', data)
  603. // this.$store.commit('saveformData', this.formData);
  604. // console.log('Submitted formData:', this.formData);
  605. // console.log('Current state.formData:', this.$store.state.formData);
  606. },
  607. }
  608. </script>
  609. <style lang="scss" scoped>
  610. .publish {
  611. .liu {
  612. //留白
  613. width: 750rpx;
  614. height: 68rpx;
  615. position: absolute;
  616. bottom: 0;
  617. background-color: #ffffff;
  618. }
  619. .pubTitle {
  620. width: 750rpx;
  621. height: 96rpx;
  622. padding: 24rpx 30rpx 0 30rpx;
  623. .title {
  624. font-size: 32rpx;
  625. line-height: 48rpx;
  626. font-weight: 500;
  627. }
  628. }
  629. .pubMid {
  630. width: 750rpx;
  631. // height: 504rpx;
  632. padding: 24rpx 30rpx 0 30rpx;
  633. // background-color: #8BBEFF;
  634. .mid {
  635. width: 690rpx;
  636. height: 440rpx;
  637. // background-color: #f2f2f2;
  638. .txt {
  639. width: 690rpx;
  640. height: 192rpx;
  641. .txtClass {
  642. width: 100%;
  643. height: 100%;
  644. font-size: 28rpx;
  645. font-weight: 400;
  646. line-height: 48rpx;
  647. }
  648. }
  649. .pic {
  650. width: 224rpx;
  651. height: 224rpx;
  652. background-color: rgba(242, 242, 242, 1);
  653. display: flex;
  654. position: relative;
  655. justify-content: center;
  656. align-items: center;
  657. .pic_show {
  658. position: absolute;
  659. top: 0;
  660. left: 0;
  661. width: 100%;
  662. height: 100%;
  663. z-index: 10;
  664. background-color: #8BBEFF;
  665. image {
  666. width: 100%;
  667. height: 100%;
  668. }
  669. }
  670. .picCont {
  671. display: flex;
  672. flex-direction: column;
  673. justify-content: center;
  674. align-items: center;
  675. image {
  676. width: 56rpx;
  677. height: 66rpx;
  678. }
  679. }
  680. }
  681. }
  682. }
  683. // background-color: #fff;
  684. height: 100vh;
  685. .textCont {
  686. padding: 16px;
  687. }
  688. .addPhoto {
  689. background-color: #f2f2f2;
  690. width: 224rpx;
  691. height: 224rpx;
  692. display: flex;
  693. color: #616161;
  694. flex-direction: column;
  695. align-items: center;
  696. justify-content: center;
  697. margin-left: 30rpx;
  698. image {
  699. width: 50px;
  700. height: 50px;
  701. // margin-left: 48px;
  702. }
  703. .photo {
  704. color: #000000A3;
  705. // padding-left: 44px;
  706. // font-size: 14px;
  707. }
  708. .num {
  709. color: #919191;
  710. // padding-left: 56px;
  711. // font-size: 14px;
  712. }
  713. }
  714. .userOptionsBox {
  715. width: 750rpx;
  716. height: 96rpx;
  717. display: flex;
  718. justify-content: center;
  719. align-items: center;
  720. .optionsItemBox {
  721. width: 690rpx;
  722. .optionItem {
  723. display: flex;
  724. justify-content: space-between;
  725. align-items: center;
  726. .option_left {
  727. display: flex;
  728. align-items: center;
  729. font-size: 28rpx;
  730. line-height: 48rpx;
  731. font-weight: 400;
  732. }
  733. .option_right {
  734. height: 40rpx;
  735. .input_details {
  736. display: flex;
  737. align-items: center;
  738. .details {
  739. display: flex;
  740. flex-direction: row;
  741. color: rgb(153, 153, 153);
  742. .text {
  743. font-size: 28rpx;
  744. color: rgb(153, 153, 153);
  745. }
  746. input {
  747. text-align: right;
  748. }
  749. }
  750. .arrow {
  751. display: flex;
  752. image {
  753. width: 32rpx;
  754. height: 32rpx;
  755. }
  756. }
  757. }
  758. }
  759. }
  760. }
  761. }
  762. .publish_now {
  763. position: absolute;
  764. // bottom: 100rpx;
  765. display: flex;
  766. width: 750rpx;
  767. justify-content: center;
  768. padding-bottom: 50rpx;
  769. .btn {
  770. width: 432rpx;
  771. height: 88rpx;
  772. line-height: 88rpx;
  773. // background-color: #8BBEFF;
  774. background: rgba(0, 86, 168, 1);
  775. color: #fff;
  776. display: flex;
  777. flex-direction: column;
  778. align-items: center;
  779. margin-top: 20px;
  780. }
  781. }
  782. .mask {
  783. position: fixed;
  784. top: 0;
  785. left: 0;
  786. width: 100%;
  787. height: 100%;
  788. background-color: rgba(0, 0, 0, 0.3);
  789. z-index: 999;
  790. // display: none;
  791. }
  792. .popup-container {
  793. position: fixed;
  794. top: 50%;
  795. left: 50%;
  796. transform: translate(-50%, -50%);
  797. width: 520rpx;
  798. height: 260rpx;
  799. z-index: 1000;
  800. // display: none;
  801. .popup {
  802. width: 100%;
  803. height: 100%;
  804. display: flex;
  805. flex-direction: column;
  806. background-color: #fff;
  807. border-radius: 16rpx;
  808. .header {
  809. flex: 1;
  810. display: flex;
  811. justify-content: center;
  812. align-items: center;
  813. flex-direction: column;
  814. margin-top: 24px;
  815. font-size: 34rpx;
  816. font-weight: 600;
  817. image {
  818. width: 150rpx;
  819. height: 150rpx;
  820. margin-top: 15px;
  821. margin-bottom: 15px;
  822. }
  823. }
  824. .footer {
  825. flex: 1;
  826. display: flex;
  827. justify-content: space-around;
  828. align-items: end;
  829. padding-top: 17px;
  830. .cancel-btn {
  831. width: 259rpx;
  832. height: 100rpx;
  833. background-color: #F7F7F7;
  834. color: #000;
  835. font-size: 34rpx;
  836. text-align: center;
  837. border-radius: 0;
  838. border-bottom-left-radius: 16rpx;
  839. line-height: 50px;
  840. }
  841. .confirm-btn {
  842. width: 259rpx;
  843. height: 100rpx;
  844. background-color: #0081FE;
  845. color: #fff;
  846. font-size: 34rpx;
  847. text-align: center;
  848. border-radius: 0;
  849. border-bottom-right-radius: 16rpx;
  850. line-height: 50px;
  851. }
  852. .confirm-btn_2 {
  853. width: 518rpx;
  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. border-bottom-right-radius: 16rpx;
  862. line-height: 50px;
  863. }
  864. }
  865. }
  866. }
  867. }
  868. </style>