seiminModel.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  1. <!--
  2. * @Author: 廖明明
  3. * @Date: 2022-04-01 17:11:19
  4. * @LastEditors: 廖明明
  5. * @LastEditTime: 2022-04-21 13:16:48
  6. * @Description: 自定义弹窗组件
  7. -->
  8. <template>
  9. <view class="seiminModel seiminModel_mask" v-if="opts.isVisible">
  10. <view class="seiminModel_container animate__animated animate__fadeIn animate__faster">
  11. <!-- 标题 -->
  12. <view class="seiminModel_header" :class="{noTitle:!opts.title}">
  13. <text>{{ opts.title }}</text>
  14. <text class="seiminModel_countDown" v-if="
  15. (nurseDeptSwitchTip < 0 || (nurseDeptSwitchTip > 0 && closeTime > 0))&&isCheckDept
  16. ">
  17. <text v-if="nurseDeptSwitchTip < 0">关闭</text>倒计时<text>{{ closeTime }}s</text>
  18. </text>
  19. </view>
  20. <!-- 动态二维码 -->
  21. <view class="seiminModel_content qrcode" v-if="opts.skin === 'qrcode'">
  22. <image class="w100 qrcode_img" :src="nurseCodeImg" mode="widthFix"></image>
  23. <view class="qrcode_operate">
  24. <view class="refreshQRCode" @click="showNurseCode"> 刷新 </view>
  25. <view>{{ refreshQRCodeTime }}s</view>
  26. </view>
  27. </view>
  28. <!-- 加急 -->
  29. <view class="seiminModel_content urgent" v-else-if="opts.skin === 'urgent'">
  30. <view class="urgent_txt" v-html="opts.content"></view>
  31. <textarea :focus="true" class="urgent_textarea" auto-height :maxlength="100"
  32. :placeholder-style="placeholderStyle" placeholder="请填写加急原因" v-model="urgentTextArea" />
  33. </view>
  34. <!-- 评价 -->
  35. <view class="seiminModel_content evaluate" v-else-if="opts.skin === 'evaluate'">
  36. <view class="evaluate_txt" v-html="opts.content"></view>
  37. <view class="evaluate_list">
  38. <view class="evaluate_item">
  39. <text class="evaluate_label">星级:</text>
  40. <view class="evaluate_icons">
  41. <text class="pda" :class="star" v-for="(star,i) in stars" :key="i" @click="clickStar(i)"></text>
  42. </view>
  43. </view>
  44. <view class="evaluate_item">
  45. <text class="evaluate_label">评级:</text>
  46. <textarea :focus="true" class="evaluate_textarea" auto-height :maxlength="100"
  47. :placeholder-style="placeholderStyle" placeholder="请输入..." v-model="evaluateTextArea" />
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 预约时间 -->
  52. <view class="seiminModel_content yyDate" v-else-if="opts.skin === 'yyDate'">
  53. <view class="yyDate_txt" v-html="opts.content"></view>
  54. <view class="yyDate_date_time">
  55. <picker mode="multiSelector" @click.native="clickDate" @columnchange="columnchangeDate($event)"
  56. @change="changeDate($event)" :value="dateIndex" :range="dateOptions">
  57. <view class="yyDate_date"><text>{{dateVal}}</text><text class="pda pda-icon"></text></view>
  58. </picker>
  59. <picker mode="multiSelector" @click.native="clickTime" @columnchange="columnchangeTime($event)"
  60. @change="changeTime($event)" :value="timeIndex" :range="timeOptions">
  61. <view class="yyDate_time"><text>{{timeVal}}</text><text class="pda pda-shouye8"></text></view>
  62. </picker>
  63. </view>
  64. <view class="yyDate_tips red" v-if="!dateVal">
  65. 请选择日期
  66. </view>
  67. <view class="yyDate_tips red" v-else-if="!timeVal">
  68. 请选择时间
  69. </view>
  70. <view class="yyDate_nextDay" @click="nextDay" v-if="dateVal">
  71. 下一日
  72. </view>
  73. </view>
  74. <!-- 修改密码 -->
  75. <view class="seiminModel_content changePwd" v-else-if="opts.skin === 'changePwd'">
  76. <view class="changePwd_item">
  77. <view class="title">原始密码</view>
  78. <uni-easyinput type="password" focus v-model="pwdOld" placeholder="请输入原始密码"></uni-easyinput>
  79. </view>
  80. <view class="changePwd_item">
  81. <view class="title">新密码</view>
  82. <uni-easyinput type="password" v-model="newPwd" placeholder="请输入新密码"></uni-easyinput>
  83. </view>
  84. <view class="changePwd_item">
  85. <view class="title">确认新密码</view>
  86. <uni-easyinput type="password" v-model="newPwd2" placeholder="请输入新密码"></uni-easyinput>
  87. </view>
  88. </view>
  89. <!-- 正常弹窗 -->
  90. <view class="seiminModel_content" v-else>
  91. <!-- 图标 -->
  92. <view class="seiminModel_status">
  93. <text class="pda pda-shibai red" v-if="opts.icon === 'error'"></text>
  94. <text class="pda pda-wenhao yellow" v-if="opts.icon === 'warn'"></text>
  95. <text class="pda pda-duigou green" v-if="opts.icon === 'success'"></text>
  96. </view>
  97. <!-- 内容 -->
  98. <view class="seiminModel_txt" v-html="opts.content"></view>
  99. </view>
  100. <!-- 底部 -->
  101. <view class="seiminModel_footer" v-if="
  102. nurseDeptSwitchTip <= 0 || (nurseDeptSwitchTip > 0 && closeTime === 0)
  103. ">
  104. <view class="seiminModel_footer__btn" v-for="(btn, i) in opts.btns" :style="{
  105. flex: btn.flex,
  106. color: btn.textColor,
  107. }" @click="btn.click($event)" :key="i">{{ btn.name }}</view>
  108. </view>
  109. </view>
  110. </view>
  111. </template>
  112. <script>
  113. import {
  114. mapState
  115. } from "vuex";
  116. import {
  117. reqDeptCodes
  118. } from "../../request/api.js";
  119. import {
  120. generateArray
  121. } from '../../utils/index.js';
  122. import {
  123. format,
  124. endOfMonth,
  125. addDays,
  126. } from 'date-fns';
  127. export default {
  128. name: "seiminModel",
  129. props: {
  130. // 其他数据
  131. otherData: {
  132. type: Object,
  133. default: () => ({})
  134. }
  135. },
  136. data() {
  137. return {
  138. isCheckDept: false, //是否是切换科室
  139. dateOptions: [
  140. [],
  141. [],
  142. []
  143. ],
  144. dateIndex: [0, 0, 0],
  145. dateVal: '',
  146. timeOptions: [
  147. [],
  148. []
  149. ],
  150. timeIndex: [0, 0],
  151. timeVal: '',
  152. // 配置项
  153. opts: {},
  154. // 动态二维码定时器
  155. timer: null,
  156. // 动态二维码qrcode
  157. nurseCodeImg: "",
  158. // 动态二维码刷新间隔时长
  159. refreshQRCodeTime: 30,
  160. // 护士科室切换提示自动关闭设置(时长,单位秒)
  161. closeTime: 0,
  162. // 护士科室切换提示自动关闭设置(定时器,单位秒)
  163. timerCloseTime: null,
  164. // 加急原因
  165. urgentTextArea: '',
  166. // 加急原因的placeholder样式
  167. placeholderStyle: 'color:#999;padding:18rpx;',
  168. // 星级
  169. stars: [],
  170. // 评价内容
  171. evaluateTextArea: '',
  172. // 原始密码
  173. pwdOld: '',
  174. // 新密码
  175. newPwd: '',
  176. // 确认新密码
  177. newPwd2: '',
  178. };
  179. },
  180. onUnload() {
  181. if (this.timerCloseTime) {
  182. clearInterval(this.timerCloseTime);
  183. this.timerCloseTime = null;
  184. }
  185. if (this.timer) {
  186. clearInterval(this.timer);
  187. this.timer = null;
  188. }
  189. },
  190. computed: {
  191. ...mapState('other', ["nurseDeptSwitchTip"]),
  192. ...mapState("login", ["loginInfo"]),
  193. },
  194. methods: {
  195. // 下一日
  196. nextDay() {
  197. let arr = this.dateVal.split('-');
  198. let d_year = Number(arr[0]);
  199. let d_month = Number(arr[1]) - 1;
  200. let d_day = Number(arr[2]);
  201. let date = addDays(new Date(d_year, d_month, d_day, 0, 0, 0), 1);
  202. let year = format(date, 'yyyy');
  203. let month = format(date, 'MM');
  204. let day = format(date, 'dd');
  205. let year_i = this.dateOptions[0].findIndex(v => v === year);
  206. let month_i = this.dateOptions[1].findIndex(v => v === month);
  207. let day_i = this.dateOptions[2].findIndex(v => v === day);
  208. console.log(year_i, month_i, day_i, this.dateOptions, year, month, day)
  209. this.dateIndex = [year_i, month_i, day_i];
  210. this.dateVal = format(date, 'yyyy-MM-dd');
  211. },
  212. // 点击日期
  213. clickDate() {
  214. if (!this.dateVal) {
  215. this.dateIndex = [0, 0, 0];
  216. }
  217. },
  218. // 点击时间
  219. clickTime() {
  220. console.log(this.timeVal)
  221. if (!this.timeVal) {
  222. this.timeIndex = [0, 0];
  223. }
  224. let now = new Date();
  225. let year = now.getFullYear();
  226. let month = now.getMonth();
  227. let day = now.getDate();
  228. let hour = now.getHours();
  229. let minute = now.getMinutes();
  230. let second = now.getSeconds();
  231. if (this.dateVal) {
  232. let arr = this.dateVal.split('-');
  233. let d_year = Number(arr[0]);
  234. let d_month = Number(arr[1]) - 1;
  235. let d_day = Number(arr[2]);
  236. let c_d_day = Number(format(endOfMonth(new Date(d_year, d_month, d_day, 0, 0, 0)), 'dd'));
  237. if (year != d_year || month != d_month || day != d_day) {
  238. this.timeOptions = [generateArray(0, 23), ['00', '30']];
  239. }
  240. if (this.timeVal) {
  241. let arr = this.timeVal.split(':');
  242. let i1 = this.timeOptions[0].findIndex(v => v === arr[0]);
  243. console.log(i1)
  244. let i2 = this.timeOptions[1].length > 1 ? 30 : 0;
  245. if (i1) {
  246. this.timeOptions[1] = ['00', '30'];
  247. }
  248. this.timeIndex = [i1, i2];
  249. }
  250. }
  251. },
  252. // 滚动日期picker
  253. columnchangeDate(e) {
  254. console.log(e.detail);
  255. console.log(this.dateOptions, this.dateIndex);
  256. const {
  257. column, //列数
  258. value, //索引
  259. } = e.detail;
  260. let now = new Date();
  261. let year = now.getFullYear();
  262. let month = now.getMonth();
  263. let day = now.getDate();
  264. let hour = now.getHours();
  265. let minute = now.getMinutes();
  266. let second = now.getSeconds();
  267. let c_day = Number(format(endOfMonth(new Date(year, month, day, 0, 0, 0)), 'dd'));
  268. if (column === 0) {
  269. // 年
  270. if (year != this.dateOptions[column][value]) {
  271. this.dateOptions[1] = generateArray(1, 12);
  272. this.dateOptions[2] = generateArray(1, c_day);
  273. } else {
  274. this.dateOptions[1] = generateArray(month + 1, 12);
  275. this.dateOptions[2] = generateArray(day, c_day);
  276. }
  277. this.dateIndex = [value, 0, 0];
  278. }
  279. if (column === 1) {
  280. // 月
  281. if ((month + 1) != this.dateOptions[column][value]) {
  282. this.dateOptions[2] = generateArray(1, c_day);
  283. } else {
  284. this.dateOptions[2] = generateArray(day, c_day);
  285. }
  286. this.dateIndex = [this.dateIndex[0], value, 0];
  287. }
  288. },
  289. // 滚动时间picker
  290. columnchangeTime(e) {
  291. console.log(e.detail);
  292. console.log(this.timeOptions);
  293. const {
  294. column, //列数
  295. value, //索引
  296. } = e.detail;
  297. let now = new Date();
  298. let year = now.getFullYear();
  299. let month = now.getMonth();
  300. let day = now.getDate();
  301. let hour = now.getHours();
  302. let minute = now.getMinutes();
  303. let second = now.getSeconds();
  304. if (column === 0) {
  305. // 月份
  306. if (hour != this.timeOptions[column][value]) {
  307. this.timeOptions[1] = ['00', '30'];
  308. }
  309. }
  310. },
  311. // 修改日期
  312. changeDate(e) {
  313. console.log(e.target.value);
  314. this.dateIndex = e.target.value;
  315. this.timeVal = '';
  316. this.dateVal =
  317. `${this.dateOptions[0][this.dateIndex[0]]}-${this.dateOptions[1][this.dateIndex[1]]}-${this.dateOptions[2][this.dateIndex[2]]}`;
  318. },
  319. // 修改时间
  320. changeTime(e) {
  321. console.log(e.target.value);
  322. this.timeIndex = e.target.value;
  323. this.timeVal = `${this.timeOptions[0][this.timeIndex[0]]}:${this.timeOptions[1][this.timeIndex[1]]}`;
  324. },
  325. // 日期时间的可选范围
  326. dateTimeScope() {
  327. let now = new Date();
  328. let year = Number(format(now, 'yyyy'));
  329. let month = Number(format(now, 'MM'));
  330. let day = Number(format(now, 'dd'));
  331. let hour = Number(format(now, 'HH'));
  332. let minute = Number(format(now, 'mm'));
  333. let c_day = Number(format(endOfMonth(now), 'dd'));
  334. console.log(year, month, day, hour, minute);
  335. // 判断分钟
  336. if (minute >= 0 && minute < 30) {
  337. this.timeOptions = [generateArray(hour, 23), ['30']];
  338. this.dateOptions = [
  339. generateArray(year, year + 1),
  340. generateArray(month, 12),
  341. generateArray(day, c_day)
  342. ];
  343. } else {
  344. // 跨分钟
  345. this.timeOptions = [generateArray(hour == 23 ? 0 : hour + 1, 23), ['00', '30']];
  346. // 跨小时
  347. if (hour == 23) {
  348. // 跨日
  349. if (day == c_day) {
  350. // 跨月
  351. if (month == 12) {
  352. // 跨月
  353. this.dateOptions = [
  354. generateArray(year + 1, year + 1),
  355. generateArray(0, 12),
  356. generateArray(0, c_day)
  357. ]
  358. } else {
  359. this.dateOptions = [
  360. generateArray(year, year + 1),
  361. generateArray(month + 1, 12),
  362. generateArray(0, c_day)
  363. ]
  364. }
  365. } else {
  366. this.dateOptions = [
  367. generateArray(year, year + 1),
  368. generateArray(month, 12),
  369. generateArray(day + 1, c_day)
  370. ]
  371. }
  372. } else {
  373. this.dateOptions = [
  374. generateArray(year, year + 1),
  375. generateArray(month, 12),
  376. generateArray(day, c_day)
  377. ];
  378. }
  379. }
  380. },
  381. // 显示弹窗
  382. show(args = {}) {
  383. // 默认配置项
  384. let defaultOptions = {
  385. skin: "default", //弹窗风格(default|toast|qrcode|)
  386. isVisible: false, //是否显示弹窗
  387. title: "提示", //标题
  388. icon: "success", //图标(success|error|warn|)
  389. content: "", //内容
  390. btns: [{
  391. name: "取消",
  392. textColor: "#666",
  393. flex: 1,
  394. click: this.close,
  395. },
  396. {
  397. name: "确认",
  398. textColor: "#49B856",
  399. flex: 1,
  400. click: this.close,
  401. },
  402. ], //弹窗按钮
  403. };
  404. // 根据弹窗风格修改默认配置项
  405. switch (args.skin) {
  406. case "toast":
  407. defaultOptions.btns = [{
  408. name: "知道了",
  409. textColor: "#49b856",
  410. flex: 1,
  411. click: this.close,
  412. }, ];
  413. break;
  414. }
  415. // 按钮合并参数
  416. if (Array.isArray(args.btns)) {
  417. let btns = [];
  418. args.btns.forEach((v, i) => {
  419. btns.push(Object.assign({}, defaultOptions.btns[i], v));
  420. });
  421. args.btns = btns;
  422. }
  423. // 合并配置
  424. this.opts = Object.assign({}, defaultOptions, args, {
  425. isVisible: true,
  426. });
  427. if (this.opts.skin === "qrcode") {
  428. // 如果是动态二维码,则需要发起请求
  429. this.showNurseCode();
  430. } else if (this.opts.skin === 'evaluate') {
  431. // 如果是评价弹窗,则默认选中五个笑脸
  432. this.stars = ['pda-haoping', 'pda-haoping', 'pda-haoping', 'pda-haoping', 'pda-haoping'];
  433. } else if (this.opts.skin === 'yyDate') {
  434. console.log(this.otherData);
  435. // 回显
  436. if (this.otherData.date) {
  437. //回显日期
  438. this.dateVal = format(this.otherData.timestamp, 'yyyy-MM-dd');
  439. }
  440. if (this.otherData.time) {
  441. //回显日期
  442. this.timeVal = format(this.otherData.timestamp, 'HH:mm');
  443. }
  444. // 日期时间的可选范围
  445. this.dateTimeScope();
  446. } else if (this.opts.skin === 'changePwd') {
  447. // 如果是修改密码,则清空数据
  448. this.pwdOld = '';
  449. this.newPwd = '';
  450. this.newPwd2 = '';
  451. }
  452. },
  453. // 关闭弹窗
  454. close() {
  455. this.opts.isVisible = false;
  456. if (this.opts.skin === "qrcode") {
  457. clearInterval(this.timer);
  458. this.timer = null;
  459. }
  460. },
  461. // 科室动态二维码方法
  462. showNurseCode() {
  463. let deptId = this.loginInfo.user && this.loginInfo.user.dept.id;
  464. reqDeptCodes([deptId]).then((res) => {
  465. if (res.status == 200) {
  466. res["data"] = res["data"] || [];
  467. res["data"][0] = res["data"][0] || {};
  468. this.nurseCodeImg = res["data"][0].base64 || "";
  469. this.refreshQRCodeTime = res["data"][0].refreshQRCodeTime || 30;
  470. clearInterval(this.timer);
  471. this.timer = setInterval(() => {
  472. this.refreshQRCodeTime = Math.max(--this.refreshQRCodeTime, 0);
  473. if (this.refreshQRCodeTime === 0) {
  474. clearInterval(this.timer);
  475. this.showNurseCode();
  476. }
  477. }, 1000);
  478. } else {
  479. clearInterval(this.timer);
  480. uni.showToast({
  481. icon: "none",
  482. title: "获取数据失败",
  483. });
  484. }
  485. });
  486. },
  487. // 切换科室弹窗
  488. showChangeDept(options = {}) {
  489. this.isCheckDept = true;
  490. this.show(options);
  491. // (1) 当用户设置为正数时,用户必须查看此窗体指定秒数。
  492. // (2) 当用户设置为负数时,用户可点击知道了也可倒计时自动关闭。
  493. // (3) 如果用户填写0则为无自动关闭和强制查看时间。
  494. if (this.nurseDeptSwitchTip === 0) {
  495. return;
  496. }
  497. this.closeTime = Math.abs(this.nurseDeptSwitchTip);
  498. clearInterval(this.timerCloseTime);
  499. this.timerCloseTime = setInterval(() => {
  500. this.closeTime = Math.max(--this.closeTime, 0);
  501. if (this.closeTime === 0) {
  502. if (this.nurseDeptSwitchTip < 0) {
  503. this.close();
  504. }
  505. clearInterval(this.timerCloseTime);
  506. }
  507. }, 1000);
  508. },
  509. // 选择星级
  510. clickStar(index) {
  511. for (let i = 0; i < this.stars.length; i++) {
  512. this.$set(this.stars, i, i > index ? 'pda-haoping1' : 'pda-haoping');
  513. }
  514. },
  515. },
  516. };
  517. </script>
  518. <style lang="scss" scoped>
  519. .seiminModel {
  520. font-size: 36rpx;
  521. color: #000;
  522. line-height: 50rpx;
  523. text-align: center;
  524. &.seiminModel_mask {
  525. background-color: rgba(0, 0, 0, 0.5);
  526. position: fixed;
  527. top: 0;
  528. right: 0;
  529. bottom: 0;
  530. left: 0;
  531. margin: auto;
  532. z-index: 999;
  533. @include flex(center, center);
  534. .seiminModel_container {
  535. width: 560rpx;
  536. border-radius: 8rpx;
  537. background-color: #fff;
  538. display: flex;
  539. flex-direction: column;
  540. align-content: center;
  541. .seiminModel_status {
  542. margin-bottom: 35rpx;
  543. .pda {
  544. font-size: 138rpx;
  545. }
  546. }
  547. .seiminModel_header {
  548. height: 100rpx;
  549. position: relative;
  550. @include flex(center, center);
  551. &.noTitle {
  552. height: 40rpx;
  553. }
  554. .seiminModel_countDown {
  555. position: absolute;
  556. right: 26rpx;
  557. font-size: 28rpx;
  558. color: $defaultColor;
  559. }
  560. }
  561. .seiminModel_content {
  562. flex: 1;
  563. background-color: #f9fafb;
  564. margin: 0 36rpx 25rpx;
  565. color: #333;
  566. padding: 76rpx 24rpx;
  567. @include border;
  568. @include numbersAndLettersNoWrap;
  569. // 动态二维码
  570. &.qrcode {
  571. padding: 24rpx;
  572. font-size: 32rpx;
  573. color: #999;
  574. .qrcode_img {
  575. height: 464rpx;
  576. }
  577. .qrcode_operate {
  578. @include flex(space-between, center);
  579. .refreshQRCode {
  580. color: $defaultColor;
  581. }
  582. }
  583. }
  584. // 加急
  585. &.urgent {
  586. padding: 0;
  587. .urgent_txt {
  588. font-size: 28rpx;
  589. color: #666;
  590. line-height: 40rpx;
  591. padding: 24rpx;
  592. @include border(bottom);
  593. }
  594. .urgent_textarea {
  595. width: 440rpx;
  596. margin: 24rpx;
  597. min-height: 212rpx;
  598. background: #FFFFFF;
  599. border-radius: 2rpx;
  600. text-align: left;
  601. @include border;
  602. ::v-deep .uni-textarea-textarea {
  603. padding: 18rpx;
  604. }
  605. }
  606. }
  607. // 评价
  608. &.evaluate {
  609. padding: 0;
  610. .evaluate_txt {
  611. font-size: 28rpx;
  612. color: #666;
  613. line-height: 40rpx;
  614. padding: 24rpx 0;
  615. @include border(bottom);
  616. }
  617. .evaluate_list {
  618. padding: 20rpx 34rpx;
  619. .evaluate_item {
  620. font-size: 34rpx;
  621. color: #666;
  622. margin-top: 10rpx;
  623. @include flex;
  624. .evaluate_label {}
  625. .evaluate_icons {
  626. flex: 1;
  627. @include flex;
  628. .pda {
  629. font-size: 40rpx;
  630. margin-right: 10rpx;
  631. &.pda-haoping {
  632. color: $defaultColor;
  633. }
  634. }
  635. }
  636. .evaluate_textarea {
  637. flex: 1;
  638. min-height: 212rpx;
  639. background: #FFFFFF;
  640. border-radius: 2rpx;
  641. text-align: left;
  642. @include border;
  643. ::v-deep .uni-textarea-textarea {
  644. padding: 18rpx;
  645. }
  646. }
  647. }
  648. }
  649. }
  650. // 预约时间
  651. &.yyDate {
  652. padding: 56rpx 0 82rpx;
  653. .yyDate_txt {
  654. font-size: 28rpx;
  655. color: #666;
  656. padding-bottom: 20rpx;
  657. @include border(bottom);
  658. }
  659. .yyDate_date_time {
  660. font-size: 32rpx;
  661. color: #333;
  662. @include flex;
  663. .pda {
  664. font-size: 44rpx;
  665. }
  666. .yyDate_date {
  667. width: 260rpx;
  668. height: 66rpx;
  669. margin: 0 14rpx;
  670. padding: 0 8rpx;
  671. background-color: #fff;
  672. @include border(all, #8E9D9E);
  673. @include flex(space-between, center);
  674. }
  675. .yyDate_time {
  676. width: 164rpx;
  677. height: 66rpx;
  678. margin: 0 14rpx;
  679. padding: 0 8rpx;
  680. background-color: #fff;
  681. @include border(all, #8E9D9E);
  682. @include flex(space-between, center);
  683. }
  684. }
  685. .yyDate_nextDay {
  686. margin-top: 42rpx;
  687. color: $defaultColor;
  688. text-align: left;
  689. padding: 0 14rpx;
  690. text-decoration: underline;
  691. }
  692. .yyDate_tips {
  693. padding: 8rpx;
  694. font-size: 28rpx;
  695. text-align: left;
  696. }
  697. }
  698. // 修改密码
  699. &.changePwd {
  700. .changePwd_item {
  701. text-align: left;
  702. margin-bottom: 24rpx;
  703. .title {
  704. font-size: 34rpx;
  705. color: #666;
  706. height: 60rpx;
  707. }
  708. .uni-easyinput {
  709. color: #999;
  710. background-color: #fff;
  711. .uni-easyinput__placeholder-class {
  712. font-size: 28rpx !important;
  713. margin-top: 10rpx;
  714. }
  715. }
  716. }
  717. }
  718. }
  719. .seiminModel_footer {
  720. height: 100rpx;
  721. color: #666;
  722. @include border(top);
  723. @include flex(center, center);
  724. .seiminModel_footer__btn {
  725. height: 100%;
  726. position: relative;
  727. @include flex(center, center);
  728. &::after {
  729. content: "";
  730. height: 86rpx;
  731. position: absolute;
  732. width: 1px;
  733. bottom: 0;
  734. right: 0;
  735. background-color: #dde1e5;
  736. }
  737. }
  738. }
  739. }
  740. }
  741. }
  742. </style>