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