inspectAdd.vue 23 KB

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