7564bddc50eab76525fef676ab909aa85241df05.svn-base 21 KB

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