dataSet.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  1. <template>
  2. <view>
  3. <ujp-navbar title="个人资料"></ujp-navbar>
  4. <!-- 个人信息 -->
  5. <view class="userCell">
  6. <view class="title oldTextjp2" oldstyle="font-size: 20px;">
  7. 个人信息
  8. </view>
  9. <!-- 头像 -->
  10. <view class="userCell-item">
  11. <view class="userCell-title">
  12. <text class="user"><img style="visibility: middle;;" src="../../assets/img/account-circle-fill.svg"
  13. alt=""></text>
  14. <p class="oldTextjp" oldstyle="font-size: 18px;">头像</p>
  15. </view>
  16. <view class="userCell-content oldTextjp2" oldstyle="font-size: 18px;" @click="uploadPhoto">
  17. <view class="value">
  18. <view class="box">
  19. <u-avatar v-if="form.headImg != null" class="avatar" :src="form.headImg+'?x-oss-process=image/resize,m_fill,w_256,h_256'" size="80">
  20. <img src="" alt="">
  21. </u-avatar>
  22. <img v-else class="camera" src="../../assets/img/camera-fill.svg" alt="">
  23. </view>
  24. </view>
  25. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  26. </view>
  27. </view>
  28. <!-- 昵称 -->
  29. <view class="userCell-item">
  30. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  31. <text class="user"><img style="visibility: middle;;" src="../../assets/img/edit-box-fill.svg"
  32. alt=""></text>
  33. <p class="oldTextjp" oldstyle="font-size: 18px;">昵称</p>
  34. </view>
  35. <view class="userCell-content oldTextjp2" oldstyle="font-size: 18px;" @click="maskShow1">
  36. <view class="value black">
  37. {{form.nickName}}
  38. </view>
  39. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  40. </view>
  41. </view>
  42. <!-- 真实姓名 -->
  43. <view class="userCell-item">
  44. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  45. <text class="user">
  46. <svg style="visibility: middle;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path fill="#00B962" d="M3 4.995C3 3.893 3.893 3 4.995 3h14.01C20.107 3 21 3.893 21 4.995v14.01A1.995 1.995 0 0 1 19.005 21H4.995A1.995 1.995 0 0 1 3 19.005V4.995zM6.357 18h11.49a6.992 6.992 0 0 0-5.745-3 6.992 6.992 0 0 0-5.745 3zM12 13a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z"/>
  47. </svg>
  48. </text>
  49. <p class="oldTextjp" oldstyle="font-size: 18px;">姓名</p>
  50. </view>
  51. <view class="userCell-content oldTextjp2" oldstyle="font-size: 18px;" @click="maskShow2">
  52. <view class="value black" v-if="form.realName != null && form.realName != ''">
  53. {{form.realName}}
  54. </view>
  55. <view class="value" v-else>
  56. 请填写真实姓名
  57. </view>
  58. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  59. </view>
  60. </view>
  61. <!-- 生日 -->
  62. <view class="userCell-item">
  63. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  64. <text class="user"><img style="visibility: middle;;" src="../../assets/img/cake-2-fill.svg"
  65. alt=""></text>
  66. <p class="oldTextjp" oldstyle="font-size: 18px;">生日</p>
  67. </view>
  68. <u-picker mode="time" v-model="timeShow" :params="params" @confirm="confirmTime" @cancel="cancelTime"></u-picker>
  69. <view class="userCell-content oldTextjp2" oldstyle="font-size: 18px;" @click="timeShowClick">
  70. <view class="value black" v-if="birthday != null">
  71. {{birthday}}
  72. </view>
  73. <view class="value" v-else>
  74. 请选择
  75. </view>
  76. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  77. </view>
  78. </view>
  79. <p style="
  80. text-align: end;
  81. padding: 0 20px;
  82. color: #999999;">生日填写后不可修改,仅作为活动营销使用</p>
  83. </view>
  84. <u-line color="#F2F2F2 100%" length="87.2%" margin="8px auto 0" />
  85. <!-- 账户与安全 -->
  86. <view class="userCell">
  87. <view class="title oldTextjp2" oldstyle="font-size: 20px;">
  88. 账户与安全
  89. </view>
  90. <!-- 更换手机号 -->
  91. <view class="userCell-item">
  92. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  93. <text class="user"><img style="visibility: middle;;" src="../../assets/img/smartphone-fill.svg"
  94. alt=""></text>
  95. <p class="oldTextjp" oldstyle="font-size: 18px;">更换手机号</p>
  96. </view>
  97. <view class="userCell-content oldTextjp2" oldstyle="font-size: 18px;" @click="gotoUrl('pages/user/phone')">
  98. <view class="value black">
  99. {{userPhone}}
  100. </view>
  101. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  102. </view>
  103. </view>
  104. <!-- 实名认证 -->
  105. <!-- <view class="userCell-item">
  106. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  107. <text class="user"><img style="visibility: middle;;" src="../../assets/img/shield-user-fill.svg"
  108. alt=""></text>
  109. <p class="oldTextjp" oldstyle="font-size: 18px;">实名认证</p>
  110. </view>
  111. <view class="userCell-content oldTextjp2" oldstyle="font-size: 18px;">
  112. <view class="value">
  113. 未实名
  114. </view>
  115. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  116. </view>
  117. </view> -->
  118. </view>
  119. <u-line color="#F2F2F2 100%" length="87.2%" margin="8px auto 0" />
  120. <!-- 更多操作 -->
  121. <view class="userCell">
  122. <view class="title oldTextjp2" oldstyle="font-size: 20px;">
  123. 更多操作
  124. </view>
  125. <!-- 车辆信息 -->
  126. <view class="userCell-item">
  127. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  128. <text class="user"><img style="visibility: middle;;" src="../../assets/img/car-fill (1).svg"
  129. alt=""></text>
  130. <p class="oldTextjp" oldstyle="font-size: 18px;">车辆信息</p>
  131. </view>
  132. <view class="userCell-content oldTextjp2" oldstyle="font-size: 18px;" @click="carClick">
  133. <view class="value black" v-if="carList.carNum != null">
  134. {{carList.carNum}}
  135. </view>
  136. <view class="value" v-else>
  137. 未绑定
  138. </view>
  139. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  140. </view>
  141. </view>
  142. <!-- 长辈模式 -->
  143. <!-- <view class="userCell-item">
  144. <view class="userCell-title">
  145. <text class="user"><img style="visibility: middle;;" src="../../assets/img/zoom-in-fill.svg"
  146. alt=""></text>
  147. <p class="oldTextjp" oldstyle="font-size: 18px;">长辈模式</p>
  148. </view>
  149. <view class="userCell-content oldTextjp2" oldstyle="font-size: 18px;">
  150. <view class="value">
  151. <view class="text black" >
  152. 字体更大 看得清
  153. </view>
  154. <u-switch v-model="checked" active-color="#00E266" @change="checkedChange"></u-switch>
  155. </view>
  156. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  157. </view>
  158. </view> -->
  159. <!-- 注销账号 -->
  160. <!-- <view class="userCell-item" @click="gotoUrl('pages/user/logout')">
  161. <view class="userCell-title">
  162. <text class="user"><img style="visibility: middle;;" src="../../assets/img/spam-3-fill.svg"
  163. alt=""></text>
  164. <p class="oldTextjp" oldstyle="font-size: 18px;">注销账号</p>
  165. </view>
  166. <view class="userCell-content">
  167. <view class="value black" :style="elderStatus ? 'font-size: 14px;' : 'font-size: 12px;'">
  168. 注销后无法恢复,请谨慎操作
  169. </view>
  170. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  171. </view>
  172. </view> -->
  173. </view>
  174. <!-- <view class="exit oldTextjp2" oldstyle="font-size: 18px;" @click="signOut">
  175. 退出账号
  176. </view> -->
  177. <view>
  178. <u-modal v-model="exitShow" @confirm="confirm" confirm-color="#FF3D00" :show-cancel-button="true" ref="uModal" :asyncClose="true" :title="title"
  179. :content="content" :content-style="{color: '#333333'}"></u-modal>
  180. </view>
  181. <!-- 昵称遮罩层 -->
  182. <u-mask :show="show1" @click="show1 = false" :zoom='false'>
  183. <view class="warp">
  184. <view class="rect" @tap.stop>
  185. <p>修改昵称</p>
  186. <textarea name="" id="" cols="30" rows="10" v-model="name1"></textarea>
  187. <img class="canc" src="../../assets/img/md-cancel Copy@3x.png" alt="" @click="nickNameReset">
  188. <u-button type="success" @click="nickNameSubmit">保存</u-button>
  189. </view>
  190. </view>
  191. </u-mask>
  192. <!-- 真实姓名遮罩层 -->
  193. <u-mask :show="show2" @click="show2 = false" :zoom='false'>
  194. <view class="warp">
  195. <view class="rect" @tap.stop>
  196. <p>请填写真实姓名</p>
  197. <textarea name="" id="" cols="30" rows="10" v-model="name2"></textarea>
  198. <img class="canc" src="../../assets/img/md-cancel Copy@3x.png" alt="" @click="realNameReset">
  199. <u-button type="success" @click="realNameSubmit">保存</u-button>
  200. </view>
  201. </view>
  202. </u-mask>
  203. </view>
  204. </template>
  205. <script>
  206. import * as API from '@/apis/index.js'
  207. import * as userApi from '@/apis/user.js'
  208. import * as loginApi from '@/apis/login.js'
  209. import {
  210. newDate
  211. } from '@/utils'
  212. export default {
  213. data() {
  214. return {
  215. params: {
  216. year: true,
  217. month: true,
  218. day: true,
  219. hour: false,
  220. minute: false,
  221. second: false,
  222. timestamp: true,
  223. },
  224. timeShow: false,
  225. exitShow: false,
  226. title: '退出账号',
  227. content: '是否退出当前账号?',
  228. checked: false,
  229. src: '',
  230. show1: false,
  231. show2: false,
  232. fontMode: '',
  233. userId: '',
  234. userPhone: '',
  235. name1: '',
  236. name2: '',
  237. form: {
  238. nickName: '',
  239. headImg: '',
  240. realName: '',
  241. },
  242. birthday: '',
  243. carList: {
  244. carNum: null,
  245. },
  246. elderStatus: false,
  247. }
  248. },
  249. onShow() {
  250. if (this.carhelp.get("getElderModeClass") == "长辈模式") {
  251. this.checked = true;
  252. this.elderStatus = true;
  253. } else {
  254. this.checked = false;
  255. this.elderStatus = false;
  256. }
  257. this.getUserInfo();
  258. this.getCarList();
  259. },
  260. computed:{
  261. userCardBool(){
  262. if(this.userCard){
  263. var date=new Date().getTime()
  264. var reg=new RegExp('-','gi')
  265. var str=this.userCard.endTime;
  266. //console.log(str.replace(reg,'/'))
  267. var date2=newDate(str).getTime();
  268. if(date<date2){
  269. return true;
  270. }
  271. }
  272. return false
  273. }
  274. },
  275. methods: {
  276. monthlyCardBuy(){
  277. uni.showModal({
  278. title: '提示',
  279. confirmText:'查看活动',
  280. content: '包月卡一经激活,在有效期内车主无法更换已绑定的帐号及车牌号',
  281. success: res => {
  282. if (res.confirm) {
  283. uni.navigateTo({
  284. url: '/pages/monthlyCardActivity/monthlyCardBuy'
  285. })
  286. } else if (res.cancel) {
  287. //('用户点击取消');
  288. }
  289. }
  290. });
  291. },
  292. carClick() {
  293. if(this.carList.carNum != null) {
  294. var date = '2022/08/02 00:00:00';
  295. var now= new Date().getTime()
  296. var datetime= new Date(date).getTime()
  297. if(now<datetime){
  298. //this.monthlyCardBuy();
  299. // uni.showModal({
  300. // title: '提示',
  301. // confirmText:'修改车牌',
  302. // //showCancel:false,
  303. // content: '根据平台要求,8月1日后将暂停车牌号修改,修改请需要联系客服人员',
  304. // success: res => {
  305. // if (res.confirm) {
  306. // // uni.navigateTo({
  307. // // url: '/pages/monthlyCardActivity/monthlyCardBuy'
  308. // // })
  309. // } else if (res.cancel) {
  310. // //('用户点击取消');
  311. // }
  312. // }
  313. // });
  314. uni.navigateTo({
  315. url: '/pages/user/car/carAdd?id=' + this.carList.id
  316. })
  317. }else{
  318. uni.showModal({
  319. title: '车牌号不可修改',
  320. //confirmText:'查看活动',
  321. showCancel:false,
  322. content: '如需修改请需要联系客服人员',
  323. success: res => {
  324. if (res.confirm) {
  325. // uni.navigateTo({
  326. // url: '/pages/monthlyCardActivity/monthlyCardBuy'
  327. // })
  328. } else if (res.cancel) {
  329. //('用户点击取消');
  330. }
  331. }
  332. });
  333. }
  334. } else {
  335. uni.navigateTo({
  336. url: '/pages/user/car/carDet'
  337. })
  338. }
  339. },
  340. getCarList() {
  341. this.carList.carNum = null;
  342. uni.showLoading({
  343. title: "加载中",
  344. mask: true,
  345. })
  346. userApi.regUserCarList().then((res) => {
  347. uni.hideLoading();
  348. if(res.data.length != 0) {
  349. this.carList = res.data[0];
  350. }
  351. }).catch(error => {
  352. uni.showToast({
  353. title: error,
  354. icon: "none"
  355. })
  356. })
  357. },
  358. timeShowClick() {
  359. if(this.birthday == null) {
  360. this.timeShow = true;
  361. }
  362. },
  363. confirmTime(params) {
  364. this.birthday = params.year + '-' + params.month + '-' + params.day;
  365. console.log(this.birthday)
  366. uni.showLoading({
  367. title: "加载中",
  368. mask: true,
  369. })
  370. userApi.changeBirthday({birthday: this.birthday}).then((res) => {
  371. uni.hideLoading();
  372. this.timeShow = false;
  373. }).catch(error => {
  374. uni.showToast({
  375. title: error,
  376. icon: "none"
  377. })
  378. })
  379. },
  380. cancelTime() {
  381. this.timeShow = false;
  382. },
  383. signOut() {
  384. this.exitShow = true;
  385. },
  386. confirm() {
  387. uni.showLoading({
  388. title: "加载中",
  389. mask: true,
  390. })
  391. userApi.logout().then((res) => {
  392. uni.hideLoading();
  393. this.exitShow = false;
  394. this.carhelp.logoff()
  395. uni.redirectTo({
  396. url: '/pages/login/login'
  397. })
  398. }).catch(error => {
  399. uni.showToast({
  400. title: error,
  401. icon: "none"
  402. })
  403. })
  404. },
  405. submit() {
  406. uni.showLoading({
  407. title: "加载中",
  408. mask: true,
  409. })
  410. userApi.updatePersonInformation(this.form).then((res) => {
  411. uni.hideLoading();
  412. }).catch(error => {
  413. uni.showToast({
  414. title: error,
  415. icon: "none"
  416. })
  417. })
  418. },
  419. nickNameSubmit() {
  420. this.form.nickName = this.name1;
  421. this.submit();
  422. this.show1 = false;
  423. },
  424. maskShow1() {
  425. this.show1 = true;
  426. this.name1 = this.form.nickName;
  427. },
  428. nickNameReset() {
  429. this.name1 = '';
  430. },
  431. realNameSubmit() {
  432. this.form.realName = this.name2;
  433. this.submit();
  434. this.show2 = false;
  435. },
  436. maskShow2() {
  437. this.show2 = true;
  438. this.name2 = this.form.realName;
  439. },
  440. realNameReset() {
  441. this.name2 = '';
  442. },
  443. checkedChange() {
  444. if (this.checked) {
  445. this.carhelp.set("getElderModeClass", "长辈模式");
  446. this.fontMode = '1';
  447. this.elderStatus = true;
  448. } else {
  449. this.carhelp.set("getElderModeClass", "标准模式");
  450. this.fontMode = '0';
  451. this.elderStatus = false;
  452. }
  453. API.changeFont({
  454. fontMode: this.fontMode
  455. }).then((res) => {
  456. }).catch(error => {
  457. uni.showToast({
  458. title: error,
  459. icon: "none"
  460. })
  461. })
  462. },
  463. getUserInfo() {
  464. uni.showLoading({
  465. title: "加载中",
  466. mask: true,
  467. })
  468. loginApi.findByOpenId({
  469. openId: this.carhelp.getOpenId()
  470. }).then((res) => {
  471. uni.hideLoading();
  472. this.form.nickName = res.data.regUser.nickName;
  473. this.form.headImg = res.data.regUser.headImg;
  474. this.form.realName = res.data.regUser.realName;
  475. this.birthday = res.data.regUser.birthday;
  476. this.userCard=res.data.userCard;
  477. var phone = res.data.regUser.phone;
  478. var phone1 = phone.slice(0,3);
  479. var phone2 = phone.slice(-4);
  480. this.userPhone = phone1 + '****' + phone2;
  481. }).catch(error => {
  482. uni.showToast({
  483. title: error,
  484. icon: "none"
  485. })
  486. })
  487. },
  488. uploadPhoto() {
  489. let _self = this;
  490. const crop = {
  491. quality: 100,
  492. width: 600,
  493. height: 600,
  494. resize: true
  495. };
  496. // 上传图片
  497. uni.chooseImage({
  498. count: 1,
  499. crop,
  500. success: async (res) => {
  501. //(res);
  502. let tempFile = res.tempFiles[0],
  503. avatar_file = {
  504. // #ifdef H5
  505. extname: tempFile.name.split('.')[tempFile.name.split('.').length - 1],
  506. // #endif
  507. // #ifndef H5
  508. extname: tempFile.path.split('.')[tempFile.path.split('.').length - 1]
  509. // #endif
  510. },
  511. filePath = res.tempFilePaths[0]
  512. // #ifndef APP-PLUS
  513. //(`filePath=${filePath}`)
  514. //非app端用前端组件剪裁头像,app端用内置的原生裁剪
  515. let fileData = await new Promise((callback) => {
  516. uni.navigateTo({
  517. url: '/pages/user/cropImage?path=' + filePath +
  518. `&options=${JSON.stringify(crop)}`,
  519. animationType: "fade-in",
  520. events: {
  521. success: url => {
  522. callback(url)
  523. }
  524. }
  525. });
  526. })
  527. // #endif
  528. //返回 base64 图片
  529. //(fileData);
  530. var token = _self.carhelp.getToken()
  531. uni.showLoading({
  532. title: '上传中'
  533. });
  534. uni.request({
  535. url: process.car.BASE_URL + "uploadBase64",
  536. method: 'POST',
  537. data: {
  538. photoBase64Data: fileData
  539. },
  540. header: {
  541. 'Authorization': token,
  542. 'content-type': 'application/x-www-form-urlencoded'
  543. },
  544. success: (res) => {
  545. let jsonData = res.data;
  546. _self.form.headImg = jsonData.data;
  547. _self.submit();
  548. uni.hideLoading();
  549. }
  550. });
  551. }
  552. });
  553. },
  554. }
  555. }
  556. </script>
  557. <style lang="scss" scoped>
  558. page {
  559. background-color: #fff;
  560. padding-bottom: 20px;
  561. }
  562. .userCell {
  563. .user {
  564. img {
  565. vertical-align: middle;
  566. }
  567. }
  568. .title {
  569. padding: 24px 20px 8px 20px;
  570. font-size: 18px;
  571. color: rgba(16, 16, 16, 100);
  572. }
  573. .userCell-item {
  574. display: flex;
  575. justify-content: space-between;
  576. align-items: center;
  577. padding: 11px 20px;
  578. .userCell-title {
  579. width: 125px;
  580. font-size: 16px;
  581. display: flex;
  582. p {
  583. margin-left: 8px;
  584. font-size: 16px;
  585. line-height: 28px;
  586. color: #333333;
  587. }
  588. }
  589. .userCell-content {
  590. display: flex;
  591. color: rgba(153, 153, 153, 100);
  592. font-size: 16px;
  593. line-height: 20px;
  594. }
  595. .value {
  596. display: flex;
  597. .text {
  598. line-height: 28px;
  599. }
  600. .circle {
  601. width: 40px;
  602. height: 40px;
  603. }
  604. .u-avatar {
  605. position: absolute;
  606. }
  607. .camera {
  608. width: 20px;
  609. height: 20px;
  610. position: absolute;
  611. left: 50%;
  612. top: 50%;
  613. transform: translate(-50%, -50%);
  614. z-index: 9999;
  615. }
  616. .box {
  617. border-radius: 999px;
  618. height: 40px;
  619. width: 40px;
  620. position: relative;
  621. background: url(@/assets/img/circle.png);
  622. background-repeat: no-repeat;
  623. background-position: 30% 10%;
  624. background-size: cover;
  625. }
  626. }
  627. .u-switch {
  628. width: 48px;
  629. height: 24px;
  630. vertical-align: middle;
  631. margin-left: 8px;
  632. }
  633. /deep/.u-switch__node {
  634. width: 24px !important;
  635. height: 24px !important;
  636. }
  637. span {
  638. color: #999;
  639. }
  640. .add {
  641. color: #999;
  642. }
  643. .black {
  644. color: #666666;
  645. }
  646. }
  647. }
  648. .exit {
  649. color: rgba(238, 49, 56, 100);
  650. font-size: 16px;
  651. text-align: center;
  652. margin-top: 10px;
  653. }
  654. .warp {
  655. position: fixed;
  656. left: 0;
  657. bottom: 0;
  658. width: 100%;
  659. }
  660. .rect {
  661. width: 100%;
  662. height: 100%;
  663. background-color: #fff;
  664. padding: 24px 0;
  665. p {
  666. color: rgba(16, 16, 16, 100);
  667. font-size: 16px;
  668. line-height: 24px;
  669. padding: 0 24px;
  670. }
  671. textarea {
  672. width: 87.2%;
  673. border-radius: 8px;
  674. background-color: rgba(229, 231, 234, 100);
  675. margin: 12px auto 0;
  676. height: 44px;
  677. line-height: 44px !important;
  678. padding: 0 8px;
  679. position: relative;
  680. }
  681. .canc {
  682. width: 20px;
  683. height: 20px;
  684. position: absolute;
  685. top: 70px;
  686. right: 7vw;
  687. }
  688. .u-btn {
  689. width: 89.2%;
  690. color: rgba(255, 255, 255, 100);
  691. font-size: 18px;
  692. border-radius: 8px;
  693. margin-top: 24px;
  694. z-index: 99999;
  695. }
  696. }
  697. /deep/.u-line{
  698. transform: scaleY(0.1) !important;
  699. }
  700. </style>