index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. <template>
  2. <view class="box">
  3. <u-navbar title="厦门文物管家" :placeholder="true" bgColor="rgba(255,255,255,0)" :leftIconSize="0" titleStyle="font-weight:bold;color:#000000"></u-navbar>
  4. <view style="width: 90%; margin: auto">
  5. <u-swiper
  6. :list="swiperList"
  7. imgMode="aspectFill"
  8. :height="160"
  9. bgColor="transparent"
  10. :indicator="true"
  11. radius="5"
  12. keyName="image"
  13. :autoplay="true"
  14. :circular="true"
  15. indicatorStyle="bottom: 10px"
  16. indicatorMode="dot"
  17. indicatorActiveColor="#fff"
  18. indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
  19. ></u-swiper>
  20. </view>
  21. <view class="cd_box">
  22. <view @click="menuBtn(index)" class="cd_item" v-for="(item, index) in menuList" :key="item.index">
  23. <view style="width: 322rpx; height: 68rpx">
  24. <image class="img" :src="item.image"></image>
  25. </view>
  26. <view class="cd_tit">{{ item.title }}</view>
  27. </view>
  28. </view>
  29. <!-- 新闻公告 -->
  30. <view class="map_tit" style="margin-left: 90rpx">
  31. <image style="width: 211rpx; height: 52rpx" src="/static/img/right_img.png"></image>
  32. <view class="">新闻公告</view>
  33. <image style="width: 211rpx; height: 52rpx" src="/static/img/left_img.png"></image>
  34. </view>
  35. <view style="position: relative" @click="noticeBtn">
  36. <view style="width: 660rpx; margin: auto; margin-top: 25rpx">
  37. <u-notice-bar
  38. speed="60"
  39. bgColor="#fefdfb"
  40. :text="newsList.title + (newsList.updated_at ? ` (${newsList.updated_at.split(' ')[0]})` : '')"
  41. mode="link"
  42. ></u-notice-bar>
  43. </view>
  44. </view>
  45. <view class="map_tit">
  46. <image style="width: 211rpx; height: 52rpx" src="/static/img/right_img.png"></image>
  47. <view class="">志愿者排行</view>
  48. <image style="width: 211rpx; height: 52rpx" src="/static/img/left_img.png"></image>
  49. </view>
  50. <!-- 排名 -->
  51. <view class="ranking_menu">
  52. <scroll-view scroll-x style="display: flex; white-space: nowrap" class="">
  53. <view @click="rankingTab(index)" v-for="(item, index) in rankingList" :key="item.id" class="ranking_item" :class="{ active: Tab == index }">
  54. {{ item.title }}
  55. </view>
  56. </scroll-view>
  57. </view>
  58. <view class="pm_box">
  59. <view class="pm_tit">排名</view>
  60. <view class="pm_tit">志愿者</view>
  61. <view class="pm_tit">活跃度</view>
  62. <view class="pm_tit" style="width: 60rpx">积分</view>
  63. <view class="pm_tit" style="width: 145rpx">任务达标率</view>
  64. </view>
  65. <view class="xx_box">
  66. <scroll-view style="height: 1000rpx" scroll-y="true" @scrolltolower="LoadMoress">
  67. <view @click="detailsBtn(item.id)" class="xx_item" v-for="(item, index) in information" :key="item.id">
  68. <view style="width: 64rpx; height: 64rpx">{{ index + 1 }}</view>
  69. <view style="width: 120rpx; font-size: 32rpx">{{ item.name }}</view>
  70. <view style="width: 60rpx">{{ item.active }}</view>
  71. <view>{{ item.score }}</view>
  72. <view>{{ item.completion_rate }}</view>
  73. </view>
  74. </scroll-view>
  75. </view>
  76. <view class="map_tit" style="margin-left: 90rpx">
  77. <image style="width: 211rpx; height: 52rpx" src="/static/img/right_img.png"></image>
  78. <view class="">文物研学</view>
  79. <image style="width: 211rpx; height: 52rpx" src="/static/img/left_img.png"></image>
  80. </view>
  81. <view @click="researchBtn" class="gengduo">更多</view>
  82. <view class="yx_box" @click="$common.navigateTo('/index_fenbao/HuoHuaLiYong/YanXue/XiangQing?id=' + research.id)">
  83. <view style="position: absolute; left: 6rpx; top: 6rpx">
  84. <image style="width: 160rpx; height: 240rpx" :src="research.image"></image>
  85. </view>
  86. <view style="margin-left: 200rpx">
  87. <view class="wwd">{{ research.title }}</view>
  88. <view class="time">活动时:{{ (research.start_time && research.start_time.split(' ')[0]) || '' }}</view>
  89. </view>
  90. <view class="baoming">
  91. <text>查看</text>
  92. <image style="margin-left: 10rpx; width: 32rpx; height: 32rpx" src="/static/img/arrow-right-line.png"></image>
  93. </view>
  94. </view>
  95. <!-- <view class="hd_btm">
  96. <view @click="researchBtn" style="display: flex;justify-content: flex-end;" >
  97. <view class="">查看更多</view>
  98. <image style="margin-left: 10rpx; width: 40rpx; height: 40rpx" src="/static/img/more.png"></image>
  99. </view>
  100. </view> -->
  101. <!-- 经典文物 -->
  102. <view class="map_tit" style="margin-left: 90rpx">
  103. <image style="width: 211rpx; height: 52rpx" src="/static/img/right_img.png"></image>
  104. <view class="">厦门文物</view>
  105. <image style="width: 211rpx; height: 52rpx" src="/static/img/left_img.png"></image>
  106. </view>
  107. <view @click="gengDuo" class="gengduo">更多</view>
  108. <view class="wenwu_box">
  109. <view @click="openBuildingInfo(item.id)" v-for="(item, index) in recommendList" :key="item.id">
  110. <view class="gc_item">
  111. <view class="gc_box" style="">
  112. <image v-if="item.thumbnail != null" style="width: 100%; height: 100%; border-radius: 15rpx" :src="item.thumbnail"></image>
  113. <image v-else src="https://huli-app.wenlvti.net/assets/addons/cms/img/noimage.jpg" style="width: 100%; height: 100%; border-radius: 15rpx"></image>
  114. </view>
  115. <view class="ww_tit">{{ item.title }}</view>
  116. <!-- <view class="bg_box">湖里区</view> -->
  117. <u-badge type="primary" max="99" :value="item.district" :absolute="true" :offset="[10, 5]"></u-badge>
  118. </view>
  119. </view>
  120. </view>
  121. <u-back-top :scrollTop="scrollTop" mode="square" top="1000" customStyle="background-color: #f1ceb4" :iconStyle="iconStyle"></u-back-top>
  122. </view>
  123. </template>
  124. <script>
  125. let that;
  126. export default {
  127. data() {
  128. return {
  129. user: {},
  130. iconStyle: {
  131. color: '#af7e44'
  132. },
  133. research: {} /* 研学 */,
  134. region_id: '' /* 排行区域id */,
  135. cycle: 'year' /* 年度id */,
  136. scrollTop: 0,
  137. Tab: 0,
  138. page: '1',
  139. page2: '1',
  140. isLoading: false,
  141. isLoading2: false,
  142. recommendList: [],
  143. swiperList: [],
  144. menuList: [
  145. {
  146. image: '/static/img/cd_bg2.png',
  147. title: '志愿服务',
  148. page: '/index_fenbao/fuWu/zuZhi/fuWu'
  149. },
  150. {
  151. image: '/static/img/cd_bg1.png',
  152. title: '巡查守护',
  153. page: '/index_fenbao/GuanLi/zhiYuanGeRen',
  154. path: '/index_fenbao/GuanLi/GuanLi'
  155. },
  156. {
  157. image: '/static/img/cd_bg1.png',
  158. title: '厦门文物',
  159. page: '/pages/wenWuPage/wenWuPage'
  160. },
  161. {
  162. image: '/static/img/cd_bg2.png',
  163. title: '活化利用',
  164. page: '/index_fenbao/HuoHuaLiYong/YanXue/HuoHuaLiYong'
  165. }
  166. ],
  167. newsList: {} /* 新闻 */,
  168. rankingList: [],
  169. // 信息列表
  170. information: []
  171. };
  172. },
  173. /* 页面触底 */
  174. onReachBottom() {
  175. if (this.isLoading) {
  176. return;
  177. } else {
  178. this.page++;
  179. this.getContentList();
  180. }
  181. },
  182. onShow() {
  183. this.page2 = 1;
  184. that.information = [];
  185. this.gitRankingList();
  186. },
  187. onLoad(option) {
  188. that = this;
  189. this.user = this.$common.userInfo();
  190. if (this.user === 'undefined' || this.user === '' || this.user === [] || this.user === null) {
  191. /* 跳转到登录页 */
  192. this.$common.toLogin();
  193. } else {
  194. // console.log(this.user);
  195. // 如果登录自动打卡
  196. this.checkInOnce();
  197. }
  198. this.getIndexBanner();
  199. this.getContentList();
  200. this.getCategoryOnlyChildList();
  201. this.getNewsNotice();
  202. // this.checkInOnce()
  203. this.activityLists();
  204. this.loadGlobalFont();
  205. },
  206. methods: {
  207. // 轮播
  208. getIndexBanner() {
  209. this.$api.getIndexBanner({ main_body_id: 1 }, function (res) {
  210. that.swiperList = res.data.filter((item) => {
  211. return item.title == '文物管家';
  212. });
  213. });
  214. },
  215. // 排行
  216. gitRankingList() {
  217. this.isLoading2 = true;
  218. this.$api.rankingList({ page: this.page2, pageSize: '50', main_body_id: 1, cycle: this.cycle || '', region_id: this.region_id || '' }, function (res) {
  219. that.isLoading2 = false;
  220. that.information = [...that.information, ...res.data];
  221. });
  222. },
  223. rankingTab(i) {
  224. this.Tab = i;
  225. this.page2 = 1;
  226. that.information = [];
  227. this.cycle = this.rankingList[i].cycleId;
  228. this.region_id = this.rankingList[i].id;
  229. this.gitRankingList();
  230. },
  231. getContentList() {
  232. this.isLoading = true;
  233. this.$api.getContentList({ main_body_id: 1, model_id: 1, page: this.page, pageSize: '10' }, function (res) {
  234. // console.log(res, 666666666);
  235. that.isLoading = false;
  236. that.recommendList = [...that.recommendList, ...res.data];
  237. });
  238. },
  239. LoadMoress() {
  240. if (this.isLoading2) {
  241. return;
  242. } else {
  243. this.page2++;
  244. this.gitRankingList(this.cycle, this.region_id);
  245. }
  246. },
  247. getCategoryOnlyChildList() {
  248. this.$api.getCategoryOnlyChildList({ main_body_id: 1, pid: '5' }, function (res) {
  249. if (res.code == 1) {
  250. let a = {
  251. title: '年度',
  252. cycleId: 'year'
  253. };
  254. let b = {
  255. title: '月度',
  256. cycleId: 'month'
  257. };
  258. let dataArray = Object.values(res.data);
  259. dataArray.unshift(a, b);
  260. that.rankingList = dataArray;
  261. // console.log( that.rankingList, 454);
  262. } else {
  263. // console.log(res);
  264. }
  265. });
  266. },
  267. menuBtn(i) {
  268. if (this.menuList[i].title === '厦门文物') {
  269. uni.switchTab({
  270. url: this.menuList[i].page
  271. });
  272. } else if (this.menuList[i].title === '巡查守护') {
  273. // 判断是否为管理员
  274. this.$api.userManageRegionCrAuth({ main_body_id: 1 }, function (res) {
  275. if (res.code === 1) {
  276. console.log(res.data, '管理员');
  277. if (res.data != false) {
  278. uni.navigateTo({
  279. url: that.menuList[i].path + '?id=' + res.data
  280. });
  281. } else {
  282. uni.navigateTo({
  283. url: that.menuList[i].page
  284. });
  285. }
  286. }
  287. });
  288. } else {
  289. uni.navigateTo({
  290. url: this.menuList[i].page
  291. });
  292. }
  293. },
  294. // 公告
  295. noticeBtn() {
  296. uni.navigateTo({
  297. url: '/index_fenbao/XinWen/XinWen?id=' + this.newsList.id
  298. });
  299. },
  300. // 公告
  301. getNewsNotice() {
  302. this.$api.getNotice({ main_body_id: 1 }, function (res) {
  303. if (res.code == 1) {
  304. that.newsList = res.data;
  305. // console.log(that.newsListTit,'新闻')
  306. }
  307. });
  308. },
  309. // 新闻公告
  310. // getNewsNotice(){
  311. // this.$api.getNewsNotice({main_body_id:1},function(res){
  312. // // console.log(res,'新闻')
  313. // that.newsList=res.data
  314. // })
  315. // },
  316. // 文物研学
  317. activityLists() {
  318. this.$api.activityLists({ main_body_id: 1, type: 1 }, function (res) {
  319. // console.log(res, '活动');
  320. that.research = res.data[0];
  321. });
  322. },
  323. // 时间戳转换
  324. // timestampToDate(timestamp) {
  325. // const date = new Date(timestamp);
  326. // const year = date.getFullYear();
  327. // const month = date.getMonth() + 1; // JavaScript月份从0开始,所以需要加1
  328. // const day = date.getDate();
  329. // // 补零操作,确保日期和月份始终为两位数
  330. // const formattedMonth = month < 10 ? '0' + month : month;
  331. // const formattedDay = day < 10 ? '0' + day : day;
  332. // return year + '-' + formattedMonth + '-' + formattedDay;
  333. // },
  334. checkInOnce() {
  335. // 获取当前UTC日期,确保跨时区的一致性
  336. const now = new Date();
  337. const todayUTC = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate()));
  338. const checkInKey = `checkInTimestamp_${todayUTC.toISOString().slice(0, 10)}`; // 根据UTC日期构建键
  339. console.log(checkInKey, '时间');
  340. // 从本地存储获取今天的打卡时间戳
  341. const lastCheckInTimestampStr = uni.getStorageSync(checkInKey);
  342. // 转换为日期对象进行比较,确保基于日期而非具体时间
  343. let lastCheckInDate;
  344. if (lastCheckInTimestampStr) {
  345. lastCheckInDate = new Date(parseInt(lastCheckInTimestampStr)).setHours(0, 0, 0, 0);
  346. } else {
  347. lastCheckInDate = null;
  348. }
  349. const nowDate = todayUTC.setHours(0, 0, 0, 0);
  350. // 检查昨天是否有打卡记录,且今天是新的日期
  351. if (lastCheckInDate && nowDate > lastCheckInDate) {
  352. // 新的一天,理论上允许打卡
  353. console.log('新的一天,可以打卡。');
  354. // 清除昨天的记录,准备新一天的打卡
  355. uni.removeStorageSync(checkInKey);
  356. // 实际调用打卡接口
  357. this.$api.checkIn({ main_body_id: 1 }, (res) => {
  358. if (res.code === 1) {
  359. console.log(res, '实际打卡成功');
  360. // 保存打卡时间戳
  361. uni.setStorageSync(checkInKey, now.getTime());
  362. } else {
  363. console.error('实际打卡失败:', res);
  364. }
  365. });
  366. } else if (lastCheckInDate && nowDate === lastCheckInDate) {
  367. // 如果今天已经有打卡记录,则提示已打卡
  368. console.log('今日已打卡,明天再来吧!');
  369. } else {
  370. // 如果昨天没有打卡记录(首次尝试打卡)
  371. console.log('今天首次尝试打卡。');
  372. // 尝试调用打卡接口
  373. this.$api.checkIn({ main_body_id: 1 }, (res) => {
  374. if (res.code === 1) {
  375. console.log(res, '打卡成功');
  376. // 保存打卡时间戳
  377. uni.setStorageSync(checkInKey, now.getTime());
  378. } else {
  379. console.error('打卡失败:', res);
  380. }
  381. });
  382. }
  383. },
  384. // 排行
  385. detailsBtn(id) {
  386. uni.navigateTo({
  387. url: '/index_fenbao/fuWu/paiMing/paiMingXQ?id=' + id
  388. });
  389. },
  390. researchBtn() {
  391. uni.navigateTo({
  392. url: '/index_fenbao/HuoHuaLiYong/YanXue/YanXue'
  393. });
  394. },
  395. // 文物风采
  396. openBuildingInfo(id) {
  397. uni.navigateTo({
  398. url: '/index_fenbao/GuanLi/XiangQing?id=' + id
  399. });
  400. },
  401. // 更多风采
  402. gengDuo() {
  403. uni.navigateTo({
  404. url: '/index_fenbao/GuanLi/gengDuoFC'
  405. });
  406. },
  407. onPageScroll(e) {
  408. this.scrollTop = e.scrollTop;
  409. },
  410. // 加载字体
  411. loadGlobalFont() {
  412. try {
  413. uni.loadFontFace({
  414. family: 'MyGlobalFont', // 自定义字体名
  415. source: 'url("https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/songTi.ttf")',
  416. success() {
  417. console.log('全局字体加载成功');
  418. }
  419. });
  420. } catch (error) {
  421. console.error('全局字体加载异常', error);
  422. }
  423. }
  424. }
  425. };
  426. </script>
  427. <style>
  428. /deep/.u-swiper-indicator__wrapper__dot--active {
  429. width: 5px !important;
  430. }
  431. .box {
  432. height: auto;
  433. width: 100%;
  434. padding-bottom: 50rpx;
  435. background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/gj_bg.png');
  436. background-repeat: repeat-y;
  437. background-size: 100%;
  438. }
  439. .tuchu {
  440. color: #000000 !important;
  441. }
  442. .img {
  443. width: 100%;
  444. height: 100%;
  445. }
  446. .cd_box {
  447. display: flex;
  448. width: 90%;
  449. margin: auto;
  450. justify-content: space-between;
  451. flex-flow: wrap;
  452. margin-top: 60rpx;
  453. margin-bottom: 50rpx;
  454. }
  455. .cd_item {
  456. width: 322rpx;
  457. position: relative;
  458. margin-top: 34rpx;
  459. }
  460. .cd_tit {
  461. position: absolute;
  462. font-size: 32rpx;
  463. top: 4rpx;
  464. left: 90rpx;
  465. font-weight: 900;
  466. line-height: 64rpx;
  467. letter-spacing: 8rpx;
  468. color: #feece3;
  469. font-family: 'MyGlobalFont';
  470. }
  471. .gengduo {
  472. width: 175rpx;
  473. height: 60rpx;
  474. position: relative;
  475. top: 10px;
  476. left: 30px;
  477. text-align: center;
  478. line-height: 62rpx;
  479. font-size: 30rpx;
  480. font-weight: 600;
  481. margin-left: 475rpx;
  482. background-image: url('/static/img/tab.png');
  483. background-size: 100% 100%;
  484. font-family: 'MyGlobalFont';
  485. }
  486. .map_tit {
  487. display: flex;
  488. align-items: center;
  489. margin-left: 60rpx;
  490. margin-top: 40rpx;
  491. font-size: 40rpx;
  492. font-weight: 900;
  493. line-height: 52rpx;
  494. color: #444444;
  495. font-family: 'MyGlobalFont';
  496. }
  497. .ranking_menu {
  498. width: 90%;
  499. margin: auto;
  500. margin-top: 30rpx;
  501. display: flex;
  502. justify-content: space-around;
  503. font-size: 28rpx;
  504. color: rgba(68, 68, 68, 0.6);
  505. text-align: center;
  506. line-height: 60rpx;
  507. }
  508. .ranking_item {
  509. display: inline-block;
  510. width: 200rpx;
  511. height: 62rpx;
  512. font-family: 'MyGlobalFont';
  513. }
  514. .active {
  515. background-image: url('/static/img/tab.png');
  516. background-size: 100% 100%;
  517. }
  518. .pm_box {
  519. display: flex;
  520. justify-content: space-between;
  521. width: 90%;
  522. margin: auto;
  523. margin-top: 40rpx;
  524. }
  525. .pm_tit {
  526. width: 135rpx;
  527. font-size: 26rpx;
  528. font-family: MiSans, MiSans;
  529. font-weight: 400;
  530. color: rgba(68, 68, 68, 0.6);
  531. line-height: 40rpx;
  532. }
  533. .xx_box {
  534. width: 90%;
  535. height: 400rpx;
  536. margin-top: 40rpx;
  537. margin-left: 30rpx;
  538. overflow: scroll;
  539. }
  540. .xx_item {
  541. display: flex;
  542. justify-content: space-between;
  543. margin-top: 40rpx;
  544. font-size: 28rpx;
  545. color: #444444;
  546. line-height: 44rpx;
  547. }
  548. .yx_box {
  549. position: relative;
  550. width: 670rpx;
  551. height: 252rpx;
  552. display: flex;
  553. align-items: center;
  554. padding-right: 10rpx;
  555. justify-content: space-around;
  556. margin: auto;
  557. margin-top: 34rpx;
  558. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/hh_item_bg.png');
  559. background-size: 100% 100%;
  560. }
  561. .wwd {
  562. font-size: 36rpx;
  563. font-weight: 400;
  564. color: #444444;
  565. line-height: 52rpx;
  566. }
  567. .time {
  568. font-size: 28rpx;
  569. color: rgba(68, 68, 68, 0.6);
  570. line-height: 44rpx;
  571. margin-top: 12rpx;
  572. }
  573. .baoming {
  574. display: flex;
  575. width: 145rpx;
  576. height: 56rpx;
  577. line-height: 56rpx;
  578. justify-content: center;
  579. align-items: center;
  580. font-size: 28rpx;
  581. color: #eba869;
  582. border: 2rpx solid #eba869;
  583. }
  584. .hd_btm {
  585. width: 90%;
  586. margin: auto;
  587. margin-top: 12rpx;
  588. letter-spacing: 0.2em;
  589. }
  590. .gg_box {
  591. width: 670rpx;
  592. height: 150rpx;
  593. margin: auto;
  594. margin-top: 20rpx;
  595. padding: 0 20rpx 0 20rpx;
  596. border: 2rpx solid #ebc9a9;
  597. }
  598. .gg_item {
  599. display: flex;
  600. align-items: center;
  601. justify-content: space-between;
  602. margin-top: 25rpx;
  603. width: 630rpx;
  604. height: 80rpx;
  605. }
  606. .wenwu_box {
  607. width: 92%;
  608. margin: auto;
  609. margin-top: 25rpx;
  610. display: flex;
  611. flex-flow: wrap;
  612. justify-content: space-between;
  613. }
  614. .gc_item {
  615. position: relative;
  616. width: 324rpx;
  617. color: #444444;
  618. /* font-weight: 900; */
  619. font-size: 32rpx;
  620. margin-top: 20rpx;
  621. font-family: 'MyGlobalFont';
  622. /* background: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/ww_bg2.png') no-repeat;
  623. background-size: 100% 100%; */
  624. }
  625. .gc_box {
  626. width: 333rpx;
  627. height: 280rpx;
  628. }
  629. .bg_box {
  630. width: 184rpx;
  631. height: 62rpx;
  632. margin: auto;
  633. margin-top: 20rpx;
  634. line-height: 62rpx;
  635. color: #fef3e1;
  636. font-size: 28rpx;
  637. font-weight: 500;
  638. background-image: url('/static/img/tab.png');
  639. background-size: 100% 100%;
  640. font-family: 'MyGlobalFont';
  641. }
  642. .ww_tit {
  643. white-space: nowrap;
  644. overflow: hidden;
  645. text-overflow: ellipsis;
  646. margin-top: 10rpx;
  647. margin-left: 10rpx;
  648. }
  649. /deep/.u-notice-bar.data-v-24c07869 {
  650. border: 2rpx solid #ebc9a9;
  651. }
  652. /deep/.u-notice-bar.data-v-6862e5d8 {
  653. border: 2rpx solid #ebc9a9;
  654. }
  655. </style>