conductInspections.vue 24 KB

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