inspectAdd.vue 22 KB

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