inspectAdd.vue 23 KB

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