inspectAdd.vue 22 KB

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