conductInspections.vue 24 KB

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