inspectAdd.vue 22 KB

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