seiminDrawer.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955
  1. <template>
  2. <div class="seiminDrawer">
  3. <div class="seiminDrawer_mask" @click="close"></div>
  4. <div class="sf_layer show" id="filterBlock">
  5. <div class="sf_layer_sub_title hide" id="filterSelBlock">
  6. <strong>已选分类:</strong
  7. ><span id="filterSelTips" class="words_10">全部分类</span>
  8. </div>
  9. <div class="sf_layer_con" id="filterInner">
  10. <ul class="mod_list" v-show="!isSelectArea && !isSelectCategory">
  11. <li class="arrow_li J_ping noAfter">
  12. <div class="list_inner li_line">
  13. <div class="big">院区</div>
  14. <div class="right color_red">
  15. {{ selectData.hospital && selectData.hospital.hosName }}
  16. </div>
  17. </div>
  18. </li>
  19. </ul>
  20. <ul class="tags_selection">
  21. <li class="J_ping option" @click="selectData.selected = 'all'" :class="{selected: selectData.selected === 'all'}"><a href="javascript:void(0)">全部事件</a></li>
  22. <li class="J_ping option" @click="selectData.selected = 'todo'" :class="{selected: selectData.selected ==='todo'}"><a href="javascript:void(0)">待我处理</a></li>
  23. <li class="J_ping option" @click="selectData.selected = 'done'" :class="{selected: selectData.selected ==='done'}"><a href="javascript:void(0)">与我关联</a></li>
  24. </ul>
  25. <template v-if="!isSelectArea && !isSelectCategory">
  26. <ul class="mod_list">
  27. <li class="arrow_li J_ping" @click="selectArea">
  28. <div class="list_inner li_line">
  29. <div class="big">区域</div>
  30. <div class="right">{{ selectData.area ? selectData.area.area : '请选择' }}</div>
  31. </div>
  32. </li>
  33. <li class="arrow_li J_ping" @click="selectCategory">
  34. <div class="list_inner li_line">
  35. <div class="big">故障现象</div>
  36. <div class="right">{{ selectData.category ? selectData.category.category : '请选择' }}</div>
  37. </div>
  38. </li>
  39. </ul>
  40. <ul class="tags_selection_custom">
  41. <li class="J_ping">
  42. <cube-checkbox v-model="selectData.belongtoMe">
  43. 我处理的
  44. </cube-checkbox>
  45. </li>
  46. </ul>
  47. <div id="filterClearBtn" class="J_ping s_btn" @click="clear">
  48. 清除选项
  49. </div>
  50. </template>
  51. <template v-else-if="isSelectArea">
  52. <ul class="mod_list padding_left">
  53. <li class="check_li" v-for="area in areas" :key="area.id" @click="clickAreaItems(area)" :class="{checked: selectData.area ? selectData.area.id == area.id : false}">
  54. <div class="list_inner li_line">
  55. <div class="big">{{ area.area }}<span class="small"></span></div>
  56. </div>
  57. </li>
  58. </ul>
  59. </template>
  60. <template v-else-if="isSelectCategory">
  61. <ul class="mod_list padding_left">
  62. <li class="check_li" v-for="category in categories" :key="category.id" @click="clickCategoryItems(category)" :class="{checked: selectData.category ? selectData.category.id == category.id : false}">
  63. <div class="list_inner li_line">
  64. <div class="big">{{ category.category }}<span class="small"></span></div>
  65. </div>
  66. </li>
  67. </ul>
  68. </template>
  69. </div>
  70. <div class="filterlayer_bottom_buttons">
  71. <span class="filterlayer_bottom_button bg_1" @click="closeItems('isSelectArea')" v-show="isSelectArea">取消</span>
  72. <span class="filterlayer_bottom_button bg_1" @click="closeItems('isSelectCategory')" v-show="isSelectCategory">取消</span>
  73. <span class="filterlayer_bottom_button bg_1 J_ping" @click="close" v-show="!isSelectArea && !isSelectCategory">取消</span>
  74. <span class="filterlayer_bottom_button bg_2" v-show="!isSelectArea && !isSelectCategory" @click="confirm">确认</span>
  75. </div>
  76. </div>
  77. </div>
  78. </template>
  79. <script>
  80. export default {
  81. name: "seiminDrawer",
  82. data() {
  83. return {
  84. loginUser: JSON.parse(localStorage.getItem("loginUser")),
  85. selectData: {
  86. hospital: undefined,
  87. area: {id: 0, area: '全部'},
  88. category: {id: 0, category: '全部'},
  89. selected: 'todo',
  90. belongtoMe: false,
  91. },
  92. flag: false,
  93. isSelectArea: false,
  94. isSelectCategory: false,
  95. areas: [{ id: 0, area: '全部' }],
  96. categories: [{ id: 0, category: '全部' }],
  97. };
  98. },
  99. props:['evt'],
  100. methods: {
  101. // 清除选项
  102. clear(){
  103. this.selectData.area = {id: 0, area: '全部'};
  104. this.selectData.category = {id: 0, category: '全部'};
  105. this.selectData.selected = 'todo';
  106. this.selectData.belongtoMe = false;
  107. },
  108. // 确定
  109. confirm(){
  110. console.log(this.selectData);
  111. this.$emit('confirm', this.selectData);
  112. this.close();
  113. },
  114. // 关闭
  115. close() {
  116. this.$emit("close");
  117. },
  118. // 关闭选项
  119. closeItems(type) {
  120. this[type] = false;
  121. },
  122. // 选择区域
  123. selectArea() {
  124. this.areas = [{ id: 0, area: '全部' }];
  125. this.isSelectArea = true;
  126. this.getAreas();
  127. },
  128. // 获取院区下的区域
  129. getAreas() {
  130. const toast = this.$createToast({
  131. txt: "Loading...",
  132. mask: true
  133. });
  134. toast.show();
  135. this.$http
  136. .post("service/user/data/fetchDataList/area", { idx: 0, sum: 1000, area: { branch: this.selectData.hospital.id } })
  137. .then(res => {
  138. toast.hide();
  139. if (res.data.status == 200) {
  140. let list = res.data.list || [];
  141. this.areas = [...this.areas, ...list];
  142. }
  143. }, (err) => {
  144. toast.hide();
  145. });
  146. },
  147. // 点击区域项
  148. clickAreaItems(area){
  149. this.selectData.area = area;
  150. this.closeItems('isSelectArea');
  151. },
  152. // 选择一级故障现象
  153. selectCategory() {
  154. this.categories = [{ id: 0, category: '全部' }];
  155. this.isSelectCategory = true;
  156. this.getCategories();
  157. },
  158. // 获取院区下的一级故障现象|责任科室下的一级故障现象
  159. getCategories() {
  160. const toast = this.$createToast({
  161. txt: "Loading...",
  162. mask: true
  163. });
  164. toast.show();
  165. // 判断当前是责任科室还是院区
  166. if (this.loginUser.duty) {
  167. // 当前的所属责任科室
  168. this.$http
  169. .post("service/bpm/data/fetchDataList/incidentcategory", { idx: 0, sum: 9999, incidentcategory: { dutyToCategory: this.loginUser.duty.id } })
  170. .then(res => {
  171. toast.hide();
  172. if (res.data.status == 200) {
  173. let list = res.data.list || [];
  174. this.categories = [...this.categories, ...list];
  175. }
  176. }, (err) => {
  177. toast.hide();
  178. });
  179. } else if (this.loginUser.branch) {
  180. // 当前的所属院区
  181. this.$http
  182. .post("service/bpm/data/fetchDataList/incidentcategory", { idx: 0, sum: 9999, incidentcategory: { selectType: 'one' } })
  183. .then(res => {
  184. toast.hide();
  185. if (res.data.status == 200) {
  186. let list = res.data.list || [];
  187. this.categories = [...this.categories, ...list];
  188. }
  189. }, (err) => {
  190. toast.hide();
  191. });
  192. }
  193. },
  194. // 点击一级故障现象项
  195. clickCategoryItems(category){
  196. this.selectData.category = category;
  197. this.closeItems('isSelectCategory');
  198. },
  199. },
  200. mounted() {
  201. // 初始化
  202. if(this.evt){
  203. this.selectData = this.evt
  204. }
  205. if (this.loginUser.duty) {
  206. // 当前的所属责任科室
  207. this.selectData.hospital = {
  208. id: this.loginUser.duty.branch,
  209. hosName: this.loginUser.duty.branchName
  210. };
  211. } else if (this.loginUser.branch) {
  212. // 当前的所属院区
  213. this.selectData.hospital = {
  214. id: this.loginUser.branch.id,
  215. hosName: this.loginUser.branch.hosName
  216. };
  217. }
  218. }
  219. };
  220. </script>
  221. <style scoped lang="less">
  222. .seiminDrawer {
  223. .seiminDrawer_mask {
  224. position: fixed;
  225. top: 0;
  226. left: 0;
  227. width: 100%;
  228. height: 100%;
  229. background-color: rgba(0, 0, 0, 0.7);
  230. z-index: 9;
  231. }
  232. .hide {
  233. display: none !important;
  234. }
  235. .words_10 {
  236. overflow: hidden;
  237. text-overflow: ellipsis;
  238. white-space: nowrap;
  239. text-align: right;
  240. max-width: 110px;
  241. }
  242. .sf_layer {
  243. -webkit-transition: -webkit-transform 0.25s ease;
  244. transition: -webkit-transform 0.25s ease;
  245. transition: transform 0.25s ease;
  246. transition: transform 0.25s ease, -webkit-transform 0.25s ease;
  247. -webkit-transform: translate3d(100%, 0, 0);
  248. transform: translate3d(100%, 0, 0);
  249. position: fixed;
  250. width: 85%;
  251. top: 0;
  252. bottom: 0;
  253. left: 100%;
  254. color: #333;
  255. background-color: #f7f7f7;
  256. bottom: constant(safe-area-inset-bottom);
  257. bottom: env(safe-area-inset-bottom);
  258. }
  259. .sf_layer.show {
  260. z-index: 301;
  261. -webkit-transform: translate3d(-100%, 0, 0);
  262. transform: translate3d(-100%, 0, 0);
  263. }
  264. .sf_layer .sf_layer_con {
  265. -webkit-overflow-scrolling: touch;
  266. overflow: hidden;
  267. overflow-y: auto;
  268. box-sizing: border-box;
  269. position: absolute;
  270. top: 0;
  271. left: 0;
  272. right: 0;
  273. bottom: 0;
  274. z-index: 1;
  275. padding-bottom: 50px;
  276. }
  277. .sf_layer .sf_layer_sub_title {
  278. z-index: 10;
  279. position: absolute;
  280. top: 0;
  281. left: 0;
  282. right: 0;
  283. padding: 0 10px;
  284. height: 46px;
  285. line-height: 46px;
  286. font-size: 14px;
  287. color: #333;
  288. background-color: #fff;
  289. display: -webkit-box;
  290. display: -webkit-flex;
  291. display: flex;
  292. }
  293. .sf_layer .sf_layer_sub_title > div,
  294. .sf_layer .sf_layer_sub_title > span,
  295. .sf_layer .sf_layer_sub_title > strong {
  296. display: block;
  297. font-weight: 400;
  298. white-space: nowrap;
  299. }
  300. .sf_layer .sf_layer_sub_title:after {
  301. content: "";
  302. position: absolute;
  303. z-index: 1;
  304. pointer-events: none;
  305. background-color: #e5e5e5;
  306. height: 1px;
  307. left: 0;
  308. right: 0;
  309. bottom: 0;
  310. }
  311. @media only screen and (-webkit-min-device-pixel-ratio: 2) {
  312. .sf_layer .sf_layer_sub_title:after {
  313. -webkit-transform: scaleY(0.5);
  314. -webkit-transform-origin: 50% 100%;
  315. }
  316. }
  317. .s_btn {
  318. display: block;
  319. width: auto;
  320. height: 40px;
  321. line-height: 40px;
  322. text-align: center;
  323. border-radius: 2px;
  324. font-size: 16px;
  325. background: #fff;
  326. position: relative;
  327. color: #333;
  328. margin: 15px 10px;
  329. }
  330. .s_btn:active {
  331. background: #f2f2f2;
  332. }
  333. .s_btn:after {
  334. content: "";
  335. position: absolute;
  336. z-index: 1;
  337. pointer-events: none;
  338. background-color: #e5e5e5;
  339. top: 0;
  340. bottom: 0;
  341. left: 0;
  342. right: 0;
  343. background: none;
  344. border: 1px solid #e5e5e5;
  345. border-radius: 2px;
  346. }
  347. @media only screen and (-webkit-min-device-pixel-ratio: 2) {
  348. .s_btn:after {
  349. right: -100%;
  350. bottom: -100%;
  351. -webkit-transform: scale(0.5);
  352. -webkit-transform-origin: 0 0;
  353. border-radius: 4px;
  354. }
  355. }
  356. .s_btn.disabled {
  357. background: #ccc;
  358. color: #999;
  359. }
  360. .s_btn.disabled:active {
  361. background: #bfbfbf;
  362. }
  363. .mod_list {
  364. margin-bottom: 15px;
  365. background-color: #fff;
  366. }
  367. .mod_list.padding_left {
  368. padding-left: 10px;
  369. }
  370. .mod_list li {
  371. position: relative;
  372. line-height: 25px;
  373. padding: 10px;
  374. }
  375. .mod_list li:not(:first-child):before {
  376. content: "";
  377. position: absolute;
  378. z-index: 1;
  379. pointer-events: none;
  380. background-color: #e5e5e5;
  381. height: 1px;
  382. left: 0;
  383. right: 0;
  384. top: 0;
  385. }
  386. @media only screen and (-webkit-min-device-pixel-ratio: 2) {
  387. .mod_list li:not(:first-child):before {
  388. -webkit-transform: scaleY(0.5);
  389. -webkit-transform-origin: 50% 0;
  390. }
  391. }
  392. .mod_list .li_line {
  393. display: -webkit-box;
  394. display: -webkit-flex;
  395. display: flex;
  396. }
  397. .mod_list .li_line .big {
  398. height: 25px;
  399. max-width: 250px;
  400. overflow: hidden;
  401. font-size: 16px;
  402. color: #333;
  403. text-overflow: ellipsis;
  404. }
  405. .mod_list .li_line .right {
  406. overflow: hidden;
  407. text-overflow: ellipsis;
  408. white-space: nowrap;
  409. -webkit-box-flex: 1;
  410. -webkit-flex: 1;
  411. flex: 1;
  412. margin-left: 5px;
  413. text-align: right;
  414. font-size: 12px;
  415. color: #999;
  416. }
  417. .mod_list .li_line .right.color_red {
  418. color: #e4393c;
  419. }
  420. .mod_list li.check_li {
  421. padding: 10px 10px 10px 30px;
  422. }
  423. .mod_list li.check_li:after {
  424. position: absolute;
  425. top: 50%;
  426. left: 0;
  427. -webkit-transform: translateY(-50%);
  428. transform: translateY(-50%);
  429. content: "";
  430. width: 20px;
  431. height: 20px;
  432. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAJFBMVEVHcEybm5uZmZmampqrq6ubm5uampqbm5uampqampqampqZmZlElYtqAAAAC3RSTlMAevCoCSBCV8LWOvq1Cd8AAADnSURBVCjPY2CAgECLSZrNogzIgFVyNxhMDECIsQjtVi4LcU032q3oABcs2m0G5rAk71aHiTHu7oIxV+wWgGq23ogwSXozxADmTQkIQTZtA4ikKrJDgsDa2HcnIAuy7S4Akk4bUZzMIK0CIhpQBTmAili1F6AKcm0KYGDczIAGrAUYOLehC2ZPYIhWQRd02sogbYAuyLyRwboAXZB9M0N3Arog2w6G2QHogqw7GbQd0AVZNmEXxKodq0VYnYTV8Vi9iTVAsAYd1kDGGh3YIw5rFGNNDNiTDdYEhjUpYk+02JM31oyAnmUACxpOGR88rXYAAAAASUVORK5CYII=)
  433. no-repeat;
  434. background-size: 20px auto;
  435. }
  436. .mod_list li.check_li.checked:after {
  437. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAKlBMVEVHcEzpPD3tO0HrPD7qPD7qOz3tQ0PqOz/wRkbqPD3rPD/qPD3pPD7pOz3zAI6pAAAADXRSTlMA6iuA89YcSAurcr+lXwCaFwAAAPZJREFUKM9jYICArNMhrnuWMSADNtO7YBCcgBDjMLkLBc4NcMHCu3AgDhNjvosEDKCa5yIL3oQYwHkXBUwAC9qiCl4GibHfRQMFQMFGdEEJTN1g/Wy+6IJXElAdCXMqKwpfvBZIBDDkIotdVAAJXmNYiywoxCQLJG8xnEVRqAii7jDsxVB49zZDLIbCu1cZfDEU3r2CJAhTCBQEab9eiKwQqB1k0XUQF64QaNFZmEa4QqCT1kJ1IhQCHZ8LtQOhEOhNVqhrEAqBAcIMdQ5CITDooIEsXogcyFijA3vEYY1irIkBe7LBmsCwJkXsiRZ78saaEdCzDACaJe/8fzNocAAAAABJRU5ErkJggg==);
  438. }
  439. .mod_list li.letter_li {
  440. padding: 0 0 0 10px;
  441. margin-left: -10px;
  442. background-color: #f7f7f7;
  443. }
  444. .mod_list li.arrow_enter,
  445. .mod_list li.arrow_li,
  446. .mod_list li.super_li {
  447. padding-right: 27px;
  448. }
  449. .mod_list li.arrow_enter:after,
  450. .mod_list li.arrow_li:after,
  451. .mod_list li.super_li:after {
  452. margin-top: -2px;
  453. position: absolute;
  454. top: 0;
  455. right: 13px;
  456. margin-top: 17px !important;
  457. }
  458. .mod_list li.arrow_enter.noAfter:after,
  459. .mod_list li.arrow_li.noAfter:after,
  460. .mod_list li.super_li.noAfter:after {
  461. display: none;
  462. }
  463. .mod_list li.arrow_enter:after,
  464. .mod_list li.arrow_li:after,
  465. .mod_list li.super_li:after {
  466. content: "";
  467. display: inline-block;
  468. vertical-align: middle;
  469. width: 6px;
  470. height: 10px;
  471. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'%3E%3Cpath fill='%23CCC' fill-rule='evenodd' d='M2 20c-.8 0-1.5-.5-1.8-1.2-.3-.8-.2-1.6.4-2.2L7.2 10 .6 3.4c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l8 8c.4.4.6 1 .6 1.4 0 .5-.2 1-.6 1.4l-8 8c-.4.4-1 .6-1.4.6z'/%3E%3C/svg%3E");
  472. background-repeat: no-repeat;
  473. background-size: 100%;
  474. }
  475. .mod_list li.super_li.opened + .outside_list {
  476. display: none;
  477. }
  478. .mod_list li.super_li.opened:after {
  479. margin-top: -2px;
  480. -webkit-transform: rotate(90deg);
  481. transform: rotate(90deg);
  482. margin-top: 17px !important;
  483. }
  484. .mod_list li.super_li.opened:after {
  485. content: "";
  486. display: inline-block;
  487. vertical-align: middle;
  488. width: 6px;
  489. height: 10px;
  490. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'%3E%3Cpath fill='%23CCC' fill-rule='evenodd' d='M2 20c-.8 0-1.5-.5-1.8-1.2-.3-.8-.2-1.6.4-2.2L7.2 10 .6 3.4c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l8 8c.4.4.6 1 .6 1.4 0 .5-.2 1-.6 1.4l-8 8c-.4.4-1 .6-1.4.6z'/%3E%3C/svg%3E");
  491. background-repeat: no-repeat;
  492. background-size: 100%;
  493. }
  494. .mod_list li.super_li.no_arrow {
  495. padding-right: 27px;
  496. }
  497. .mod_list li.super_li.no_arrow:after {
  498. display: none !important;
  499. }
  500. .mod_list li.super_li .sub_list {
  501. margin-right: -26px;
  502. }
  503. .mod_list .sub_list {
  504. margin-bottom: -10px;
  505. }
  506. .mod_list .sub_list .arrow_enter,
  507. .mod_list .sub_list .arrow_li {
  508. padding-left: 0;
  509. }
  510. .mod_list .sub_list.left_shorter {
  511. margin-left: -10px;
  512. }
  513. .mod_list .filterlayer_price {
  514. position: relative;
  515. }
  516. .mod_list .filterlayer_price:before {
  517. content: "";
  518. position: absolute;
  519. z-index: 1;
  520. pointer-events: none;
  521. background-color: #e5e5e5;
  522. height: 1px;
  523. left: 0;
  524. right: 0;
  525. top: 0;
  526. left: 10px;
  527. }
  528. @media only screen and (-webkit-min-device-pixel-ratio: 2) {
  529. .mod_list .filterlayer_price:before {
  530. -webkit-transform: scaleY(0.5);
  531. -webkit-transform-origin: 50% 0;
  532. }
  533. }
  534. .mod_list .filterlayer_price .filterlayer_price_area {
  535. display: -webkit-box;
  536. display: -webkit-flex;
  537. display: flex;
  538. }
  539. .mod_list .filterlayer_price .filterlayer_price_area_input {
  540. padding: 10px;
  541. border: 0;
  542. -webkit-box-flex: 1;
  543. -webkit-flex: 1;
  544. flex: 1;
  545. width: 100%;
  546. -webkit-appearance: none;
  547. appearance: none;
  548. text-align: center;
  549. border-radius: 3px;
  550. font-size: 14px;
  551. color: #333;
  552. background-color: #f7f7f7;
  553. }
  554. .mod_list
  555. .filterlayer_price
  556. .filterlayer_price_area_input::-webkit-input-placeholder,
  557. .mod_list
  558. .filterlayer_price
  559. .filterlayer_price_area_input:focus::-webkit-input-placeholder {
  560. color: #ccc;
  561. }
  562. .mod_list .filterlayer_price .filterlayer_price_area_hyphen {
  563. position: relative;
  564. width: 30px;
  565. height: 40px;
  566. }
  567. .mod_list .filterlayer_price .filterlayer_price_area_hyphen:before {
  568. content: "";
  569. position: absolute;
  570. top: 50%;
  571. left: 50%;
  572. margin-left: -5px;
  573. width: 10px;
  574. height: 1px;
  575. background-color: #e5e5e5;
  576. }
  577. .mod_list .filterlayer_price .filterlayer_price_choices {
  578. margin-top: 10px;
  579. display: -webkit-box;
  580. display: -webkit-flex;
  581. display: flex;
  582. }
  583. .mod_list .filterlayer_price .filterlayer_price_choice {
  584. -webkit-box-flex: 1;
  585. -webkit-flex: 1;
  586. flex: 1;
  587. box-sizing: border-box;
  588. text-align: center;
  589. line-height: 1.5;
  590. height: 40px;
  591. border-radius: 4px;
  592. background-color: #f7f7f7;
  593. }
  594. .mod_list .filterlayer_price .filterlayer_price_choice:not(:last-child) {
  595. margin-right: 10px;
  596. }
  597. .mod_list .filterlayer_price .filterlayer_price_choice.active {
  598. position: relative;
  599. background-color: #fdf0f0;
  600. }
  601. .mod_list
  602. .filterlayer_price
  603. .filterlayer_price_choice.active
  604. .filterlayer_price_choice_text,
  605. .mod_list
  606. .filterlayer_price
  607. .filterlayer_price_choice.active
  608. .filterlayer_price_choice_tips {
  609. color: #e4393c;
  610. }
  611. .mod_list .filterlayer_price .filterlayer_price_choice.active:after {
  612. content: "";
  613. position: absolute;
  614. right: 0;
  615. bottom: 0;
  616. width: 15px;
  617. height: 15px;
  618. border-radius: 0 0 2px 0;
  619. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeBAMAAADJHrORAAADKGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMwNjcgNzkuMTU3NzQ3LCAyMDE1LzAzLzMwLTIzOjQwOjQyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo3MDJDOUJFQ0ZDMzIxMUU2OURBRkQzQzQ3MjZDMDk3MSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo3MDJDOUJFREZDMzIxMUU2OURBRkQzQzQ3MjZDMDk3MSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjI3RDk0Q0ZGRkMwNDExRTY5REFGRDNDNDcyNkMwOTcxIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjI3RDk0RDAwRkMwNDExRTY5REFGRDNDNDcyNkMwOTcxIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+lPQpmAAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAhUExURUdwTOQ5POQ5PPrV1f///+dGSO17ff3u7/Kio+lcXvW4ufnubEoAAAACdFJOUwB/timhlQAAAH1JREFUGNNdzkEOQDAQheG6Qo/whNjjBBWs9QbiCFzExl4cFG1HzOvuz5fpjDHqZTqNJQYxiEEMYhCDGMQgBjGIQQxiEOPPRf114NxJx+lrkw5cDXvqyEsv/z1cT2U3p365aY9R9r3T3q1n6ri7cXJPPM23qeVyudfq1gxi3DyiIhPh30TpAAAAAElFTkSuQmCC)
  620. no-repeat;
  621. background-size: 15px auto;
  622. overflow: hidden;
  623. z-index: 1;
  624. }
  625. .mod_list .filterlayer_price .filterlayer_price_choice_text {
  626. font-size: 14px;
  627. color: #666;
  628. }
  629. .mod_list .filterlayer_price .filterlayer_price_choice_tips {
  630. margin-top: -1px;
  631. font-size: 12px;
  632. color: #999;
  633. }
  634. .filterlayer_bottom_buttons {
  635. display: -webkit-box;
  636. display: -webkit-flex;
  637. display: flex;
  638. z-index: 100;
  639. position: absolute;
  640. bottom: 0;
  641. left: 0;
  642. right: 0;
  643. box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.07);
  644. }
  645. .filterlayer_bottom_buttons .filterlayer_bottom_button {
  646. -webkit-box-flex: 1;
  647. -webkit-flex: 1;
  648. flex: 1;
  649. font-size: 16px;
  650. height: 49px;
  651. line-height: 49px;
  652. text-align: center;
  653. }
  654. .filterlayer_bottom_buttons .filterlayer_bottom_button.bg_1 {
  655. color: #333;
  656. background-color: #fff;
  657. }
  658. .filterlayer_bottom_buttons .filterlayer_bottom_button.bg_2 {
  659. color: #fff;
  660. background-color: #005395;
  661. }
  662. .filterlayer_bottom_buttons .filterlayer_bottom_button.btn_close {
  663. position: relative;
  664. -webkit-box-flex: 0;
  665. -webkit-flex: none;
  666. flex: none;
  667. width: 50px;
  668. background: #fff
  669. url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAA2UExURUdwTM3NzdbW1tHR0c3Nzc3Nzc7Ozs3Nzc3Nzc7Ozs/Pz8/Pz83Nzc3Nzc3Nzc7Ozs3NzczMzJQCJMgAAAARdFJOUwCOCBPu2C/35TsjS8Vss198Q0IebwAAANRJREFUOMvV1MsShSAIAFAyzVcv//9nr2Q1mhB3mysaTinCBPCRtbiBTw5uuWOXEiuHlFz9wMk2pVZOolsViPLpTrk/3d65LOdeopvV8+1e0u6US3W5jAMYG3m4kb6zWr65LE1ObxhtOTAj39dLSq5Iu8nulFZ2AAF3TybIw4n7loreV7QIbZScz87lQbb+DxeCKNHpCWDS79Lr4orUrJxu18ak8/3XKVef6zpv15Gu0nIDsqPl4SLVpVbSjpCG6y5KUxXMTwHKqvTVcNOiolm/8veGH3IZD4fmfbhWAAAAAElFTkSuQmCC)
  670. 50% no-repeat;
  671. background-size: 20px;
  672. }
  673. .filterlayer_bottom_buttons .filterlayer_bottom_button.btn_close:after {
  674. content: "";
  675. position: absolute;
  676. z-index: 1;
  677. pointer-events: none;
  678. background-color: #e5e5e5;
  679. width: 1px;
  680. top: 0;
  681. bottom: 0;
  682. right: 0;
  683. right: -6px;
  684. top: 8px;
  685. bottom: 7px;
  686. }
  687. @media only screen and (-webkit-min-device-pixel-ratio: 2) {
  688. .filterlayer_bottom_buttons .filterlayer_bottom_button.btn_close:after {
  689. -webkit-transform: scaleX(0.5);
  690. -webkit-transform-origin: 100% 50%;
  691. }
  692. }
  693. .filterlayer_bottom_buttons .filterlayer_bottom_button_small_text {
  694. font-size: 12px;
  695. }
  696. input[type="search"]::-webkit-search-cancel-button,
  697. input[type="search"]::-webkit-search-decoration,
  698. input[type="search"]::-webkit-search-results-button,
  699. input[type="search"]::-webkit-search-results-decoration {
  700. display: none;
  701. }
  702. .tags_selection_custom {
  703. margin: 15px 0;
  704. font-size: 14px;
  705. text-align: center;
  706. background-color: #fff
  707. }
  708. .tags_selection_custom .cube-checkbox{
  709. padding: 0 10px;
  710. }
  711. .tags_selection_custom /deep/ .cube-checkbox_checked .cube-checkbox-ui i{
  712. color: #005395;
  713. }
  714. .tags_selection {
  715. margin: 15px 0;
  716. padding: 10px 0 0 10px;
  717. font-size: 14px;
  718. text-align: center;
  719. background-color: #fff
  720. }
  721. .tags_selection .label_li {
  722. margin-bottom: 3px;
  723. padding-right: 27px;
  724. text-align: left;
  725. line-height: 33px
  726. }
  727. .tags_selection .label_li .li_line {
  728. display: -webkit-box;
  729. display: -webkit-flex;
  730. display: flex
  731. }
  732. .tags_selection .label_li .li_line .big {
  733. height: 25px;
  734. max-width: 250px;
  735. overflow: hidden;
  736. font-size: 16px;
  737. color: #333;
  738. text-overflow: ellipsis
  739. }
  740. .tags_selection .label_li .li_line .right {
  741. overflow: hidden;
  742. text-overflow: ellipsis;
  743. white-space: nowrap;
  744. -webkit-box-flex: 1;
  745. -webkit-flex: 1;
  746. flex: 1;
  747. margin-left: 5px;
  748. text-align: right;
  749. font-size: 12px;
  750. color: #999
  751. }
  752. .tags_selection .label_li .li_line .right.color_red {
  753. color: #e4393c
  754. }
  755. .search_jx .tags_selection .label_li .li_line .right.color_red {
  756. color: #ff4142
  757. }
  758. .tags_selection .option {
  759. box-sizing: border-box;
  760. float: left;
  761. width: 33.33%;
  762. padding-right: 10px;
  763. height: 30px;
  764. line-height: 30px;
  765. margin-bottom: 10px;
  766. overflow: hidden
  767. }
  768. .tags_selection .option a {
  769. position: relative;
  770. display: block;
  771. padding: 0 5px;
  772. color: #666;
  773. background-color: #f7f7f7;
  774. border-radius: 4px
  775. }
  776. .search_jx .tags_selection .option a {
  777. border-radius: 20px
  778. }
  779. .tags_selection .option.selected a {
  780. color: #e4393c;
  781. background-color: #fdf0f0;
  782. height: 30px;
  783. line-height: 30px
  784. }
  785. .search_jx .tags_selection .option.selected a {
  786. color: #ff4142;
  787. height: 28px;
  788. line-height: 28px;
  789. background: #fff0f0;
  790. border: 1px solid #ff4142
  791. }
  792. .tags_selection .option.selected a:after {
  793. content: "";
  794. position: absolute;
  795. right: 0;
  796. bottom: 0;
  797. width: 15px;
  798. height: 15px;
  799. border-radius: 0 0 2px 0;
  800. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeBAMAAADJHrORAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAhUExURUdwTOQ4POQ5PPrV1f///+dGSO17ff3u7/Kio+lcXvW4uZrptW4AAAACdFJOUwB/timhlQAAAH1JREFUGNNdzkEOQDAQheG6Qo/whNjjBBWs9QbiCFzExl4cFG1HzOvuz5fpjDHqZTqNJQYxiEEMYhCDGMQgBjGIQQxiEOPPRf114NxJx+lrkw5cDXvqyEsv/z1cT2U3p365aY9R9r3T3q1n6ri7cXJPPM23qeVyudfq1gxi3DyiIhPh30TpAAAAAElFTkSuQmCC) no-repeat;
  801. background-size: 15px auto;
  802. overflow: hidden;
  803. z-index: 1
  804. }
  805. .search_jx .tags_selection .option.selected a:after {
  806. content: none
  807. }
  808. .tags_selection .option.arrow a {
  809. background-color: #fff;
  810. overflow: visible
  811. }
  812. .tags_selection .option.arrow a:before {
  813. content: "";
  814. position: absolute;
  815. z-index: 1;
  816. pointer-events: none;
  817. background-color: #ccc;
  818. top: 0;
  819. bottom: 0;
  820. left: 0;
  821. right: 0;
  822. background: none;
  823. border: 1px solid #ccc;
  824. border-radius: 4px
  825. }
  826. @media only screen and (-webkit-min-device-pixel-ratio: 2) {
  827. .tags_selection .option.arrow a:before {
  828. right:-100%;
  829. bottom: -100%;
  830. -webkit-transform: scale(.5);
  831. -webkit-transform-origin: 0 0;
  832. border-radius: 8px
  833. }
  834. }
  835. .search_jx .tags_selection .option.arrow a:before {
  836. border-radius: 40px
  837. }
  838. .tags_selection .option.arrow a:after {
  839. content: "";
  840. display: inline-block;
  841. vertical-align: middle;
  842. margin-top: -2px;
  843. width: 6px;
  844. height: 10px;
  845. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'%3E%3Cpath fill='%23CCC' fill-rule='evenodd' d='M2 20c-.8 0-1.5-.5-1.8-1.2-.3-.8-.2-1.6.4-2.2L7.2 10 .6 3.4c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l8 8c.4.4.6 1 .6 1.4 0 .5-.2 1-.6 1.4l-8 8c-.4.4-1 .6-1.4.6z'/%3E%3C/svg%3E");
  846. background-repeat: no-repeat;
  847. background-size: 100%;
  848. margin-left: 4px
  849. }
  850. @media screen and (min-width: 360px) {
  851. .tags_selection .option.arrow a:after {
  852. margin-left:6px
  853. }
  854. }
  855. .tags_selection .option.disabled a {
  856. background-color: #f2f2f2;
  857. color: #d2d2d2
  858. }
  859. .datalist:after,.mod_clist:after,.pro_filter_more>ul:after,.s_page:after,.search_keywordlist ul:after,.search_prolist.cols_2:after,.search_prolist .search_prolist_attr:after,.search_prolist .search_prolist_info:after,.search_recoword_list:after,.selection.line_cols_2:after,.selection:after,.tags_selection:after {
  860. content: "";
  861. display: block;
  862. clear: both
  863. }
  864. }
  865. </style>