inspectAdd.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936
  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. console.log('新增',optionData)
  126. uni.setNavigationBarTitle({
  127. title: optionData.subName + '(' + (optionData.pageType == 0 ? optionData.roomNum : optionData
  128. .subRoom) + ')'
  129. })
  130. this.$set(this, 'pageType', optionData.pageType);
  131. this.$set(this, 'itemsStatus', optionData.itemsStatus);
  132. this.$set(this, 'setOptionId', optionData.setOptionId);
  133. this.$set(this, 'manageId', optionData.manageId);
  134. this.$set(this, 'subId', optionData.subId);
  135. this.$set(this, 'hazardCheckPro', optionData.hazardCheckPro);
  136. this.$set(this, 'optionData', optionData);
  137. },
  138. onShow() {
  139. },
  140. mounted() {
  141. if(this.pageType==0){
  142. //检查
  143. if(this.itemsStatus==0 || this.itemsStatus==1){
  144. //开始检查-提交的详情
  145. this.securityAppCheckPlanCheckInfo();
  146. }else if(this.itemsStatus==2){
  147. //保存草稿详情
  148. this.securityDraftFindBySetOptionId();
  149. }
  150. }
  151. this.securityAppCheckPhotoGetCheckNumBySub();
  152. },
  153. methods: {
  154. hiddenDangerClick(row) {
  155. if(!this.hiddenDangerRecordStatus){
  156. let infoData = this.optionData;
  157. infoData.hiddenDangerRecordStatus = true;//判断是否跳转隐患列表
  158. uni.redirectTo({
  159. url: '/pages_safetyCheck/views/inspectManage/hiddenDangerRecord?infoData=' +
  160. encodeURIComponent(JSON.stringify(infoData))
  161. });
  162. }
  163. },
  164. //获取提交详情
  165. async securityAppCheckPlanCheckInfo() {
  166. let obj = {
  167. setOptionId: this.setOptionId,
  168. manageId: this.manageId,
  169. }
  170. const {
  171. data
  172. } = await securityAppCheckPlanCheckInfo(obj);
  173. if (data.code == 200) {
  174. this.$set(this, 'newData', data.data);
  175. //编辑的时候
  176. this.$set(this.form, 'checkFlag', data.data.checkFlag?data.data.checkFlag:false);
  177. this.$set(this.form, 'hazardDescribe', data.data.hazardDescribe?data.data.hazardDescribe:'');
  178. this.$set(this.form, 'photoList', data.data.photoList?data.data.photoList:[]);
  179. this.$set(this.form, 'voiceList', data.data.voiceList?data.data.voiceList:[]);
  180. }
  181. },
  182. //获取草稿详情
  183. async securityDraftFindBySetOptionId() {
  184. let obj = {
  185. setOptionId: this.setOptionId,
  186. }
  187. const {
  188. data
  189. } = await securityDraftFindBySetOptionId(obj);
  190. if (data.code == 200) {
  191. //编辑的时候
  192. this.$set(this, 'newData', data.data);
  193. this.$set(this.newData, 'checkPlanSetVoList', this.optionData.checkPlanSetVoList);
  194. this.$set(this.form, 'checkFlag', data.data.checkFlag?data.data.checkFlag:false);
  195. this.$set(this.form, 'hazardDescribe', data.data.hazardDescribe?data.data.hazardDescribe:'');
  196. this.$set(this.form, 'photoList', data.data.photoList?data.data.photoList:[]);
  197. this.$set(this.form, 'voiceList', data.data.voiceList?data.data.voiceList:[]);
  198. }
  199. },
  200. //获取检查项在当前实验室出现的次数
  201. async securityAppCheckPhotoGetCheckNumBySub() {
  202. let obj = {
  203. subId: this.subId,
  204. hazardCheckPro: this.hazardCheckPro,
  205. }
  206. const {
  207. data
  208. } = await securityAppCheckPhotoGetCheckNumBySub(obj);
  209. if (data.code == 200) {
  210. this.$set(this, 'hazardCheckNum', data.data);
  211. }
  212. },
  213. //提交
  214. async submitForm(status) {
  215. if(!this.form.checkFlag || status==2){
  216. if(!this.form.hazardDescribe){
  217. uni.showToast({
  218. title: '请填写隐患描述!',
  219. icon: "none",
  220. mask: true,
  221. duration: 2000
  222. });
  223. return
  224. }
  225. if(!this.form.photoList[0]){
  226. uni.showToast({
  227. title: '请选择现场照片!',
  228. icon: "none",
  229. mask: true,
  230. duration: 2000
  231. });
  232. return
  233. }
  234. }
  235. let obj = {
  236. checkFlag: this.form.checkFlag,
  237. checkStatus: status == 1 ? 2 : 1,
  238. hazardDescribe: this.form.hazardDescribe,
  239. setOptionId: this.setOptionId,
  240. photoList: this.form.photoList,
  241. voiceList: this.form.voiceList,
  242. }
  243. const {
  244. data
  245. } = await securityAppCheckSetOptionCheckCommit(obj);
  246. if (data.code == 200) {
  247. if(status==1){
  248. uni.showToast({
  249. title: '保存成功!',
  250. icon: "none",
  251. mask: true,
  252. duration: 2000
  253. });
  254. }else if(status==2){
  255. uni.showToast({
  256. title: '提交成功!',
  257. icon: "none",
  258. mask: true,
  259. duration: 2000
  260. });
  261. }
  262. let infoData = this.optionData;
  263. infoData.itemsStatus = status==1?2:0;
  264. uni.redirectTo({
  265. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItemsDetail?infoData=' + encodeURIComponent(JSON
  266. .stringify(infoData))
  267. });
  268. }
  269. },
  270. //滚动事件
  271. scrollGet() {},
  272. //单选按钮
  273. radioClick(d) {
  274. let self = this;
  275. d.checked = !d.checked
  276. if (d.checked) {
  277. //如果有选中的,循环把其他选中的取消
  278. this.radioList.forEach(function(item) {
  279. if (item.id == d.id) {
  280. self.$set(self.form, 'checkFlag', item.id);
  281. } else {
  282. item.checked = false;
  283. }
  284. })
  285. } else {
  286. }
  287. },
  288. /******图片上传******/
  289. selectImage() {
  290. let self = this;
  291. if (this.form.photoList.length > 4) {
  292. uni.showToast({
  293. title: '最多上传5张图片',
  294. icon: "none",
  295. mask: true,
  296. duration: 2000
  297. });
  298. return
  299. }
  300. wx.chooseImage({
  301. count: 1,
  302. sizeType: ["original", "compressed"],
  303. sourceType: ["album", "camera"],
  304. success: function(res) {
  305. let tempFilePaths = res.tempFilePaths[0];
  306. self.uploadImg(tempFilePaths);
  307. }
  308. });
  309. },
  310. async uploadImg(tempFilePaths) {
  311. var self = this;
  312. uni.showLoading({
  313. title: '上传中',
  314. mask: true
  315. });
  316. uni.uploadFile({
  317. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  318. header: {
  319. 'Authorization': uni.getStorageSync('token')
  320. },
  321. filePath: tempFilePaths,
  322. name: 'file',
  323. formData: {
  324. 'user': 'test'
  325. },
  326. success: (uploadFileRes) => {
  327. let res = JSON.parse(uploadFileRes.data);
  328. if (res.code == 200) {
  329. this.form.photoList.push({
  330. 'fileUrl': res.data.url,
  331. 'fileName': res.data.name
  332. });
  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. var self = this;
  458. uni.uploadFile({
  459. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  460. header: {
  461. 'Authorization': uni.getStorageSync('token')
  462. },
  463. filePath: tempFilePaths,
  464. name: 'file',
  465. formData: {
  466. 'user': 'test'
  467. },
  468. success: (uploadFileRes) => {
  469. let res = JSON.parse(uploadFileRes.data);
  470. if (res.code == 200) {
  471. console.log("上传成功", res)
  472. console.log(item)
  473. let seconds = Math.round((parseInt(times) % (1000 * 60)) / 1000);
  474. this.form.voiceList.push({
  475. 'fileLength': seconds,
  476. 'fileUrl': res.data.url,
  477. 'fileName': res.data.name
  478. })
  479. console.log(JSON.stringify(self.voice))
  480. //self.textParseUrlIps(res.data.url);
  481. // self.newData.imgList.push(res.data.url);
  482. } else {
  483. uni.showToast({
  484. title: res.msg,
  485. icon: "none",
  486. mask: true,
  487. duration: 2000
  488. });
  489. }
  490. },
  491. fail: err => {
  492. uni.hideLoading()
  493. },
  494. complete: () => {}
  495. });
  496. },
  497. }
  498. }
  499. </script>
  500. <style lang="stylus" scoped>
  501. .inspectAdd {
  502. height: 100%;
  503. display flex;
  504. box-sizing: border-box;
  505. padding-bottom: 160rpx;
  506. box-sizing: border-box;
  507. #bgColor-A {
  508. color: #FFD400;
  509. }
  510. #bgColor-B {
  511. color: #FF8C00;
  512. }
  513. #bgColor-C {
  514. color: #E11608;
  515. }
  516. .tip {
  517. width: 750rpx;
  518. height: 80rpx;
  519. background: rgba(1, 131, 250, 0.2);
  520. font-weight: normal;
  521. font-size: 28rpx;
  522. color: #0183FA;
  523. line-height: 80rpx;
  524. text-align: center;
  525. }
  526. .items {
  527. width: 690rpx;
  528. min-height: 165rpx;
  529. background: #FFFFFF;
  530. border-radius: 20rpx 20rpx 20rpx 20rpx;
  531. margin: 20rpx 0 0 30rpx;
  532. .items-li {
  533. display: flex;
  534. justify-content: space-between;
  535. align-items: center;
  536. padding: 0 30rpx;
  537. box-sizing: border-box;
  538. border-bottom: 1rpx solid #E0E0E0;
  539. >view:nth-of-type(1) {
  540. font-size: 30rpx;
  541. color: #333333;
  542. line-height: 80rpx;
  543. text-align: left;
  544. }
  545. >view:nth-of-type(2) {
  546. font-size: 28rpx;
  547. color: #666666;
  548. line-height: 80rpx;
  549. text-align: left;
  550. display: flex;
  551. justify-content: space-between;
  552. align-items: center;
  553. }
  554. }
  555. .items-t {
  556. border-bottom: 1rpx solid #E0E0E0;
  557. height: 80rpx;
  558. display: flex;
  559. justify-content: flex-start;
  560. align-items: center;
  561. padding: 0 30rpx;
  562. box-sizing: border-box;
  563. .items-t-l {
  564. width: 175rpx;
  565. height: 50rpx;
  566. background: #E11608;
  567. border-radius: 50rpx 50rpx 50rpx 50rpx;
  568. font-size: 30rpx;
  569. color: #FFFFFF;
  570. line-height: 50rpx;
  571. text-align: center;
  572. margin-right: 14rpx;
  573. }
  574. .items-t-r {
  575. font-size: 30rpx;
  576. color: #333333;
  577. line-height: 42rpx;
  578. text-align: left;
  579. }
  580. }
  581. .items-b {
  582. padding: 0 30rpx;
  583. box-sizing: border-box;
  584. height: 80rpx;
  585. font-size: 28rpx;
  586. color: #666666;
  587. line-height: 80rpx;
  588. text-align: left;
  589. }
  590. }
  591. .items-number {
  592. font-size: 24rpx;
  593. color: #3D3D3D;
  594. line-height: 34rpx;
  595. text-align: right;
  596. margin: 20rpx 60rpx 0 0;
  597. >text {
  598. font-size: 24rpx;
  599. color: #FF0000;
  600. line-height: 34rpx;
  601. text-align: right;
  602. }
  603. }
  604. .list {
  605. width: 690rpx;
  606. margin: 20rpx 30rpx 0;
  607. background: #FFFFFF;
  608. border-radius: 20rpx 20rpx 20rpx 20rpx;
  609. .list-li {
  610. display: flex;
  611. justify-content: space-between;
  612. align-items: center;
  613. padding: 0 30rpx;
  614. box-sizing: border-box;
  615. border-bottom: 1rpx solid #E0E0E0;
  616. >view:nth-of-type(1) {
  617. font-size: 30rpx;
  618. color: #333333;
  619. line-height: 80rpx;
  620. text-align: left;
  621. }
  622. >view:nth-of-type(2) {
  623. font-size: 28rpx;
  624. color: #666666;
  625. line-height: 80rpx;
  626. text-align: left;
  627. display: flex;
  628. justify-content: space-between;
  629. align-items: center;
  630. >img {
  631. width: 24rpx;
  632. height: 12rpx;
  633. margin-left: 10rpx;
  634. }
  635. }
  636. }
  637. .hidden-content {
  638. width: 630rpx;
  639. min-height: 200rpx;
  640. background: #F5F5F5;
  641. border-radius: 20rpx 20rpx 20rpx 20rpx;
  642. margin: 20rpx 30rpx 0;
  643. padding: 20rpx;
  644. box-sizing: border-box;
  645. font-size: 28rpx;
  646. color: #666666;
  647. line-height: 39rpx;
  648. text-align: left;
  649. }
  650. .photo {
  651. display: flex;
  652. justify-content: flex-start;
  653. flex-wrap: wrap;
  654. margin-top: 20rpx;
  655. padding: 0 30rpx;
  656. box-sizing: border-box;
  657. >img {
  658. width: 150rpx;
  659. height: 150rpx;
  660. border-radius: 10rpx 10rpx 10rpx 10rpx;
  661. margin: 0 10rpx 10rpx 0;
  662. }
  663. }
  664. .describe {
  665. width: 636rpx;
  666. height: 120rpx;
  667. border-radius: 10rpx 10rpx 10rpx 10rpx;
  668. border: 1rpx solid #E0E0E0;
  669. margin: 20rpx 0 0 28rpx;
  670. padding: 12rpx 16rpx;
  671. box-sizing: border-box;
  672. }
  673. .check-for-img-max-box {
  674. margin: 20px 28rpx;
  675. .left-title-p {
  676. width: 100%;
  677. text-align: left;
  678. font-size: 30rpx;
  679. font-family: PingFang SC-Medium, PingFang SC;
  680. font-weight: 400;
  681. color: #333333;
  682. line-height: 80rpx;
  683. }
  684. .right-img-box {
  685. .img-box {
  686. display inline-block;
  687. height: 150rpx;
  688. width: 150rpx;
  689. position relative;
  690. margin: 0 14rpx 20rpx 0;
  691. border-radius 10rpx;
  692. overflow hidden;
  693. .img-data {
  694. height: 150rpx;
  695. width: 150rpx;
  696. }
  697. .position-img {
  698. position absolute;
  699. right: 0;
  700. top: 0;
  701. width: 36rpx;
  702. height: 36rpx;
  703. }
  704. }
  705. .img-box:nth-of-type(3n+3) {
  706. margin-right: 0rpx;
  707. }
  708. .add-button {
  709. margin: 0 0rpx 20rpx 0;
  710. border-radius 10rpx;
  711. overflow hidden;
  712. display inline-block;
  713. height: 150rpx;
  714. width: 150rpx;
  715. }
  716. }
  717. }
  718. .list-li:last-of-type {
  719. border: none;
  720. }
  721. .radio_group {
  722. display: flex;
  723. justify-content: flex-end;
  724. padding: 32rpx 30rpx 22rpx 30rpx;
  725. box-sizing: border-box;
  726. border-bottom: 1rpx solid #E0E0E0;
  727. .radio {
  728. display: flex;
  729. justify-content: flex-start;
  730. align-items: center;
  731. >img {
  732. width: 30rpx;
  733. height: 30rpx;
  734. margin-right: 34rpx;
  735. }
  736. >text {
  737. font-size: 30rpx;
  738. color: #333333;
  739. line-height: 42rpx;
  740. text-align: left;
  741. }
  742. }
  743. .radio:nth-of-type(1) {
  744. margin-right: 54rpx;
  745. }
  746. }
  747. }
  748. /* 语音备注 */
  749. .voice {
  750. width: 690rpx;
  751. min-height: 100rpx;
  752. background: #FFFFFF;
  753. border-radius: 20rpx 20rpx 20rpx 20rpx;
  754. margin: 0rpx 30rpx;
  755. padding: 0 30rpx;
  756. box-sizing: border-box;
  757. overflow: hidden;
  758. .voice_t {
  759. height: 100rpx;
  760. display: flex;
  761. justify-content: space-between;
  762. align-items: center;
  763. .voice_t_t {
  764. width: 100%;
  765. font-size: 30rpx;
  766. font-family: PingFang SC-Medium, PingFang SC;
  767. font-weight: 400;
  768. color: #333333;
  769. line-height: 100rpx;
  770. text-align: center;
  771. }
  772. .voice_t_b {
  773. width: 100%;
  774. font-size: 30rpx;
  775. font-family: PingFang SC-Medium, PingFang SC;
  776. font-weight: 400;
  777. color: #333333;
  778. line-height: 100rpx;
  779. text-align: left;
  780. }
  781. }
  782. .voice_b {
  783. display flex;
  784. justify-content flex-start;
  785. align-items center;
  786. margin-bottom: 20rpx;
  787. .voice_b_l {
  788. width: 400rpx;
  789. height: 40rpx;
  790. background: #0183FA;
  791. border-radius: 10rpx;
  792. display flex;
  793. justify-content flex-start;
  794. align-items center;
  795. font-size: 24rpx;
  796. color: #FFFFFF;
  797. line-height: 30rpx;
  798. text-align: left;
  799. >img {
  800. width: 20rpx;
  801. height: 20rpx;
  802. margin-left: 16rpx;
  803. margin-right: 20rpx;
  804. }
  805. }
  806. .voice_b_r {
  807. width: 28rpx;
  808. height: 28rpx;
  809. margin-left: 20rpx;
  810. }
  811. }
  812. .voice-btn {
  813. width: 150rpx;
  814. height: 150rpx;
  815. position: fixed;
  816. right: 24rpx;
  817. bottom: 176rpx;
  818. >img {
  819. width: 150rpx;
  820. height: 150rpx;
  821. position: absolute;
  822. }
  823. >text {
  824. font-size: 24rpx;
  825. color: #999999;
  826. line-height: 30rpx;
  827. text-align: center;
  828. position: absolute;
  829. top: 84rpx;
  830. left: 26rpx;
  831. }
  832. }
  833. }
  834. }
  835. .sub-btn {
  836. display: flex;
  837. justify-content: center;
  838. position: fixed;
  839. left: 30rpx;
  840. bottom: 30rpx;
  841. >view:nth-of-type(1) {
  842. width: 345rpx;
  843. height: 100rpx;
  844. background: #FF8C00;
  845. border-radius: 50rpx 0rpx 0rpx 50rpx;
  846. font-size: 30rpx;
  847. color: #FFFFFF;
  848. line-height: 100rpx;
  849. text-align: center;
  850. }
  851. >view:nth-of-type(2) {
  852. width: 345rpx;
  853. height: 100rpx;
  854. background: #0183FA;
  855. border-radius: 0rpx 50rpx 50rpx 0rpx;
  856. font-size: 30rpx;
  857. color: #FFFFFF;
  858. line-height: 100rpx;
  859. text-align: center;
  860. }
  861. }
  862. </style>