conductInspections.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982
  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<5">
  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 > 4) {
  329. uni.showToast({
  330. title: '最多上传5张图片',
  331. icon: "none",
  332. mask: true,
  333. duration: 2000
  334. });
  335. return
  336. }
  337. wx.chooseImage({
  338. count: 1,
  339. sizeType: ["original", "compressed"],
  340. sourceType: ["album", "camera"],
  341. success: function(res) {
  342. let tempFilePaths = res.tempFilePaths[0];
  343. self.uploadImg(tempFilePaths);
  344. }
  345. });
  346. },
  347. async uploadImg(tempFilePaths) {
  348. var self = this;
  349. uni.showLoading({
  350. title: '上传中',
  351. mask: true
  352. });
  353. uni.uploadFile({
  354. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  355. header: {
  356. 'Authorization': uni.getStorageSync('token')
  357. },
  358. filePath: tempFilePaths,
  359. name: 'file',
  360. formData: {
  361. 'user': 'test'
  362. },
  363. success: (uploadFileRes) => {
  364. let res = JSON.parse(uploadFileRes.data);
  365. if (res.code == 200) {
  366. this.form.photoList.push({
  367. 'fileUrl': res.data.url,
  368. 'fileName': res.data.name
  369. });
  370. } else {
  371. uni.showToast({
  372. title: res.msg,
  373. icon: "none",
  374. mask: true,
  375. duration: 2000
  376. });
  377. }
  378. },
  379. fail: err => {},
  380. complete: () => {
  381. uni.hideLoading()
  382. }
  383. });
  384. },
  385. //删除图片
  386. delImg(minIndex) {
  387. this.form.photoList.splice(minIndex, 1);
  388. this.$forceUpdate();
  389. },
  390. /******语音备注 *******/
  391. //语音备忘播放
  392. async voicePlay(item) {
  393. myaudio.src = config.base_url + item;
  394. myaudio.play();
  395. },
  396. //语音备忘删除
  397. async voiceDele(item, voiceIndex) {
  398. let self = this;
  399. uni.showModal({
  400. title: '',
  401. cancelColor: '#999999',
  402. confirmColor: '#FF6E6E',
  403. content: '确定删除此语音吗?',
  404. success(res) {
  405. if (res.confirm) {
  406. console.log('用户点击确定')
  407. self.form.voiceList.splice(voiceIndex, 1);
  408. self.$forceUpdate();
  409. } else if (res.cancel) {
  410. console.log('用户点击取消')
  411. }
  412. }
  413. })
  414. },
  415. //录制
  416. recordButton(item, e) {
  417. console.log("按下")
  418. let self = this;
  419. if (this.form.voiceList.length >= 5) {
  420. uni.showToast({
  421. title: '语音备忘最多只能上传5条',
  422. icon: "none",
  423. mask: true,
  424. duration: 2000
  425. });
  426. return
  427. }
  428. this.liveType = true;
  429. console.log('录制', e)
  430. this.startPoint = e.touches[0]; //记录长按时开始点信息,后面用于计算上划取消时手指滑动的距离。
  431. const options = {
  432. duration: 60000,
  433. sampleRate: 16000,
  434. numberOfChannels: 1,
  435. encodeBitRate: 48000,
  436. format: 'mp3',
  437. frameSize: 50
  438. }
  439. this.recorderManager.start(options); //开始录音
  440. this.recorderManager.onStart(() => {
  441. console.log('recorder start')
  442. })
  443. this.recorderManager.onError((res) => {
  444. console.log(res);
  445. })
  446. wx.showToast({
  447. title: "正在录音,上划取消发送",
  448. icon: "none",
  449. duration: 60000 //先定义个60秒,后面可以手动调用wx.hideToast()隐藏
  450. });
  451. this.sendLock = false; //长按时是不上锁的。
  452. },
  453. //取消
  454. cancelButton(e) {
  455. console.log("移动")
  456. let self = this;
  457. this.liveType = false;
  458. console.log('取消', e)
  459. let moveLenght = e.touches[e.touches.length - 1].clientY - this.startPoint.clientY; //移动距离
  460. if (Math.abs(moveLenght) > 50) {
  461. wx.showToast({
  462. title: "松开手指,取消发送",
  463. icon: "none",
  464. duration: 60000
  465. });
  466. this.sendLock = true; //触发了上滑取消发送,上锁
  467. } else {
  468. wx.showToast({
  469. title: "正在录音,上划取消发送",
  470. icon: "none",
  471. duration: 60000
  472. });
  473. this.sendLock = false; //上划距离不足,依然可以发送,不上锁
  474. }
  475. },
  476. //发送
  477. sendButton(item, e) {
  478. console.log("松开")
  479. let self = this;
  480. this.liveType = false;
  481. console.log('发送', e)
  482. wx.hideToast(); //结束录音、隐藏Toast提示框
  483. this.recorderManager.stop(); //结束录音
  484. this.recorderManager.onStop((res) => {
  485. if (!this.sendLock) {
  486. this.uploadVoice(item, res.duration, res.tempFilePath);
  487. }
  488. console.log('停止录音', res.tempFilePath)
  489. console.log("sendLock", this.sendLock);
  490. })
  491. },
  492. //上传MP3
  493. async uploadVoice(item, times, tempFilePaths) {
  494. var self = this;
  495. uni.uploadFile({
  496. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  497. header: {
  498. 'Authorization': uni.getStorageSync('token')
  499. },
  500. filePath: tempFilePaths,
  501. name: 'file',
  502. formData: {
  503. 'user': 'test'
  504. },
  505. success: (uploadFileRes) => {
  506. let res = JSON.parse(uploadFileRes.data);
  507. if (res.code == 200) {
  508. console.log("上传成功", res)
  509. console.log(item)
  510. let seconds = Math.round((parseInt(times) % (1000 * 60)) / 1000);
  511. this.form.voiceList.push({
  512. 'fileLength': seconds,
  513. 'fileUrl': res.data.url,
  514. 'fileName': res.data.name
  515. })
  516. console.log(JSON.stringify(self.voice))
  517. //self.textParseUrlIps(res.data.url);
  518. // self.newData.imgList.push(res.data.url);
  519. } else {
  520. uni.showToast({
  521. title: res.msg,
  522. icon: "none",
  523. mask: true,
  524. duration: 2000
  525. });
  526. }
  527. },
  528. fail: err => {
  529. uni.hideLoading()
  530. },
  531. complete: () => {}
  532. });
  533. },
  534. }
  535. }
  536. </script>
  537. <style lang="stylus" scoped>
  538. .inspectAdd {
  539. height: 100%;
  540. display flex;
  541. box-sizing: border-box;
  542. padding-bottom: 160rpx;
  543. box-sizing: border-box;
  544. #bgColor-A {
  545. color: #FFD400;
  546. }
  547. #bgColor-B {
  548. color: #FF8C00;
  549. }
  550. #bgColor-C {
  551. color: #E11608;
  552. }
  553. .tip {
  554. width: 750rpx;
  555. height: 80rpx;
  556. background: rgba(1, 131, 250, 0.2);
  557. font-weight: normal;
  558. font-size: 28rpx;
  559. color: #0183FA;
  560. line-height: 80rpx;
  561. text-align: center;
  562. }
  563. .items {
  564. width: 690rpx;
  565. min-height: 165rpx;
  566. background: #FFFFFF;
  567. border-radius: 20rpx 20rpx 20rpx 20rpx;
  568. margin: 20rpx 0 0 30rpx;
  569. .items-li {
  570. display: flex;
  571. justify-content: space-between;
  572. align-items: center;
  573. padding: 0 30rpx;
  574. box-sizing: border-box;
  575. border-bottom: 1rpx solid #E0E0E0;
  576. >view:nth-of-type(1) {
  577. font-size: 30rpx;
  578. color: #333333;
  579. line-height: 80rpx;
  580. text-align: left;
  581. }
  582. >view:nth-of-type(2) {
  583. font-size: 28rpx;
  584. color: #666666;
  585. line-height: 80rpx;
  586. text-align: left;
  587. display: flex;
  588. justify-content: space-between;
  589. align-items: center;
  590. }
  591. }
  592. .items-t {
  593. border-bottom: 1rpx solid #E0E0E0;
  594. height: 80rpx;
  595. display: flex;
  596. justify-content: flex-start;
  597. align-items: center;
  598. padding: 0 30rpx;
  599. box-sizing: border-box;
  600. .items-t-l {
  601. width: 175rpx;
  602. height: 50rpx;
  603. background: #E11608;
  604. border-radius: 50rpx 50rpx 50rpx 50rpx;
  605. font-size: 30rpx;
  606. color: #FFFFFF;
  607. line-height: 50rpx;
  608. text-align: center;
  609. margin-right: 14rpx;
  610. }
  611. .items-t-r {
  612. font-size: 30rpx;
  613. color: #333333;
  614. line-height: 42rpx;
  615. text-align: left;
  616. overflow: hidden;
  617. text-overflow: ellipsis;
  618. white-space: nowrap;
  619. flex: 1;
  620. }
  621. .items-t-img {
  622. width: 24rpx;
  623. height: 24rpx;
  624. margin-left: 76rpx;
  625. margin-right: 34rpx;
  626. }
  627. }
  628. .items-b {
  629. padding: 0 30rpx;
  630. box-sizing: border-box;
  631. height: 80rpx;
  632. font-size: 28rpx;
  633. color: #666666;
  634. line-height: 80rpx;
  635. text-align: left;
  636. }
  637. }
  638. .items-number {
  639. font-size: 24rpx;
  640. color: #3D3D3D;
  641. line-height: 34rpx;
  642. text-align: right;
  643. margin: 20rpx 60rpx 0 0;
  644. >text {
  645. font-size: 24rpx;
  646. color: #FF0000;
  647. line-height: 34rpx;
  648. text-align: right;
  649. }
  650. }
  651. .list {
  652. width: 690rpx;
  653. margin: 20rpx 30rpx 0;
  654. background: #FFFFFF;
  655. border-radius: 20rpx 20rpx 20rpx 20rpx;
  656. .list-li {
  657. display: flex;
  658. justify-content: space-between;
  659. align-items: center;
  660. padding: 0 30rpx;
  661. box-sizing: border-box;
  662. border-bottom: 1rpx solid #E0E0E0;
  663. >view:nth-of-type(1) {
  664. font-size: 30rpx;
  665. color: #333333;
  666. line-height: 80rpx;
  667. text-align: left;
  668. }
  669. >view:nth-of-type(2) {
  670. font-size: 28rpx;
  671. color: #666666;
  672. line-height: 80rpx;
  673. text-align: left;
  674. display: flex;
  675. justify-content: space-between;
  676. align-items: center;
  677. >img {
  678. width: 24rpx;
  679. height: 12rpx;
  680. margin-left: 10rpx;
  681. }
  682. }
  683. }
  684. .hidden-content {
  685. width: 630rpx;
  686. min-height: 200rpx;
  687. background: #F5F5F5;
  688. border-radius: 20rpx 20rpx 20rpx 20rpx;
  689. margin: 20rpx 30rpx 0;
  690. padding: 20rpx;
  691. box-sizing: border-box;
  692. font-size: 28rpx;
  693. color: #666666;
  694. line-height: 39rpx;
  695. text-align: left;
  696. }
  697. .photo {
  698. display: flex;
  699. justify-content: flex-start;
  700. flex-wrap: wrap;
  701. margin-top: 20rpx;
  702. padding: 0 30rpx;
  703. box-sizing: border-box;
  704. >img {
  705. width: 150rpx;
  706. height: 150rpx;
  707. border-radius: 10rpx 10rpx 10rpx 10rpx;
  708. margin: 0 10rpx 10rpx 0;
  709. }
  710. }
  711. .describe {
  712. width: 636rpx;
  713. height: 120rpx;
  714. border-radius: 10rpx 10rpx 10rpx 10rpx;
  715. border: 1rpx solid #E0E0E0;
  716. margin: 20rpx 0 0 28rpx;
  717. padding: 12rpx 16rpx;
  718. box-sizing: border-box;
  719. }
  720. .check-for-img-max-box {
  721. margin: 20px 28rpx;
  722. .left-title-p {
  723. width: 100%;
  724. text-align: left;
  725. font-size: 30rpx;
  726. font-family: PingFang SC-Medium, PingFang SC;
  727. font-weight: 400;
  728. color: #333333;
  729. line-height: 80rpx;
  730. }
  731. .right-img-box {
  732. .img-box {
  733. display inline-block;
  734. height: 150rpx;
  735. width: 150rpx;
  736. position relative;
  737. margin: 0 14rpx 20rpx 0;
  738. border-radius 10rpx;
  739. overflow hidden;
  740. .img-data {
  741. height: 150rpx;
  742. width: 150rpx;
  743. }
  744. .position-img {
  745. position absolute;
  746. right: 0;
  747. top: 0;
  748. width: 36rpx;
  749. height: 36rpx;
  750. }
  751. }
  752. .img-box:nth-of-type(3n+3) {
  753. margin-right: 0rpx;
  754. }
  755. .add-button {
  756. margin: 0 0rpx 20rpx 0;
  757. border-radius 10rpx;
  758. overflow hidden;
  759. display inline-block;
  760. height: 150rpx;
  761. width: 150rpx;
  762. }
  763. }
  764. }
  765. .list-li:last-of-type {
  766. border: none;
  767. }
  768. .radio_group {
  769. display: flex;
  770. justify-content: flex-end;
  771. padding: 32rpx 30rpx 22rpx 30rpx;
  772. box-sizing: border-box;
  773. border-bottom: 1rpx solid #E0E0E0;
  774. .radio {
  775. display: flex;
  776. justify-content: flex-start;
  777. align-items: center;
  778. >img {
  779. width: 30rpx;
  780. height: 30rpx;
  781. margin-right: 34rpx;
  782. }
  783. >text {
  784. font-size: 30rpx;
  785. color: #333333;
  786. line-height: 42rpx;
  787. text-align: left;
  788. }
  789. }
  790. .radio:nth-of-type(1) {
  791. margin-right: 54rpx;
  792. }
  793. }
  794. }
  795. /* 语音备注 */
  796. .voice {
  797. width: 690rpx;
  798. min-height: 100rpx;
  799. background: #FFFFFF;
  800. border-radius: 20rpx 20rpx 20rpx 20rpx;
  801. margin: 0rpx 30rpx;
  802. padding: 0 30rpx;
  803. box-sizing: border-box;
  804. overflow: hidden;
  805. .voice_t {
  806. height: 100rpx;
  807. display: flex;
  808. justify-content: space-between;
  809. align-items: center;
  810. .voice_t_t {
  811. width: 100%;
  812. font-size: 30rpx;
  813. font-family: PingFang SC-Medium, PingFang SC;
  814. font-weight: 400;
  815. color: #333333;
  816. line-height: 100rpx;
  817. text-align: center;
  818. }
  819. .voice_t_b {
  820. width: 100%;
  821. font-size: 30rpx;
  822. font-family: PingFang SC-Medium, PingFang SC;
  823. font-weight: 400;
  824. color: #333333;
  825. line-height: 100rpx;
  826. text-align: left;
  827. }
  828. }
  829. .voice_b {
  830. display flex;
  831. justify-content flex-start;
  832. align-items center;
  833. margin-bottom: 20rpx;
  834. .voice_b_l {
  835. width: 400rpx;
  836. height: 40rpx;
  837. background: #0183FA;
  838. border-radius: 10rpx;
  839. display flex;
  840. justify-content flex-start;
  841. align-items center;
  842. font-size: 24rpx;
  843. color: #FFFFFF;
  844. line-height: 30rpx;
  845. text-align: left;
  846. >img {
  847. width: 20rpx;
  848. height: 20rpx;
  849. margin-left: 16rpx;
  850. margin-right: 20rpx;
  851. }
  852. }
  853. .voice_b_r {
  854. width: 28rpx;
  855. height: 28rpx;
  856. margin-left: 20rpx;
  857. }
  858. }
  859. .voice-btn {
  860. width: 150rpx;
  861. height: 150rpx;
  862. position: fixed;
  863. right: 24rpx;
  864. bottom: 176rpx;
  865. >img {
  866. width: 150rpx;
  867. height: 150rpx;
  868. position: absolute;
  869. }
  870. >text {
  871. font-size: 24rpx;
  872. color: #999999;
  873. line-height: 30rpx;
  874. text-align: center;
  875. position: absolute;
  876. top: 84rpx;
  877. left: 26rpx;
  878. }
  879. }
  880. }
  881. }
  882. .sub-btn {
  883. display: flex;
  884. justify-content: center;
  885. position: fixed;
  886. left: 30rpx;
  887. bottom: 30rpx;
  888. >view:nth-of-type(1) {
  889. width: 345rpx;
  890. height: 100rpx;
  891. background: #FF8C00;
  892. border-radius: 50rpx 0rpx 0rpx 50rpx;
  893. font-size: 30rpx;
  894. color: #FFFFFF;
  895. line-height: 100rpx;
  896. text-align: center;
  897. }
  898. >view:nth-of-type(2) {
  899. width: 345rpx;
  900. height: 100rpx;
  901. background: #0183FA;
  902. border-radius: 0rpx 50rpx 50rpx 0rpx;
  903. font-size: 30rpx;
  904. color: #FFFFFF;
  905. line-height: 100rpx;
  906. text-align: center;
  907. }
  908. }
  909. </style>