piping_record.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. <template>
  2. <scroll-view>
  3. <view class="background">
  4. <view class="uni-list">
  5. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  6. <view>
  7. 行政区
  8. </view>
  9. <view v-if="this.isEmpty(this.XZQValue.dictValue)" style="margin-top: 10;"
  10. @click="pickerShow('xzq')">
  11. <span style="color: darkgray;">请选择行政区</span>
  12. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  13. </view>
  14. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('xzq')">
  15. <span style="color: black;">{{XZQValue.dictLabel}}</span>
  16. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="uni-list">
  21. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  22. <view>
  23. 小区
  24. </view>
  25. <view v-if="this.isEmpty(this.XQValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
  26. @click="pickerShow('xq')">
  27. <span style="color: darkgray;">请选择小区</span>
  28. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  29. </view>
  30. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('xq')">
  31. <span style="color: black;">{{XQValue.name}}</span>
  32. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="uni-list">
  37. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  38. <view class="uni-list-cell-left">
  39. 楼栋
  40. </view>
  41. <view v-if="this.isEmpty(this.LDValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
  42. @click="pickerShow('ld')">
  43. <span style="color: darkgray;">请选择楼栋</span>
  44. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  45. </view>
  46. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('ld')">
  47. <span style="color: black;">{{LDValue.name}}</span>
  48. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="uni-list" style="margin-top: 10;">
  53. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  54. <view class="uni-list-cell-left">
  55. 单元
  56. </view>
  57. <view v-if="this.isEmpty(this.DYValue.id)" class="uni-list-cell-db" style="margin-top: 10;"
  58. @click="pickerShow('dy')">
  59. <span style="color: darkgray;">请选择单元</span>
  60. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  61. </view>
  62. <view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('dy')">
  63. <span style="color: black;">{{DYValue.name}}</span>
  64. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="background" style="margin-top: 20px;margin-bottom: 20px;">
  70. <view class="uni-list">
  71. <view
  72. style="font-size: 16px;margin-left: 10px;margin-top: 10px;display: flex; justify-content: space-between;margin-bottom: 10px;">
  73. {{name}}
  74. <span
  75. style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
  76. @click="history">历史</span>
  77. </view>
  78. </view>
  79. <view class="container" style="border-bottom: 1px solid #f8f8f8;">
  80. <view>
  81. 施工时间
  82. </view>
  83. <view @click="openDatetimePicker()">
  84. <span style="color: black;">{{time}}</span>
  85. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  86. </view>
  87. </view>
  88. <view class="container" style="color: #b2b2b2;">*请上传照片</view>
  89. <view style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  90. <image :src="loadImgSrc('updateimg.png')" mode=""
  91. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="chooseimage()"
  92. v-show="reviewStatus!='1'"></image>
  93. <view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
  94. <view
  95. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  96. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  97. @click="showPhoto(index)">
  98. </image>
  99. </view>
  100. <view v-else>
  101. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  102. </view>
  103. <view @click="remove(index)" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  104. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  105. </image>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. <view class="action-btn" v-show="reviewStatus!='1'">
  111. <button @click="submit" class="btn cu-btn block bg-blue lg round">确认上传</button>
  112. </view>
  113. <bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
  114. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  115. subtitleKey="id" v-model="name"></SelectPicker>
  116. <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
  117. titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  118. <yt-dateTimePicker ref="myPicker" @submit="handleSubmit" :start-year="2024" :end-year="2099"
  119. :time-hide="[true, true, true, true, true, true]" :time-label="['年', '月', '日', '时', '分', '秒']" />
  120. </scroll-view>
  121. </template>
  122. <script>
  123. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  124. import bottomSheet from '../../components/bottomSheet/bottomSheet.vue'
  125. import {
  126. getDicts
  127. } from "@/api/system/dict/data";
  128. import {
  129. getAreaList,
  130. getBuildingList,
  131. getUnitList,
  132. addTearOldPipe,
  133. getRoomProjectList,
  134. getRoomProjectId,
  135. } from '@/api/common';
  136. import {
  137. getToken
  138. } from '../../utils/auth';
  139. export default {
  140. components: {
  141. SelectPicker,
  142. bottomSheet,
  143. },
  144. data() {
  145. return {
  146. title: '',
  147. name: '管道施工记录',
  148. headers: {
  149. Authorization: "Bearer " + getToken()
  150. },
  151. type: '',
  152. open: false,
  153. reviewStatus: '', //是否可以点击
  154. objValue: '', //上一页面传过来的值 新增接口用
  155. openDict: false,
  156. selectList: [],
  157. dictOptions: [],
  158. imgArr: [],
  159. XQValue: {},
  160. XZQValue: {},
  161. projectValue: {
  162. 'dictValue': '0'
  163. },
  164. time: '', //施工时间
  165. LDValue: {},
  166. DYValue: {},
  167. XQList: '',
  168. LDList: '',
  169. DYList: '',
  170. FJList: '',
  171. progress: 0, //上传图片进度百分比
  172. loading: false,
  173. historyList: {}, //历史数据
  174. inputNumberValue: '',
  175. inputIntegerNumberValue: '',
  176. inputDecimalNumberValue: '',
  177. }
  178. },
  179. created() {
  180. this.time = this.traversalTime(new Date().getTime()) //在data里定义变量-nowTime
  181. },
  182. onLoad(options) {
  183. if ('params' in options) {
  184. this.objValue = JSON.parse(decodeURIComponent(options.params));
  185. if (this.objValue.enginType == `old_renovation`) {
  186. this.title = '旧改工程-管道施工记录'
  187. } else if (this.objValue.enginType == `new_built`) {
  188. this.title = '新建工程-管道施工记录'
  189. }
  190. uni.setNavigationBarTitle({
  191. title: this.title
  192. })
  193. }
  194. },
  195. methods: {
  196. //判断是否选择
  197. isEmpty(str) {
  198. return (!str || 0 === str.length);
  199. },
  200. //获取当前时间
  201. traversalTime(timestamp) {
  202. //timestamp(时间戳)是整数,否则要parseInt转换
  203. let time = new Date(timestamp);
  204. let y = time.getFullYear();
  205. let m = time.getMonth() + 1;
  206. let d = time.getDate();
  207. let h = time.getHours();
  208. let mm = time.getMinutes();
  209. let s = time.getSeconds();
  210. return y + '-' + this.addTimes(m) + '-' + this.addTimes(d) + ' ' + this.addTimes(h) + ':' + this.addTimes(
  211. mm) + ':' + this.addTimes(s);
  212. },
  213. addTimes(m) {
  214. return m < 10 ? '0' + m : m
  215. },
  216. // 打开picker
  217. openDatetimePicker() {
  218. this.$refs.myPicker.show();
  219. },
  220. // 关闭picker
  221. closeDatetimePicker() {
  222. this.$refs.myPicker.hide();
  223. },
  224. handleSubmit(e) {
  225. this.time = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
  226. },
  227. getStatus() {
  228. let param = {
  229. areaId: this.XQValue.id, // 小区id
  230. buildingId: buildingId, // 楼宇id
  231. unitId: this.isEmpty(this.DYValue.id)?'':this.DYValue.id,
  232. enginCycle: this.projectValue.dictValue, // 工程周期
  233. enginType: this.objValue.enginType, //写死 上一页面传过来的
  234. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  235. }
  236. getRoomProjectId(param).then(res => {
  237. if (res.code == '200') {
  238. if (res.data != null && res.data.zEngineeringNodeBoList != null) {
  239. res.data.zEngineeringNodeBoList.forEach((item, index) => {
  240. if (this.objValue.enginClassValue == item.type) {
  241. this.reviewStatus = item.reviewStatus;
  242. if (item.reviewStatus == '1')
  243. this.$modal.msg('当前工程已结束')
  244. }
  245. })
  246. } else {
  247. this.reviewStatus = '' //置空
  248. }
  249. } else {
  250. this.$modal.msg(res.msg)
  251. this.reviewStatus = '' //置空
  252. }
  253. })
  254. },
  255. history() {
  256. if (this.isEmpty(this.projectValue.dictValue)) {
  257. this.$modal.msg("请选择工程周期")
  258. return
  259. }
  260. if (this.isEmpty(this.XZQValue.dictValue)) {
  261. this.$modal.msg("请选择行政区")
  262. return
  263. }
  264. if (this.isEmpty(this.XQValue.id)) {
  265. this.$modal.msg("请选择小区")
  266. return
  267. }
  268. if (this.isEmpty(this.LDValue.id)) {
  269. this.$modal.msg("请选择楼栋")
  270. return
  271. }
  272. let param = {
  273. areaId: this.XQValue.id, // 小区id
  274. buildingId: this.LDValue.id, // 楼宇id
  275. unitId: this.isEmpty(this.DYValue.id)?'':this.DYValue.id, // 单元id
  276. enginCycle: this.projectValue.dictValue, // 工程周期
  277. enginType: this.objValue.enginType, //写死 上一页面传过来的 新建/旧改
  278. enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  279. }
  280. getRoomProjectId(param).then(res => {
  281. if (res.code == '200') {
  282. if (res.data != null) {
  283. getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(res => {
  284. this.historyList = res.data
  285. if (res.data.zEngineeringNodeBo != null) {
  286. this.showHistoryList();
  287. } else {
  288. this.$modal.msg("暂无历史信息")
  289. }
  290. })
  291. } else {
  292. this.$modal.msg("暂无工程信息")
  293. }
  294. } else {
  295. this.$modal.msg(res.msg)
  296. }
  297. })
  298. },
  299. showHistoryList() {
  300. this.$refs.refShare.handleShowShare();
  301. },
  302. submit() {
  303. if (this.isEmpty(this.projectValue.dictValue)) {
  304. this.$modal.msg("请选择工程周期")
  305. } else if (this.isEmpty(this.XZQValue.dictValue)) {
  306. this.$modal.msg("请选择行政区")
  307. } else if (this.isEmpty(this.XQValue.id)) {
  308. this.$modal.msg("请选择小区")
  309. } else if (this.isEmpty(this.LDValue.id)) {
  310. this.$modal.msg("请选择楼栋")
  311. } else if (this.imgArr.length <= 0) {
  312. this.$modal.msg("请上传照片")
  313. } else {
  314. uni.showLoading()
  315. let param = {
  316. district: this.XZQValue.dictValue,
  317. areaId: this.XQValue.id,
  318. buildingId: this.LDValue.id,
  319. unitId: this.isEmpty(this.DYValue.id)?'':this.DYValue.id,
  320. enginType: this.objValue.enginType, //写死 上一页面传过来的
  321. enginClassification: this.objValue
  322. .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
  323. enginCycle: this.projectValue.dictValue, //工程周期
  324. zEngineeringNodeBo: {
  325. type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
  326. zEngineeringInfoBo: {
  327. constructTime: this.time,
  328. zEngiineeringPhotoBoList: this.imgArr, //照片集合
  329. }
  330. }
  331. }
  332. addTearOldPipe(param).then(res => {
  333. uni.hideLoading()
  334. if (res.code == '200') {
  335. uni.showToast({
  336. title: res.msg,
  337. icon: 'none',
  338. //显示持续时间为 3秒
  339. duration: 2000
  340. });
  341. setTimeout(function() {
  342. uni.navigateBack();
  343. }, 1000)
  344. }
  345. })
  346. //提交接口执行逻辑
  347. }
  348. },
  349. // 显示历史弹窗
  350. handleShowSheet() {
  351. this.shareState = true;
  352. },
  353. // 隐藏历史弹窗
  354. handleHiddenShare() {
  355. this.shareState = false;
  356. },
  357. showPhoto(index) {
  358. uni.previewImage({
  359. current: index,
  360. urls: this.imgArr,
  361. })
  362. },
  363. remove(index) {
  364. uni.showModal({
  365. title: '提示',
  366. content: '是否删除该图片或视频?',
  367. success: (res) => {
  368. if (res.confirm) {
  369. this.imgArr.splice(index, 1)
  370. if (this.imgArr.length <= 0) {
  371. this.photo = true;
  372. }
  373. }
  374. }
  375. })
  376. },
  377. choose() {
  378. let _this = this;
  379. uni.showActionSheet({
  380. title: '上传',
  381. itemList: ['图片', '视频'],
  382. success: (res) => {
  383. if (res.tapIndex == 0) {
  384. this.chooseimage()
  385. } else {
  386. this.choosevideo()
  387. }
  388. }
  389. })
  390. },
  391. chooseimage() {
  392. let _this = this;
  393. uni.chooseImage({
  394. sizeType: ['album', 'camera'],
  395. success(resp) {
  396. resp.tempFiles.forEach((item, index) => {
  397. const task = uni.uploadFile({
  398. url: _this.$HTTP + `/obs`,
  399. filePath: item.path,
  400. name: 'file',
  401. formData: {},
  402. header: _this.headers,
  403. success: res => {
  404. // 判断是否json字符串,将其转为json格式
  405. let data = JSON.parse(res.data);
  406. if (![200].includes(data.code)) {
  407. _this.$modal.msg(data.msg)
  408. } else {
  409. if (_this.progress === 100) {
  410. _this.imgArr.push(data.data.url)
  411. _this.$modal.msg('上传成功!')
  412. _this.photo = false;
  413. }
  414. }
  415. },
  416. fail: e => {
  417. _this.$modal.msg('上传失败!')
  418. },
  419. complete: res => {
  420. uni.hideLoading();
  421. _this.uploading = false;
  422. }
  423. });
  424. task.onProgressUpdate(res => {
  425. _this.progress = res.progress;
  426. uni.showLoading({
  427. title: '上传中'
  428. })
  429. if (_this.progress != 100) {
  430. _this.loading = false
  431. } else {
  432. _this.loading = true
  433. }
  434. });
  435. })
  436. },
  437. })
  438. },
  439. choosevideo() {
  440. let _this = this;
  441. uni.chooseVideo({
  442. sourceType: ['album', 'camera'],
  443. maxDuration: 30,
  444. success(resp) {
  445. const task = uni.uploadFile({
  446. url: _this.$HTTP + `/obs`,
  447. filePath: resp.tempFilePath,
  448. name: 'file',
  449. formData: {},
  450. header: _this.headers,
  451. success: res => {
  452. // 判断是否json字符串,将其转为json格式
  453. let data = JSON.parse(res.data);
  454. if (![200].includes(res.statusCode)) {
  455. this.uploadError(index, data);
  456. } else {
  457. //上传成功
  458. if (_this.progress === 100) {
  459. _this.imgArr.push(data.data.url)
  460. _this.$modal.msg('上传成功!')
  461. _this.photo = false;
  462. }
  463. }
  464. },
  465. fail: e => {
  466. _this.$modal.msg('上传失败!')
  467. this.uploadError(index, e);
  468. },
  469. complete: res => {
  470. uni.hideLoading();
  471. _this.uploading = false;
  472. }
  473. });
  474. task.onProgressUpdate(res => {
  475. _this.progress = res.progress;
  476. uni.showLoading({
  477. title: '上传中'
  478. })
  479. if (_this.progress != 100) {
  480. _this.loading = false
  481. } else {
  482. _this.loading = true
  483. }
  484. });
  485. },
  486. })
  487. },
  488. pickerShow(e) {
  489. this.type = e; //赋值类型
  490. if (e == 'xzq') { //行政区
  491. if (this.isEmpty(this.projectValue.dictValue)) {
  492. this.$modal.msg('请选择工程周期')
  493. } else {
  494. this.openDict = true;
  495. getDicts("district").then(response => {
  496. this.dictOptions = response.data;
  497. });
  498. }
  499. } else if (e == 'xq') { //小区
  500. if (this.isEmpty(this.XZQValue.dictValue)) {
  501. this.$modal.msg('请选择行政区')
  502. } else {
  503. this.open = true;
  504. this.selectList = this.XQList;
  505. }
  506. } else if (e == 'ld') { //楼栋
  507. if (this.isEmpty(this.XQValue.id)) {
  508. this.$modal.msg('请选择小区')
  509. } else {
  510. this.open = true;
  511. this.selectList = this.LDList;
  512. }
  513. } else if (e == 'dy') { //单元
  514. if (this.isEmpty(this.LDValue.id)) {
  515. this.$modal.msg('请选择楼栋')
  516. } else {
  517. this.open = true;
  518. this.selectList = this.DYList;
  519. }
  520. } else if (e == 'fj') { //房间
  521. if (this.isEmpty(this.DYValue.id)) {
  522. this.$modal.msg('请选择单元')
  523. } else {
  524. this.open = true;
  525. this.selectList = this.FJList;
  526. }
  527. }
  528. },
  529. changeSelectDict(item, index) {
  530. this.openDict = false;
  531. if (this.type == 'xzq') {
  532. this.XZQValue = item;
  533. //根据行政区id获取小区数据
  534. this.XQValue = ''; //重置小区数据
  535. this.LDValue = ''; //重置楼栋数据
  536. this.DYValue = ''; //重置单元数据
  537. getAreaList(item.dictValue).then(res => {
  538. this.XQList = res.data;
  539. })
  540. }
  541. },
  542. changeSelect(item, index) {
  543. this.open = false;
  544. if (this.type == 'xq') {
  545. this.XQValue = item;
  546. //根据小区id 获取楼栋数据
  547. this.LDValue = ''; //重置楼栋数据
  548. this.DYValue = ''; //重置单元数据
  549. getBuildingList(item.id).then(res => {
  550. this.LDList = res.data
  551. })
  552. } else if (this.type == 'ld') {
  553. this.LDValue = item;
  554. //根据楼栋ID 获取单元数据
  555. this.DYValue = ''; //重置单元数据
  556. if (!this.isEmpty(this.projectValue.dictValue)) {
  557. //选完 判断 工程周期
  558. this.getStatus();
  559. }
  560. getUnitList(item.id).then(res => {
  561. this.DYList = res.data
  562. })
  563. } else if (this.type == 'dy') {
  564. this.DYValue = item;
  565. if (!this.isEmpty(this.projectValue.dictValue)) {
  566. //选完 判断 工程周期
  567. this.getStatus();
  568. }
  569. }
  570. },
  571. //关闭弹窗
  572. close(e) {
  573. this.open = false
  574. },
  575. //关闭弹窗
  576. closeDict(e) {
  577. this.openDict = false
  578. },
  579. }
  580. }
  581. </script>
  582. <style lang="scss">
  583. .container {
  584. display: flex;
  585. align-items: center;
  586. justify-content: space-between;
  587. padding: 10px;
  588. position: relative;
  589. }
  590. .uni-list {
  591. border: 1xp solid #eee;
  592. }
  593. .to-right-icon {
  594. width: 15px;
  595. height: 15px;
  596. position: absolute;
  597. top: 50%;
  598. transform: translateY(-50%);
  599. }
  600. .text {
  601. font-size: 16px;
  602. color: #333;
  603. }
  604. .background {
  605. // border: 15px solid hsla(0, 0%, 100%, .5);
  606. background: white;
  607. background-clip: padding-box;
  608. padding: 20rpx;
  609. border-radius: 20rpx;
  610. margin: 20rpx;
  611. /*从padding开始往外面裁剪背景*/
  612. }
  613. .btn {
  614. width: 715rpx;
  615. height: 69rpx;
  616. background: #79A4F0;
  617. border-radius: 6rpx;
  618. font-size: 25rpx;
  619. font-family: Microsoft YaHei;
  620. font-weight: 400;
  621. color: #FFFFFF;
  622. line-height: 69rpx;
  623. margin-top: 40rpx;
  624. margin-bottom: 100rpx;
  625. }
  626. .number {
  627. display: flex;
  628. /* 水平居中显示子元素 */
  629. align-items: flex-start;
  630. /* 垂直居中显示子元素 */
  631. justify-content: space-between;
  632. /* 左右间距等于间距大小 */
  633. padding: 10px;
  634. /* 设置padding以提高视觉效果 */
  635. }
  636. .textarea {
  637. margin-top: 10upx;
  638. width: 100%;
  639. border: 1rpx solid red;
  640. min-height: 100upx;
  641. line-height: 20px;
  642. }
  643. </style>