huDongWenDa.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. <template>
  2. <view class="body">
  3. <view class="header">
  4. <view class="tit">湖里文化遗产保护中心</view>
  5. <view class="thumbnail_1">
  6. <image style="width: 100%; height: 100%" src="/static/img/img_seal@2x.png"></image>
  7. </view>
  8. </view>
  9. <view class="box">
  10. <view class="box_tit">
  11. <image style="width: 100%; height: 100%" src="/static/img/img_tit.png"></image>
  12. </view>
  13. <view class="box_tit_2">
  14. <view class="">文物守护者</view>
  15. <view class="" style="margin: 0 30rpx 0 30rpx">保护文物</view>
  16. <view class="">留下历史</view>
  17. </view>
  18. <view class="shz">守护者 {{ bhVal }} 欢迎您</view>
  19. <!-- 答题按钮 -->
  20. <view class="dati" @click="starBtn">
  21. <view style="display: flex; align-items: center; margin-left: 700rpx; margin-top: -1200rpx">
  22. <view class="dt">
  23. <image style="width: 100%; height: 100%" src="/static/img/img_left@2x.png"></image>
  24. </view>
  25. <view class="dt_box" style="margin: auto">开始答题</view>
  26. <view class="dt">
  27. <image style="width: 100%; height: 100%" src="/static/img/img_right@2x.png"></image>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- 昵称弹层 -->
  32. <view class="nc_box" v-if="starShow">
  33. <view class="">
  34. <view class="nc">您的守护编号</view>
  35. <!-- <input v-model.trim="iptVal" class="ipt" type="text" placeholder="请输入您的昵称" /> -->
  36. <view class="bh">{{ bhVal }}</view>
  37. </view>
  38. <view class="qr" @click="isOk">确认</view>
  39. </view>
  40. <!-- 排行榜 -->
  41. <view class="ph_box" v-if="rankinglShow">
  42. <view class="ph_box2">
  43. <view class="phb">排行榜</view>
  44. <view class="ph_top">
  45. <view class="phb2">您的排名</view>
  46. <view class="phb_box">
  47. <view class="phb_item">
  48. <view class="phb_pm">
  49. <!-- <image style="width: 100%; height: 100%" src="/static/img/img_no1@2x.png"></image> -->
  50. <view class="paiming">
  51. {{ myPM }}
  52. </view>
  53. </view>
  54. <view class="phb_tx">
  55. <image style="width: 100%; height: 100%" src="/static/img/img_avatar@2x(1).png"></image>
  56. </view>
  57. <view class="phb_nc">{{ myBh }}</view>
  58. </view>
  59. <view style="display: flex; align-items: center">
  60. <view class="fenshu">{{ myss }}分</view>
  61. <view class="shijian">{{ mysj }}</view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="phb_box" v-for="(item, index) in rankingList" :key="item.index">
  66. <view class="phb_item">
  67. <view class="phb_pm">
  68. <!-- <image style="width: 100%; height: 100%" src="/static/img/img_no1@2x.png"></image> -->
  69. <view class="paiming">
  70. {{ index + 1 }}
  71. </view>
  72. </view>
  73. <view class="phb_tx">
  74. <image style="width: 100%; height: 100%" src="/static/img/img_avatar@2x(1).png"></image>
  75. </view>
  76. <view class="phb_nc">{{ item.name }}</view>
  77. </view>
  78. <view style="display: flex; align-items: center">
  79. <view class="fenshu">{{ item.score }}分</view>
  80. <view class="shijian">{{ item.cost_time }}</view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 开始答题弹层 -->
  87. <view class="star_box" v-if="answerShow">
  88. <view class="star_box2">
  89. <!-- 开始答题 -->
  90. <view class="" v-if="resultShow">
  91. <view class="tm_box" @click="answerShow = false">
  92. <view @click="answerShow = false" style="width: 500rpx; cursor: pointer; position: absolute; top: -36rpx; left: 10rpx" class="">
  93. <image style="width: 100rpx; height: 100rpx" src="/static/img/icon_back@2x.png"></image>
  94. </view>
  95. <view class="tihao">{{ i }}</view>
  96. <view class="wenti">{{ list.title }}</view>
  97. </view>
  98. <!-- 答案 -->
  99. <view class="daAn_box">
  100. <!-- -->
  101. <view @click="selectBtn(index)" v-for="(item, index) in list.optionList" :key="item.index" class="daAn_item" :class="{ active: index == selectTab2 }">
  102. {{ item.label }}
  103. </view>
  104. </view>
  105. <view class="tjDn">
  106. <view @click="completeBtn" v-if="abNiu" class="tjDn2">完成答题</view>
  107. <view v-else class="tjDn2" @click="nextBtn">下一题</view>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 答题结果 -->
  113. <view class="jieGuo" v-if="jieGuoShow">
  114. <view class="tm_box2">
  115. <view class="dt_end">答题结束</view>
  116. </view>
  117. <view class="fraction">
  118. <text>{{ recordNumber * 10 }}分</text>
  119. </view>
  120. <view class="txt_box">
  121. <view class="txt_">共计{{ anNiuList.length }}题,您答对了 {{ recordNumber }} 道题!</view>
  122. <!-- <view class="txt_">恭喜您!耗时 {{ cost_time }} 完成!</view> -->
  123. </view>
  124. <!-- 查看排行榜按钮 -->
  125. <view class="restart">
  126. <view class="ck_box" @click="phbBtn">
  127. <view class="" style="margin: auto; display: flex; align-items: center">
  128. <view class="dt">
  129. <image style="width: 100%; height: 100%" src="/static/img/img_left@2x.png"></image>
  130. </view>
  131. <view class="dt_ck">查看排行榜</view>
  132. <view class="dt">
  133. <image style="width: 100%; height: 100%" src="/static/img/img_right@2x.png"></image>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. <!-- 菜单按钮 -->
  140. <view class="caidan" @click="navBtn">
  141. <image class="img" src="../../../static/img/icon_menu@2x.png"></image>
  142. <view class="dh">导航</view>
  143. </view>
  144. <!-- 菜单弹层 -->
  145. <u-popup :show="show" @close="close" mode="left" bgColor="#f8efe1" customStyle="width:1000rpx">
  146. <view class="box_gb" @click="show = false">
  147. <view class="gb">X</view>
  148. </view>
  149. <LeftNav></LeftNav>
  150. </u-popup>
  151. </view>
  152. </template>
  153. <script>
  154. import { login } from '../../../config/api';
  155. let that;
  156. export default {
  157. data() {
  158. return {
  159. i: 0,
  160. myPM: '',
  161. myBh: '',
  162. myss: '',
  163. mysj: '',
  164. recordNumber: 0 /* 记录对的题数 */,
  165. activeTab: '',
  166. selectTab: true,
  167. selectTab2: null,
  168. bhVal: '001',
  169. show: false,
  170. starShow: false,
  171. answerShow: false,
  172. jieGuoShow: false,
  173. rankinglShow: false,
  174. resultShow: true,
  175. list: {},
  176. anNiuList: {},
  177. optionList: [] /* 答案选项 */,
  178. rankingList: [] /* 排行榜 */
  179. };
  180. },
  181. onLoad() {
  182. that = this;
  183. this.bianHaoBtn();
  184. },
  185. computed: {
  186. abNiu() {
  187. return this.anNiuList.length == this.list.seq;
  188. },
  189. ceshi() {
  190. return this.activeTab == 'answer' ? true : false;
  191. }
  192. },
  193. methods: {
  194. bianHaoBtn() {
  195. this.bhVal = Math.floor(Math.random() * 900) + 100;
  196. console.log(this.bhVal, 456545);
  197. },
  198. navBtn() {
  199. this.show = true;
  200. },
  201. // 开始答题
  202. starBtn() {
  203. uni.setStorageSync('val', this.bhVal);
  204. // this.startTime = new Date().getTime(); // 记录开始时间戳
  205. console.log(that.bhVal, 'bhVal');
  206. this.answerShow = true;
  207. this.$api.startChallenge({}, function (res) {
  208. that.anNiuList = res.data.question_data;
  209. // console.log(that.anNiuList.length, '开始答题');
  210. });
  211. setTimeout(() => {
  212. that.nextBtn();
  213. }, 200);
  214. },
  215. // 下一题
  216. nextBtn() {
  217. if (this.selectTab) {
  218. this.i++;
  219. }
  220. if (!this.selectTab) {
  221. this.$common.normalToShow('还未选择答案');
  222. return false;
  223. }
  224. // 下一题
  225. this.$api.getNew({}, function (res) {
  226. // console.log(res, 11);
  227. that.list = res.data;
  228. });
  229. // 判断对错
  230. this.$api.submitAnswer({ answer: this.selectTab2 }, function (res) {
  231. // console.log(res, '提交');
  232. // 为对错答案添加样式
  233. // ceshi ? 'active2' : 'active3'
  234. // that.activeTab = res.data;
  235. // console.log(that.ceshi, 'activeTab');
  236. if (res.data == 'answer') {
  237. that.recordNumber++;
  238. console.log(that.recordNumber * 10, '对了');
  239. }
  240. });
  241. this.selectTab = null;
  242. this.selectTab2 = null;
  243. },
  244. // 选择答案
  245. selectBtn(i) {
  246. if (i !== '' && i !== undefined) {
  247. this.selectTab = true;
  248. } else {
  249. this.selectTab = false;
  250. }
  251. this.selectTab2 = i;
  252. },
  253. // 完成答题
  254. completeBtn() {
  255. console.log(this.bhVal, '5456+46545');
  256. if (!this.selectTab) {
  257. this.$common.normalToShow('还未选择答案');
  258. return false;
  259. }
  260. this.answerShow = false;
  261. // this.starShow = true;
  262. this.i = 0;
  263. this.resultShow = true;
  264. this.jieGuoShow = true;
  265. // 昵称
  266. this.$api.complete({ name: this.bhVal }, function (res) {
  267. console.log(res, 'name');
  268. });
  269. // const val = uni.getStorageSync('val');
  270. // this.bhVal = Number(val) + 1;
  271. },
  272. // 昵称确认
  273. isOk() {
  274. setTimeout(() => {
  275. this.$common.successToShow('提交成功');
  276. }, 500);
  277. this.starShow = false;
  278. this.resultShow = true;
  279. this.jieGuoShow = true;
  280. // if (this.iptVal == '' && this.iptVal.length <= 0) {
  281. // this.$common.normalToShow('昵称不能为空');
  282. // } else {
  283. // setTimeout(() => {
  284. // this.$common.successToShow('提交成功');
  285. // }, 500);
  286. // this.starShow = false;
  287. // this.resultShow = true;
  288. // this.jieGuoShow = true;
  289. // }
  290. },
  291. // 排行榜
  292. phbBtn() {
  293. this.$api.getTopList({}, function (res) {
  294. that.rankingList = res.data;
  295. console.log(that.rankingList, '排行');
  296. that.$nextTick(() => {
  297. that.rankingList.forEach((item, index) => {
  298. if (item.name == that.bhVal) {
  299. that.myPM = index + 1; /* 排名 */
  300. that.myBh = item.name; /* 编号 */
  301. that.myss = item.score; /* 分数 */
  302. that.mysj = item.cost_time; /* 时间 */
  303. }
  304. });
  305. });
  306. });
  307. this.jieGuoShow = false;
  308. this.rankinglShow = true;
  309. },
  310. close() {
  311. this.show = false;
  312. // console.log('close');
  313. }
  314. }
  315. };
  316. </script>
  317. <style>
  318. .active {
  319. /* background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  320. -webkit-background-clip: text;
  321. -webkit-text-fill-color: transparent; */
  322. background-color: #e78a80 !important;
  323. }
  324. .shz {
  325. width: 600rpx;
  326. margin: auto;
  327. margin-top: 50rpx;
  328. font-size: 46rpx;
  329. color: #563530;
  330. letter-spacing: 0.1em;
  331. }
  332. .ck_box {
  333. display: flex;
  334. align-items: center;
  335. background-color: #fdd7c8;
  336. cursor: pointer;
  337. width: 1000rpx;
  338. height: 200rpx;
  339. margin: auto;
  340. }
  341. .active2 {
  342. border: 2px solid #5ac725 !important;
  343. }
  344. .active3 {
  345. border: 2px solid #f56c6c !important;
  346. }
  347. .body {
  348. padding-top: 100rpx;
  349. height: 1905rpx;
  350. box-sizing: border-box;
  351. }
  352. .header {
  353. margin-left: 10%;
  354. width: 960rpx;
  355. height: 96rpx;
  356. align-items: center;
  357. display: flex;
  358. }
  359. .bh {
  360. font-size: 38rpx;
  361. color: #563530;
  362. width: 1000rpx;
  363. height: 100rpx;
  364. line-height: 100rpx;
  365. text-indent: 1em;
  366. background-color: #efe6d8;
  367. }
  368. .jieGuo {
  369. position: absolute;
  370. top: 400rpx;
  371. left: 32%;
  372. height: 1000rpx;
  373. z-index: 2;
  374. background-color: #efe6d8;
  375. }
  376. .box {
  377. width: 1800rpx;
  378. height: 1180rpx;
  379. margin: auto;
  380. margin-top: 10rpx;
  381. }
  382. .box_tit {
  383. margin: auto;
  384. width: 1400rpx;
  385. height: 160rpx;
  386. }
  387. .box_tit_2 {
  388. width: 850rpx;
  389. display: flex;
  390. font-size: 46rpx;
  391. margin: auto;
  392. margin-top: 60rpx;
  393. color: #563530;
  394. letter-spacing: 0.2em;
  395. }
  396. .tit {
  397. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  398. height: 96rpx;
  399. font-size: 48rpx;
  400. letter-spacing: 0.3em;
  401. font-weight: NaN;
  402. text-align: left;
  403. white-space: nowrap;
  404. line-height: 100rpx;
  405. -webkit-background-clip: text;
  406. -webkit-text-fill-color: transparent;
  407. }
  408. .thumbnail_1 {
  409. width: 16rpx;
  410. height: 60rpx;
  411. }
  412. .caidan {
  413. margin-left: 10%;
  414. margin-top: -300rpx;
  415. display: flex;
  416. width: 420rpx;
  417. height: 450rpx;
  418. cursor: pointer;
  419. align-items: center;
  420. }
  421. .box_gb {
  422. position: absolute;
  423. cursor: pointer;
  424. width: 1000rpx;
  425. height: 160rpx;
  426. }
  427. .gb {
  428. width: 80rpx;
  429. height: 80rpx;
  430. line-height: 80rpx;
  431. position: absolute;
  432. right: 100rpx;
  433. top: 30rpx;
  434. text-align: center;
  435. font-size: 52rpx;
  436. color: #563530;
  437. margin-left: 300rpx;
  438. border: #563530 1px solid;
  439. }
  440. .img {
  441. width: 100rpx;
  442. height: 100rpx;
  443. }
  444. .dh {
  445. margin-left: 10rpx;
  446. font-size: 42rpx;
  447. color: #563530;
  448. }
  449. .dati {
  450. display: flex;
  451. align-items: center;
  452. cursor: pointer;
  453. margin-left: -100rpx;
  454. width: 1400px;
  455. height: 1200rpx;
  456. line-height: 18rpx;
  457. margin-top: 100rpx;
  458. /* background-color: #5ac725; */
  459. }
  460. .restart {
  461. display: flex;
  462. align-items: center;
  463. line-height: 18rpx;
  464. margin-top: 260rpx;
  465. }
  466. .dt_box {
  467. cursor: pointer;
  468. width: 300rpx;
  469. height: 80rpx;
  470. font-size: 48rpx;
  471. text-align: center;
  472. line-height: 80rpx;
  473. margin: 0 20rpx 0 20rpx;
  474. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  475. -webkit-background-clip: text;
  476. -webkit-text-fill-color: transparent;
  477. border: 1px solid #563530;
  478. }
  479. .dt_ck {
  480. cursor: pointer;
  481. width: 300rpx;
  482. height: 80rpx;
  483. font-size: 48rpx;
  484. text-align: center;
  485. line-height: 80rpx;
  486. margin: 0 20rpx 0 20rpx;
  487. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  488. -webkit-background-clip: text;
  489. -webkit-text-fill-color: transparent;
  490. border: 1px solid #563530;
  491. }
  492. .dt {
  493. width: 60rpx;
  494. height: 16rpx;
  495. }
  496. .ph_box {
  497. position: absolute;
  498. top: 800rpx;
  499. left: 26%;
  500. width: 1600rpx;
  501. height: 940rpx;
  502. border: 3px solid #563530;
  503. background-color: #eeeadd;
  504. }
  505. .ph_box2 {
  506. width: 1580rpx;
  507. height: 920rpx;
  508. margin: auto;
  509. margin-top: 10rpx;
  510. overflow: scroll;
  511. box-sizing: border-box;
  512. padding: 0 40rpx 0 40rpx;
  513. border: 1px solid #563530;
  514. }
  515. .phb {
  516. width: 220rpx;
  517. font-size: 52rpx;
  518. margin: auto;
  519. margin-top: 20rpx;
  520. background: linear-gradient(180deg, #bc5f29 0%, #5b3c29 100%);
  521. -webkit-background-clip: text;
  522. -webkit-text-fill-color: transparent;
  523. }
  524. .phb2 {
  525. width: 220rpx;
  526. font-size: 46rpx;
  527. margin: auto;
  528. margin-top: 20rpx;
  529. background: linear-gradient(180deg, #bc5f29 0%, #5b3c29 100%);
  530. -webkit-background-clip: text;
  531. -webkit-text-fill-color: transparent;
  532. }
  533. .phb_box {
  534. height: 140rpx;
  535. display: flex;
  536. align-items: center;
  537. justify-content: space-between;
  538. margin-bottom: 30rpx;
  539. }
  540. .phb_pm {
  541. width: 84rpx;
  542. height: 84rpx;
  543. }
  544. .phb_tx {
  545. margin-left: 40rpx;
  546. width: 120rpx;
  547. height: 120rpx;
  548. }
  549. .phb_nc {
  550. margin-left: 20rpx;
  551. font-size: 40rpx;
  552. color: #563530;
  553. letter-spacing: 0.2em;
  554. }
  555. .fenshu {
  556. font-size: 48rpx;
  557. background: linear-gradient(270deg, #bc5f29 0%, #5b3c29 100%);
  558. -webkit-background-clip: text;
  559. -webkit-text-fill-color: transparent;
  560. }
  561. .phb_item {
  562. display: flex;
  563. align-items: center;
  564. }
  565. .shijian {
  566. font-size: 36rpx;
  567. margin-left: 20rpx;
  568. color: #563530;
  569. }
  570. .star_box {
  571. position: absolute;
  572. top: 26%;
  573. left: 23%;
  574. width: 2200rpx;
  575. height: 1300rpx;
  576. z-index: 3;
  577. border: 3px solid #563530;
  578. }
  579. .star_box2 {
  580. width: 2180rpx;
  581. height: 1280rpx;
  582. margin: auto;
  583. margin-top: 10rpx;
  584. border: 1px solid #563530;
  585. background-color: #f8efe1;
  586. padding: 60rpx;
  587. padding-top: 0;
  588. box-sizing: border-box;
  589. }
  590. .nc_box {
  591. position: absolute;
  592. display: flex;
  593. top: 27%;
  594. left: 33%;
  595. /* width: 900rpx;
  596. height: 240rpx; */
  597. }
  598. .nc {
  599. width: 500rpx;
  600. height: 60rpx;
  601. background-color: palegreen;
  602. font-size: 36rpx;
  603. background: linear-gradient(180deg, #bc5f29 0%, #5b3c29 100%);
  604. -webkit-background-clip: text;
  605. -webkit-text-fill-color: transparent;
  606. letter-spacing: 0.2em;
  607. }
  608. .qr {
  609. width: 100rpx;
  610. height: 90rpx;
  611. font-size: 42rpx;
  612. margin-top: 50rpx;
  613. text-align: center;
  614. line-height: 100rpx;
  615. cursor: pointer;
  616. border: #a65729 1px solid;
  617. background: linear-gradient(180deg, #bc5f29 0%, #5b3c29 100%);
  618. -webkit-background-clip: text;
  619. -webkit-text-fill-color: transparent;
  620. }
  621. .ipt {
  622. width: 1200rpx;
  623. height: 100rpx;
  624. background-color: #fff9ec;
  625. border: none;
  626. color: #563530;
  627. }
  628. /deep/.uni-input-placeholder {
  629. color: #ccbeb4 !important;
  630. letter-spacing: 0.3em;
  631. text-indent: 1em;
  632. font-size: 42rpx;
  633. }
  634. .tm_box {
  635. display: flex;
  636. position: relative;
  637. justify-content: space-around;
  638. align-items: center;
  639. width: 100%;
  640. margin-top: 60rpx;
  641. height: 300rpx;
  642. cursor: pointer;
  643. border-bottom: 1px solid #ddd0c4;
  644. }
  645. .tm_box2 {
  646. display: flex;
  647. position: relative;
  648. justify-content: space-around;
  649. align-items: center;
  650. width: 100%;
  651. margin-top: 60rpx;
  652. height: 160rpx;
  653. border-bottom: 1px solid #ddd0c4;
  654. }
  655. .tihao {
  656. width: 90rpx;
  657. height: 80rpx;
  658. position: absolute;
  659. left: 0;
  660. font-size: 36rpx;
  661. text-align: center;
  662. line-height: 80rpx;
  663. margin-right: 50rpx;
  664. color: #563530;
  665. border: 1px solid #563530;
  666. }
  667. .wenti {
  668. font-size: 36rpx;
  669. color: #563530;
  670. margin-left: 160rpx;
  671. letter-spacing: 0.2em;
  672. }
  673. .paiming {
  674. text-align: center;
  675. line-height: 80rpx;
  676. color: #563530;
  677. font-size: 36rpx;
  678. width: 80rpx;
  679. height: 80rpx;
  680. border-radius: 50%;
  681. background-color: #e5c22c;
  682. }
  683. .paiming2 {
  684. display: flex;
  685. text-align: center;
  686. line-height: 80rpx;
  687. width: 80rpx;
  688. height: 80rpx;
  689. color: #563530;
  690. font-size: 36rpx;
  691. border-radius: 50%;
  692. background-color: #e5c22c;
  693. }
  694. .daAn_box {
  695. width: 100%;
  696. margin: auto;
  697. display: flex;
  698. align-items: center;
  699. flex-flow: wrap;
  700. justify-content: space-between;
  701. }
  702. .daAn_item {
  703. width: 820rpx;
  704. height: 220rpx;
  705. cursor: pointer;
  706. font-size: 36rpx;
  707. color: #563530;
  708. margin-top: 50rpx;
  709. text-align: center;
  710. padding-top: 20rpx;
  711. box-sizing: border-box;
  712. border: 1px solid #563530;
  713. background-color: #fff9ec;
  714. }
  715. .tjDn2 {
  716. width: 580rpx;
  717. height: 190rpx;
  718. margin: auto;
  719. font-size: 40rpx;
  720. text-align: center;
  721. cursor: pointer;
  722. line-height: 190rpx;
  723. letter-spacing: 0.2em;
  724. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  725. -webkit-background-clip: text;
  726. -webkit-text-fill-color: transparent;
  727. border: 1px solid #563530;
  728. }
  729. .tjDn {
  730. display: flex;
  731. width: 600rpx;
  732. height: 210rpx;
  733. margin: auto;
  734. margin-top: 100rpx;
  735. padding-top: 10rpx;
  736. background-color: antiquewhite;
  737. }
  738. .dt_end {
  739. font-size: 52rpx;
  740. letter-spacing: 0.3em;
  741. background-image: linear-gradient(270deg, rgba(188, 95, 41, 1) 0, rgba(91, 60, 41, 1) 100%);
  742. -webkit-background-clip: text;
  743. -webkit-text-fill-color: transparent;
  744. }
  745. .fraction {
  746. margin: auto;
  747. margin-top: 60rpx;
  748. width: 200rpx;
  749. height: 80rpx;
  750. font-size: 56rpx;
  751. letter-spacing: 0.3em;
  752. background: linear-gradient(270deg, #bc5f29 0%, #5b3c29 100%);
  753. -webkit-background-clip: text;
  754. -webkit-text-fill-color: transparent;
  755. }
  756. .txt_box {
  757. width: 1400rpx;
  758. height: 100rpx;
  759. margin: auto;
  760. }
  761. .txt_ {
  762. margin-top: 60rpx;
  763. font-size: 36rpx;
  764. color: #563530;
  765. height: 100rpx;
  766. line-height: 100rpx;
  767. letter-spacing: 0.3em;
  768. text-align: center;
  769. background-color: #efe6d8;
  770. }
  771. .ph_top {
  772. position: sticky;
  773. top: 0;
  774. background-color: #f1bd92;
  775. z-index: 2;
  776. }
  777. </style>