inspectAdd.vue 22 KB

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