53e8ae3c753d4030f182a4b23c2ccb176b1e86b8.svn-base 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  1. <template>
  2. <div>
  3. <div class="serch row item-center allAlignment" v-if="noShow">
  4. <div class="row center all pointer hover br05 fz14" @click="elasticFrame()">
  5. <span style="font-size:.14rem;color:#ccc;">选择联赛</span>
  6. </div>
  7. <div class="row item-center">
  8. <div class="row item-center">
  9. <input
  10. class="fz14"
  11. type="text"
  12. placeholder="请输入联赛和球队名称"
  13. v-model="serchTxt"
  14. onkeyup="this.value=this.value.replace(/\s+/g,'')"
  15. color="#AAA"
  16. >
  17. <div class="row center serch-img pointer hover" @click="Search()">
  18. <img src="@/assets/st-imges/serch.png" alt>
  19. </div>
  20. </div>
  21. <div class="row item-center">
  22. <div class="row center clear pointer hover br05 fz14" @click="clearSearchTxt()">清除</div>
  23. <div class="row center redraw pointer hover br05" @click="red()">
  24. <img src="@/assets/st-imges/redraw.png" alt>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. <!-- 日期 -->
  30. <div v-if="(this.$store.getters.getActivity == 'StMorningPlate'||this.$store.getters.getActivity == 'StStringScene')" class="date row item-center pdg20">
  31. <nav class="row datebox scroll allAlignment">
  32. <p @click="dateActive(item.id)" :class="dateClick == item.id?'dateShow':''" v-for="(item,index) in date" :key="index">{{item.title}}</p>
  33. </nav>
  34. </div>
  35. <div class="singleAndDouble" v-for="(item,index) in data" :key="index">
  36. <div class="singleAndDouble-header pdg20 row">
  37. <div style="width:25%;min-height:.5rem;font-size:.16rem;" class="row item-center">{{item.leagueName}}</div>
  38. <div style="width:37%;height:100%" class="singleAndDouble-header-title">
  39. <div class="row center">全场</div>
  40. <div class="row item-center allAlignment" style="padding:0 .7rem;color:#999">
  41. <p>1</p>
  42. <p>X</p>
  43. <p>2</p>
  44. </div>
  45. </div>
  46. <div style="width:37%;height:100%" class="singleAndDouble-header-title">
  47. <div class="row center">上半场</div>
  48. <div class="row item-center allAlignment" style="padding:0 .7rem;color:#999">
  49. <p>1</p>
  50. <p>X</p>
  51. <p>2</p>
  52. </div>
  53. </div>
  54. </div>
  55. <div
  56. class="singleAndDouble-body row pdg20"
  57. style="border-bottom:.01rem solid #ddd"
  58. v-for="(items,i) in item.matchData"
  59. :key="i"
  60. >
  61. <div style="width:25%;" class="row item-center">
  62. <div
  63. style="width:.8rem;text-align:center;margin-right:.1rem;height:100%;line-height:.2rem;padding:.05rem 0;"
  64. >
  65. <p>{{items.match_date}}</p>
  66. <p style="font-size:.12rem;color:#F76649">{{items.match_time}}</p>
  67. <p>
  68. <img style="width:.14rem;height:.14rem" src="@/assets/st-imges/shizhong.png">
  69. </p>
  70. </div>
  71. <div>
  72. <p>{{items.home_team}}</p>
  73. <p style="margin-top:.1rem;">{{items.guest_team}}</p>
  74. </div>
  75. </div>
  76. <!-- 全场 -->
  77. <div
  78. style="width:37%;padding:0 .2rem;border-right:.01rem solid #ddd;"
  79. class="row item-center"
  80. >
  81. <div v-for="(itemList,idx) in items.oddsData" :key="itemList.id" style="position: relative;">
  82. <div
  83. v-if="itemList.odds_code == 'ch' || itemList.odds_code == 'cg' || itemList.odds_code == 'cd'"
  84. :class="itemList.odds_code == 'ch' ?'list-left':itemList.odds_code == 'cg'?'list-center':'list-right'"
  85. >
  86. <p
  87. class="singleAndDouble-list-btn"
  88. v-if="itemList.odds_code == 'ch'"
  89. @click="selection(index,i,idx,itemList.id,itemList.p_code,items.match_id,items.home_team,items.guest_team,items.home_team,'独赢')"
  90. :class="{col:itemList.isTrue,rising:itemList.change == 'rising',falling:itemList.change == 'falling'}"
  91. >{{itemList.odds?itemList.odds:'-'}}</p>
  92. <p
  93. class="singleAndDouble-list-btn"
  94. v-if="itemList.odds_code == 'cg'"
  95. @click="selection(index,i,idx,itemList.id,itemList.p_code,items.match_id,items.home_team,items.guest_team,items.guest_team,'独赢')"
  96. :class="{col:itemList.isTrue,rising:itemList.change == 'rising',falling:itemList.change == 'falling'}"
  97. >{{itemList.odds?itemList.odds:'-'}}</p>
  98. <p
  99. class="singleAndDouble-list-btn"
  100. v-if="itemList.odds_code == 'cd'"
  101. @click="selection(index,i,idx,itemList.id,itemList.p_code,items.match_id,items.home_team,items.guest_team,'和','独赢')"
  102. :class="{col:itemList.isTrue,rising:itemList.change == 'rising',falling:itemList.change == 'falling'}"
  103. >{{itemList.odds?itemList.odds:'-'}}</p>
  104. </div>
  105. </div>
  106. </div>
  107. <!-- 半场 -->
  108. <div style="width:37%;padding:0 .2rem;" class="row item-center">
  109. <div v-for="(itemList,idx) in items.oddsData" :key="itemList.id" style="position: relative;">
  110. <div
  111. v-if="itemList.odds_code == 'ch_h' || itemList.odds_code == 'cg_h' || itemList.odds_code == 'cd_h'"
  112. :class="itemList.odds_code == 'ch_h'?'list-left':itemList.odds_code == 'cg_h' ?'list-center':'list-right'"
  113. >
  114. <p
  115. class="singleAndDouble-list-btn"
  116. v-if="itemList.odds_code == 'ch_h'"
  117. @click="selection(index,i,idx,itemList.id,itemList.p_code,items.match_id,items.home_team,items.guest_team,items.home_team,'独赢-上半场')"
  118. :class="{col:itemList.isTrue,rising:itemList.change == 'rising',falling:itemList.change == 'falling'}"
  119. >{{itemList.odds?itemList.odds:'-'}}</p>
  120. <p
  121. class="singleAndDouble-list-btn"
  122. v-if="itemList.odds_code == 'cg_h'"
  123. @click="selection(index,i,idx,itemList.id,itemList.p_code,items.match_id,items.home_team,items.guest_team,items.guest_team,'独赢-上半场')"
  124. :class="{col:itemList.isTrue,rising:itemList.change == 'rising',falling:itemList.change == 'falling'}"
  125. >{{itemList.odds?itemList.odds:'-'}}</p>
  126. <p
  127. class="singleAndDouble-list-btn"
  128. v-if="itemList.odds_code == 'cd_h'"
  129. @click="selection(index,i,idx,itemList.id,itemList.p_code,items.match_id,items.home_team,items.guest_team,'和','独赢-上半场')"
  130. :class="{col:itemList.isTrue,rising:itemList.change == 'rising',falling:itemList.change == 'falling'}"
  131. >{{itemList.odds?itemList.odds:'-'}}</p>
  132. </div>
  133. </div>
  134. <!-- <p class="singleAndDouble-list-btn">{{items.half.odd?items.half.odd:'-'}}</p>
  135. <p class="singleAndDouble-list-btn">{{items.half.odd?items.half.odd:'-'}}</p>
  136. <p class="singleAndDouble-list-btn">{{items.half.event?items.half.event:'-'}}</p>-->
  137. </div>
  138. <div @click="promptInfo()" class="right-img">
  139. <img style="margin-bottom:.1rem" src="@/assets/st-imges/TheGame.png">
  140. <br>
  141. <img src="@/assets/st-imges/TheScore.png">
  142. </div>
  143. </div>
  144. </div>
  145. <div v-if="noData">
  146. <noData/>
  147. </div>
  148. </div>
  149. </template>
  150. <script>
  151. import "@/css/index.css";
  152. import noData from '@/components/noData';
  153. export default {
  154. name: "OnlyWin1X2",
  155. components:{
  156. noData
  157. },
  158. data() {
  159. return {
  160. data: [],
  161. serchTxt: "",
  162. // pCode: this.$store.getters.getPaly_code, //传入接口的值
  163. activity: this.$store.getters.getActivity,
  164. // ballCode: this.$store.getters.getBallCode,
  165. timers:true,
  166. noData : false, //无数据显示
  167. limit : '',
  168. passLimit:'',
  169. lg_id:'',//联赛 需要拷贝
  170. dataList:[],
  171. date: [{id:'all',title:'全部'}],//日期
  172. dateClick:'all',//激活的日期
  173. noShow:true, // 无数据时不显示
  174. };
  175. },
  176. mounted() {
  177. //获取选择的联赛id
  178. if(this.$store.getters.getLeagueData.length >0 ){
  179. if(this.$store.getters.getLeagueData.length == 1){
  180. this.lg_id = this.$store.getters.getLeagueData[0]
  181. }else{
  182. this.lg_id = this.$store.getters.getLeagueData.join(',');
  183. }
  184. }
  185. //需要拷贝
  186. this.$store.dispatch("GETLOADING", true);
  187. this.getAJAX(this.lg_id);
  188. this.$store.dispatch("SET_BETTING",[]);
  189. let _this = this;
  190. this.$public.ajaxTimerFun((timing)=>{
  191. if(_this.timers){
  192. this.getAJAX(_this.lg_id,_this.serchTxt);
  193. }else{
  194. clearInterval(timing)
  195. }
  196. })
  197. },
  198. beforeDestroy() {
  199. this.timers = false;
  200. },
  201. methods: {
  202. /*******************直播比赛数据提示*******************/
  203. promptInfo(){
  204. this.$dialog.alert({mes: '此功能占未开放'});
  205. },
  206. getAJAX(lg_id,search) {
  207. if(this.$store.getters.getActivity == 'StStringScene'){
  208. this.$store.dispatch("SET_BETTINGTYPE", 2);
  209. }else{
  210. this.$store.dispatch("SET_BETTINGTYPE", 1);
  211. }
  212. this.$http
  213. .get(this.$ports.home.gameList, {
  214. type: this.$store.getters.getActivity,
  215. p_code: this.$store.getters.getPaly_code,
  216. game_code: this.$store.getters.getBallCode,
  217. match_date:this.dateClick == 'all'? '': this.dateClick,
  218. lg_id,
  219. search,
  220. })
  221. .then(res => {
  222. if (res.data.status == 1 && res.data.data.length > 0) {
  223. this.noData = false;
  224. // //数据匹配判断是否上一次有数据
  225. // if(this.dataList.length){
  226. // this.$public.oddsDataUpdate(res.data.data[0],this.dataList,1)
  227. // }
  228. this.data = res.data.data[0];
  229. let betting = '';
  230. //console.log(this.data,'res')
  231. //临时储存数据
  232. this.dataList = res.data.data[0];
  233. if(this.$store.getters.getActivity == 'StStringScene'){
  234. betting = this.$store.getters.getPassBetting;
  235. }else{
  236. betting = this.$store.getters.getBetting;
  237. }
  238. this.dataGroup(this.data,betting)
  239. // console.log('data',this.data)
  240. this.$store.dispatch("GETLOADING", false);
  241. }else{
  242. this.noData = true;
  243. }
  244. this.noShow = true;
  245. this.$store.dispatch("GETLOADING", false);
  246. });
  247. },
  248. // 进入添加选中效果
  249. dataGroup(data,betting){
  250. if(betting != null && betting.length > 0){
  251. // console.log('bet',betting)
  252. data.forEach(e =>{
  253. e.matchData.forEach(k =>{
  254. k.oddsData.forEach(item =>{
  255. betting.forEach(i =>{
  256. i.data.forEach(j =>{
  257. if(j.id == item.id){
  258. item.isTrue = true
  259. }
  260. })
  261. })
  262. })
  263. })
  264. })
  265. }
  266. },
  267. // 修改选中样式
  268. // 选中
  269. selection(idx,i,index,id,p_code,match_id,homeName,guestName,name,playName) {
  270. //调用投注公共方法
  271. let _this = this;
  272. let ballId = this.$store.getters.getBallCode;
  273. let teamName = {
  274. home : homeName,
  275. guest : guestName
  276. }
  277. let acty = this.$store.getters.getActivity;
  278. if(this.$store.getters.getActivity == 'StStringScene'){
  279. let betting = this.$store.getters.getPassBetting;
  280. if(betting == null){
  281. betting = [];
  282. }
  283. this.$public.strandPublicBetting(this.data,p_code,id,idx,i,index,betting,acty,match_id,playName,name,ballId,homeName,guestName,this.passLimit,function(data,type){
  284. if(type){
  285. _this.$dialog.toast({ mes: "亲,超出表格上限啦。", timeout: 2000 });
  286. }
  287. _this.$store.dispatch("SET_PASSBETTING",[]);
  288. _this.$store.dispatch("SET_PASSBETTING",data);
  289. })
  290. }else{
  291. let betting = this.$store.getters.getBetting;
  292. this.$public.publicBetting(this.data,p_code,id,idx,i,index,betting,acty,match_id,teamName,playName,name,ballId,this.limit,function(data,type){
  293. if(type){
  294. _this.$dialog.toast({ mes: "亲,超出表格上限啦。", timeout: 2000 });
  295. }
  296. _this.$store.dispatch("SET_BETTING",[]);
  297. _this.$store.dispatch("SET_BETTING",data);
  298. })
  299. }
  300. // 串场为单串
  301. if(this.limit < 10){
  302. this.data[idx].matchData.forEach((val,i) =>{
  303. val.oddsData.forEach(item =>{
  304. if(this.$store.getters.getActivity == 'StStringScene'){
  305. if(this.passLimit < 10){
  306. if(val.match_id == match_id){
  307. // 当isTrue值为true时,点击时置为false
  308. if(item.id == id){
  309. console.log(item.isTrue)
  310. if(item.isTrue == true){
  311. this.$forceUpdate();
  312. item.isTrue = false
  313. }else if(item.isTrue = false){
  314. this.$forceUpdate();
  315. item.isTrue = true
  316. }else{
  317. this.$forceUpdate();
  318. this.$set(item, "isTrue", item.isTrue ? false : true);
  319. }
  320. }else{
  321. if(item.isTrue == true){
  322. item.isTrue = false;
  323. }
  324. }
  325. }
  326. }else{
  327. if(item.id == id){
  328. this.$forceUpdate();
  329. this.$set(item,'isTrue',false)
  330. }
  331. }
  332. }else{
  333. if(item.id == id){
  334. this.$forceUpdate();
  335. this.$set(item, "isTrue", item.isTrue ? false : true);
  336. }
  337. }
  338. })
  339. })
  340. // if(this.$store.getters.getActivity == 'StStringScene'){
  341. // this.data[idx].matchData.forEach((val,i) =>{
  342. // val.oddsData.forEach(item =>{
  343. // // 当isTrue值为true时,点击时置为false
  344. // if(val.match_id == match_id){
  345. // // 当isTrue值为true时,点击时置为false
  346. // if(item.isTrue == true){
  347. // item.isTrue = false;
  348. // }
  349. // }
  350. // if(item.id == id){
  351. // this.$forceUpdate();
  352. // this.$set(item, "isTrue", item.isTrue ? false : true);
  353. // }
  354. // })
  355. // })
  356. // }else{
  357. // this.data[idx].matchData.forEach((val, i) => {
  358. // val.oddsData.forEach(item => {
  359. // if (item.id == id) {
  360. // this.$forceUpdate();
  361. // this.$set(item, "isTrue", item.isTrue ? false : true);
  362. // }
  363. // });
  364. // });
  365. // }
  366. }else{
  367. this.data[idx].matchData.forEach(val =>{
  368. val.oddsData.forEach(item =>{
  369. if(item.id == id){
  370. this.$set(item,'isTrue',false)
  371. }
  372. })
  373. })
  374. }
  375. },
  376. //搜索按钮被点击
  377. Search() {
  378. //判断搜索框内是否有值,没有值中断函数
  379. if (this.serchTxt === "") {
  380. this.$dialog.toast({ mes: "请输入您想要搜索的内容。", timeout: 2000 });
  381. return false;
  382. } else {
  383. this.data = [];
  384. this.$store.dispatch("SET_LEAGUEDATA",[]); //需要拷贝
  385. this.getAJAX('',this.serchTxt)
  386. }
  387. },
  388. // 删除搜索框内容
  389. clearSerchTxt() {
  390. if(this.serchTxt){
  391. this.data = [];
  392. this.serchTxt = "";
  393. this.$store.dispatch("SET_LEAGUEDATA",[]); //需要拷贝
  394. this.getAJAX();
  395. }
  396. },
  397. // 刷新
  398. red() {
  399. this.serchTxt = "";
  400. this.lg_id ="";
  401. this.$store.dispatch("SET_LEAGUEDATA",[]); //需要拷贝
  402. if (this.serchTxt.length > 0) {
  403. this.Serch();
  404. } else {
  405. this.data = ''
  406. this.getAJAX();
  407. }
  408. },
  409. //跳转到联赛选择页
  410. elasticFrame() {
  411. this.$store.dispatch("SET_CONTROLROUTING", 10015);
  412. },
  413. // 日期计算
  414. fun_date() {
  415. let date = new Date();
  416. let MonthNum = 0;
  417. let lastMonth = new Date(date.getFullYear(),date.getMonth() + 1,0).getDate();
  418. for (let i = 1; i < 7; i++) {
  419. let years = date.getFullYear();
  420. let month = date.getMonth() + 1;
  421. let day =
  422. date.getDate() + i < 10
  423. ? "0" + (date.getDate() + i)
  424. : date.getDate() + i;
  425. if (date.getDate() + i > lastMonth) {
  426. MonthNum++;
  427. month = date.getMonth() + 2;
  428. day = "0" + MonthNum;
  429. }
  430. let time = {};
  431. time.id = years + "-" + month + "-" + day;
  432. time.title =years+' - '+month + " - " + day;
  433. this.date.push(time);
  434. }
  435. },
  436. //日期按钮按下调用
  437. dateActive(str){
  438. this.dateClick = str;
  439. this.data = ''
  440. this.getAJAX(this.lg_id,this.serchTxt);
  441. },
  442. },
  443. computed: {
  444. getActy() {
  445. return this.$store.getters.getActivity;
  446. },
  447. // getPaly_code() {
  448. // return this.$store.getters.getPaly_code;
  449. // },
  450. // getBallId() {
  451. // return this.$store.getters.getBallCode;
  452. // },
  453. getDeleteType() {
  454. return this.$store.getters.getDeleteType;
  455. },
  456. // 获取投注数量
  457. getLimit() {
  458. return this.$store.getters.getLimit;
  459. },
  460. getPassLimit(){
  461. return this.$store.getters.getPassLimit;
  462. }
  463. },
  464. watch: {
  465. getActy(val) {
  466. // this.activity = val;
  467. this.getAJAX();
  468. this.$store.dispatch("SET_BETTING",[]);
  469. if(val != 'StStringScene'){
  470. this.$store.dispatch("SET_PASSBETTING",[]);
  471. }
  472. },
  473. // getPaly_code(val) {
  474. // this.pCode = val;
  475. // this.getAJAX();
  476. // },
  477. // getBallId(val) {
  478. // this.ballCode = val;
  479. // this.getAJAX();
  480. // },
  481. // 删除选中数据
  482. getDeleteType(val){
  483. let jumpOut = false;
  484. for(var i = 0; i < this.data.length; i++){
  485. for(var k = 0; k < this.data[i].matchData.length; k++){
  486. for(var j = 0; j < this.data[i].matchData[k].oddsData.length;j++){
  487. if(this.data[i].matchData[k].oddsData[j].id == val){
  488. this.$forceUpdate();
  489. this.data[i].matchData[k].oddsData[j].isTrue = false;
  490. jumpOut = true;
  491. break;
  492. }
  493. }
  494. if(jumpOut == true){
  495. break;
  496. }
  497. }
  498. if(jumpOut == true){
  499. break;
  500. }
  501. }
  502. },
  503. getLimit(val){
  504. this.limit = val;
  505. if(this.$store.getters.getActivity == 'StStringScene'){
  506. }else{
  507. if(val == 0){
  508. this.data.forEach(e =>{
  509. e.matchData.forEach(k =>{
  510. k.oddsData.forEach(item =>{
  511. if(item.isTrue){
  512. item.isTrue = false;
  513. }
  514. })
  515. })
  516. })
  517. }
  518. }
  519. },
  520. getPassLimit(val){
  521. this.passLimit = val;
  522. if(this.$store.getters.getActivity == 'StStringScene'){
  523. if(val == 0){
  524. this.data.forEach(e =>{
  525. e.matchData.forEach(k =>{
  526. k.oddsData.forEach(item =>{
  527. if(item.isTrue){
  528. this.$forceUpdate();
  529. item.isTrue = false;
  530. }
  531. })
  532. })
  533. })
  534. }
  535. }
  536. },
  537. },
  538. created(){
  539. this.fun_date();
  540. },
  541. };
  542. </script>
  543. <style scoped>
  544. .list-left {
  545. position: absolute;
  546. left: 0.35rem;
  547. bottom: -0.15rem;
  548. }
  549. .list-center {
  550. position: absolute;
  551. left: 2rem;
  552. bottom: -0.15rem;
  553. }
  554. .list-right {
  555. position: absolute;
  556. left: 1.15rem;
  557. bottom: -0.15rem;
  558. }
  559. .pdg20 {
  560. padding: 0 0.2rem;
  561. }
  562. .singleAndDouble-header {
  563. min-height: 0.5rem;
  564. background: #e5e5e5;
  565. }
  566. .singleAndDouble-header-title div {
  567. height: 0.25rem;
  568. }
  569. .singleAndDouble-body {
  570. position: relative;
  571. background: #fff;
  572. }
  573. .singleAndDouble-body:hover {
  574. background: #fff5e9;
  575. }
  576. .singleAndDouble-list-btn {
  577. width: 0.48rem;
  578. height: 0.3rem;
  579. border: 0.01rem solid #ccc;
  580. line-height: 0.3rem;
  581. text-align: center;
  582. border-radius: 0.05rem;
  583. cursor: pointer;
  584. }
  585. .singleAndDouble-list-btn:hover {
  586. background: #ddd;
  587. color: #f76649;
  588. }
  589. .right-img {
  590. width: 0.15rem;
  591. position: absolute;
  592. right: 0.3rem;
  593. bottom: 0.05rem;
  594. }
  595. .right-img img {
  596. width: 0.22rem;
  597. height: 0.2rem;
  598. }
  599. * {
  600. font-size: 0.14rem;
  601. }
  602. .serch {
  603. width: 100%;
  604. height: 0.5rem;
  605. background: #aaa;
  606. padding: 0 0.2rem;
  607. }
  608. input {
  609. border: none;
  610. background: #efefef;
  611. padding-left: 0.2rem;
  612. width: 4.6rem;
  613. height: 0.3rem;
  614. border-radius: 0.05rem 0 0 0.05rem;
  615. }
  616. .serch-img {
  617. width: 0.5rem;
  618. height: 0.3rem;
  619. background: #666;
  620. border-radius: 0 0.05rem 0.05rem 0;
  621. margin-right: 0.3rem;
  622. }
  623. .all {
  624. width: 1.2rem;
  625. height: 0.3rem;
  626. background: #666;
  627. color: #333;
  628. }
  629. .clear {
  630. width: 0.6rem;
  631. height: 0.3rem;
  632. background: #666;
  633. color: #ccc;
  634. margin-right: 0.1rem;
  635. }
  636. .redraw {
  637. width: 0.3rem;
  638. height: 0.3rem;
  639. background: #666;
  640. }
  641. img {
  642. width: 0.2rem;
  643. height: 0.2rem;
  644. }
  645. .br05 {
  646. border-radius: 0.05rem;
  647. }
  648. .fz14 {
  649. font-size: 0.14rem;
  650. }
  651. .hover:hover {
  652. background: #bbb;
  653. color: #fff!important;
  654. }
  655. .hover:hover span{
  656. color: #fff!important;
  657. }
  658. .pointer {
  659. cursor: pointer;
  660. }
  661. .col {
  662. border-radius: 2px;
  663. background: #f76649;
  664. color: #fff;
  665. }
  666. /* 日期样式 */
  667. .date {
  668. height: 0.4rem;
  669. background: #898989;
  670. font-size: .16rem;
  671. color: #fff;
  672. font-weight: bold;
  673. }
  674. .date > p {
  675. width: 0.26rem;
  676. height: 0.26rem;
  677. background: #bbb;
  678. border-radius: 0.05rem;
  679. }
  680. .date div {
  681. width: 100%;
  682. height: 100%;
  683. }
  684. .datebox {
  685. overflow-x: auto;
  686. overflow-y: hidden;
  687. width: 100%;
  688. height: 0.4rem;
  689. }
  690. .datebox p {
  691. text-align: center;
  692. line-height: .4rem;
  693. padding: 0 .05rem;
  694. cursor: pointer;
  695. font-size: .16rem;
  696. }
  697. .dateShow{
  698. color: #f76649;
  699. }
  700. </style>