inspectAdd.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938
  1. <!-- 开始检查 -->
  2. <template>
  3. <view class="inspectAdd">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="tip">{{optionData.checkPlanSetVoList.checkName}}</view>
  6. <view class="items">
  7. <view class="items-t">
  8. <view class="items-t-r">{{newData.hazardCheckCode}} {{newData.hazardCheckName}}</view>
  9. </view>
  10. <view class="items-b">< {{newData.hazardCheckCode2}} {{newData.hazardCheckName2}} <</view>
  11. </view>
  12. <view class="items-number">此检查项在当前实验室累计出现<text>{{hazardCheckNum}}</text>次隐患</view>
  13. <view class="list">
  14. <view class="list-li">
  15. <view>检查要点</view>
  16. <view>
  17. <img src="@/pages_safetyCheck/images/icon_06.png">
  18. </view>
  19. </view>
  20. <view class="hidden-content">{{newData.hazardCheckPoint}}
  21. </view>
  22. <view class="radio_group">
  23. <view class="radio" v-for="(item,index) in radioList" :key="index" @click="radioClick(item)">
  24. <img v-if="!item.checked" src="@/pages_safetyCheck/images/icon_aqjc_5.png">
  25. <img v-if="item.checked" src="@/pages_safetyCheck/images/icon_aqjc_6.png">
  26. <text>{{item.name}}</text>
  27. </view>
  28. </view>
  29. <view class="list-li" v-if="!form.checkFlag">
  30. <view>检查隐患</view>
  31. <view>
  32. <img src="@/pages_safetyCheck/images/icon_06.png">
  33. </view>
  34. </view>
  35. <textarea v-if="!form.checkFlag" class="describe" type="text" v-model="form.hazardDescribe" maxlength="200"
  36. placeholder="请填写隐患描述" placeholder-style="font-size:24rpx;color:#999;"></textarea>
  37. <view v-if="!form.checkFlag" class="check-for-img-max-box">
  38. <view class="left-title-p"></view>
  39. <view class="right-img-box">
  40. <view class="img-box" v-for="(imgUrl,imgIndex) in form.photoList" :key="imgIndex">
  41. <img class="img-data" :src="baseUrl+imgUrl.fileUrl">
  42. <img class="position-img" src="@/pages_safetyCheck/images/icon_ssp_closure.png"
  43. @click="delImg(imgIndex)">
  44. </view>
  45. <img class="add-button" src="@/pages_safetyCheck/images/img_ssp_pz@1x.png"
  46. @click="selectImage()" v-if="form.photoList.length<5">
  47. </view>
  48. </view>
  49. </view>
  50. <view class="voice">
  51. <view class="voice_t">
  52. <view class="voice_t_t" v-if="!form.voiceList[0]">语音备注:(选填)</view>
  53. <view class="voice_t_b" v-if="form.voiceList[0]">语音备注:({{form.voiceList.length}})</view>
  54. </view>
  55. <view class="voice_b" v-if="form.voiceList[0]" v-for="(voiceItem,voiceIndex) in form.voiceList" :key="voiceIndex">
  56. <view class="voice_b_l" @tap="voicePlay(voiceItem.fileUrl)">
  57. <img class="add-button" src="@/pages_safetyCheck/images//icon_yybz_yy.png" />
  58. {{voiceItem.fileLength}}″
  59. </view>
  60. <img class="voice_b_r" src="@/pages_safetyCheck/images/icon_yybz_sc.png"
  61. @tap="voiceDele('',voiceIndex)" />
  62. </view>
  63. <view class="voice-btn">
  64. <img class="voice_t_r" src="@/pages_safetyCheck/images/icon_sskz_azsh.png"
  65. @longpress.stop="recordButton(item,$event)" @touchmove.stop="cancelButton"
  66. @touchend.stop="sendButton(item,$event)" />
  67. <text>按住说话</text>
  68. </view>
  69. </view>
  70. </scroll-view>
  71. <view class="sub-btn">
  72. <view @click="submitForm(1)">保存草稿</view>
  73. <view @click="submitForm(2)">提交</view>
  74. </view>
  75. </view>
  76. </template>
  77. <script>
  78. import {
  79. config
  80. } from '@/api/request/config.js'
  81. import {
  82. securityAppCheckPlanCheckInfo,
  83. securityAppCheckSetOptionCheckCommit,
  84. securityDraftFindBySetOptionId,
  85. securityAppCheckPhotoGetCheckNumBySub,
  86. } from '@/pages_safetyCheck/api/index.js'
  87. export default {
  88. name: "inspectAdd",
  89. components: {
  90. },
  91. data() {
  92. return {
  93. baseUrl: config.base_url,
  94. form: {
  95. checkFlag: false,
  96. photoList: [],
  97. voiceList: [],
  98. },
  99. newData: {},
  100. radioList: [{
  101. id: 1,
  102. name: '符合',
  103. checked: false,
  104. },
  105. {
  106. id: 0,
  107. name: '不符合',
  108. checked: true,
  109. },
  110. ],
  111. pageType:'',
  112. itemsStatus:'',
  113. setOptionId: '', //检查项id
  114. manageId: '', //检查管理id
  115. subId: '',
  116. hazardCheckPro: '',
  117. hazardCheckNum:0,
  118. sendLock: true, //发送锁,当为true时上锁,false时解锁发送
  119. recorderManager: wx.getRecorderManager(),
  120. optionData:null,
  121. }
  122. },
  123. onLoad(option) {
  124. let optionData = JSON.parse(decodeURIComponent(option.infoData));
  125. uni.setNavigationBarTitle({
  126. title: optionData.subName + '(' + (optionData.pageType == 0 ? optionData.roomNum : optionData
  127. .subRoom) + ')'
  128. })
  129. this.$set(this, 'pageType', optionData.pageType);
  130. this.$set(this, 'itemsStatus', optionData.itemsStatus);
  131. this.$set(this, 'setOptionId', optionData.setOptionId);
  132. this.$set(this, 'manageId', optionData.manageId);
  133. this.$set(this, 'subId', optionData.subId);
  134. this.$set(this, 'hazardCheckPro', optionData.hazardCheckPro);
  135. this.$set(this, 'optionData', optionData);
  136. },
  137. onShow() {
  138. },
  139. mounted() {
  140. if(this.pageType==0){
  141. //检查
  142. if(this.itemsStatus==0 || this.itemsStatus==1){
  143. //开始检查-提交的详情
  144. this.securityAppCheckPlanCheckInfo();
  145. }else if(this.itemsStatus==2){
  146. //保存草稿详情
  147. this.securityDraftFindBySetOptionId();
  148. }
  149. }
  150. this.securityAppCheckPhotoGetCheckNumBySub();
  151. },
  152. methods: {
  153. //获取提交详情
  154. async securityAppCheckPlanCheckInfo() {
  155. let obj = {
  156. setOptionId: this.setOptionId,
  157. manageId: this.manageId,
  158. }
  159. const {
  160. data
  161. } = await securityAppCheckPlanCheckInfo(obj);
  162. if (data.code == 200) {
  163. this.$set(this, 'newData', data.data);
  164. //编辑的时候
  165. this.$set(this.form, 'checkFlag', data.data.checkFlag?data.data.checkFlag:false);
  166. this.$set(this.form, 'hazardDescribe', data.data.hazardDescribe?data.data.hazardDescribe:'');
  167. this.$set(this.form, 'photoList', data.data.photoList?data.data.photoList:[]);
  168. this.$set(this.form, 'voiceList', data.data.voiceList?data.data.voiceList:[]);
  169. }
  170. },
  171. //获取草稿详情
  172. async securityDraftFindBySetOptionId() {
  173. let obj = {
  174. setOptionId: this.setOptionId,
  175. }
  176. const {
  177. data
  178. } = await securityDraftFindBySetOptionId(obj);
  179. if (data.code == 200) {
  180. //编辑的时候
  181. this.$set(this, 'newData', data.data);
  182. this.$set(this.newData, 'checkPlanSetVoList', this.optionData.checkPlanSetVoList);
  183. this.$set(this.form, 'checkFlag', data.data.checkFlag?data.data.checkFlag:false);
  184. this.$set(this.form, 'hazardDescribe', data.data.hazardDescribe?data.data.hazardDescribe:'');
  185. this.$set(this.form, 'photoList', data.data.photoList?data.data.photoList:[]);
  186. this.$set(this.form, 'voiceList', data.data.voiceList?data.data.voiceList:[]);
  187. }
  188. },
  189. //获取检查项在当前实验室出现的次数
  190. async securityAppCheckPhotoGetCheckNumBySub() {
  191. let obj = {
  192. subId: this.subId,
  193. hazardCheckPro: this.hazardCheckPro,
  194. }
  195. const {
  196. data
  197. } = await securityAppCheckPhotoGetCheckNumBySub(obj);
  198. if (data.code == 200) {
  199. this.$set(this, 'hazardCheckNum', data.data);
  200. }
  201. },
  202. //提交
  203. async submitForm(status) {
  204. if(!this.form.checkFlag){
  205. if(!this.form.hazardDescribe){
  206. uni.showToast({
  207. title: '请填写隐患描述!',
  208. icon: "none",
  209. mask: true,
  210. duration: 2000
  211. });
  212. return
  213. }
  214. if(!this.form.photoList[0]){
  215. uni.showToast({
  216. title: '请选择现场照片!',
  217. icon: "none",
  218. mask: true,
  219. duration: 2000
  220. });
  221. return
  222. }
  223. }
  224. let obj = {
  225. checkFlag: this.form.checkFlag,
  226. checkStatus: status == 1 ? 2 : 1,
  227. hazardDescribe: this.form.hazardDescribe,
  228. setOptionId: this.setOptionId,
  229. photoList: this.form.photoList,
  230. voiceList: this.form.voiceList,
  231. }
  232. const {
  233. data
  234. } = await securityAppCheckSetOptionCheckCommit(obj);
  235. if (data.code == 200) {
  236. if(status==1){
  237. uni.showToast({
  238. title: '保存成功!',
  239. icon: "none",
  240. mask: true,
  241. duration: 2000
  242. });
  243. }else if(status==2){
  244. uni.showToast({
  245. title: '提交成功!',
  246. icon: "none",
  247. mask: true,
  248. duration: 2000
  249. });
  250. }
  251. let infoData = {
  252. setOptionId:this.setOptionId,
  253. manageId:this.manageId,
  254. subId:this.subId,
  255. hazardCheckPro:this.hazardCheckPro,
  256. pageType:this.pageType,
  257. itemsStatus:status==1?2:0,
  258. checkPlanSetVoList:this.optionData.checkPlanSetVoList,
  259. subName:this.optionData.subName,
  260. roomNum:this.optionData.roomNum,
  261. subRoom:this.optionData.subRoom,
  262. };
  263. uni.redirectTo({
  264. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItemsDetail?infoData=' + encodeURIComponent(JSON
  265. .stringify(infoData))
  266. });
  267. }
  268. },
  269. //滚动事件
  270. scrollGet() {},
  271. //单选按钮
  272. radioClick(d) {
  273. let self = this;
  274. d.checked = !d.checked
  275. if (d.checked) {
  276. //如果有选中的,循环把其他选中的取消
  277. this.radioList.forEach(function(item) {
  278. if (item.id == d.id) {
  279. self.$set(self.form, 'checkFlag', item.id);
  280. } else {
  281. item.checked = false;
  282. }
  283. })
  284. } else {
  285. }
  286. },
  287. /******图片上传******/
  288. selectImage() {
  289. let self = this;
  290. if (this.form.photoList.length > 4) {
  291. uni.showToast({
  292. title: '最多上传5张图片',
  293. icon: "none",
  294. mask: true,
  295. duration: 2000
  296. });
  297. return
  298. }
  299. wx.chooseImage({
  300. count: 1,
  301. sizeType: ["original", "compressed"],
  302. sourceType: ["album", "camera"],
  303. success: function(res) {
  304. let tempFilePaths = res.tempFilePaths[0];
  305. self.uploadImg(tempFilePaths);
  306. }
  307. });
  308. },
  309. async uploadImg(tempFilePaths) {
  310. var self = this;
  311. uni.showLoading({
  312. title: '上传中',
  313. mask: true
  314. });
  315. uni.uploadFile({
  316. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  317. header: {
  318. 'Authorization': uni.getStorageSync('token')
  319. },
  320. filePath: tempFilePaths,
  321. name: 'file',
  322. formData: {
  323. 'user': 'test'
  324. },
  325. success: (uploadFileRes) => {
  326. let res = JSON.parse(uploadFileRes.data);
  327. if (res.code == 200) {
  328. this.form.photoList.push({
  329. 'fileUrl': res.data.url,
  330. 'fileName': res.data.name
  331. });
  332. console.log(res.data.url)
  333. } else {
  334. uni.showToast({
  335. title: res.msg,
  336. icon: "none",
  337. mask: true,
  338. duration: 2000
  339. });
  340. }
  341. },
  342. fail: err => {},
  343. complete: () => {
  344. uni.hideLoading()
  345. }
  346. });
  347. },
  348. //删除图片
  349. delImg(minIndex) {
  350. this.form.photoList.splice(minIndex, 1);
  351. this.$forceUpdate();
  352. },
  353. /******语音备注 *******/
  354. //语音备忘播放
  355. async voicePlay(item) {
  356. myaudio.src = config.base_url + item;
  357. myaudio.play();
  358. },
  359. //语音备忘删除
  360. async voiceDele(item, voiceIndex) {
  361. let self = this;
  362. uni.showModal({
  363. title: '',
  364. cancelColor: '#999999',
  365. confirmColor: '#FF6E6E',
  366. content: '确定删除此语音吗?',
  367. success(res) {
  368. if (res.confirm) {
  369. console.log('用户点击确定')
  370. self.form.voiceList.splice(voiceIndex, 1);
  371. self.$forceUpdate();
  372. } else if (res.cancel) {
  373. console.log('用户点击取消')
  374. }
  375. }
  376. })
  377. },
  378. //录制
  379. recordButton(item, e) {
  380. console.log("按下")
  381. let self = this;
  382. if (this.form.voiceList.length >= 5) {
  383. uni.showToast({
  384. title: '语音备忘最多只能上传5条',
  385. icon: "none",
  386. mask: true,
  387. duration: 2000
  388. });
  389. return
  390. }
  391. this.liveType = true;
  392. console.log('录制', e)
  393. this.startPoint = e.touches[0]; //记录长按时开始点信息,后面用于计算上划取消时手指滑动的距离。
  394. const options = {
  395. duration: 60000,
  396. sampleRate: 16000,
  397. numberOfChannels: 1,
  398. encodeBitRate: 48000,
  399. format: 'mp3',
  400. frameSize: 50
  401. }
  402. this.recorderManager.start(options); //开始录音
  403. this.recorderManager.onStart(() => {
  404. console.log('recorder start')
  405. })
  406. this.recorderManager.onError((res) => {
  407. console.log(res);
  408. })
  409. wx.showToast({
  410. title: "正在录音,上划取消发送",
  411. icon: "none",
  412. duration: 60000 //先定义个60秒,后面可以手动调用wx.hideToast()隐藏
  413. });
  414. this.sendLock = false; //长按时是不上锁的。
  415. },
  416. //取消
  417. cancelButton(e) {
  418. console.log("移动")
  419. let self = this;
  420. this.liveType = false;
  421. console.log('取消', e)
  422. let moveLenght = e.touches[e.touches.length - 1].clientY - this.startPoint.clientY; //移动距离
  423. if (Math.abs(moveLenght) > 50) {
  424. wx.showToast({
  425. title: "松开手指,取消发送",
  426. icon: "none",
  427. duration: 60000
  428. });
  429. this.sendLock = true; //触发了上滑取消发送,上锁
  430. } else {
  431. wx.showToast({
  432. title: "正在录音,上划取消发送",
  433. icon: "none",
  434. duration: 60000
  435. });
  436. this.sendLock = false; //上划距离不足,依然可以发送,不上锁
  437. }
  438. },
  439. //发送
  440. sendButton(item, e) {
  441. console.log("松开")
  442. let self = this;
  443. this.liveType = false;
  444. console.log('发送', e)
  445. wx.hideToast(); //结束录音、隐藏Toast提示框
  446. this.recorderManager.stop(); //结束录音
  447. this.recorderManager.onStop((res) => {
  448. if (!this.sendLock) {
  449. this.uploadVoice(item, res.duration, res.tempFilePath);
  450. }
  451. console.log('停止录音', res.tempFilePath)
  452. console.log("sendLock", this.sendLock);
  453. })
  454. },
  455. //上传MP3
  456. async uploadVoice(item, times, tempFilePaths) {
  457. console.log(item)
  458. console.log(times)
  459. console.log(tempFilePaths)
  460. var self = this;
  461. uni.uploadFile({
  462. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  463. header: {
  464. 'Authorization': uni.getStorageSync('token')
  465. },
  466. filePath: tempFilePaths,
  467. name: 'file',
  468. formData: {
  469. 'user': 'test'
  470. },
  471. success: (uploadFileRes) => {
  472. let res = JSON.parse(uploadFileRes.data);
  473. if (res.code == 200) {
  474. console.log("上传成功", res)
  475. console.log(item)
  476. let seconds = Math.round((parseInt(times) % (1000 * 60)) / 1000);
  477. this.form.voiceList.push({
  478. 'fileLength': seconds,
  479. 'fileUrl': res.data.url,
  480. 'fileName': res.data.name
  481. })
  482. console.log(JSON.stringify(self.voice))
  483. //self.textParseUrlIps(res.data.url);
  484. // self.newData.imgList.push(res.data.url);
  485. } else {
  486. uni.showToast({
  487. title: res.msg,
  488. icon: "none",
  489. mask: true,
  490. duration: 2000
  491. });
  492. }
  493. },
  494. fail: err => {
  495. uni.hideLoading()
  496. },
  497. complete: () => {}
  498. });
  499. },
  500. }
  501. }
  502. </script>
  503. <style lang="stylus" scoped>
  504. .inspectAdd {
  505. height: 100%;
  506. display flex;
  507. box-sizing: border-box;
  508. padding-bottom: 160rpx;
  509. box-sizing: border-box;
  510. #bgColor-A {
  511. color: #FFD400;
  512. }
  513. #bgColor-B {
  514. color: #FF8C00;
  515. }
  516. #bgColor-C {
  517. color: #E11608;
  518. }
  519. .tip {
  520. width: 750rpx;
  521. height: 80rpx;
  522. background: rgba(1, 131, 250, 0.2);
  523. font-weight: normal;
  524. font-size: 28rpx;
  525. color: #0183FA;
  526. line-height: 80rpx;
  527. text-align: center;
  528. }
  529. .items {
  530. width: 690rpx;
  531. min-height: 165rpx;
  532. background: #FFFFFF;
  533. border-radius: 20rpx 20rpx 20rpx 20rpx;
  534. margin: 20rpx 0 0 30rpx;
  535. .items-li {
  536. display: flex;
  537. justify-content: space-between;
  538. align-items: center;
  539. padding: 0 30rpx;
  540. box-sizing: border-box;
  541. border-bottom: 1rpx solid #E0E0E0;
  542. >view:nth-of-type(1) {
  543. font-size: 30rpx;
  544. color: #333333;
  545. line-height: 80rpx;
  546. text-align: left;
  547. }
  548. >view:nth-of-type(2) {
  549. font-size: 28rpx;
  550. color: #666666;
  551. line-height: 80rpx;
  552. text-align: left;
  553. display: flex;
  554. justify-content: space-between;
  555. align-items: center;
  556. }
  557. }
  558. .items-t {
  559. border-bottom: 1rpx solid #E0E0E0;
  560. height: 80rpx;
  561. display: flex;
  562. justify-content: flex-start;
  563. align-items: center;
  564. padding: 0 30rpx;
  565. box-sizing: border-box;
  566. .items-t-l {
  567. width: 175rpx;
  568. height: 50rpx;
  569. background: #E11608;
  570. border-radius: 50rpx 50rpx 50rpx 50rpx;
  571. font-size: 30rpx;
  572. color: #FFFFFF;
  573. line-height: 50rpx;
  574. text-align: center;
  575. margin-right: 14rpx;
  576. }
  577. .items-t-r {
  578. font-size: 30rpx;
  579. color: #333333;
  580. line-height: 42rpx;
  581. text-align: left;
  582. }
  583. }
  584. .items-b {
  585. padding: 0 30rpx;
  586. box-sizing: border-box;
  587. height: 80rpx;
  588. font-size: 28rpx;
  589. color: #666666;
  590. line-height: 80rpx;
  591. text-align: left;
  592. }
  593. }
  594. .items-number {
  595. font-size: 24rpx;
  596. color: #3D3D3D;
  597. line-height: 34rpx;
  598. text-align: right;
  599. margin: 20rpx 60rpx 0 0;
  600. >text {
  601. font-size: 24rpx;
  602. color: #FF0000;
  603. line-height: 34rpx;
  604. text-align: right;
  605. }
  606. }
  607. .list {
  608. width: 690rpx;
  609. margin: 20rpx 30rpx 0;
  610. background: #FFFFFF;
  611. border-radius: 20rpx 20rpx 20rpx 20rpx;
  612. .list-li {
  613. display: flex;
  614. justify-content: space-between;
  615. align-items: center;
  616. padding: 0 30rpx;
  617. box-sizing: border-box;
  618. border-bottom: 1rpx solid #E0E0E0;
  619. >view:nth-of-type(1) {
  620. font-size: 30rpx;
  621. color: #333333;
  622. line-height: 80rpx;
  623. text-align: left;
  624. }
  625. >view:nth-of-type(2) {
  626. font-size: 28rpx;
  627. color: #666666;
  628. line-height: 80rpx;
  629. text-align: left;
  630. display: flex;
  631. justify-content: space-between;
  632. align-items: center;
  633. >img {
  634. width: 24rpx;
  635. height: 12rpx;
  636. margin-left: 10rpx;
  637. }
  638. }
  639. }
  640. .hidden-content {
  641. width: 630rpx;
  642. min-height: 200rpx;
  643. background: #F5F5F5;
  644. border-radius: 20rpx 20rpx 20rpx 20rpx;
  645. margin: 20rpx 30rpx 0;
  646. padding: 20rpx;
  647. box-sizing: border-box;
  648. font-size: 28rpx;
  649. color: #666666;
  650. line-height: 39rpx;
  651. text-align: left;
  652. }
  653. .photo {
  654. display: flex;
  655. justify-content: flex-start;
  656. flex-wrap: wrap;
  657. margin-top: 20rpx;
  658. padding: 0 30rpx;
  659. box-sizing: border-box;
  660. >img {
  661. width: 150rpx;
  662. height: 150rpx;
  663. border-radius: 10rpx 10rpx 10rpx 10rpx;
  664. margin: 0 10rpx 10rpx 0;
  665. }
  666. }
  667. .describe {
  668. width: 636rpx;
  669. height: 120rpx;
  670. border-radius: 10rpx 10rpx 10rpx 10rpx;
  671. border: 1rpx solid #E0E0E0;
  672. margin: 20rpx 0 0 28rpx;
  673. padding: 12rpx 16rpx;
  674. box-sizing: border-box;
  675. }
  676. .check-for-img-max-box {
  677. margin: 20px 28rpx;
  678. .left-title-p {
  679. width: 100%;
  680. text-align: left;
  681. font-size: 30rpx;
  682. font-family: PingFang SC-Medium, PingFang SC;
  683. font-weight: 400;
  684. color: #333333;
  685. line-height: 80rpx;
  686. }
  687. .right-img-box {
  688. .img-box {
  689. display inline-block;
  690. height: 150rpx;
  691. width: 150rpx;
  692. position relative;
  693. margin: 0 14rpx 20rpx 0;
  694. border-radius 10rpx;
  695. overflow hidden;
  696. .img-data {
  697. height: 150rpx;
  698. width: 150rpx;
  699. }
  700. .position-img {
  701. position absolute;
  702. right: 0;
  703. top: 0;
  704. width: 36rpx;
  705. height: 36rpx;
  706. }
  707. }
  708. .img-box:nth-of-type(3n+3) {
  709. margin-right: 0rpx;
  710. }
  711. .add-button {
  712. margin: 0 0rpx 20rpx 0;
  713. border-radius 10rpx;
  714. overflow hidden;
  715. display inline-block;
  716. height: 150rpx;
  717. width: 150rpx;
  718. }
  719. }
  720. }
  721. .list-li:last-of-type {
  722. border: none;
  723. }
  724. .radio_group {
  725. display: flex;
  726. justify-content: flex-end;
  727. padding: 32rpx 30rpx 22rpx 30rpx;
  728. box-sizing: border-box;
  729. border-bottom: 1rpx solid #E0E0E0;
  730. .radio {
  731. display: flex;
  732. justify-content: flex-start;
  733. align-items: center;
  734. >img {
  735. width: 30rpx;
  736. height: 30rpx;
  737. margin-right: 34rpx;
  738. }
  739. >text {
  740. font-size: 30rpx;
  741. color: #333333;
  742. line-height: 42rpx;
  743. text-align: left;
  744. }
  745. }
  746. .radio:nth-of-type(1) {
  747. margin-right: 54rpx;
  748. }
  749. }
  750. }
  751. /* 语音备注 */
  752. .voice {
  753. width: 690rpx;
  754. min-height: 100rpx;
  755. background: #FFFFFF;
  756. border-radius: 20rpx 20rpx 20rpx 20rpx;
  757. margin: 0rpx 30rpx;
  758. padding: 0 30rpx;
  759. box-sizing: border-box;
  760. overflow: hidden;
  761. .voice_t {
  762. height: 100rpx;
  763. display: flex;
  764. justify-content: space-between;
  765. align-items: center;
  766. .voice_t_t {
  767. width: 100%;
  768. font-size: 30rpx;
  769. font-family: PingFang SC-Medium, PingFang SC;
  770. font-weight: 400;
  771. color: #333333;
  772. line-height: 100rpx;
  773. text-align: center;
  774. }
  775. .voice_t_b {
  776. width: 100%;
  777. font-size: 30rpx;
  778. font-family: PingFang SC-Medium, PingFang SC;
  779. font-weight: 400;
  780. color: #333333;
  781. line-height: 100rpx;
  782. text-align: left;
  783. }
  784. }
  785. .voice_b {
  786. display flex;
  787. justify-content flex-start;
  788. align-items center;
  789. margin-bottom: 20rpx;
  790. .voice_b_l {
  791. width: 400rpx;
  792. height: 40rpx;
  793. background: #0183FA;
  794. border-radius: 10rpx;
  795. display flex;
  796. justify-content flex-start;
  797. align-items center;
  798. font-size: 24rpx;
  799. color: #FFFFFF;
  800. line-height: 30rpx;
  801. text-align: left;
  802. >img {
  803. width: 20rpx;
  804. height: 20rpx;
  805. margin-left: 16rpx;
  806. margin-right: 20rpx;
  807. }
  808. }
  809. .voice_b_r {
  810. width: 28rpx;
  811. height: 28rpx;
  812. margin-left: 20rpx;
  813. }
  814. }
  815. .voice-btn {
  816. width: 150rpx;
  817. height: 150rpx;
  818. position: fixed;
  819. right: 24rpx;
  820. bottom: 176rpx;
  821. >img {
  822. width: 150rpx;
  823. height: 150rpx;
  824. position: absolute;
  825. }
  826. >text {
  827. font-size: 24rpx;
  828. color: #999999;
  829. line-height: 30rpx;
  830. text-align: center;
  831. position: absolute;
  832. top: 84rpx;
  833. left: 26rpx;
  834. }
  835. }
  836. }
  837. }
  838. .sub-btn {
  839. display: flex;
  840. justify-content: center;
  841. position: fixed;
  842. left: 30rpx;
  843. bottom: 30rpx;
  844. >view:nth-of-type(1) {
  845. width: 345rpx;
  846. height: 100rpx;
  847. background: #FF8C00;
  848. border-radius: 50rpx 0rpx 0rpx 50rpx;
  849. font-size: 30rpx;
  850. color: #FFFFFF;
  851. line-height: 100rpx;
  852. text-align: center;
  853. }
  854. >view:nth-of-type(2) {
  855. width: 345rpx;
  856. height: 100rpx;
  857. background: #0183FA;
  858. border-radius: 0rpx 50rpx 50rpx 0rpx;
  859. font-size: 30rpx;
  860. color: #FFFFFF;
  861. line-height: 100rpx;
  862. text-align: center;
  863. }
  864. }
  865. </style>