c7d841b5c97ecec11536dfd00d6a9975d1e0338f.svn-base 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. <template>
  2. <div class="head" :class="newIsShrink ?'hiddenbox':'bgcolor'">
  3. <div class="baffleBox allBox" v-show="!newIsShrink">
  4. <div class="box">
  5. <div class="row allAlignment center">
  6. <span style="color:#f8f8f8;font-size:0.24rem;">余额:{{cash}}</span>
  7. <span style="font-size:0.28rem; color:#333333;font-weight:bold">投注单</span>
  8. <img style="width:.50rem;height:0.8rem" :src="img_size" alt @click="shrink()">
  9. <!-- style="color:#33333;font-size:0.24rem;" -->
  10. </div>
  11. </div>
  12. <!-- 数据列表 -->
  13. <div class="titleBox" v-for="(item,index) in dataList" :key="index" @click="activekey(index)">
  14. <div class="tilteMatch">
  15. <div class="row item-center allAlignment" style="height:.5rem;padding-left:0.32rem">
  16. <span :style="item.repeat? 'background: #f76649;':'' ">{{item.ganame}}</span>
  17. <span class="cancel" @click.stop="delarr(item.ganame,item.id)">
  18. <img style="width:.25rem;height:.25rem" :src="img" alt>
  19. </span>
  20. </div>
  21. <div class="tilteMatchDiv" style="height:1rem;padding:0 .32rem">
  22. <div class="row item-center" style="height:50%">
  23. <span>{{item.name}}</span>&emsp;
  24. <span>{{item.condition}}</span>@
  25. <span>{{item.odds}}</span>
  26. </div>
  27. <div class="row item-center" style="height:50%;font-size:.15rem">
  28. <span>{{item.home_team}}</span>
  29. <span style="color:#F76649">vs</span>
  30. <span>{{item.guest_team}}</span>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="bettingInput row item-center average" >
  35. <div class="inputBox row allAlignment" >
  36. <input class="input_text " type @click.stop="go()" v-model="bettingNumber[index]" placeholder="投注额" @click="activekey(index)">
  37. <span style="padding:0 0.22rem;" @click.stop="ClearData(index)">
  38. <img style="width:.2rem;height:.2rem" :src="img" alt>
  39. </span>
  40. </div>
  41. <div class>
  42. <span v-if="bettingNumber[index]">{{(bettingNumber[index]*item.odds).toFixed(2)}}</span>
  43. <span v-else>可赢额</span>
  44. </div>
  45. </div>
  46. <div class="bottonBox" v-show="clickIndex==index">
  47. <div class="bottonBox-num row allAlignment" style="padding:0 .2rem">
  48. <div @click="additionFun(100,index) ">+100</div>
  49. <div @click="additionFun(1000,index) ">+1000</div>
  50. <div @click="additionFun(10000,index) ">+10000</div>
  51. </div>
  52. <div style="margin-top:0.42rem;margin-bottom:0.42rem">
  53. <div class="row allAlignment center">
  54. <div v-for=" n in 6" @click="updateNumber(n,index)">
  55. <button>{{n}}</button>
  56. </div>
  57. </div>
  58. <div class="row allAlignment center" style="margin-top:0.17rem;">
  59. <div v-for=" n in 3" @click="updateNumber(n+6,index)">
  60. <button>{{n+6}}</button>
  61. </div>
  62. <button @click="updateNumber('0',index)">0</button>
  63. <button @click="updateNumber('00',index)">00</button>
  64. <button @click="delNumder(index)" style="background:rgb(247, 102, 73);font-size:.4rem;line-height:.86rem;">x</button>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <!-- 单注 -->
  70. <div class="showNumber" @click.stop="activekey('all')">
  71. <div v-if="dataList.length>1">
  72. <span v-if="dataList" style="font-size:.3rem">单注</span>
  73. <div class="bettingInput row item-center average">
  74. <div class="inputBox row allAlignment">
  75. <input type @click="go()" v-model="arrNumber" placeholder="投注额">
  76. <span class="cancel" @click.stop="ClearData('all')">
  77. <img style="width:.2rem;height:.2rem" :src="img" alt>
  78. </span>
  79. <!-- <span @click.stop="ClearData('all')">x</span> -->
  80. </div>
  81. <div class>
  82. <span v-if="arrNumber">{{(datamMoney).toFixed(2)}}</span>
  83. <span v-else>可赢额</span>
  84. </div>
  85. </div>
  86. <div class="bottonBox" v-if="clickIndex=='all'">
  87. <div class="bottonBox-num row allAlignment" style="padding:0 .2rem">
  88. <div @click="additionFun(100,'all') ">+100</div>
  89. <div @click="additionFun(1000,'all')">+1000</div>
  90. <div @click="additionFun(10000,'all')">+10000</div>
  91. </div>
  92. <div style="margin-top:0.42rem;margin-bottom:0.42rem">
  93. <div class="row allAlignment center">
  94. <div v-for=" n in 6" @click="updateNumber(n,'all')">
  95. <button>{{n}}</button>
  96. </div>
  97. </div>
  98. <div class="row allAlignment center" style="margin-top:0.17rem;">
  99. <div v-for=" n in 3" @click="updateNumber(n+6,'all')">
  100. <button>{{n+6}}</button>
  101. </div>
  102. <button @click="updateNumber('0','all')">0</button>
  103. <button @click="updateNumber('00','all')">00</button>
  104. <button @click="delNumder('all')"style="background:rgb(247, 102, 73);font-size:.4rem;line-height:.86rem;">x</button>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. <!-- 过关投注 && compound.length > 0 -->
  111. <div v-show="!repeat ">
  112. <div class="row allAlignment center " style="height: 0.8rem;background: #ccc;padding: 0 0.2rem;">
  113. <span>复式连串过关投注</span>
  114. <img style="width:.4rem;height:.4rem" src="../assets/st-imges/xiangxia.png" alt="">
  115. </div>
  116. <div class="showNumber" v-for="(item,index) in compound" @click.stop="activekey('through'+index)" >
  117. <span v-if="dataList" style="font-size:.3rem">{{item.title}}</span>
  118. <div class="bettingInput row item-center average">
  119. <div class="inputBox row allAlignment">
  120. <input type @click="go()" v-model="arrNumber " placeholder="投注额">
  121. <!-- <span @click.stop="ClearData('through')">x</span> -->
  122. <span class="cancel" @click.stop="ClearData('sss')">
  123. <img style="width:.2rem;height:.2rem" :src="img" alt>
  124. </span>
  125. </div>
  126. <div class>
  127. <span v-if="arrNumber">{{(datamMoney).toFixed(2)}}</span>
  128. <span v-else>可赢额</span>
  129. </div>
  130. </div>
  131. <div class="bottonBox" v-if="clickIndex=='through'+index">
  132. <div class="bottonBox-num row allAlignment" style="padding:0 .2rem">
  133. <div @click="additionFun(100,'through',index) ">+100</div>
  134. <div @click="additionFun(1000,'through',index)">+1000</div>
  135. <div @click="additionFun(10000,'through',index)">+10000</div>
  136. </div>
  137. <div style="margin-top:0.42rem;margin-bottom:0.42rem">
  138. <div class="row allAlignment center">
  139. <div v-for=" n in 6" @click="updateNumber(n,'through',index)">
  140. <button>{{n}}</button>
  141. </div>
  142. </div>
  143. <div class="row allAlignment center" style="margin-top:0.17rem;">
  144. <div v-for=" n in 3" @click="updateNumber(n+6,'through',index)">
  145. <button>{{n+6}}</button>
  146. </div>
  147. <button @click="updateNumber('0','through',index)">0</button>
  148. <button @click="updateNumber('00','through',index)">00</button>
  149. <button @click="delNumder('through')"style="background:rgb(247, 102, 73);font-size:.4rem;line-height:.86rem;">x</button>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <div v-show="repeat" class="row center">
  156. <span>红色选项不可以结合进行过关投注</span>
  157. </div>
  158. <!-- 总数据展示 -->
  159. <div class="row allAlignment" style="padding:.1rem .2rem">
  160. <span v-if="dataNum" class="showNumberSpan">所有投注({{dataNum}}):</span>
  161. <span v-else class="showNumberSpan">所有投注:</span>
  162. <span v-if="dataNumbe" style="font-size:0.24rem">{{(dataNumbe)}}</span>
  163. <span v-else style="font-size:0.24rem">0.00</span>
  164. </div>
  165. <div class="row allAlignment" style="padding:0 .2rem">
  166. <span class="showNumberSpan">可赢金额:</span>
  167. <span v-if="datamMoney" style="font-size:0.24rem;color:#F76649;">{{(datamMoney).toFixed(2)}}</span>
  168. <span v-else style="font-size:0.24rem;color:#F76649;">0.00</span>
  169. </div>
  170. <div class="btn" style="background:#F76649;" @click="betOrder" v-if="isLogin">
  171. <span> 确认投注</span>
  172. </div>
  173. <div class="btn" style="background:#F76649;" @click="loginReg" v-else>
  174. <span >登陆/注册</span>
  175. </div>
  176. <div class="btn" style="background:#A1A1A1;">
  177. <span>添加更多的选择</span>
  178. </div>
  179. <div class="btn" style="background:#333;margin-bottom:.5rem;" @click.stop="alldel()">
  180. <span>全删除</span>
  181. </div>
  182. </div>
  183. <!-- <div class="loading_box row center" >
  184. <div class="weui-loading"></div>
  185. </div> -->
  186. <div class="shrink" :style="newIsShrink?'':'display:none'" @click="show()">
  187. 投注单--选项
  188. <span class="num">{{dataList?dataList.length:'0'}}</span>
  189. </div>
  190. <div v-if="isshow" class="login"><Login></Login></div>
  191. <div v-else-if="rgShow" class="login" ><register></register></div>
  192. </div>
  193. </template>
  194. <script>
  195. import "../css/index.css";
  196. import Login from "@/pages/Login/index/StLogin";
  197. import register from "@/pages/Login/index/register";
  198. export default {
  199. data() {
  200. return {
  201. img: require("../assets/st-imges/del.png"),
  202. img_size: require("../assets/st-imges/narrow.png"),
  203. bettingNumber:[],
  204. balance: "",//余额
  205. bettingquantity: "",
  206. // 投注信息
  207. betting: "",
  208. dataList:[],
  209. arr: [],
  210. // 是否缩小
  211. isshrink: false,
  212. //小键盘显示位
  213. clickIndex:0,
  214. // money:0,//可赢金额
  215. arrNumber:'',//单注数量
  216. dataNum:0,//已投注数量
  217. dataNumbe:0,//总投数
  218. datamMoney:0,//可赢总金额
  219. isThrough:false,//触发过关玩法
  220. cash:0.00,//余额
  221. compound:[],//复合玩法
  222. repeat:false,//判断比赛数据是否有相同赛事
  223. isLogin:false,//是否登陆
  224. isshow:false,//登陆显示/隐藏
  225. rgShow:false,//注册显示/隐藏
  226. };
  227. },
  228. components:{
  229. Login,
  230. register
  231. },
  232. methods: {
  233. /*---------------------------------- */
  234. //阻止input框获取焦点
  235. go: function() {
  236. document.activeElement.blur();
  237. },
  238. /*---------------------------------- */
  239. //小键盘数字字符串拼接
  240. updateNumber: function(val,index) {
  241. // console.log(index);
  242. let temporaryData = '';
  243. let numbers = 0;
  244. this.dataList.forEach((e,i)=>{
  245. if(index !='all'){
  246. if(index==i){
  247. temporaryData = this.bettingNumber[index]*1 ? this.bettingNumber[index]+(val+''): val+'';
  248. this.bettingNumber.splice(index,1,temporaryData);
  249. console.log( this.bettingNumber[i]);
  250. }
  251. }else{
  252. temporaryData = this.bettingNumber[i]*1 ? this.bettingNumber[i]+(val+''): val+'';
  253. this.bettingNumber.splice(i,1,temporaryData);
  254. //numbers +=
  255. this.arrNumber = temporaryData
  256. }
  257. })
  258. console.log(this.bettingNumber);
  259. //this.profitFun()
  260. },
  261. /*---------------------------------------------*/
  262. //投注加法
  263. additionFun:function(val,index){
  264. let data = '';
  265. this.dataList.forEach((e,i)=>{
  266. if(index !='all'){
  267. if(index==i){
  268. data = this.bettingNumber[index]*1 ? (this.bettingNumber[index]*1+val)+'': val+'';
  269. this.bettingNumber.splice(index,1,data);
  270. }
  271. }else{
  272. let dataAdd = 0;
  273. data = this.bettingNumber[i]*1 ? (this.bettingNumber[i]*1+val)+'': val+'';
  274. dataAdd +=data*1;
  275. this.bettingNumber.splice(i,1,data);
  276. this.arrNumber = data
  277. }
  278. })
  279. this.profitFun()
  280. },
  281. /*---------------------------------- */
  282. //删除投注数的一位数
  283. delNumder: function(index) {
  284. let Str = this.bettingNumber;
  285. let strVal='';
  286. if(index !='all'){
  287. Str.forEach((e,i)=>{
  288. if(i==index){
  289. strVal = e;
  290. e= strVal.substring(0, strVal.length - 1);
  291. this.bettingNumber.splice(index,1,e);
  292. }
  293. })
  294. }else{
  295. Str.forEach((e,i)=>{
  296. strVal= e.substring(0, e.length - 1);
  297. console.log(strVal);
  298. this.bettingNumber.splice(i,1,strVal);
  299. })
  300. this.arrNumber = this.arrNumber.substring(0, this.arrNumber.length - 1) ;
  301. }
  302. this.profitFun()
  303. },
  304. /*---------------------------------- */
  305. //清空input框数据
  306. ClearData: function(index) {
  307. this.bettingNumber.forEach((e,i)=>{
  308. if(index !='all'){
  309. if(i==index){
  310. this.bettingNumber.splice(index,1,'');
  311. }
  312. }else{
  313. this.bettingNumber.splice(i,1,'');
  314. this.arrNumber = '';
  315. }
  316. })
  317. this.profitFun()
  318. },
  319. /*---------------------------------- */
  320. // 删除所有投注
  321. alldel() {
  322. let betting = this.$store.getters.getBetting;
  323. betting.forEach(e=>{
  324. e.data=[]
  325. })
  326. this.bettingNumber = [];
  327. this.$store.dispatch("BETTING", []);
  328. this.$store.dispatch("BETTING", betting);
  329. this.$public.setCache("box_size", 2);
  330. this.$store.dispatch("ISBETTING", false);
  331. this.$store.dispatch('DEL_TYPE','all');
  332. this.profitFun();
  333. },
  334. /*---------------------------------- */
  335. // 激活投注框的小键盘
  336. activekey(index) {
  337. this.clickIndex = index;
  338. },
  339. /*---------------------------------- */
  340. // 删除指定的投注数据
  341. delarr(name, numid) {
  342. let betting = this.$store.getters.getBetting;
  343. betting.forEach(res => {
  344. if (res.title == name) {
  345. res.data.forEach((e, index) => {
  346. if (e.id == numid) {
  347. res.data.splice(index, 1);
  348. //删除数据也要删除想对应的值
  349. this.bettingNumber.splice(index,1)
  350. }
  351. });
  352. }
  353. this.$store.dispatch("BETTING", []);
  354. this.$store.dispatch("BETTING", betting);
  355. });
  356. this.$store.dispatch('DEL_TYPE',numid)
  357. this.profitFun()
  358. },
  359. /*---------------------------------- */
  360. //投注窗口放大
  361. shrink() {
  362. this.isshrink = true;
  363. this.$public.setCache("box_size", 1);
  364. },
  365. /*---------------------------------- */
  366. //计算可赢金额(总额)
  367. profitFun(){
  368. let dataNum = 0;
  369. let dataNumbe = 0;
  370. let datamMoney = 0;
  371. this.bettingNumber.forEach((e,i)=> {
  372. if(e){
  373. dataNum ++;
  374. dataNumbe += e*1 ;
  375. datamMoney += e*1*this.dataList[i].odds
  376. }
  377. })
  378. this.dataNum = dataNum;
  379. this.dataNumbe = dataNumbe+'';
  380. this.datamMoney = datamMoney;
  381. },
  382. /*---------------------------------- */
  383. //投注窗口缩小
  384. show() {
  385. this.isshrink = false;
  386. this.$public.setCache("box_size", 2);
  387. },
  388. /*---------------------------------- */
  389. //登陆
  390. loginReg(){
  391. let isShow = true;
  392. this.isshow =true;
  393. this.$store.dispatch("GET_ISSHOW",isShow);
  394. console.log( this.$store.getters.getIsShow);
  395. },
  396. /*------------------------------- */
  397. //投注确认提交
  398. betOrder(){
  399. let list = [],obj ={};
  400. console.log(this.bettingNumber);
  401. //
  402. this.dataList.forEach((res,index)=>{
  403. //console.log(res);
  404. if(this.bettingNumber[index]){
  405. obj ={
  406. type:'1',
  407. index:index,
  408. // odds_id :res.id,
  409. // odds : res.odds,
  410. // odds_only : res.odds_only,
  411. // odds_code:res.p_code,
  412. // condition : res.condition,
  413. bet_amount :this.bettingNumber[index],
  414. // match_id:res.match_id,
  415. // game_code:res.ballId,
  416. }
  417. list.push(obj);
  418. }
  419. })
  420. this.compound.forEach(e=>{
  421. obj ={
  422. type:e.title,
  423. odds:e.odds,
  424. bet_amount :'50',//e.amount
  425. }
  426. list.push(obj);
  427. })
  428. console.log(this.compound);
  429. if(this.compound.length > 0){
  430. list.push(this.dataList);
  431. }
  432. console.log(list);
  433. if(list.length >= 1){
  434. this.$http.post(this.$ports.betOrder.Bet,{data:list,token:this.$public.getItem('token')}).then(res=>{
  435. console.log('数据',res.data);
  436. if(res.data.status ==1){
  437. this.alldel();
  438. // this.cash = (this.cash - obj.bet_amount).toFixed(2);
  439. // let betting = this.$store.getters.getBetting;
  440. // betting.forEach(res => {
  441. // res.data = []
  442. // })
  443. // this.dataList = [];
  444. // this.$store.dispatch("BETTING", []);
  445. // this.$store.dispatch("BETTING", betting);
  446. // this.$store.dispatch("ISBETTING", false);
  447. }
  448. })
  449. }else{
  450. alert('你还未进行投注');
  451. }
  452. },
  453. /*---------------------------------- */
  454. //投注页面数据处理
  455. getDataList:function(val){
  456. let arrays = [];
  457. this.dataList=[];
  458. if (val) {
  459. val.forEach(e => {
  460. e.data.forEach((res,index )=> {
  461. if(this.bettingNumber.length < e.data.length){
  462. this.bettingNumber.push('');
  463. }
  464. res.repeat =false;
  465. this.repeat =false;
  466. arrays.push(res);
  467. //判断比赛数据是否相同赛事
  468. if(arrays.length > 1){
  469. arrays.forEach((data,i)=>{
  470. if(res.match_id == data.match_id && index!= i){
  471. arrays[i].repeat =true;
  472. arrays[index].repeat =true;
  473. this.repeat =true;
  474. }
  475. })
  476. }
  477. });
  478. });
  479. this.dataList = arrays;
  480. // 查看是否还有数据确定是否要关闭窗口
  481. }
  482. if(this.dataList.length == 0){
  483. this.$public.setCache("box_size", 2);
  484. this.$store.dispatch("ISBETTING", false);
  485. }
  486. //console.log('处理完成的数据',this.dataList);
  487. //判断是否有过关玩法
  488. if(this.dataList.length >= 3){
  489. this.compound.splice(0,this.compound.length);
  490. this.isThrough = true;
  491. this.dataList.forEach((res,index) =>{
  492. if(index >= 2){
  493. //this.$public.betPlay(index+1,this.dataList)
  494. this.compound.push(this.$public.betPlay(index+1,this.dataList));
  495. }
  496. })
  497. }else{
  498. this.compound.splice(0,this.compound.length)
  499. }
  500. },
  501. /*---------------------------------- */
  502. //获取用户个人信息
  503. getUserInfo(){
  504. this.$http.post(this.$ports.login.getAgent,{token:this.$public.getItem('token')}).then(res=>{
  505. //console.log(res);
  506. if(res.data.status == 1 && res.data.data != null){
  507. this.cash = res.data.data.cash;
  508. this.isLogin =true;
  509. }
  510. })
  511. }
  512. },
  513. /**
  514. *
  515. */
  516. computed: {
  517. //获取vuex投注数据
  518. getBetting: function() {
  519. return this.$store.getters.getBetting;
  520. },
  521. /*------------------------------*/
  522. //获取投注框放大缩小状态
  523. newIsShrink() {
  524. return this.isshrink;
  525. },
  526. getRgShow(){
  527. return this.$store.getters.getRgShow;
  528. },
  529. getIsShow(){
  530. return this.$store.getters.getIsShow;
  531. },
  532. getToken(){
  533. return this.$store.getters.getToken;
  534. }
  535. },
  536. /**
  537. *
  538. */
  539. watch: {
  540. getIsShow(val) {
  541. this.isshow = val
  542. },
  543. getBetting(val) {
  544. console.log('数据变法没有',val);
  545. this.getDataList(val);
  546. },
  547. //显示注册页面
  548. getRgShow(val){
  549. this.rgShow = val;
  550. this.isshow = val ? false :true;
  551. console.log(this.rgShow);
  552. },
  553. getToken(val){
  554. this.isLogin = true
  555. }
  556. },
  557. /**
  558. * 页面初始化完成进行挂载
  559. */
  560. mounted() {
  561. if (this.$public.getCache("box_size") == 1) {
  562. this.isshrink = true;
  563. }
  564. this.getDataList(this.$store.getters.getBetting);
  565. this.getUserInfo();
  566. //console.log('token',this.$public.getItem('token'));
  567. if(this.$public.getItem('token')){
  568. this.isLogin = true
  569. }
  570. }
  571. };
  572. </script>
  573. <style scoped>
  574. .login{
  575. z-index: 999999;
  576. position: fixed;
  577. top: 0;
  578. }
  579. .num {
  580. display: inline-block;
  581. width: 0.46rem;
  582. height: 0.46rem;
  583. background: #dcdcdc;
  584. border-radius: 50%;
  585. line-height: 0.46rem;
  586. text-align: center;
  587. color: #f76649;
  588. }
  589. .bgcolor {
  590. background: rgba(40, 40, 40, 0.75);
  591. height: 55rem;
  592. }
  593. .hiddenbox {
  594. height: 1rem;
  595. }
  596. .head {
  597. position: relative;
  598. display: flex;
  599. justify-content: center;
  600. position: fixed;
  601. top: 0;
  602. width: 100%;
  603. z-index: 1000000;
  604. }
  605. .baffleBox {
  606. position: fixed;
  607. overflow-y: scroll;
  608. top: 0;
  609. left: 0.4rem;
  610. width: 100%;
  611. height: 100%;
  612. -webkit-overflow-scrolling: touch;
  613. z-index: 29;
  614. box-sizing: border-box;
  615. }
  616. .allBox {
  617. margin-top: 1.04rem;
  618. width: 90%;
  619. height: 11.5rem;
  620. overflow-y: auto;
  621. background: #f8f8f8;
  622. border-radius: 0.1rem 0.1rem;
  623. }
  624. .box {
  625. background: #f76649;
  626. border-radius: 0.1rem 0.1rem 0 0;
  627. height: 1rem;
  628. line-height: 1rem;
  629. padding: 0 0.32rem 0 0.22rem;
  630. }
  631. .bottonBox {
  632. margin-top: 0.1rem;
  633. padding: 0.22rem;
  634. background: #ccc;
  635. }
  636. .titleBox {
  637. padding: 0.21rem 0.07rem;
  638. border-bottom: 1px solid #ebebeb;
  639. }
  640. .bettingInput {
  641. height: 0.9rem;
  642. margin-top: 0.1rem;
  643. }
  644. .inputBox {
  645. width: 4.31rem;
  646. height: 0.8rem;
  647. border: 1px solid #f76649;
  648. border-radius: 0.1rem;
  649. line-height: 0.8rem;
  650. padding-left:0.22rem;
  651. }
  652. input {
  653. border: 0;
  654. width: 4rem;
  655. }
  656. .tilteMatch {
  657. height: 1.52rem;
  658. background: #ebebeb;
  659. }
  660. .tilteMatchDiv {
  661. margin-left: 0.13rem;
  662. }
  663. .cancel {
  664. padding: 0 0.25rem;
  665. }
  666. button {
  667. width: 0.96rem;
  668. height: 0.88rem;
  669. border: 0;
  670. background: #a1a1a1;
  671. border-radius: 0.1rem;
  672. color: #f8f8f8;
  673. }
  674. .bottonBox-num > div {
  675. display: flex;
  676. justify-content: space-around;
  677. align-items: center;
  678. width: 1.5rem;
  679. height: 0.8rem;
  680. border-radius: 0.2rem;
  681. color: #ebebeb;
  682. background: #a1a1a1;
  683. margin-left: 0.2rem;
  684. }
  685. .showNumber {
  686. /* margin-top: 0.36rem; */
  687. border-bottom: 1px solid #ebebeb;
  688. padding-top: 0.2rem;
  689. padding: 0.21rem 0.2rem;
  690. }
  691. .btn {
  692. width: 100%;
  693. height: 0.94rem;
  694. border-radius: 0.1rem;
  695. line-height: 0.94rem;
  696. color: #f8f8f8;
  697. text-align: center;
  698. margin-top: 0.2rem;
  699. }
  700. .showNumberSpan {
  701. color: #363636;
  702. font-size: 0.28rem;
  703. }
  704. .shrink {
  705. height: 1rem;
  706. width: 100%;
  707. background: #f76649;
  708. color: #dcdcdc;
  709. position: fixed;
  710. bottom: 0rem;
  711. line-height: 1rem;
  712. text-align: center;
  713. font-size: 0.3rem;
  714. }
  715. .loading_box{
  716. width: 3rem;
  717. height: 3rem;
  718. background:#ebebeb;
  719. }
  720. </style>