expert-analysis.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. <template>
  2. <view>
  3. <view class="select-head">
  4. <u-navbar :leftText="$t('navbar.txt')" bgColor="transparent" leftIconColor="#fff" :titleStyle="{color:'#fff'}" :fixed="false" leftIconSize="48" :autoBack="true"></u-navbar>
  5. </view>
  6. <view class="main">
  7. <!-- <image src="../../static/image/match/expert_context.png" :name="'BASED ON ANALYSIS FROM 7 EXPERTS'" class="heand-pic" mode="aspectFit"></image> -->
  8. <view class="heand-pic flexcenter">
  9. <!-- BASED ON ANALYSIS FROM 7 EXPERTS -->
  10. {{ $t('match.lab33') }}
  11. </view>
  12. <view class="size32 expert-text text-center">
  13. <!-- Expert Predictions Summary -->
  14. {{ $t('match.lab34') }}
  15. </view>
  16. <view class="size28 expert-text text-center">
  17. <!-- Winning Chances -->
  18. {{ $t('match.lab35') }}
  19. </view>
  20. <view class="mg-tp36">
  21. <u-row justify="space-between">
  22. <text class="expert-text size28">
  23. <!-- Welsh Fire -->
  24. {{ $t('match.lab36') }}
  25. </text>
  26. <text class="expert-text size28">
  27. <!-- Southern Brave -->
  28. {{ $t('match.lab37') }}
  29. </text>
  30. </u-row>
  31. <u-row justify="space-between" class="mg-tp15">
  32. <image src="../../static/image/match/star.png" mode="aspectFit" class="team-icon mg-lt24"></image>
  33. <image src="../../static/image/match/star.png" mode="aspectFit" class="team-icon mg-rt24"></image>
  34. </u-row>
  35. </view>
  36. <view class="mg-tp36">
  37. <u-row justify="space-between">
  38. <text class="size28 c3">40%</text>
  39. <text class="size28 c3">60%</text>
  40. </u-row>
  41. <u-line-progress :percentage="40" height="16" activeColor="#585858" inactiveColor="#DC3C23" :showText="false" class="mg-tp12">
  42. <!-- <text class="u-percentage-slot">{{30}}%</text> -->
  43. </u-line-progress>
  44. </view>
  45. <view class="mg-tp61">
  46. <text class="expert-text size28">
  47. <!-- Pitch Report -->
  48. {{ $t('match.lab38') }}
  49. </text>
  50. <u-row class="pd-lt90 pd-rt50" align="bottom">
  51. <u-line color="#EEA831" direction="col" length="104rpx" dashed></u-line>
  52. <view class="size24 c6 mg-lt10 mg-rt25 mg-bt40">
  53. <text class="keep-all">
  54. <!-- Batting Pitch -->
  55. {{ $t('match.lab39') }}
  56. </text>
  57. <text class="c3 Bold">0%</text>
  58. </view>
  59. <u-line color="#EEA831" direction="col" length="171rpx" dashed></u-line>
  60. <view class="size24 c6 mg-lt10 mg-rt32 mg-bt106">
  61. <text class="keep-all">
  62. <!-- Balanced Pitch -->
  63. {{ $t('match.lab40') }}
  64. </text>
  65. <text class="c3 Bold">0%</text>
  66. </view>
  67. <u-line color="#EEA831" direction="col" length="105rpx" dashed></u-line>
  68. <view class="size24 c6 mg-lt10 mg-bt40">
  69. <text class="keep-all">
  70. <!-- Bowling Pitch -->
  71. {{ $t('match.lab41') }}
  72. </text>
  73. <text class="c3 Bold">0%</text>
  74. </view>
  75. </u-row>
  76. <image src="../../static/image/match/expert_pitch.png" mode="aspectFit" class="pitch-pic"></image>
  77. </view>
  78. <view class="mg-tp36 mg-bt12">
  79. <text class="expert-text size28 Bold">
  80. <!-- Pitch is good for -->
  81. {{ $t('match.lab42') }}
  82. </text>
  83. <u-row class="pd-rt50 mg-tp24">
  84. <view class="flex-start good-for">
  85. <image src="../../static/image/match/expert_pace_ico.png" mode="aspectFit" class="pace-pic mg-rt16"></image>
  86. <view class="flex-col size24">
  87. <text class="c3">67%</text>
  88. <text class="c6">
  89. <!-- Say Pace -->
  90. {{ $t('match.lab43') }}
  91. </text>
  92. </view>
  93. </view>
  94. <view class="flex-start good-for mg-lt24">
  95. <image src="../../static/image/match/expert_spin_ico.png" mode="aspectFit" class="pace-pic mg-rt16"></image>
  96. <view class="flex-col size24">
  97. <text class="c3">33%</text>
  98. <text class="c6">
  99. <!-- Say Spin -->
  100. {{ $t('match.lab44') }}
  101. </text>
  102. </view>
  103. </view>
  104. </u-row>
  105. </view>
  106. </view>
  107. <u-gap height="24" bgColor="#E5E5E5"></u-gap>
  108. <view class="main">
  109. <view class="flex mg-tp36">
  110. <text class="size28 c3">
  111. <!-- Top Player Picks -->
  112. {{ $t('match.lab45') }}
  113. </text>
  114. <text class="size24 c6">
  115. <!-- Updated 13h 48m ago -->
  116. {{ $t('match.lab46') }}
  117. </text>
  118. </view>
  119. <view class="bgE5">
  120. <view class="flex bfb">
  121. <text class="size24 c6">
  122. <!-- PLAYERS PICKED MOST -->
  123. {{ $t('match.lab47') }}
  124. </text>
  125. <text class="size24 c6">
  126. {{ $t('match.lab48') }} %
  127. </text>
  128. </view>
  129. </view>
  130. <view class="list mg-tp30">
  131. <view class="flex mg-bt24 c3">
  132. <text class="size28">W Khan <text class="size24 c6">(ALL)</text></text>
  133. <text>100.0</text>
  134. </view>
  135. <view class="flex mg-bt24 c3">
  136. <text class="size28">D Qureshi<text class="size24 c6">(BOWL)</text></text>
  137. <text>100.0</text>
  138. </view>
  139. <view class="flex c3">
  140. <text class="size28">A Jotin <text class="size24 c6">(BOWL)</text></text>
  141. <text>100.0</text>
  142. </view>
  143. </view>
  144. </view>
  145. <u-gap height="24" bgColor="#E5E5E5"></u-gap>
  146. <view class="main">
  147. <u-row justify="space-between" align="top">
  148. <view class="flex-col align-start">
  149. <text class="size32 c3">
  150. <!-- Head to Head Teams -->
  151. {{ $t('match.lab49') }}
  152. </text>
  153. <text class="size24 c6">
  154. <!-- 2 Teams -->
  155. {{ $t('match.lab50') }}
  156. </text>
  157. </view>
  158. <view class="select-range">
  159. <uni-data-select
  160. v-model="value"
  161. :localdata="range"
  162. @change="change"
  163. ></uni-data-select>
  164. </view>
  165. </u-row>
  166. <view class="showing mg-tp24" v-for="item in 2" :key="item">
  167. <u-row justify="space-between">
  168. <view class="flexcenter">
  169. <image src="../../static/image/common/teams_avatar_ico@2x.png" mode="widthFix" class="team-avatar mg-rt16"></image>
  170. <text class="size28 c3 Bold">
  171. <!-- Kartik Vyas -->
  172. {{ $t('match.lab51') }}
  173. </text>
  174. </view>
  175. <image src="../../static/image/match/schedule_adorn_ico@2x.png" mode="widthFix" class="team-icon"></image>
  176. </u-row>
  177. <view class="green-info mg-tp24">
  178. <view class="flex cfff size24">
  179. <view class="team1">
  180. <!-- TEAM1 -->
  181. {{ $t('match.lab52') }}
  182. </view>
  183. <text>
  184. <!-- 14h 14m ago -->
  185. {{ $t('match.lab53') }}
  186. </text>
  187. </view>
  188. <view class="flex align-end mg-tp24">
  189. <view class="flex-col-between size24 cfff">
  190. <view class="pbd">
  191. <view class="flex">
  192. <text>PBD</text>
  193. <text>DDD</text>
  194. </view>
  195. <view class="flex">
  196. <text>7</text>
  197. <text class="mg-rt32">4</text>
  198. </view>
  199. </view>
  200. <text class="mg-bt9">
  201. Cr:98.5 <text class="size24">/100</text>
  202. </text>
  203. </view>
  204. <view class="flexcenter">
  205. <view class="c-vc mg-rt90">
  206. <image src="../../static/image/match/player_c_ico.png" mode="aspectFit" class="c-icon"></image>
  207. <image src="../../static/image/match/teams_avatar_ico@2x.png" mode="widthFix" class="team-member-avatar" :name="'W Khan'"></image>
  208. </view>
  209. <view class="c-vc mg-rt36">
  210. <image src="../../static/image/match/player_vc_ico.png" mode="aspectFit" class="c-icon"></image>
  211. <image src="../../static/image/match/teams_avatar_ico@2x.png" mode="widthFix" class="team-member-avatar" :name="'RA Ali'"></image>
  212. </view>
  213. </view>
  214. </view>
  215. <view class="flex size24 cfff mg-tp32">
  216. <text>WK 2</text>
  217. <text>BAT 2</text>
  218. <text>ALL 2</text>
  219. <text>BOWL 2</text>
  220. </view>
  221. </view>
  222. <view class="flex mg-tp9">
  223. <text class="size24 c6">
  224. <!-- See this team -->
  225. {{ $t('match.lab54') }}
  226. </text>
  227. <image src="../../static/image/match/next_ico@2x.png" mode="heightFix" class="arrow-right"></image>
  228. </view>
  229. </view>
  230. <text class="size28 c6 mg-tp24">
  231. <!-- Showing 2/2 -->
  232. {{ $t('match.lab55') }}
  233. </text>
  234. </view>
  235. <u-gap height="24" bgColor="#E5E5E5"></u-gap>
  236. <view class="main">
  237. <u-row justify="space-between" align="top">
  238. <view class="flex-col align-start">
  239. <text class="size32 c3">
  240. <!-- Head to Head Teams -->
  241. {{ $t('match.lab49') }}
  242. </text>
  243. <text class="size24 c6">
  244. <!-- 2 Teams -->
  245. {{ $t('match.lab50') }}
  246. </text>
  247. </view>
  248. <view class="select-range">
  249. <uni-data-select
  250. v-model="value"
  251. :localdata="range"
  252. @change="change"
  253. ></uni-data-select>
  254. </view>
  255. </u-row>
  256. <view class="showing mg-tp24" v-for="item in 2" :key="item">
  257. <u-row justify="space-between">
  258. <view class="flexcenter">
  259. <image src="../../static/image/common/teams_avatar_ico@2x.png" mode="widthFix" class="team-avatar mg-rt16"></image>
  260. <text class="size28 c3 Bold">Kartik Vyas</text>
  261. </view>
  262. <image src="../../static/image/match/schedule_adorn_ico@2x.png" mode="widthFix" class="team-icon"></image>
  263. </u-row>
  264. <view class="green-info mg-tp24">
  265. <view class="flex cfff size24">
  266. <view class="team1">
  267. <!-- TEAM1 -->
  268. {{ $t('match.lab52') }}
  269. </view>
  270. <text>
  271. <!-- 14h 14m ago -->
  272. {{ $t('match.lab53') }}
  273. </text>
  274. </view>
  275. <view class="flex align-end mg-tp24">
  276. <view class="flex-col-between size24 cfff">
  277. <view class="pbd">
  278. <view class="flex">
  279. <text>PBD</text>
  280. <text>DDD</text>
  281. </view>
  282. <view class="flex">
  283. <text>7</text>
  284. <text class="mg-rt32">4</text>
  285. </view>
  286. </view>
  287. <text class="mg-bt9">
  288. Cr:98.5 <text class="size24">/100</text>
  289. </text>
  290. </view>
  291. <view class="flexcenter">
  292. <view class="c-vc mg-rt90">
  293. <image src="../../static/image/match/player_c_ico.png" mode="aspectFit" class="c-icon"></image>
  294. <image src="../../static/image/match/teams_avatar_ico@2x.png" mode="widthFix" class="team-member-avatar" :name="'W Khan'"></image>
  295. </view>
  296. <view class="c-vc mg-rt36">
  297. <image src="../../static/image/match/player_vc_ico.png" mode="aspectFit" class="c-icon"></image>
  298. <image src="../../static/image/match/teams_avatar_ico@2x.png" mode="widthFix" class="team-member-avatar" :name="'W Khan'"></image>
  299. </view>
  300. </view>
  301. </view>
  302. <view class="flex size24 cfff mg-tp32">
  303. <text>WK 2</text>
  304. <text>BAT 2</text>
  305. <text>ALL 2</text>
  306. <text>BOWL 2</text>
  307. </view>
  308. </view>
  309. <view class="flex mg-tp9">
  310. <text class="size24 c6">
  311. <!-- See this team -->
  312. {{ $t('match.lab54') }}
  313. </text>
  314. <image src="../../static/image/match/next_ico@2x.png" mode="heightFix" class="arrow-right"></image>
  315. </view>
  316. </view>
  317. <view class="size28 c6 mg-tp24">
  318. <!-- Showing 2/2 -->
  319. {{ $t('match.lab55') }}
  320. </view>
  321. </view>
  322. <view class="main bgE5">
  323. <text class="size32 c3 Bold">
  324. <!-- Doing your own research? -->
  325. {{ $t('match.lab56') }}
  326. </text>
  327. <view class="size32 c6 mg-tp10">
  328. <!-- Enjoy detailed stats and analysis -->
  329. {{ $t('match.lab57') }}
  330. </view>
  331. <view class="list mg-tp27">
  332. <u-row class="list-item mg-bt24">
  333. <image src="../../static/image/match/houser.png" mode="aspectFit" class="title-pic"></image>
  334. <view class="list-item-view">
  335. <text class="size28 C3 Bold">
  336. <!-- Player Stats -->
  337. {{ $t('match.lab58') }}
  338. </text>
  339. <view class="size24 c6">
  340. {{ $t('match.lab59') }}<br>
  341. <!-- career stats -->
  342. {{ $t('match.lab60') }}
  343. </view>
  344. </view>
  345. <image src="../../static/image/match/next_ico@2x.png" mode="heightFix" class="right-icon"></image>
  346. </u-row>
  347. <u-row class="list-item mg-bt24">
  348. <image src="../../static/image/match/matches_detail_venue_ic@2x.png" mode="aspectFit" class="title-pic"></image>
  349. <view class="list-item-view">
  350. <text class="size28 C3 Bold">
  351. <!-- Venue Details -->
  352. {{ $t('match.lab61') }}
  353. </text>
  354. <view class="size24 c6">
  355. {{ $t('match.lab62') }}<br>
  356. <!-- muchh more -->
  357. {{ $t('match.lab63') }}
  358. </view>
  359. </view>
  360. <image src="../../static/image/match/next_ico@2x.png" mode="heightFix" class="right-icon"></image>
  361. </u-row>
  362. <u-row class="list-item">
  363. <image src="../../static/image/match/matches_detail_team_ico.png" mode="aspectFit" class="title-pic"></image>
  364. <view class="list-item-view">
  365. <text class="size28 C3 Bold">
  366. <!-- Team Compare -->
  367. {{ $t('match.lab64') }}
  368. </text>
  369. <view class="size24 c6">
  370. {{ $t('match.lab65') }}<br>
  371. <!-- record -->
  372. {{ $t('match.lab66') }}
  373. </view>
  374. </view>
  375. <image src="../../static/image/match/next_ico@2x.png" mode="heightFix" class="right-icon"></image>
  376. </u-row>
  377. </view>
  378. </view>
  379. <view class="views flex-start">
  380. <image src="../../static/image/match/expert_Indicate_ico.png" mode="aspectFit" class="views-icon mg-rt13"></image>
  381. <text class="size24 c6">
  382. {{ $t('match.lab67') }}
  383. </text>
  384. </view>
  385. <view class="detailed flex-start bgE5">
  386. <image src="../../static/image/match/schedule_adorn_ico@2x.png" mode="aspectFit" class="detailed-icon mg-rt24"></image>
  387. <text class="size24 c6">
  388. {{ $t('match.lab68') }}
  389. </text>
  390. </view>
  391. <u-popup :show="show" mode="center" :round="10" @close="close" @open="open">
  392. <view>
  393. <view class="flex header-box">
  394. <text class="size24 c6">
  395. <!-- Sort By -->
  396. {{ $t('match.lab69') }}
  397. </text>
  398. <image src="../../static/image/match/close_ico.png" mode="heightFix" class="close-icon" @click="close"></image>
  399. </view>
  400. <view class="text-box">
  401. <text class="size32 c3 Bold">
  402. <!-- Expert Performance -->
  403. {{ $t('match.lab70') }}
  404. </text>
  405. <view class="size28 c6">
  406. <!-- (based on recent performance of experts) -->
  407. {{ $t('match.lab71') }}
  408. </view>
  409. </view>
  410. <view class="text-box">
  411. <text class="size32 c3 Bold">
  412. <!-- Last Updated -->
  413. {{ $t('match.lab72') }}
  414. </text>
  415. <view class="size28 c6">
  416. <!-- (based on last updated time of the article) -->
  417. {{ $t('match.lab73') }}
  418. </view>
  419. </view>
  420. </view>
  421. </u-popup>
  422. </view>
  423. </template>
  424. <script>
  425. export default {
  426. data() {
  427. return {
  428. show:true,
  429. value:0,
  430. range: [
  431. { value: 0, text: this.$t('match.lab74') },
  432. { value: 1, text: this.$t('match.lab74') },
  433. { value: 2, text: this.$t('match.lab74') },
  434. ],
  435. };
  436. },
  437. methods:{
  438. open() {
  439. // console.log('open');
  440. this.show = true
  441. },
  442. close() {
  443. this.show = false
  444. // console.log('close');
  445. },
  446. change(e) {
  447. console.log("e:", e);
  448. },
  449. }
  450. }
  451. </script>
  452. <style lang="scss">
  453. .header-box{
  454. padding: 11rpx 33rpx;
  455. .close-icon{
  456. width: 44rpx;
  457. height: 44rpx;
  458. }
  459. }
  460. .text-box{
  461. padding: 36rpx 33rpx;
  462. border-top: 1rpx solid #E5E5E5;
  463. }
  464. .select-head {
  465. position: sticky;
  466. top: 0;
  467. z-index: 99;
  468. background-color: $color1;
  469. .select-tab {
  470. padding: 0 28rpx;
  471. margin-top: 20rpx;
  472. }
  473. }
  474. .main{
  475. padding: 24rpx 28rpx;
  476. .heand-pic{
  477. width: 694rpx;
  478. height: 116rpx;
  479. background: url(../../static/image/match/expert_context.png) center center/100% auto no-repeat;
  480. font-size: 28rpx;
  481. color: #FFFFFF;
  482. font-weight: bold;
  483. // position: relative;
  484. // &:before{
  485. // content: attr(name);
  486. // position: absolute;
  487. // left: 50%;
  488. // top: 50%;
  489. // margin-left: -50%;
  490. // margin-top: -50%;
  491. // z-index: 2;
  492. // font-size: 28rpx;
  493. // color: #FFFFFF;
  494. // font-weight: bold;
  495. // }
  496. }
  497. .team-icon{
  498. width: 56rpx;
  499. height: 56rpx;
  500. }
  501. .pitch-pic{
  502. width: 694rpx;
  503. height: 68rpx;
  504. }
  505. .good-for{
  506. width: 250rpx;
  507. height: 78rpx;
  508. background: #E5E5E5;
  509. align-items: center;
  510. padding-left: 24rpx;
  511. border-radius: 43rpx;
  512. .pace-pic{
  513. width: 54rpx;
  514. height: 54rpx;
  515. }
  516. }
  517. .bfb{
  518. margin-top: 24rpx;
  519. padding: 12rpx 24rpx;
  520. }
  521. .select-range{
  522. width: 305rpx;
  523. }
  524. .showing{
  525. padding: 24rpx 24rpx 8rpx;
  526. background: #FFFFFF;
  527. box-shadow: 0rpx 0rpx 8rpx 1rpx $color7;
  528. border-radius: 10rpx;
  529. .team-avatar{
  530. width: 90rpx;
  531. height: 90rpx;
  532. border-radius: 200rpx;
  533. }
  534. .team-icon{
  535. width: 36rpx;
  536. height: 36rpx;
  537. }
  538. .green-info{
  539. background: #408335;
  540. border-radius: 10rpx;
  541. padding: 24rpx;
  542. .team1{
  543. padding: 1rpx 31rpx;
  544. background: #2B8744;
  545. }
  546. .pbd{
  547. width: 138rpx;
  548. }
  549. .c-vc{
  550. position: relative;
  551. .c-icon{
  552. width: 30rpx;
  553. height: 30rpx;
  554. opacity: 0.4;
  555. position: absolute;
  556. top: 0;
  557. left: 0;
  558. z-index: 2;
  559. }
  560. .team-member-avatar{
  561. position: relative;
  562. width: 108rpx;
  563. height: 108rpx;
  564. &:before{
  565. content: attr(name);
  566. position: absolute;
  567. bottom: -20rpx;
  568. left: 50%;
  569. word-break: break-all;
  570. margin-left: -50%;
  571. background-color: #fff;
  572. padding: 1rpx 20rpx;
  573. font-size: 24rpx;
  574. color: #333;
  575. line-height: 24rpx;
  576. }
  577. }
  578. }
  579. }
  580. .arrow-right{
  581. width: 48rpx;
  582. height: 48rpx;
  583. }
  584. }
  585. .list{
  586. .list-item{
  587. background: #FFFFFF;
  588. box-shadow: 0rpx 0rpx 8rpx 1rpx $color7;
  589. border-radius: 10rpx 10rpx 10rpx 10rpx;
  590. padding: 24rpx;
  591. .list-item-view{
  592. flex: 1;
  593. }
  594. .right-icon{
  595. width: 48rpx;
  596. height: 48rpx;
  597. }
  598. .title-pic{
  599. width: 68rpx;
  600. height: 68rpx;
  601. margin-right: 24rpx;
  602. }
  603. }
  604. }
  605. }
  606. .views{
  607. background-color: #fff;
  608. padding: 36rpx 28rpx;
  609. .views-icon{
  610. width: 83rpx;
  611. height: 83rpx;
  612. }
  613. }
  614. .detailed{
  615. padding: 24rpx 28rpx;
  616. .detailed-icon{
  617. width: 36rpx;
  618. height: 36rpx;
  619. }
  620. }
  621. </style>