conductInspections.vue 25 KB

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