Home.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  1. <template>
  2. <view class="root">
  3. <view class="uni-margin-wrap">
  4. <swiper class="swiper" indicator-dots circular autoplay interval=3000>
  5. <swiper-item v-for="(item,index) in aSwipers" :key="index" @click="clickItem(index)">
  6. <image class="swiper-image" mode="aspectFit" :src="aSwipers[index]"></image>
  7. </swiper-item>
  8. </swiper>
  9. </view>
  10. <view class="category">
  11. <view class="game-center" @click="gameCenter">
  12. <image mode="scaleToFill" src="/static/home/GameCenter.png"></image>
  13. <text>游戏大厅</text>
  14. </view>
  15. <view class="bbeng" @click="bbeng">
  16. <image mode="scaleToFill" src="/static/home/BB.png"></image>
  17. <text>体感游戏</text>
  18. </view>
  19. <view class="shang-wan" @click="shangWan">
  20. <image mode="scaleToFill" src="/static/home/ShanWan.png"></image>
  21. <text>闪玩在线</text>
  22. </view>
  23. <view class="game-wallet" @click="gameWallet">
  24. <image mode="scaleToFill" src="/static/home/GameWallet.png"></image>
  25. <text>游戏钱包</text>
  26. </view>
  27. </view>
  28. <view class="recommend">
  29. <view class="title">
  30. <text class="today">热门推荐</text>
  31. <view class="more" @click="recommendMore">
  32. <text>更多推荐</text>
  33. <image class='left-arrow' mode="scaleToFill" src="../../static/home/LeftArrow.png"></image>
  34. </view>
  35. </view>
  36. <view class="waterfall-flow">
  37. <view class="left">
  38. <image mode="widthFix" :src="aLeftPic1" @click="leftPic1"></image>
  39. <image mode="widthFix" :src="aLeftPic2" @click="leftPic2"></image>
  40. </view>
  41. <view class="right">
  42. <image mode="heightFix" :src="aRightPic" @click="rightPic"></image>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="today-recommend">
  47. <view class="title">
  48. <text class="today">今天玩什么</text>
  49. <view class="more" @click="todayRecommendMore">
  50. <text>更多推荐</text>
  51. <image class='left-arrow' mode="scaleToFill" src="../../static/home/LeftArrow.png"></image>
  52. </view>
  53. </view>
  54. <!-- <view class="items" v-for="(item,index) in aTodayRecArr" :key="index" @click="clickTodayRecItem(index)"> -->
  55. <view class="items" v-for="(item,index) in aTodayRecArr" :key="index">
  56. <view class="content">
  57. <view class="pic">
  58. <image mode="widthFix" :src='item.icon'></image>
  59. </view>
  60. <view class="detail">
  61. <view class="detailRow1">
  62. <view class="title">{{item.name}}</view>
  63. <!-- <view class="tips" v-for="(item1,index1) in item.tip" :key="index1">
  64. <view class="tip">{{item1.tip}}</view> -->
  65. <!-- <view class="tip">{{item.tip}}</view> -->
  66. <!-- <view class="tip" v-for="(itemTip,tipIndex) in item.tip" :key="tipIndex" :background-color="itemTip.color"> -->
  67. <view class="tip" v-for="(itemTip,tipIndex) in item.tip" :key="tipIndex" :style="{'background-color':itemTip.color}">
  68. {{itemTip.tip}}
  69. </view>
  70. <!-- <view class="tip">{{itemTip.tip}}</view> -->
  71. </view>
  72. <view class="detailRow2">
  73. <view class="type">{{item.type}}</view>
  74. <view class="verticalLine">|</view>
  75. <!-- <text> | </text> -->
  76. <view class="player">{{item.player}}</view>
  77. <text>人在玩</text>
  78. </view>
  79. <!-- <text class="intro">{{item[2]}}</text> -->
  80. <view class="intro">{{item.sub}}</view>
  81. </view>
  82. <!-- <view class="left-arrow">
  83. <image mode="scaleToFill" src="/static/home/LeftArrow.png"></image>
  84. </view> -->
  85. <view class="buttom-box">
  86. <button class="play-btn" @click="clickTodayRecItem(index)">开始玩</button>
  87. </view>
  88. </view>
  89. <view class="itemLine"></view>
  90. <!-- <view class="buttom-box">
  91. <button class="play-btn">开始玩</button>
  92. </view> -->
  93. </view>
  94. </view>
  95. <!-- 单个游戏推荐弹窗 -->
  96. <div v-show="popup">
  97. <div class="dialog">
  98. <image src="../../static/home/btnClose.png" id="closeButton" @click="closepopup"></image>
  99. <image mode="widthFix" src="../../static/home/4.jpg" id="showImage" @click="clickHomePop"></image>
  100. </div>
  101. <!--这里是半透明背景层-->
  102. <div class="over" @click="closepopup"></div>
  103. </div>
  104. <!-- 敬请期待弹窗 -->
  105. <div v-show="showTipSwitch">
  106. <div class="dialog">
  107. <view id="tipToBeOpened">敬请期待</view>
  108. </div>
  109. <!--这里是半透明背景层-->
  110. <div class="over" @click="closeTip"></div>
  111. </div>
  112. </view>
  113. </template>
  114. <script>
  115. import md5 from "../../common/md5.js";
  116. export default {
  117. data() {
  118. return {
  119. aSwipers: [],
  120. aLeftPic1: '',
  121. aLeftPic2: '',
  122. aRightPic: '',
  123. aTodayRecArr: [{
  124. "icon": "http://img.m3guo.com/group3/M00/00/F1/wKgMHF3yJQWADJkDAAGX3Q-p0QU945.gif",
  125. "name": "贪婪洞窟",
  126. "tip": [{
  127. "tip": "精品",
  128. "color": "#000000",
  129. }],
  130. "type": "策略",
  131. "player": "122079",
  132. "sub": "地牢探险Roguelike",
  133. }],
  134. //弹窗相关属性
  135. popup: 0,
  136. showTipSwitch: 0,
  137. gameIconArr: [
  138. '../../static/home/Icon1.jpg',
  139. '../../static/home/Icon2.jpg',
  140. '../../static/home/Icon3.jpg',
  141. '../../static/home/Icon4.jpg',
  142. ],
  143. //tip对应颜色
  144. colorOfTip: {
  145. "精品": "#a173ff",
  146. "热门": "#cd000b",
  147. "最新": "#c27547",
  148. "礼包": "#d1a866",
  149. }
  150. }
  151. },
  152. onLoad() {
  153. // 防止返回按钮
  154. if (uni.getSystemInfoSync().platform === 'devtools') {
  155. console.log('H5')
  156. history.pushState(null, null, document.URL);
  157. window.addEventListener('popstate', function() {
  158. history.pushState(null, null, document.URL);
  159. });
  160. } else {
  161. console.log('运行在手机中')
  162. }
  163. let gameList = getApp().globalData.gameList;
  164. if (gameList === '') {
  165. uni.navigateTo({
  166. url: '/pages/index/index',
  167. });
  168. return;
  169. }
  170. this.aSwipers = ['../../static/home/1.jpg',
  171. '../../static/home/2.png',
  172. '../../static/home/3.jpg',
  173. '../../static/home/4.jpg'
  174. ];
  175. this.aLeftPic1 = '../../static/home/LeftPic1.jpeg';
  176. this.aLeftPic2 = '../../static/home/LeftPic2.gif';
  177. this.aRightPic = '../../static/home/RightPic.png';
  178. this.showpopup();
  179. this.aTodayRecArr = [];
  180. for (let i = 0; i < 4; i++) {
  181. let playerNum = (gameList[7 + i].player) ? (gameList[7 + i].player) : 0;
  182. // playerNum = !playerNum ? 0 : playerNum;
  183. let str = Math.floor(playerNum / 1000) / 10 + "万";
  184. let tip = [];
  185. if (gameList[7 + i].tip) {
  186. tip.push({
  187. "tip": gameList[7 + i].tip,
  188. "color": this.colorOfTip[gameList[7 + i].tip],
  189. });
  190. }
  191. let info = {
  192. // "icon": gameList[7 + i].icon,
  193. "icon": this.gameIconArr[i],
  194. "name": gameList[7 + i].name,
  195. "tip": tip,
  196. "type": gameList[7 + i].type,
  197. "player": str,
  198. "sub": gameList[7 + i].sub,
  199. }
  200. this.aTodayRecArr.push(info);
  201. }
  202. uni.hideLoading();
  203. },
  204. methods: {
  205. //请求游戏列表
  206. getGameList(callback) {
  207. let url = 'https://www.b-beng.com/game_center/getGameList?'
  208. uni.request({
  209. url: url,
  210. method: 'GET',
  211. success: (res) => {
  212. callback(res);
  213. },
  214. fail: (res) => {
  215. console.log("fail:====" + res)
  216. }
  217. })
  218. },
  219. //请求游戏列表回调
  220. callbackGameList(res) {
  221. // this.data_category = res;
  222. console.log("请求游戏列表回调", res)
  223. this.aTodayRecArr = [];
  224. let gameList = res.data.list;
  225. for (let i = 0; i < 4; i++) {
  226. let playerNum = (gameList[7 + i].player) ? (gameList[7 + i].player) : 0;
  227. // playerNum = !playerNum ? 0 : playerNum;
  228. let str = Math.floor(playerNum / 1000) / 10 + "万";
  229. let tip = [];
  230. if (gameList[7 + i].tip) {
  231. tip.push({
  232. "tip": gameList[7 + i].tip,
  233. "color": this.colorOfTip[gameList[7 + i].tip],
  234. })
  235. }
  236. let info = {
  237. // "icon": gameList[7 + i].icon,
  238. "icon": this.gameIconArr[i],
  239. "name": gameList[7 + i].name,
  240. "tip": tip,
  241. "type": gameList[7 + i].type,
  242. "player": str,
  243. "sub": gameList[7 + i].sub,
  244. }
  245. this.aTodayRecArr.push(info);
  246. }
  247. },
  248. getQueryString: function(name) {
  249. const reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
  250. const search = window.location.search.split('?')[1] || '';
  251. const r = search.match(reg) || [];
  252. return r[2];
  253. },
  254. goToGame: function() {
  255. console.log("进入游戏页");
  256. //原始数据
  257. const params = {
  258. channel: '14633',
  259. openid: getApp().globalData.openid, //'sdsj2020',
  260. // openid: 'sdsj2020',
  261. time: parseInt(new Date().getTime().toString().substring(0, 10)),
  262. nick: getApp().globalData.openid.substring(0, 3) + '***' + getApp().globalData.openid.substring(7, 11),
  263. avatar: 'https://img.m3guo.com/group4/M00/00/5A/wKgMHF_ODXGAfBHbAADCVYIwtio762.png',
  264. sex: 1,
  265. phone: '',
  266. };
  267. // 参与url的数据
  268. const paramsToUrl = {
  269. channel: params.channel,
  270. openid: encodeURIComponent(params.openid),
  271. time: params.time,
  272. nick: encodeURIComponent(params.nick),
  273. avatar: encodeURIComponent(params.avatar),
  274. sex: params.sex,
  275. phone: params.phone,
  276. };
  277. //参与sign数据
  278. const paramsToSign = {
  279. channel: params.channel,
  280. openid: encodeURIComponent(params.openid),
  281. time: params.time,
  282. nick: params.nick,
  283. avatar: params.avatar,
  284. sex: params.sex,
  285. phone: params.phone,
  286. }
  287. const appkey = '0262d5626aa24065b39eb3c185af910e'
  288. const string =
  289. `channel=${paramsToSign.channel}&openid=${paramsToSign.openid}&time=${paramsToSign.time}&nick=${paramsToSign.nick}&avatar=${paramsToSign.avatar}&sex=${paramsToSign.sex}&phone=${paramsToSign.phone}${appkey}`;
  290. // console.log('string=',string);
  291. let sign = md5.hex_md5(string).toLowerCase();
  292. // console.log('sign=',sign);
  293. //url
  294. let home_url = 'http://www.shandw.com/auth/';
  295. let sdw_simple = 6;
  296. let sdw_ld = 1;
  297. let gid = getApp().globalData.gid;
  298. let url =
  299. `${home_url}?channel=${paramsToUrl.channel}&openid=${paramsToUrl.openid}&time=${paramsToUrl.time}&nick=${paramsToUrl.nick}&avatar=${paramsToUrl.avatar}&sex=${paramsToUrl.sex}&phone=${paramsToUrl.phone}&sign=${sign}&sdw_simple=${sdw_simple}&sdw_ld=${sdw_ld}&gid=${gid}`;
  300. window.location.href = url;
  301. // uni.navigateTo({
  302. // url: '/pages/Game/Game',
  303. // });
  304. },
  305. clickItem: function(index) {
  306. // console.log(index);
  307. getApp().globalData.gid = getApp().globalData.gameList[index].id;
  308. this.goToGame();
  309. },
  310. gameCenter: function(e) {
  311. // console.log(e);
  312. this.showTip();
  313. },
  314. bbeng: function(e) {
  315. // console.log(e);
  316. // uni.navigateTo({
  317. // url: '../BBeng/BBeng',
  318. // });
  319. this.showTip();
  320. },
  321. shangWan: function(e) {
  322. console.log("进入闪电玩页");
  323. //原始数据
  324. const params = {
  325. channel: '14633',
  326. openid: getApp().globalData.openid, //'sdsj2020',
  327. // openid: 'sdsj2020',
  328. time: parseInt(new Date().getTime().toString().substring(0, 10)),
  329. nick: getApp().globalData.openid.substring(0, 3) + '***' + getApp().globalData.openid.substring(7, 11),
  330. avatar: 'https://img.m3guo.com/group4/M00/00/5A/wKgMHF_ODXGAfBHbAADCVYIwtio762.png',
  331. sex: 1,
  332. phone: '',
  333. };
  334. // 参与url的数据
  335. const paramsToUrl = {
  336. channel: params.channel,
  337. openid: encodeURIComponent(params.openid),
  338. time: params.time,
  339. nick: encodeURIComponent(params.nick),
  340. avatar: encodeURIComponent(params.avatar),
  341. sex: params.sex,
  342. phone: params.phone,
  343. };
  344. //参与sign数据
  345. const paramsToSign = {
  346. channel: params.channel,
  347. openid: encodeURIComponent(params.openid),
  348. time: params.time,
  349. nick: params.nick,
  350. avatar: params.avatar,
  351. sex: params.sex,
  352. phone: params.phone,
  353. }
  354. const appkey = '0262d5626aa24065b39eb3c185af910e'
  355. const string =
  356. `channel=${paramsToSign.channel}&openid=${paramsToSign.openid}&time=${paramsToSign.time}&nick=${paramsToSign.nick}&avatar=${paramsToSign.avatar}&sex=${paramsToSign.sex}&phone=${paramsToSign.phone}${appkey}`;
  357. // console.log('string=',string);
  358. let sign = md5.hex_md5(string).toLowerCase();
  359. // console.log('sign=',sign);
  360. //url
  361. let home_url = 'http://www.shandw.com/auth/';
  362. let sdw_simple = 2;
  363. let sdw_ld = 1;
  364. let url =
  365. `${home_url}?channel=${paramsToUrl.channel}&openid=${paramsToUrl.openid}&time=${paramsToUrl.time}&nick=${paramsToUrl.nick}&avatar=${paramsToUrl.avatar}&sex=${paramsToUrl.sex}&phone=${paramsToUrl.phone}&sign=${sign}&sdw_simple=${sdw_simple}&sdw_ld=${sdw_ld}`;
  366. console.log('url=', url);
  367. window.location.href = url;
  368. },
  369. gameWallet: function(e) {
  370. // console.log(e);
  371. this.showTip();
  372. },
  373. recommendMore: function(e) {
  374. console.log(e);
  375. this.shangWan();
  376. },
  377. leftPic1: function(e) {
  378. // console.log(e);
  379. getApp().globalData.gid = getApp().globalData.gameList[4].id;
  380. this.goToGame();
  381. },
  382. leftPic2: function(e) {
  383. // console.log(e);
  384. getApp().globalData.gid = getApp().globalData.gameList[5].id;
  385. this.goToGame();
  386. },
  387. rightPic: function(e) {
  388. // console.log(e);
  389. getApp().globalData.gid = getApp().globalData.gameList[6].id;
  390. this.goToGame();
  391. },
  392. todayRecommendMore: function(e) {
  393. // console.log(e);
  394. this.shangWan();
  395. },
  396. clickTodayRecItem: function(index) {
  397. // console.log(index);
  398. getApp().globalData.gid = getApp().globalData.gameList[7 + index].id;
  399. this.goToGame();
  400. },
  401. //打开活动规则页面
  402. showpopup() {
  403. this.popup = 1;
  404. },
  405. //关闭活动规则页面
  406. closepopup() {
  407. this.popup = 0;
  408. },
  409. //打开敬请期待
  410. showTip() {
  411. this.showTipSwitch = 1;
  412. },
  413. //关闭敬请期待
  414. closeTip() {
  415. this.showTipSwitch = 0;
  416. },
  417. //点击首页推荐的那个游戏
  418. clickHomePop() {
  419. getApp().globalData.gid = getApp().globalData.gameList[3].id;
  420. this.goToGame();
  421. },
  422. },
  423. // onNavigationBarButtonTap() {
  424. // console.log("点击了自定义按钮");
  425. // },
  426. }
  427. </script>
  428. <style>
  429. .root {
  430. /* position:fixed; */
  431. width: 100%;
  432. height: 100%;
  433. display: flex;
  434. flex-direction: column;
  435. align-items: center;
  436. justify-content: center;
  437. /* border:1px solid blue; */
  438. }
  439. .uni-margin-wrap {
  440. width: 90%;
  441. height: 100%;
  442. margin-top: 10rpx;
  443. /* border:1px solid blue; */
  444. }
  445. .swiper {
  446. margin-top: -124rpx;
  447. height: 400rpx;
  448. /* border:1px solid blue; */
  449. }
  450. .swiper-item {
  451. /* display: block; */
  452. /* line-height: 400rpx; */
  453. /* text-align: center; */
  454. /* border:1px solid blue; */
  455. }
  456. /*图片宽度设置100% ,高度300upx(设为auto图片无法显示)*/
  457. .swiper-image {
  458. width: 100%;
  459. /* height: 400rpx; */
  460. /* display: block; //默认是inline-block 会有几px的空白 */
  461. border: none;
  462. /* border:1px solid blue; */
  463. }
  464. .category {
  465. width: 100%;
  466. height: 200rpx;
  467. display: flex;
  468. flex-direction: row;
  469. align-items: center;
  470. justify-content: center;
  471. /* border:1px solid red; */
  472. }
  473. .category view {
  474. width: 230rpx;
  475. height: 100rpx;
  476. display: flex;
  477. flex-direction: column;
  478. align-items: center;
  479. justify-content: space-around;
  480. /* border:1px solid red; */
  481. }
  482. .category image {
  483. width: 62rpx;
  484. height: 62rpx;
  485. }
  486. .category text {
  487. color: #BBBBBB;
  488. font-size: 20rpx;
  489. font-weight: 700;
  490. }
  491. /* recommend */
  492. .recommend {
  493. width: 100%;
  494. display: flex;
  495. flex-direction: column;
  496. align-items: center;
  497. justify-content: center;
  498. /* border:1px solid red; */
  499. }
  500. .recommend .title {
  501. width: 90%;
  502. /* height:62rpx; */
  503. display: flex;
  504. flex-direction: row;
  505. align-items: center;
  506. justify-content: space-between;
  507. /* border:1px solid red; */
  508. }
  509. .recommend .title .today {
  510. /* color: #BBBBBB; */
  511. font-size: 40rpx;
  512. font-weight: 700;
  513. /* margin-bottom: 50rpx; */
  514. }
  515. .recommend .title .more {
  516. display: flex;
  517. flex-direction: row;
  518. align-items: center;
  519. justify-content: space-between;
  520. /* border:1px solid blue; */
  521. }
  522. .recommend .title .more text {
  523. color: #BBBBBB;
  524. font-size: 20rpx;
  525. font-weight: 700;
  526. /* border:1px solid red; */
  527. }
  528. .recommend .title .more .left-arrow {
  529. width: 20rpx;
  530. height: 20rpx;
  531. /* border:1px solid red; */
  532. }
  533. .recommend .waterfall-flow {
  534. width: 90%;
  535. height: 360rpx;
  536. margin-top: 50rpx;
  537. display: flex;
  538. flex-direction: row;
  539. /* align-items: center; */
  540. /* justify-content: space-between; */
  541. /* border: 1px solid red; */
  542. }
  543. .recommend .waterfall-flow .left {
  544. /* width: 68%; */
  545. /* height: 90%; */
  546. width: 500rpx;
  547. display: flex;
  548. flex-direction: column;
  549. /* align-items: center; */
  550. /* justify-content: space-between; */
  551. /* border:1px solid blue; */
  552. }
  553. /* .left{
  554. width: 49%;
  555. height: 100%;
  556. display: flex;
  557. flex-direction: column;
  558. justify-content: space-between;
  559. } */
  560. .recommend .waterfall-flow .left image {
  561. width: 100%;
  562. height: 200rpx;
  563. margin-bottom: 22rpx;
  564. border-radius: 10rpx;
  565. /* border:1px solid red; */
  566. }
  567. .recommend .waterfall-flow .right {
  568. /* width: 36%;
  569. height: 80%; */
  570. width: 200rpx;
  571. /* margin-right: 0rpx; */
  572. margin-left: 22rpx;
  573. /* border:1px solid blue; */
  574. }
  575. .recommend .waterfall-flow .right image {
  576. /* width: 190rpx; */
  577. /* height: 100%; */
  578. height: 339rpx;
  579. border-radius: 10rpx;
  580. /* border:1px solid red; */
  581. }
  582. .today-recommend {
  583. width: 100%;
  584. margin-top: 50rpx;
  585. display: flex;
  586. flex-direction: column;
  587. align-items: center;
  588. justify-content: center;
  589. /* border:1rpx solid red; */
  590. }
  591. .today-recommend .title {
  592. width: 90%;
  593. /* height:62rpx; */
  594. display: flex;
  595. flex-direction: row;
  596. align-items: center;
  597. justify-content: space-between;
  598. /* border:1px solid red; */
  599. }
  600. .today-recommend .title .today {
  601. /* color: #BBBBBB; */
  602. font-size: 40rpx;
  603. font-weight: 700;
  604. margin-bottom: 50rpx;
  605. }
  606. .today-recommend .title .more {
  607. display: flex;
  608. flex-direction: row;
  609. align-items: center;
  610. justify-content: space-between;
  611. margin-bottom: 50rpx;
  612. /* border:1px solid blue; */
  613. }
  614. .today-recommend .title .more text {
  615. color: #BBBBBB;
  616. font-size: 20rpx;
  617. font-weight: 700;
  618. /* border:1px solid red; */
  619. }
  620. .today-recommend .title .more .left-arrow {
  621. width: 20rpx;
  622. height: 20rpx;
  623. /* border:1px solid red; */
  624. }
  625. .today-recommend .items {
  626. width: 90%;
  627. height: 180rpx;
  628. margin-top: 20rpx;
  629. display: flex;
  630. flex-direction: column;
  631. align-items: center;
  632. justify-content: flex-start;
  633. /* border: 1rpx solid #E5E5E5; */
  634. /* border-top: #007AFF;
  635. border-left: #4CD964;
  636. border-right: #007AFF; */
  637. }
  638. .itemLine {
  639. width: 680rpx;
  640. height: 2rpx;
  641. background-color: #E5E5E5;
  642. margin-top: 20rpx;
  643. }
  644. .today-recommend .items .content {
  645. width: 100%;
  646. display: flex;
  647. flex-direction: row;
  648. align-items: center;
  649. /* border:1px solid blue; */
  650. }
  651. .today-recommend .items .content .pic {
  652. /* margin: 10rpx; */
  653. /* border:1px solid green; */
  654. height: 160rpx;
  655. }
  656. .today-recommend .items .content .pic image {
  657. width: 160rpx;
  658. height: 160rpx;
  659. /* border:1px solid red; */
  660. border-radius: 10rpx;
  661. border-radius: 30rpx;
  662. }
  663. .today-recommend .items .content .detail {
  664. margin-left: 20rpx;
  665. margin-right: 10rpx;
  666. /* margin-top: 10rpx; */
  667. /* border: 1px solid red; */
  668. height: 140rpx;
  669. /* justify-content: space-between;
  670. display: flex;
  671. flex-direction: column; */
  672. }
  673. .today-recommend .items .content .detail .title {
  674. /* margin-top: 20rpx; */
  675. font-size: 36rpx;
  676. font-weight: 700;
  677. /* border: 1px solid red; */
  678. width: auto;
  679. color: #5f5f5f;
  680. }
  681. .today-recommend .items .content .detail .intro {
  682. color: #797979;
  683. font-size: 28rpx;
  684. text-align: left;
  685. font-weight: 600;
  686. /* border:1px solid red; */
  687. width: 340rpx;
  688. height: 140rpx;
  689. margin-top: 10rpx;
  690. }
  691. .today-recommend .items .content .detail .detailRow1 {
  692. display: flex;
  693. flex-direction: row;
  694. }
  695. .today-recommend .items .content .detail .detailRow2 {
  696. display: flex;
  697. flex-direction: row;
  698. margin-top: 15rpx;
  699. color: #797979;
  700. font-size: 27rpx;
  701. text-align: left;
  702. font-weight: 400;
  703. }
  704. .tips {
  705. /* display: flex;
  706. flex-direction: row;
  707. width: 140rpx;
  708. height: 62rpx;
  709. border: 1px solid red; */
  710. }
  711. .tip {
  712. /* border: 1px solid red; */
  713. /* background-color: #F37B1D; */
  714. align-self: center;
  715. margin-left: 6rpx;
  716. border-radius: 6rpx;
  717. color: #FFFFFF;
  718. /* color: #000000; */
  719. font-size: 24rpx;
  720. padding: 6rpx;
  721. width: auto;
  722. }
  723. .verticalLine {
  724. margin-left: 6rpx;
  725. margin-right: 6rpx;
  726. }
  727. .player {
  728. color: #F37B1D;
  729. font-style: italic;
  730. font-weight: 700;
  731. }
  732. /* .today-recommend .items .content .left-arrow {
  733. margin-right: 30rpx;
  734. display: flex;
  735. align-items: center;
  736. justify-content: center;
  737. border:1px solid red;
  738. }
  739. .today-recommend .items .content .left-arrow image {
  740. width: 20rpx;
  741. height: 20rpx;
  742. border:1px solid red;
  743. }
  744. */
  745. .today-recommend .items .buttom-box {
  746. width: 140rpx;
  747. height: 62rpx;
  748. /* border: 1px solid red; */
  749. }
  750. .today-recommend .items .buttom-box button {
  751. width: 140rpx;
  752. height: 62rpx;
  753. background: linear-gradient(180deg, #00C0FF 0%, #008CFF 100%);
  754. border-radius: 6px;
  755. font-size: 12px;
  756. color: #FFFFFF;
  757. /* margin-right: 30rpx; */
  758. /* margin-top: -20rpx; */
  759. display: flex;
  760. justify-content: center;
  761. align-items: center;
  762. /* border:1px solid red; */
  763. }
  764. .dialog {
  765. position: fixed;
  766. left: 50%;
  767. top: 50%;
  768. transform: translate(-50%, -50%);
  769. z-index: 1000;
  770. flex-direction: column;
  771. }
  772. #showImage {
  773. width: 343px;
  774. /* height: 198px; */
  775. border-radius: 20rpx;
  776. }
  777. .over {
  778. position: fixed;
  779. width: 100%;
  780. height: 100%;
  781. /* //透明度为70% */
  782. opacity: 0.7;
  783. filter: alpha(opacity=70);
  784. top: 0;
  785. left: 0;
  786. z-index: 999;
  787. background-color: #000000;
  788. }
  789. #closeButton {
  790. width: 33px;
  791. height: 33px;
  792. position: relative;
  793. float: right;
  794. margin-bottom: 10px;
  795. /* border:1px solid red; */
  796. }
  797. #tipToBeOpened {
  798. font-size: 40rpx;
  799. font-weight: bold;
  800. color: #ffffff;
  801. }
  802. </style>