bottom_leg.vue 20 KB

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