add.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  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>{{datainfo.partyAffiliation}}</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.path)">
  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.value)!=-1?'act':''" v-for="(ite,idx) in matterlist" :key='idx' @click="getCheck(ite.value)">{{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',
  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.name,//提案人姓名
  211. "proposalPhone":this.$store.state.user.phonenumber,//提案人手机号码
  212. "boundary":"1",//界别
  213. "partyAffiliation":"中国共产党",//党派
  214. "contactAddress":"潜山市政协委员",//联系地址
  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. checkidx:[],
  238. editorCtx:'',
  239. tary:'',
  240. id:"",
  241. pagetype:'add',
  242. editinfo:'',
  243. }
  244. },
  245. onUnload(){
  246. uni.$off('refreshtalb')
  247. uni.$off('refreshtary')
  248. },
  249. onLoad(e) {
  250. uni.$on('refreshtalb', (e) => {
  251. this.datainfo.categoryName=e.categoryName
  252. this.datainfo.categoryId=e.categoryId
  253. })
  254. uni.$on('refreshtary', (e) => {
  255. this.datainfo.proposalUserList=e.proposalUserList;
  256. this.tary=e.namelist.join('/')
  257. })
  258. this.init()
  259. if(e.type=='edit'){
  260. this.id=e.id;
  261. this.pagetype='edit'
  262. this.getDetail()
  263. }
  264. if(e.type=='old'&&uni.getStorageSync('tjtaList')){
  265. var newObj=JSON.parse(JSON.stringify(uni.getStorageSync('tjtaList')))
  266. var params=newObj.params;
  267. this.datainfo=params;
  268. this.editinfo=params.proposalContent;
  269. if(params.zxFjList&&params.zxFjList.length){
  270. this.filelist=JSON.parse(JSON.stringify(params.zxFjList))
  271. }
  272. var taryList=params.proposalUserList;
  273. if(taryList&&taryList.length){
  274. var newArr=[]
  275. taryList.forEach(ite=>{
  276. newArr.push(ite.name)
  277. })
  278. this.tary=newArr.join('/')
  279. }
  280. this.checkidx=newObj.checkidx
  281. }
  282. },
  283. methods:{
  284. kayType(ite,list){
  285. return selectValue(list, ite);
  286. },
  287. init(){
  288. getDictionaryFn('negotiation_mode').then(res=>{
  289. if(res.code==200&&res.data.length){
  290. this.matterlist = res.data.map(v => {
  291. return {
  292. label: v.dictLabel,
  293. value: v.dictValue
  294. }
  295. })
  296. }
  297. })
  298. // 界别circles
  299. getDictionaryFn('circles').then(res=>{
  300. if(res.code==200&&res.data.length){
  301. this.jblist = res.data.map(v => {
  302. return {
  303. label: v.dictLabel,
  304. value: v.dictValue
  305. }
  306. })
  307. }
  308. })
  309. // 党派
  310. // getDictionaryFn('political_parties').then(res=>{
  311. // if(res.code==200&&res.data.length){
  312. // this.jblist = res.data.map(v => {
  313. // return {
  314. // label: v.dictLabel,
  315. // value: v.dictValue
  316. // }
  317. // })
  318. // }
  319. // })
  320. },
  321. getDetail(){
  322. var that=this;
  323. getCaseDetailFn(this.id).then(res=>{
  324. if(res.code==200){
  325. var data=res.data;
  326. this.datainfo=res.data;
  327. if(data.zxFjList&&data.zxFjList.length){
  328. this.filelist=JSON.parse(JSON.stringify(data.zxFjList))
  329. }
  330. this.editinfo=data.proposalContent;
  331. var taryList=data.proposalUserList;
  332. if(taryList&&taryList.length){
  333. var newArr=[]
  334. taryList.forEach(ite=>{
  335. newArr.push(ite.name)
  336. })
  337. this.tary=newArr.join('/')
  338. }
  339. that.checkidx=data.negotiateType.split(',')
  340. // this.dwdetList=res.data.proposalUnitReplyList;
  341. }
  342. })
  343. },
  344. getCheck(id){
  345. var idx=this.checkidx.indexOf(id)
  346. if(idx!=-1){
  347. this.checkidx.splice(idx,1)
  348. }else{
  349. this.checkidx.push(id)
  350. }
  351. },
  352. getPaiFn(){
  353. this.pbFlag=true;
  354. },
  355. gettalbFn(){
  356. var obj={
  357. id:this.datainfo.categoryId,
  358. name:this.datainfo.categoryName,
  359. }
  360. this.$tab.navigateTo('/work/pages/case/talbclass?data='+encodeURIComponent(JSON.stringify(obj)))
  361. },
  362. getlmtaFn(){
  363. var obj={
  364. list:this.datainfo.proposalUserList
  365. }
  366. this.$tab.navigateTo('/work/pages/case/lmtapeople?data='+encodeURIComponent(JSON.stringify(obj)))
  367. },
  368. // 暂存
  369. getZanFnt(){
  370. var that=this;
  371. that.editorCtx.getContents({
  372. success: function(data) {
  373. // proposalContent=data.html;
  374. // that.datainfo.zxFjList=JSON.parse(JSON.stringify(that.filelist));
  375. var params=that.datainfo;
  376. params.proposalContent=data.html;
  377. if(that.checkidx&&that.checkidx.length>0){
  378. params.negotiateType=that.checkidx.join(',')
  379. }
  380. var obj={
  381. params:params,
  382. checkidx:that.checkidx
  383. }
  384. uni.setStorageSync('tjtaList', JSON.parse(JSON.stringify(obj)))
  385. that.$toast("暂存成功")
  386. }
  387. })
  388. },
  389. getSubmit(){
  390. var that=this;
  391. if(!this.datainfo.title){
  392. this.$toast("请输入标题")
  393. return
  394. }
  395. if(!this.datainfo.categoryName){
  396. this.$toast("请选择提案类别")
  397. return
  398. }
  399. if(this.datainfo.isJointly==0&&!this.tary){
  400. this.$toast("请选择联名提案人员")
  401. return
  402. }
  403. var proposalContent='';
  404. that.editorCtx.getContents({
  405. success: function(data) {
  406. var params=that.datainfo;
  407. params.proposalContent=data.html;
  408. if(that.checkidx&&that.checkidx.length>0){
  409. params.negotiateType=that.checkidx.join(',')
  410. }
  411. if(that.pagetype=='add'){
  412. getCaseAddFn(params).then(res=>{
  413. if(res.code==200){
  414. uni.removeStorageSync('tjtaList')
  415. that.$toast("提交成功")
  416. uni.$emit("refreshlist")
  417. setTimeout(function(){
  418. uni.navigateBack({
  419. delta: 1 //返回层数,2则上上页
  420. });
  421. },1200)
  422. }
  423. })
  424. }else{
  425. getCaseEditFn(params).then(res=>{
  426. if(res.code==200){
  427. that.$toast("修改成功")
  428. uni.$emit("refreshdetail")
  429. setTimeout(function(){
  430. uni.navigateBack({
  431. delta: 1 //返回层数,2则上上页
  432. });
  433. },1200)
  434. }
  435. })
  436. }
  437. }
  438. })
  439. },
  440. onuploadEnd(item) {
  441. var newobj={}
  442. var responseText=JSON.parse(item.responseText)
  443. newobj.name=responseText.originalFilename;
  444. newobj.path=responseText.fileName;
  445. this.filelist.push(newobj)
  446. this.datainfo.zxFjList=JSON.parse(JSON.stringify(this.filelist))
  447. },
  448. getDelFj(idx){
  449. var that=this;
  450. uni.showModal({
  451. title: '确认删除',
  452. content: "是否确认删除",
  453. cancelText: '取消',
  454. confirmText: '确认',
  455. success: function(res) {
  456. if (res.confirm) {
  457. that.filelist.splice(idx,1)
  458. that.datainfo.zxFjList=JSON.parse(JSON.stringify(that.filelist))
  459. } else if (res.cancel) {
  460. }
  461. }
  462. });
  463. },
  464. getDown(e){
  465. uni.showLoading({
  466. title: '加载中'
  467. });
  468. var url=baseUrl+e;
  469. uni.downloadFile({
  470. url: url,//文件的下载路径
  471. success(result) {
  472. uni.hideLoading()
  473. var filePath = result.tempFilePath;
  474. uni.openDocument({
  475. filePath: filePath,
  476. showMenu: true,
  477. success: function (res) {
  478. // console.log('打开文档成功');
  479. }
  480. });
  481. },
  482. fail(res) {uni.hideLoading()}
  483. })
  484. },
  485. onStatusChange(){
  486. },
  487. onEditorReady(){
  488. var that=this;
  489. uni.createSelectorQuery().select('#editor').context(function(res) {
  490. that.editorCtx = res.context;
  491. that.editorCtx.setContents({
  492. html:that.editinfo
  493. })
  494. }).exec();
  495. }
  496. }
  497. }
  498. </script>
  499. <style scoped lang="scss">
  500. .bgtop{height: 150rpx;background-color: $com-cd3;width: 100%;}
  501. .pdbox{padding: 34rpx 24rpx 16rpx;}
  502. .addbox /deep/ .uni-forms-item{margin-bottom:36rpx;}
  503. .addbox /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 30rpx;}
  504. .addbox /deep/ .uni-forms-item__label{font-weight: bold;font-size: 30rpx;color: #343434;width: 198rpx !important;padding-left:20rpx;}
  505. .addbox /deep/ .is-required{position: absolute;left: 0;top: 50%;margin-top: -10rpx;}
  506. .addbox /deep/ .uni-data-checklist{display: flex;align-items: center;justify-content: flex-end;}
  507. .addbox /deep/ .uni-easyinput__placeholder-class{font-weight: 500;font-size: 30rpx;color: #AAAAAA;}
  508. .addbox /deep/ .checklist-box{margin-right: 0 !important;margin-left: 40rpx !important;}
  509. .fjadd{
  510. .btn{font-weight: bold;font-size: 30rpx;color: #1D64E2;margin: 0;display: flex;align-items: center;}
  511. }
  512. .addbox{margin-top: -120rpx;
  513. padding: 0 24rpx 50rpx;
  514. .boxs{background: #FFFFFF;border-radius: 30rpx;margin-bottom: 24rpx;overflow: hidden;position: relative;
  515. .infobg{width: 102rpx;height: 106rpx;position: absolute;right: 26rpx;bottom: 22rpx;}
  516. .tips{background: #F1F6FF;padding: 18rpx 38rpx;display: flex;align-items: flex-start;
  517. image{width: 20rpx;height: 26rpx;margin-right: 16rpx;flex:0 0 auto;margin-top: 4rpx;}
  518. view{font-weight: 500;font-size: 26rpx;color: #1D64E2;}
  519. }
  520. .titbox{
  521. .tit{
  522. image{width: 32rpx;height: 18rpx;margin-right: 10rpx;}
  523. view{font-weight: bold;font-size: 32rpx;color: #222327;}
  524. }
  525. .titr{width: 146rpx;height: 50rpx;background: #E4EEFF;border-radius: 26rpx;font-weight: 500;font-size: 24rpx;color: #1D64E2;text-align: center;line-height: 50rpx;}
  526. }
  527. .titinf{display: flex;flex-wrap: wrap;
  528. .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;
  529. text{flex: 0 0 auto;color: #9F9F9F;}
  530. }
  531. }
  532. .openbox{display: flex;align-items: center;justify-content: flex-end;font-weight: 500;
  533. font-size: 30rpx;height: 100%;color: #222327;
  534. }
  535. .edtip{font-weight: 500;font-size: 22rpx;color: #FF0000;
  536. text{margin: 4rpx 8rpx 0 0;}
  537. &.pa{position: absolute;right: 0;bottom: -15px;text-align: right;width: 702rpx;}
  538. }
  539. }
  540. }
  541. .matab{display: flex;align-items: center;flex-wrap: nowrap;overflow: auto;position: absolute;left: 0;right: -48rpx;
  542. .list{min-width:112rpx;height: 50rpx;background: #ffffff;border-radius: 25rpx;font-size: 30rpx;font-weight: 500;box-sizing: border-box;
  543. 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;
  544. &.act{background: #E4EEFF;color: #1D64E2;border: none;}
  545. }
  546. }
  547. // 附件
  548. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  549. image{margin-right: 18rpx;flex: 0 0 auto;}
  550. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 16rpx;
  551. image{width: 26rpx;height: 24rpx;}
  552. }
  553. .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;}
  554. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;
  555. image{width: 26rpx;height: 26rpx;}
  556. }
  557. }
  558. // 按钮
  559. .addbtn{display: flex;align-items: center;justify-content: space-between;padding-top: 26rpx;
  560. .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;
  561. &.btn1{border: 2rpx solid #1D64E2;background: #ffffff;color: #1D64E2;}
  562. &.btn2{background: #1D64E2;color: #ffffff;}
  563. }
  564. }
  565. .addbox /deep/ .pbbox .ql-editor p{text-indent: 2rem;}
  566. </style>