add.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. <template>
  2. <view >
  3. <view class="bgtop"></view>
  4. <uni-forms :modelValue="datainfo">
  5. <view class="addbox">
  6. <view class="boxs">
  7. <view class="tips">
  8. <image :src="tipimg"></image>
  9. <view>请于填写信息前认真核对提案者信息是否有误</view>
  10. </view>
  11. <view class="pdbox">
  12. <view class="titbox mb14">
  13. <view class="tit flexc">
  14. <image :src="titimg"></image>
  15. <view>提案者信息</view>
  16. </view>
  17. </view>
  18. <view class="titinf">
  19. <view class="txt"><text>提案者:</text>{{datainfo.proposalName}}</view>
  20. <view class="txt"><text>联系方式:</text>{{datainfo.proposalPhone}}</view>
  21. <view class="txt"><text>界别:</text>{{kayType(datainfo.boundary,jblist)}}</view>
  22. <view class="txt"><text>党派:</text>{{kayType(datainfo.partyAffiliation,dplist)}}</view>
  23. <view class="txt"><text>联系地址:</text>{{datainfo.contactAddress}}</view>
  24. </view>
  25. <image :src="infobg" class="infobg"></image>
  26. </view>
  27. </view>
  28. <view class="boxs pdbox" style="padding-bottom: 2rpx;">
  29. <view class="titbox mb14">
  30. <view class="tit flexc">
  31. <image :src="titimg"></image>
  32. <view>基本详情</view>
  33. </view>
  34. </view>
  35. <view class="pb8">
  36. <uni-forms-item label="题目" name="title" required>
  37. <uni-easyinput :inputBorder="false" type="text" v-model="datainfo.title" placeholder="请输入标题" />
  38. <view class="edtip pa">* 标题前无须加关于,标题后无须加的建议,系统将自动填写</view>
  39. </uni-forms-item>
  40. </view>
  41. <uni-forms-item label="提案类别" name="categoryName" required>
  42. <view class="openbox" :class="datainfo.categoryName?'':'coa'" @click="gettalbFn">{{datainfo.categoryName||"请选择提案类别"}}</view>
  43. </uni-forms-item>
  44. <uni-forms-item label="提案类型" name="proposalType">
  45. <view class="checkbox">
  46. <uni-data-checkbox v-model="datainfo.proposalType" :localdata="typeList" />
  47. </view>
  48. </uni-forms-item>
  49. </view>
  50. <view class="boxs pdbox">
  51. <view class="titbox mb14 flexc">
  52. <view class="tit flexc flex1">
  53. <image :src="titimg"></image>
  54. <view>提案内容</view>
  55. </view>
  56. <view class="titr" @click="getPaiFn">一键排版</view>
  57. </view>
  58. <editor id="editor" :class="pbFlag?'pbbox':''" class="ql-container" placeholder="请输入提案内容" show-img-size show-img-toolbar
  59. show-img-resize @statuschange="onStatusChange" :read-only="readOnly" @ready="onEditorReady">
  60. </editor>
  61. <view class="edtip flext mb24 mt14"><text>*</text> 提案正文内容原则上不超过2000字,提案正文内容输入完毕后, 可点击右上角的“一键排版”按钮进行快速排版</view>
  62. </view>
  63. <view class="boxs pdbox">
  64. <view class="titbox mb14">
  65. <view class="tit flexc">
  66. <image :src="titimg"></image>
  67. <view>附件内容</view>
  68. </view>
  69. </view>
  70. <view class="flexcj mb10">
  71. <view class="fw f15 co34">添加附件</view>
  72. <view class="fjadd"><lsj-upload
  73. ref="lsjUpload"
  74. childId="upload1"
  75. :width="width"
  76. :height="height"
  77. :option="option"
  78. :size="size"
  79. :formats="formats"
  80. :debug="debug"
  81. :instantly="instantly"
  82. @progress=""
  83. @uploadEnd="onuploadEnd" >
  84. <view class="btn" :style="{width: width,height: height}">上传附件</view>
  85. </lsj-upload>
  86. </view>
  87. </view>
  88. <view class="ptb12" v-if="filelist&&filelist.length">
  89. <view class="fjlists" v-for="(ite,idx) in filelist" :key='idx'>
  90. <view class="flext" @click="getDown(ite.url)">
  91. <view class="imgl"><image :src="fjimg" ></image></view>
  92. <view class="tit">{{ite.name}}</view>
  93. </view>
  94. <!-- 删除 -->
  95. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  96. <image :src="delimg"></image>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <view class="boxs pdbox" style="padding-bottom: 2rpx;">
  102. <view class="titbox mb14">
  103. <view class="tit flexc">
  104. <image :src="titimg"></image>
  105. <view>更多信息</view>
  106. </view>
  107. </view>
  108. <uni-forms-item label="联名提案" name="isJointly">
  109. <view class="checkbox">
  110. <uni-data-checkbox v-model="datainfo.isJointly" :localdata="sfList" />
  111. </view>
  112. </uni-forms-item>
  113. <uni-forms-item label="联名提案人员" name="proposalUserList" v-if="datainfo.isJointly=='是'">
  114. <view class="openbox" @click="getlmtaFn" :class="tary?'':'coa'">{{tary||"请选择联名提案人员"}}</view>
  115. </uni-forms-item>
  116. <uni-forms-item label="同意公开" name="isPublicity">
  117. <view class="checkbox">
  118. <uni-data-checkbox v-model="datainfo.isPublicity" :localdata="sfList" />
  119. </view>
  120. </uni-forms-item>
  121. <uni-forms-item label="内容公开" name="contentPublicity">
  122. <view class="checkbox">
  123. <uni-data-checkbox v-model="datainfo.contentPublicity" :localdata="sfList" />
  124. </view>
  125. </uni-forms-item>
  126. <uni-forms-item label="经过调研" name="isSurvey">
  127. <view class="checkbox">
  128. <uni-data-checkbox v-model="datainfo.isSurvey" :localdata="sfList" />
  129. </view>
  130. </uni-forms-item>
  131. <uni-forms-item label="第一次提出" name="isFirst">
  132. <view class="checkbox">
  133. <uni-data-checkbox v-model="datainfo.isFirst" :localdata="sfList" />
  134. </view>
  135. </uni-forms-item>
  136. <uni-forms-item label="由本人撰写" name="isPerson">
  137. <view class="checkbox">
  138. <uni-data-checkbox v-model="datainfo.isPerson" :localdata="sfList" />
  139. </view>
  140. </uni-forms-item>
  141. <uni-forms-item label="需要办理的协商方式" name="negotiateType">
  142. <view class="matab">
  143. <view class="list" :class="checkidx.indexOf(ite.label)!=-1?'act':''" v-for="(ite,idx) in matterlist" :key='idx' @click="getCheck(ite.label)">{{ite.label}}</view>
  144. </view>
  145. </uni-forms-item>
  146. <uni-forms-item label="建议承办的单位" name="proposedContractor">
  147. <uni-easyinput :inputBorder="false" type="text" v-model="datainfo.proposedContractor" placeholder="请输入单位名称" />
  148. </uni-forms-item>
  149. </view>
  150. <view class="addbtn">
  151. <view class="btn btn1" @click="getZanFnt">暂存</view>
  152. <view class="btn btn2" @click="getSubmit">提交</view>
  153. </view>
  154. </view>
  155. </uni-forms>
  156. </view>
  157. </template>
  158. <script>
  159. import config from '@/config'
  160. const baseUrl = config.baseUrl
  161. import { getToken } from '@/utils/auth'
  162. import { selectValue } from '@/utils/common.js';
  163. import {getCaseAddFn,getCaseDetailFn,getCaseEditFn} from "@/api/mine/case.js"
  164. import {getDictionaryFn} from "@/api/mine/register.js"
  165. export default{
  166. data(){
  167. return{
  168. //附件
  169. option: {
  170. // 上传服务器地址,需要替换为你的接口地址
  171. url: baseUrl+'/common/upload', // 该地址非真实路径,需替换为你项目自己的接口地址
  172. // 上传附件的key
  173. name: 'file',
  174. // 根据你接口需求自定义请求头,默认不要写content-type,让浏览器自适配
  175. header: {
  176. // 示例参数可删除
  177. 'Authorization': 'Bearer ' + getToken(),
  178. },
  179. // 根据你接口需求自定义body参数
  180. formData: {}
  181. },
  182. // 选择文件后是否立即自动上传,true=选择后立即上传
  183. instantly: true,
  184. // 必传宽高且宽高应与slot宽高保持一致
  185. width: '',
  186. height: '48rpx',
  187. // 限制允许上传的格式,空串=不限制,默认为空
  188. formats: 'doc,docx,xls,xlsx,ppt,txt,pdf,zip,rar,word,png,jpg,jpeg',
  189. // 文件上传大小限制
  190. size: 100,
  191. // 文件数量限制 默认10
  192. count: 5,
  193. // 文件回显列表
  194. files: new Map(),
  195. // 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
  196. wxFiles: [],
  197. // 是否打印日志
  198. debug: false,
  199. filelist:[],
  200. pbFlag:false,
  201. readOnly:false,
  202. fjimg:require("@/work/static/images/fjimg.png"),
  203. delimg:require("@/work/static/images/delimg.png"),
  204. tipimg:require("@/work/static/images/tip.png"),
  205. titimg:require("@/work/static/images/titbg.png"),
  206. infobg:require("@/work/static/images/infobg.png"),
  207. datainfo:{
  208. "proposalUserId":this.$store.state.user.userId,//提案人ID
  209. "title":"",//标题
  210. "proposalName":this.$store.state.user.memberInfo.name,//提案人姓名
  211. "proposalPhone":this.$store.state.user.memberInfo.phonenumber,//提案人手机号码
  212. "boundary":this.$store.state.user.memberInfo.boundary,//界别
  213. "partyAffiliation":this.$store.state.user.memberInfo.partyAffiliation,//党派
  214. "contactAddress":this.$store.state.user.memberInfo.unit,//联系地址
  215. "categoryId":"",//提案类别id
  216. "categoryName":"",//提案类别
  217. "proposalType":'1',//提案类型(0大会提案 1平时提案)
  218. "proposalContent":"",//提案内容
  219. "isJointly":'否',//联名提案(0是 1否)
  220. "isPublicity":'是',//同意公开(0是 1否)
  221. "contentPublicity":'是',//内容公开(0是 1否)
  222. "isSurvey":'否',//经过调研(0是 1否)
  223. "isFirst":'否',//第一次提出(0是 1否)
  224. "isPerson":'否',//由本人撰写(0是 1否)
  225. "negotiateType":"",//需要办理的协商方式
  226. "proposedContractor":"",//建议承办单位
  227. "proposalUserList":[////提案人员
  228. ],
  229. "zxFjList":[//提案附件
  230. // { "name":"附件名称","url":"附件地址"},
  231. ],
  232. },
  233. typeList:[{text: '大会提案',value: '0'},{text: '平时提案',value: '1'}],
  234. sfList:[{text: '是',value: '是'},{text: '否',value: '否'}],
  235. matterlist:[],
  236. jblist:[],
  237. dplist:[],
  238. checkidx:[],
  239. editorCtx:'',
  240. tary:'',
  241. id:"",
  242. pagetype:'add',
  243. editinfo:'',
  244. }
  245. },
  246. onUnload(){
  247. uni.$off('refreshtalb')
  248. uni.$off('refreshtary')
  249. },
  250. onLoad(e) {
  251. uni.$on('refreshtalb', (e) => {
  252. this.datainfo.categoryName=e.categoryName
  253. this.datainfo.categoryId=e.categoryId
  254. })
  255. uni.$on('refreshtary', (e) => {
  256. this.datainfo.proposalUserList=e.proposalUserList;
  257. this.tary=e.namelist.join('/')
  258. })
  259. this.init()
  260. if(e.type=='edit'){
  261. this.id=e.id;
  262. this.pagetype='edit'
  263. this.getDetail()
  264. }
  265. if(e.type=='old'&&uni.getStorageSync('tjtaList')){
  266. var newObj=JSON.parse(JSON.stringify(uni.getStorageSync('tjtaList')))
  267. var params=newObj.params;
  268. this.datainfo=params;
  269. this.editinfo=params.proposalContent;
  270. if(params.zxFjList&&params.zxFjList.length){
  271. this.filelist=JSON.parse(JSON.stringify(params.zxFjList))
  272. }
  273. var taryList=params.proposalUserList;
  274. if(taryList&&taryList.length){
  275. var newArr=[]
  276. taryList.forEach(ite=>{
  277. newArr.push(ite.name)
  278. })
  279. this.tary=newArr.join('/')
  280. }
  281. this.checkidx=newObj.checkidx
  282. }
  283. },
  284. methods:{
  285. kayType(ite,list){
  286. return selectValue(list, ite);
  287. },
  288. init(){
  289. getDictionaryFn('negotiation_mode').then(res=>{
  290. if(res.code==200&&res.data.length){
  291. this.matterlist = res.data.map(v => {
  292. return {
  293. label: v.dictLabel,
  294. value: v.dictValue
  295. }
  296. })
  297. }
  298. })
  299. // 界别circles
  300. getDictionaryFn('circles').then(res=>{
  301. if(res.code==200&&res.data.length){
  302. this.jblist = res.data.map(v => {
  303. return {
  304. label: v.dictLabel,
  305. value: v.dictValue
  306. }
  307. })
  308. }
  309. })
  310. // 党派
  311. getDictionaryFn('political_parties').then(res=>{
  312. if(res.code==200&&res.data.length){
  313. this.dplist = res.data.map(v => {
  314. return {
  315. label: v.dictLabel,
  316. value: v.dictValue
  317. }
  318. })
  319. }
  320. })
  321. },
  322. getDetail(){
  323. var that=this;
  324. getCaseDetailFn(this.id).then(res=>{
  325. if(res.code==200){
  326. var data=res.data;
  327. this.datainfo=res.data;
  328. if(data.zxFjList&&data.zxFjList.length){
  329. this.filelist=JSON.parse(JSON.stringify(data.zxFjList))
  330. }
  331. this.editinfo=data.proposalContent;
  332. uni.createSelectorQuery().select('#editor').context(function(res) {
  333. that.editorCtx = res.context;
  334. that.editorCtx.setContents({
  335. html:data.proposalContent
  336. })
  337. }).exec();
  338. var taryList=data.proposalUserList;
  339. if(taryList&&taryList.length){
  340. var newArr=[]
  341. taryList.forEach(ite=>{
  342. newArr.push(ite.name)
  343. })
  344. this.tary=newArr.join('/')
  345. }
  346. that.checkidx=data.negotiateType.split(',')
  347. // this.dwdetList=res.data.proposalUnitReplyList;
  348. }
  349. })
  350. },
  351. getCheck(id){
  352. var idx=this.checkidx.indexOf(id)
  353. if(idx!=-1){
  354. this.checkidx.splice(idx,1)
  355. }else{
  356. this.checkidx.push(id)
  357. }
  358. },
  359. getPaiFn(){
  360. this.pbFlag=true;
  361. },
  362. gettalbFn(){
  363. var obj={
  364. id:this.datainfo.categoryId,
  365. name:this.datainfo.categoryName,
  366. }
  367. this.$tab.navigateTo('/work/pages/case/talbclass?data='+encodeURIComponent(JSON.stringify(obj)))
  368. },
  369. getlmtaFn(){
  370. var obj={
  371. list:this.datainfo.proposalUserList
  372. }
  373. this.$tab.navigateTo('/work/pages/case/lmtapeople?data='+encodeURIComponent(JSON.stringify(obj)))
  374. },
  375. // 暂存
  376. getZanFnt(){
  377. var that=this;
  378. that.editorCtx.getContents({
  379. success: function(data) {
  380. // proposalContent=data.html;
  381. // that.datainfo.zxFjList=JSON.parse(JSON.stringify(that.filelist));
  382. var params=that.datainfo;
  383. params.proposalContent=data.html;
  384. if(that.checkidx&&that.checkidx.length>0){
  385. params.negotiateType=that.checkidx.join(',')
  386. }
  387. var obj={
  388. params:params,
  389. checkidx:that.checkidx
  390. }
  391. uni.setStorageSync('tjtaList', JSON.parse(JSON.stringify(obj)))
  392. that.$toast("暂存成功")
  393. }
  394. })
  395. },
  396. getSubmit(){
  397. var that=this;
  398. if(!this.datainfo.title){
  399. this.$toast("请输入标题")
  400. return
  401. }
  402. if(!this.datainfo.categoryName){
  403. this.$toast("请选择提案类别")
  404. return
  405. }
  406. if(this.datainfo.isJointly==0&&!this.tary){
  407. this.$toast("请选择联名提案人员")
  408. return
  409. }
  410. var proposalContent='';
  411. that.editorCtx.getContents({
  412. success: function(data) {
  413. var params=that.datainfo;
  414. params.proposalContent=data.html;
  415. if(that.checkidx&&that.checkidx.length>0){
  416. params.negotiateType=that.checkidx.join(',')
  417. }
  418. if(that.pagetype=='add'){
  419. getCaseAddFn(params).then(res=>{
  420. if(res.code==200){
  421. uni.removeStorageSync('tjtaList')
  422. that.$toast("提交成功")
  423. uni.$emit("refreshlist")
  424. setTimeout(function(){
  425. uni.navigateBack({
  426. delta: 1 //返回层数,2则上上页
  427. });
  428. },1200)
  429. }
  430. })
  431. }else{
  432. getCaseEditFn(params).then(res=>{
  433. if(res.code==200){
  434. that.$toast("修改成功")
  435. uni.$emit("refreshdetail")
  436. setTimeout(function(){
  437. uni.navigateBack({
  438. delta: 1 //返回层数,2则上上页
  439. });
  440. },1200)
  441. }
  442. })
  443. }
  444. }
  445. })
  446. },
  447. onuploadEnd(item) {
  448. var newobj={}
  449. var responseText=JSON.parse(item.responseText)
  450. newobj.name=responseText.originalFilename;
  451. newobj.url=responseText.fileName;
  452. this.filelist.push(newobj)
  453. this.datainfo.zxFjList=JSON.parse(JSON.stringify(this.filelist))
  454. },
  455. getDelFj(idx){
  456. var that=this;
  457. uni.showModal({
  458. title: '确认删除',
  459. content: "是否确认删除",
  460. cancelText: '取消',
  461. confirmText: '确认',
  462. success: function(res) {
  463. if (res.confirm) {
  464. that.filelist.splice(idx,1)
  465. that.datainfo.zxFjList=JSON.parse(JSON.stringify(that.filelist))
  466. } else if (res.cancel) {
  467. }
  468. }
  469. });
  470. },
  471. getDown(e){
  472. uni.showLoading({
  473. title: '加载中'
  474. });
  475. var url=baseUrl+e;
  476. uni.downloadFile({
  477. url: url,//文件的下载路径
  478. success(result) {
  479. uni.hideLoading()
  480. var filePath = result.tempFilePath;
  481. uni.openDocument({
  482. filePath: filePath,
  483. showMenu: true,
  484. success: function (res) {
  485. // console.log('打开文档成功');
  486. }
  487. });
  488. },
  489. fail(res) {uni.hideLoading()}
  490. })
  491. },
  492. onStatusChange(){
  493. },
  494. onEditorReady(){
  495. var that=this;
  496. uni.createSelectorQuery().select('#editor').context(function(res) {
  497. that.editorCtx = res.context;
  498. that.editorCtx.setContents({
  499. html:that.editinfo
  500. })
  501. }).exec();
  502. }
  503. }
  504. }
  505. </script>
  506. <style scoped lang="scss">
  507. .bgtop{height: 150rpx;background-color: $com-cd3;width: 100%;}
  508. .pdbox{padding: 34rpx 24rpx 16rpx;}
  509. .addbox /deep/ .uni-forms-item{margin-bottom:36rpx;}
  510. .addbox /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 30rpx;}
  511. .addbox /deep/ .uni-forms-item__label{font-weight: bold;font-size: 30rpx;color: #343434;width: 198rpx !important;padding-left:20rpx;}
  512. .addbox /deep/ .is-required{position: absolute;left: 0;top: 50%;margin-top: -10rpx;}
  513. .addbox /deep/ .uni-data-checklist{display: flex;align-items: center;justify-content: flex-end;}
  514. .addbox /deep/ .uni-easyinput__placeholder-class{font-weight: 500;font-size: 30rpx;color: #AAAAAA;}
  515. .addbox /deep/ .checklist-box{margin-right: 0 !important;margin-left: 40rpx !important;}
  516. .fjadd{
  517. .btn{font-weight: bold;font-size: 30rpx;color: #1D64E2;margin: 0;display: flex;align-items: center;}
  518. }
  519. .addbox{margin-top: -120rpx;
  520. padding: 0 24rpx 50rpx;
  521. .boxs{background: #FFFFFF;border-radius: 30rpx;margin-bottom: 24rpx;overflow: hidden;position: relative;
  522. .infobg{width: 102rpx;height: 106rpx;position: absolute;right: 26rpx;bottom: 22rpx;}
  523. .tips{background: #F1F6FF;padding: 18rpx 38rpx;display: flex;align-items: flex-start;
  524. image{width: 20rpx;height: 26rpx;margin-right: 16rpx;flex:0 0 auto;margin-top: 4rpx;}
  525. view{font-weight: 500;font-size: 26rpx;color: #1D64E2;}
  526. }
  527. .titbox{
  528. .tit{
  529. image{width: 32rpx;height: 18rpx;margin-right: 10rpx;}
  530. view{font-weight: bold;font-size: 32rpx;color: #222327;}
  531. }
  532. .titr{width: 146rpx;height: 50rpx;background: #E4EEFF;border-radius: 26rpx;font-weight: 500;font-size: 24rpx;color: #1D64E2;text-align: center;line-height: 50rpx;}
  533. }
  534. .titinf{display: flex;flex-wrap: wrap;
  535. .txt{font-weight: 500;font-size: 28rpx;margin-bottom: 18rpx;flex:0 1 auto;min-width: 50%;display: flex;align-items: flex-start;color: #222327;
  536. text{flex: 0 0 auto;color: #9F9F9F;}
  537. }
  538. }
  539. .openbox{display: flex;align-items: center;justify-content: flex-end;font-weight: 500;
  540. font-size: 30rpx;height: 100%;color: #222327;
  541. }
  542. .edtip{font-weight: 500;font-size: 22rpx;color: #FF0000;
  543. text{margin: 4rpx 8rpx 0 0;}
  544. &.pa{position: absolute;right: 0;bottom: -15px;text-align: right;width: 702rpx;}
  545. }
  546. }
  547. }
  548. .matab{display: flex;align-items: center;flex-wrap: nowrap;overflow: auto;position: absolute;left: 0;right: -48rpx;
  549. .list{min-width:112rpx;height: 50rpx;background: #ffffff;border-radius: 25rpx;font-size: 30rpx;font-weight: 500;box-sizing: border-box;
  550. color: #AAAAAA;padding: 0 24rpx;box-sizing: border-box;margin-left:24rpx;flex: 0 0 auto;border: 2rpx solid #C1C1C1;display: flex;align-items: center;justify-content: center;
  551. &.act{background: #E4EEFF;color: #1D64E2;border: none;}
  552. }
  553. }
  554. // 附件
  555. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  556. image{margin-right: 18rpx;flex: 0 0 auto;}
  557. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 16rpx;
  558. image{width: 26rpx;height: 24rpx;}
  559. }
  560. .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;}
  561. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;
  562. image{width: 26rpx;height: 26rpx;}
  563. }
  564. }
  565. // 按钮
  566. .addbtn{display: flex;align-items: center;justify-content: space-between;padding-top: 26rpx;
  567. .btn{width: 336rpx;height: 80rpx;font-weight: bold;font-size: 30rpx;box-sizing: border-box;border-radius: 40rpx;display: flex;align-items: center;justify-content: center;
  568. &.btn1{border: 2rpx solid #1D64E2;background: #ffffff;color: #1D64E2;}
  569. &.btn2{background: #1D64E2;color: #ffffff;}
  570. }
  571. }
  572. .addbox /deep/ .pbbox .ql-editor p{text-indent: 2rem;}
  573. </style>