u-picker-jp.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. <template>
  2. <u-popup :maskCloseAble="maskCloseAble" mode="bottom" :popup="false" v-model="value" length="auto" :safeAreaInsetBottom="safeAreaInsetBottom" @close="close" :z-index="uZIndex">
  3. <view class="u-datetime-picker">
  4. <view class="u-picker-header" @touchmove.stop.prevent="">
  5. <view class="u-btn-picker u-btn-picker--tips"
  6. :style="{ color: cancelColor }"
  7. hover-class="u-opacity"
  8. :hover-stay-time="150"
  9. @tap="getResult('cancel')"
  10. >{{cancelText}}</view>
  11. <view class="u-picker__title" v-if="range.length<num" >{{ title }}</view>
  12. <view class="u-picker__title" v-else >
  13. <u-input v-model="querykey" placeholder="输入内容查询" type="text" :border="true" />
  14. </view>
  15. <view
  16. class="u-btn-picker u-btn-picker--primary"
  17. :style="{ color: moving ? cancelColor : confirmColor }"
  18. hover-class="u-opacity"
  19. :hover-stay-time="150"
  20. @touchmove.stop=""
  21. @tap.stop="getResult('confirm')"
  22. >
  23. {{confirmText}}
  24. </view>
  25. </view>
  26. <view class="u-picker-body" v-if="range.length<num">
  27. <picker-view :value="valueArr" @change="change" class="u-picker-view" @pickstart="pickstart" @pickend="pickend">
  28. <picker-view-column v-if="!reset">
  29. <view class="u-column-item" v-for="(item, index) in range" :key="index">
  30. <view class="u-line-1">{{ getItemValue(item, 'selector') }}</view>
  31. </view>
  32. </picker-view-column>
  33. </picker-view>
  34. </view>
  35. <view v-else>
  36. <scroll-view scroll-y="true" class="scroll-Y" >
  37. <view class="u-list-body">
  38. <view class="u-list-item" v-for="(item, index) in range"
  39. v-show="querykey==''||getItemValue(item, 'selector') .indexOf(querykey)!=-1"
  40. :class="{
  41. 'list-index':valueArr[0]==index
  42. }"
  43. @click="valueArr=[index],$forceUpdate()"
  44. :key="index">
  45. <view class="u-line-1">{{ getItemValue(item, 'selector') }}</view>
  46. </view>
  47. </view>
  48. <u-divider color="#B6BDC3" v-if="queryrange.length"
  49. bg-color="#fff">已经到底了</u-divider>
  50. <u-divider color="#B6BDC3" v-else
  51. bg-color="#fff">查询为空</u-divider>
  52. </scroll-view>
  53. </view>
  54. </view>
  55. </u-popup>
  56. </template>
  57. <script>
  58. /**
  59. * picker picker弹出选择器
  60. * @description 此选择器有两种弹出模式:一是时间模式,可以配置年,日,月,时,分,秒参数 二是地区模式,可以配置省,市,区参数
  61. * @tutorial https://www.uviewui.com/components/picker.html
  62. * @property {Object} params 需要显示的参数,见官网说明
  63. * @property {String} mode 模式选择,region-地区类型,time-时间类型(默认time)
  64. * @property {String Number} start-year 可选的开始年份,mode=time时有效(默认1950)
  65. * @property {String Number} end-year 可选的结束年份,mode=time时有效(默认2050)
  66. * @property {Boolean} safe-area-inset-bottom 是否开启底部安全区适配(默认false)
  67. * @property {Boolean} show-time-tag 时间模式时,是否显示后面的年月日中文提示
  68. * @property {String} cancel-color 取消按钮的颜色(默认#606266)
  69. * @property {String} confirm-color 确认按钮的颜色(默认#2979ff)
  70. * @property {String} default-time 默认选中的时间,mode=time时有效
  71. * @property {String} confirm-text 确认按钮的文字
  72. * @property {String} cancel-text 取消按钮的文字
  73. * @property {String} default-region 默认选中的地区,中文形式,mode=region时有效
  74. * @property {String} default-code 默认选中的地区,编号形式,mode=region时有效
  75. * @property {Boolean} mask-close-able 是否允许通过点击遮罩关闭Picker(默认true)
  76. * @property {String Number} z-index 弹出时的z-index值(默认1075)
  77. * @property {Array} default-selector 数组形式,其中每一项表示选择了range对应项中的第几个
  78. * @property {Array} range 自定义选择的数据,mode=selector或mode=multiSelector时有效
  79. * @property {String} range-key 当range参数的元素为对象时,指定Object中的哪个key的值作为选择器显示内容
  80. * @event {Function} confirm 点击确定按钮,返回当前选择的值
  81. * @event {Function} cancel 点击取消按钮,返回当前选择的值
  82. * @example <u-picker v-model="show" mode="time"></u-picker>
  83. */
  84. export default {
  85. name: 'u-picker-jp',
  86. props: {
  87. // picker中需要显示的参数
  88. params: {
  89. type: Object,
  90. default() {
  91. return {
  92. year: true,
  93. month: true,
  94. day: true,
  95. hour: false,
  96. minute: false,
  97. second: false,
  98. province: true,
  99. city: true,
  100. area: true,
  101. timestamp: true,
  102. };
  103. }
  104. },
  105. num: {
  106. type: [String, Number],
  107. default: 5
  108. },
  109. // 当mode=selector或者mode=multiSelector时,提供的数组
  110. range: {
  111. type: Array,
  112. default() {
  113. return [];
  114. }
  115. },
  116. // 当mode=selector或者mode=multiSelector时,提供的默认选中的下标
  117. defaultSelector: {
  118. type: Array,
  119. default() {
  120. return [0];
  121. }
  122. },
  123. // 当 range 是一个 Array<Object> 时,通过 range-key 来指定 Object 中 key 的值作为选择器显示内容
  124. rangeKey: {
  125. type: String,
  126. default: ''
  127. },
  128. // 模式选择,region-地区类型,time-时间类型,selector-单列模式,multiSelector-多列模式
  129. mode: {
  130. type: String,
  131. default: 'selector'
  132. },
  133. // 年份开始时间
  134. startYear: {
  135. type: [String, Number],
  136. default: 1950
  137. },
  138. // 年份结束时间
  139. endYear: {
  140. type: [String, Number],
  141. default: 2050
  142. },
  143. // "取消"按钮的颜色
  144. cancelColor: {
  145. type: String,
  146. default: '#606266'
  147. },
  148. // "确定"按钮的颜色
  149. confirmColor: {
  150. type: String,
  151. default: '#2979ff'
  152. },
  153. // 默认显示的时间,2025-07-02 || 2025-07-02 13:01:00 || 2025/07/02
  154. defaultTime: {
  155. type: String,
  156. default: ''
  157. },
  158. // 默认显示的地区,可传类似["河北省", "秦皇岛市", "北戴河区"]
  159. defaultRegion: {
  160. type: Array,
  161. default() {
  162. return [];
  163. }
  164. },
  165. // 时间模式时,是否显示后面的年月日中文提示
  166. showTimeTag: {
  167. type: Boolean,
  168. default: true
  169. },
  170. // 默认显示地区的编码,defaultRegion和areaCode同时存在,areaCode优先,可传类似["13", "1303", "130304"]
  171. areaCode: {
  172. type: Array,
  173. default() {
  174. return [];
  175. }
  176. },
  177. safeAreaInsetBottom: {
  178. type: Boolean,
  179. default: false
  180. },
  181. // 是否允许通过点击遮罩关闭Picker
  182. maskCloseAble: {
  183. type: Boolean,
  184. default: true
  185. },
  186. // 通过双向绑定控制组件的弹出与收起
  187. value: {
  188. type: Boolean,
  189. default: false
  190. },
  191. // 弹出的z-index值
  192. zIndex: {
  193. type: [String, Number],
  194. default: 0
  195. },
  196. // 顶部标题
  197. title: {
  198. type: String,
  199. default: ''
  200. },
  201. // 取消按钮的文字
  202. cancelText: {
  203. type: String,
  204. default: '取消'
  205. },
  206. // 确认按钮的文字
  207. confirmText: {
  208. type: String,
  209. default: '确认'
  210. }
  211. },
  212. data() {
  213. return {
  214. querykey:'',
  215. years: [],
  216. months: [],
  217. days: [],
  218. hours: [],
  219. minutes: [],
  220. seconds: [],
  221. year: 0,
  222. month: 0,
  223. day: 0,
  224. hour: 0,
  225. minute: 0,
  226. second: 0,
  227. reset: false,
  228. startDate: '',
  229. endDate: '',
  230. valueArr: [],
  231. province: 0,
  232. city: 0,
  233. area: 0,
  234. moving: false // 列是否还在滑动中,微信小程序如果在滑动中就点确定,结果可能不准确
  235. };
  236. },
  237. mounted() {
  238. this.init();
  239. },
  240. computed: {
  241. queryrange(){
  242. var sz=[]
  243. //console.log(this.range)
  244. this.range.forEach(item=>{
  245. var k=this.getItemValue(item, 'selector') ;
  246. if(this.querykey==''||k.indexOf(this.querykey)!=-1){
  247. sz.push(item)
  248. }
  249. })
  250. return sz
  251. },
  252. propsChange() {
  253. // 引用这几个变量,是为了监听其变化
  254. return `${this.mode}-${this.defaultTime}-${this.startYear}-${this.endYear}-${this.defaultRegion}-${this.areaCode}`;
  255. },
  256. regionChange() {
  257. // 引用这几个变量,是为了监听其变化
  258. return `${this.province}-${this.city}`;
  259. },
  260. yearAndMonth() {
  261. return `${this.year}-${this.month}`;
  262. },
  263. uZIndex() {
  264. // 如果用户有传递z-index值,优先使用
  265. return this.zIndex ? this.zIndex : this.$u.zIndex.popup;
  266. }
  267. },
  268. watch: {
  269. propsChange() {
  270. this.reset = true;
  271. setTimeout(() => this.init(), 10);
  272. },
  273. // 如果地区发生变化,为了让picker联动起来,必须重置this.citys和this.areas
  274. regionChange(val) {
  275. this.citys = citys[this.province];
  276. this.areas = areas[this.province][this.city];
  277. },
  278. // watch监听月份的变化,实时变更日的天数,因为不同月份,天数不一样
  279. // 一个月可能有30,31天,甚至闰年2月的29天,平年2月28天
  280. yearAndMonth(val) {
  281. if (this.params.year) this.setDays();
  282. },
  283. // 微信和QQ小程序由于一些奇怪的原因(故同时对所有平台均初始化一遍),需要重新初始化才能显示正确的值
  284. value(n) {
  285. if (n) {
  286. this.reset = true;
  287. setTimeout(() => this.init(), 10);
  288. }
  289. }
  290. },
  291. methods: {
  292. // 标识滑动开始,只有微信小程序才有这样的事件
  293. pickstart() {
  294. // #ifdef MP-WEIXIN
  295. this.moving = true;
  296. // #endif
  297. },
  298. // 标识滑动结束
  299. pickend() {
  300. // #ifdef MP-WEIXIN
  301. this.moving = false;
  302. // #endif
  303. },
  304. // 对单列和多列形式的判断是否有传入变量的情况
  305. getItemValue(item, mode) {
  306. // 目前(2020-05-25)uni-app对微信小程序编译有错误,导致v-if为false中的内容也执行,错误导致
  307. // 单列模式或者多列模式中的getItemValue同时被执行,故在这里再加一层判断
  308. if (this.mode == mode) {
  309. return typeof item == 'object' ? item[this.rangeKey] : item;
  310. }
  311. },
  312. // 小于10前面补0,用于月份,日期,时分秒等
  313. formatNumber(num) {
  314. return +num < 10 ? '0' + num : String(num);
  315. },
  316. // 生成递进的数组
  317. generateArray: function(start, end) {
  318. // 转为数值格式,否则用户给end-year等传递字符串值时,下面的end+1会导致字符串拼接,而不是相加
  319. start = Number(start);
  320. end = Number(end);
  321. end = end > start ? end : start;
  322. // 生成数组,获取其中的索引,并剪出来
  323. return [...Array(end + 1).keys()].slice(start);
  324. },
  325. getIndex: function(arr, val) {
  326. let index = arr.indexOf(val);
  327. // 如果index为-1(即找不到index值),~(-1)=-(-1)-1=0,导致条件不成立
  328. return ~index ? index : 0;
  329. },
  330. //日期时间处理
  331. initTimeValue() {
  332. // 格式化时间,在IE浏览器(uni不存在此情况),无法识别日期间的"-"间隔符号
  333. let fdate = this.defaultTime.replace(/\-/g, '/');
  334. fdate = fdate && fdate.indexOf('/') == -1 ? `2020/01/01 ${fdate}` : fdate;
  335. let time = null;
  336. if (fdate) time = new Date(fdate);
  337. else time = new Date();
  338. // 获取年日月时分秒
  339. this.year = time.getFullYear();
  340. this.month = Number(time.getMonth()) + 1;
  341. this.day = time.getDate();
  342. this.hour = time.getHours();
  343. this.minute = time.getMinutes();
  344. this.second = time.getSeconds();
  345. },
  346. init() {
  347. this.valueArr = [];
  348. this.reset = false;
  349. if (this.mode == 'time') {
  350. } else if (this.mode == 'region') {
  351. } else if (this.mode == 'selector') {
  352. this.valueArr = this.defaultSelector;
  353. } else if (this.mode == 'multiSelector') {
  354. this.valueArr = this.defaultSelector;
  355. this.multiSelectorValue = this.defaultSelector;
  356. }
  357. this.$forceUpdate();
  358. },
  359. // 设置picker的某一列值
  360. setYears() {
  361. // 获取年份集合
  362. this.years = this.generateArray(this.startYear, this.endYear);
  363. // 设置this.valueArr某一项的值,是为了让picker预选中某一个值
  364. this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.years, this.year));
  365. },
  366. setMonths() {
  367. this.months = this.generateArray(1, 12);
  368. this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.months, this.month));
  369. },
  370. setDays() {
  371. let totalDays = new Date(this.year, this.month, 0).getDate();
  372. this.days = this.generateArray(1, totalDays);
  373. let index = 0;
  374. // 这里不能使用类似setMonths()中的this.valueArr.splice(this.valueArr.length - 1, xxx)做法
  375. // 因为this.month和this.year变化时,会触发watch中的this.setDays(),导致this.valueArr.length计算有误
  376. if (this.params.year && this.params.month) index = 2;
  377. else if (this.params.month) index = 1;
  378. else if (this.params.year) index = 1;
  379. else index = 0;
  380. // 当月份变化时,会导致日期的天数也会变化,如果原来选的天数大于变化后的天数,则重置为变化后的最大值
  381. // 比如原来选中3月31日,调整为2月后,日期变为最大29,这时如果day值继续为31显然不合理,于是将其置为29(picker-column从1开始)
  382. if(this.day > this.days.length) this.day = this.days.length;
  383. this.valueArr.splice(index, 1, this.getIndex(this.days, this.day));
  384. },
  385. setHours() {
  386. this.hours = this.generateArray(0, 23);
  387. this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.hours, this.hour));
  388. },
  389. setMinutes() {
  390. this.minutes = this.generateArray(0, 59);
  391. this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.minutes, this.minute));
  392. },
  393. setSeconds() {
  394. this.seconds = this.generateArray(0, 59);
  395. this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.seconds, this.second));
  396. },
  397. setProvinces() {
  398. // 判断是否需要province参数
  399. if (!this.params.province) return;
  400. let tmp = '';
  401. let useCode = false;
  402. // 如果同时配置了defaultRegion和areaCode,优先使用areaCode参数
  403. if (this.areaCode.length) {
  404. tmp = this.areaCode[0];
  405. useCode = true;
  406. } else if (this.defaultRegion.length) tmp = this.defaultRegion[0];
  407. else tmp = 0;
  408. // 历遍省份数组匹配
  409. provinces.map((v, k) => {
  410. if (useCode ? v.value == tmp : v.label == tmp) {
  411. tmp = k;
  412. }
  413. });
  414. this.province = tmp;
  415. this.provinces = provinces;
  416. // 设置默认省份的值
  417. this.valueArr.splice(0, 1, this.province);
  418. },
  419. setCitys() {
  420. if (!this.params.city) return;
  421. let tmp = '';
  422. let useCode = false;
  423. if (this.areaCode.length) {
  424. tmp = this.areaCode[1];
  425. useCode = true;
  426. } else if (this.defaultRegion.length) tmp = this.defaultRegion[1];
  427. else tmp = 0;
  428. citys[this.province].map((v, k) => {
  429. if (useCode ? v.value == tmp : v.label == tmp) {
  430. tmp = k;
  431. }
  432. });
  433. this.city = tmp;
  434. this.citys = citys[this.province];
  435. this.valueArr.splice(1, 1, this.city);
  436. },
  437. setAreas() {
  438. if (!this.params.area) return;
  439. let tmp = '';
  440. let useCode = false;
  441. if (this.areaCode.length) {
  442. tmp = this.areaCode[2];
  443. useCode = true;
  444. } else if (this.defaultRegion.length) tmp = this.defaultRegion[2];
  445. else tmp = 0;
  446. areas[this.province][this.city].map((v, k) => {
  447. if (useCode ? v.value == tmp : v.label == tmp) {
  448. tmp = k;
  449. }
  450. });
  451. this.area = tmp;
  452. this.areas = areas[this.province][this.city];
  453. this.valueArr.splice(2, 1, this.area);
  454. },
  455. close() {
  456. this.$emit('input', false);
  457. },
  458. // 用户更改picker的列选项
  459. change(e) {
  460. this.valueArr = e.detail.value;
  461. let i = 0;
  462. if (this.mode == 'time') {
  463. // 这里使用i++,是因为this.valueArr数组的长度是不确定长度的,它根据this.params的值来配置长度
  464. // 进入if规则,i会加1,保证了能获取准确的值
  465. if (this.params.year) this.year = this.years[this.valueArr[i++]];
  466. if (this.params.month) this.month = this.months[this.valueArr[i++]];
  467. if (this.params.day) this.day = this.days[this.valueArr[i++]];
  468. if (this.params.hour) this.hour = this.hours[this.valueArr[i++]];
  469. if (this.params.minute) this.minute = this.minutes[this.valueArr[i++]];
  470. if (this.params.second) this.second = this.seconds[this.valueArr[i++]];
  471. } else if (this.mode == 'region') {
  472. if (this.params.province) this.province = this.valueArr[i++];
  473. if (this.params.city) this.city = this.valueArr[i++];
  474. if (this.params.area) this.area = this.valueArr[i++];
  475. } else if (this.mode == 'multiSelector') {
  476. let index = null;
  477. // 对比前后两个数组,寻找变更的是哪一列,如果某一个元素不同,即可判定该列发生了变化
  478. this.defaultSelector.map((val, idx) => {
  479. if (val != e.detail.value[idx]) index = idx;
  480. });
  481. // 为了让用户对多列变化时,对动态设置其他列的变更
  482. if (index != null) {
  483. this.$emit('columnchange', {
  484. column: index,
  485. index: e.detail.value[index]
  486. });
  487. }
  488. }
  489. },
  490. // 用户点击确定按钮
  491. getResult(event = null) {
  492. // #ifdef MP-WEIXIN
  493. if (this.moving) return;
  494. // #endif
  495. let result = {};
  496. // 只返回用户在this.params中配置了为true的字段
  497. if (this.mode == 'time') {
  498. if (this.params.year) result.year = this.formatNumber(this.year || 0);
  499. if (this.params.month) result.month = this.formatNumber(this.month || 0);
  500. if (this.params.day) result.day = this.formatNumber(this.day || 0);
  501. if (this.params.hour) result.hour = this.formatNumber(this.hour || 0);
  502. if (this.params.minute) result.minute = this.formatNumber(this.minute || 0);
  503. if (this.params.second) result.second = this.formatNumber(this.second || 0);
  504. if (this.params.timestamp) result.timestamp = this.getTimestamp();
  505. } else if (this.mode == 'region') {
  506. if (this.params.province) result.province = provinces[this.province];
  507. if (this.params.city) result.city = citys[this.province][this.city];
  508. if (this.params.area) result.area = areas[this.province][this.city][this.area];
  509. } else if (this.mode == 'selector') {
  510. result = this.valueArr;
  511. } else if (this.mode == 'multiSelector') {
  512. result = this.valueArr;
  513. }
  514. if (event) this.$emit(event, result);
  515. this.close();
  516. },
  517. // 获取时间戳
  518. getTimestamp() {
  519. // yyyy-mm-dd为安卓写法,不支持iOS,需要使用"/"分隔,才能二者兼容
  520. let time = this.year + '/' + this.month + '/' + this.day + ' ' + this.hour + ':' + this.minute + ':' + this.second;
  521. return new Date(time).getTime() / 1000;
  522. }
  523. }
  524. };
  525. </script>
  526. <style lang="scss" scoped>
  527. .u-datetime-picker {
  528. position: relative;
  529. z-index: 999;
  530. }
  531. .u-picker-view {
  532. height: 100%;
  533. box-sizing: border-box;
  534. }
  535. .u-picker-header {
  536. width: 100%;
  537. height: 90rpx;
  538. padding: 0 40rpx;
  539. display: flex;
  540. justify-content: space-between;
  541. align-items: center;
  542. box-sizing: border-box;
  543. font-size: 30rpx;
  544. background: #fff;
  545. position: relative;
  546. }
  547. .u-picker-header::after {
  548. content: '';
  549. position: absolute;
  550. border-bottom: 1rpx solid #eaeef1;
  551. -webkit-transform: scaleY(0.5);
  552. transform: scaleY(0.5);
  553. bottom: 0;
  554. right: 0;
  555. left: 0;
  556. }
  557. .u-picker__title {
  558. color: #606266;
  559. }
  560. .u-picker-body {
  561. width: 100%;
  562. height: 500rpx;
  563. overflow: hidden;
  564. background-color: #fff;
  565. }
  566. .u-column-item {
  567. display: flex;
  568. align-items: center;
  569. justify-content: center;
  570. font-size: 32rpx;
  571. color: #303133;
  572. padding: 0 8rpx;
  573. }
  574. .u-text {
  575. font-size: 24rpx;
  576. padding-left: 8rpx;
  577. }
  578. .u-btn-picker {
  579. padding: 16rpx;
  580. box-sizing: border-box;
  581. text-align: center;
  582. text-decoration: none;
  583. }
  584. .u-opacity {
  585. opacity: 0.5;
  586. }
  587. .u-btn-picker--primary {
  588. color: #2979ff;
  589. }
  590. .u-btn-picker--tips {
  591. color: #909399;
  592. }
  593. .scroll-Y {
  594. height: 600rpx;
  595. }
  596. .u-list-body{
  597. width: 100%;
  598. margin-top: 9px;
  599. background-color: #fff;
  600. display: flex;
  601. flex-wrap: wrap;
  602. .u-list-item{
  603. padding: 5px;
  604. margin: 5px;
  605. border: 1px solid #909399;
  606. color:#909399;
  607. }
  608. .list-index{
  609. border: 1px solid #2979ff;
  610. color: #2979ff;
  611. }
  612. }
  613. </style>