conductInspections.vue 24 KB

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