diff --git a/view/peko/activity/act-ocean/css/index.css b/view/peko/activity/act-ocean/css/index.css index db5a0c9..a5e3900 100644 --- a/view/peko/activity/act-ocean/css/index.css +++ b/view/peko/activity/act-ocean/css/index.css @@ -1,19 +1,19 @@ @font-face { - font-family: "pingfang-bold"; + font-family: 'pingfang-bold'; src: url("../../../common/fonts/PingFang Bold.ttf"); src: url("../../../common/fonts/PingFang Bold.ttf") format("woff"), url("../../../common/fonts/PingFang Bold.ttf") format("truetype"), url("../../../common/fonts/PingFang Bold.ttf") format("svg"); } + @font-face { - font-family: "din-medium"; + font-family: 'din-medium'; src: url("../../../common/fonts/DINCond-Medium.ttf"); src: url("../../../common/fonts/DINCond-Medium.ttf") format("woff"), url("../../../common/fonts/DINCond-Medium.ttf") format("truetype"), url("../../../common/fonts/DINCond-Medium.ttf") format("svg"); } -html, -body { - font-family: "din-medium"; - background: #201E36; + +html, body { + font-family: 'din-medium'; + background: #C8864C; overflow-x: hidden; - height: 100vh; } .wrap { @@ -21,319 +21,342 @@ body { height: 100vh; position: relative; } + .wrap .banner { width: 100%; - margin-top: -0.1rem; } -.wrap .rule, -.wrap .record { + +.wrap .rule, .wrap .record { position: fixed; - top: 3.7rem; + top: 2.13333rem; left: 0; z-index: 99; - width: 1.5733333333rem; - height: 0.5333333333rem; + width: 1.57333rem; + height: 0.53333rem; } -.wrap .rule img, -.wrap .record img { + +.wrap .rule img, .wrap .record img { width: 100%; } + .wrap .record { - top: 4.5rem; + top: 2.85333rem; } + .wrap .previous-result { position: absolute; - top: 15.2rem; + top: 14.93333rem; left: 50%; transform: translateX(-50%); - width: 8.7rem; - height: 0.9066666667rem; - font-family: "pingfang-bold"; + width: 9.46667rem; + height: 0.90667rem; + font-family: 'pingfang-bold'; font-size: 0.4rem; font-weight: bold; color: white; display: flex; align-items: center; - background: url(../images/previous-result-bg.png) no-repeat 0 0/100% 100%; + background: url("../images/previous-result-bg.png") no-repeat 0 0/100% 100%; z-index: 9; } + .wrap .previous-result span { - margin-left: 0.2rem; + font-weight: bold; + margin-left: 0.36rem; text-shadow: 1px 1px 0px #fc8321, -1px -1px 0px #fc8321, 1px 1px 0px #fc8321, -1px -1px 0px #fc8321, 1px 1px 0px #fc8321, -1px -1px 0px #fc8321; } + .wrap .previous-result .result-list { display: flex; } + .wrap .previous-result .result-list p { - width: 0.5333333333rem; - height: 0.5333333333rem; - margin-left: 0.066666667rem; + width: 0.53333rem; + height: 0.53333rem; + margin-left: 0.10667rem; background: url("../images/little-bubble.png") 0 0/100% 100%; } + .wrap .previous-result .result-list p img { width: 100%; } + .wrap .mall { position: absolute; - top: 2.4533333333rem; + top: 2.45333rem; right: 0; z-index: 99; - width: 1.8933333333rem; - height: 1.7866666667rem; + width: 1.89333rem; + height: 1.78667rem; } + .wrap .mall img { width: 100%; } + .wrap .game-area { position: absolute; - top: 6.5rem; + top: 3.65333rem; z-index: 9; - width: 9.7333333333rem; - height: 11.1rem; + width: 100%; + height: 14.05333rem; background: url("../images/game-area.png") no-repeat 0 0/100% 100%; - left: 50%; - transform: translateX(-50%); } + .wrap .game-area .select-time { display: none; } -.wrap .game-area .select-time .count-down, -.wrap .game-area .select-time .current-tip { - font-family: "pingfang-bold"; + +.wrap .game-area .select-time .count-down, .wrap .game-area .select-time .current-tip { + font-family: 'pingfang-bold'; position: absolute; - top: -0.2rem; + top: -0.53333rem; left: 50%; transform: translateX(-50%); - width: 4.2933333333rem; + width: 4.29333rem; height: 0.96rem; - line-height: 0.96rem; + line-height: 0.82667rem; background: url("../images/count-down.png") no-repeat 0 0/100% 100%; text-align: center; - font-size: 0.4266666667rem; - font-weight: bold; - color: #fff; -} -.wrap .game-area .select-time .count-down span, -.wrap .game-area .select-time .current-tip span { - color: #FEEF60; + font-size: 0.32rem; font-weight: bold; + color: #B82F1A; } + .wrap .game-area .select-time .current-tip { - top: 0.6666666667rem; - width: 4.9066666667rem; - height: 0.9066666667rem; - line-height: 0.9066666667rem; + top: 0.66667rem; + width: 4.90667rem; + height: 0.90667rem; + line-height: 0.90667rem; background: url("../images/tip.png") no-repeat 0 0/100% 100%; - font-size: 0.2933333333rem; + font-size: 0.29333rem; color: #F0C799; - display: none; } + .wrap .game-area .select-time ul { display: flex; flex-wrap: wrap; - padding-left: 0.6266666667rem; + padding-left: 0.62667rem; } + .wrap .game-area .select-time ul li { position: relative; z-index: 99; width: 1.84rem; - height: 1.9733333333rem; - margin-top: 1.35rem; + height: 1.97333rem; + margin-top: 1.73333rem; + margin-right: 0.42667rem; + background: url("../images/bubble-bg.png") no-repeat 0 0/100% 100%; } + .wrap .game-area .select-time ul li:nth-child(-n+4) { - margin-top: 1.0666666667rem; + margin-top: 1.06667rem; } + .wrap .game-area .select-time ul li img { width: 1.6rem; height: 1.6rem; - transform: translate(0.7rem, -0.6rem); + transform: translate(0.10667rem, -0.34667rem); } + .wrap .game-area .select-time ul li .multiple { position: absolute; - bottom: 1.2rem; - left: 0.6rem; - width: 0.8533333333rem; - height: 0.3733333333rem; - line-height: 0.3733333333rem; + bottom: 0.26667rem; + left: -0.13333rem; + width: 0.85333rem; + height: 0.37333rem; + line-height: 0.37333rem; text-align: center; background: url("../images/multiple-bg.png") no-repeat 0 0/100% 100%; - font-size: 0.2666666667rem; + font-size: 0.26667rem; font-weight: bold; color: white; } + .wrap .game-area .select-time ul li .name { position: absolute; - bottom: 0.2rem; + bottom: -0.53333rem; left: 50%; - transform: translateX(-15%); - padding: 0.1066666667rem; + transform: translateX(-50%); + min-width: 2.13333rem; + padding: 0.10667rem; box-sizing: border-box; - width: 1.6rem; - height: 0.6266666667rem; + width: 1.81333rem; + height: 0.77333rem; background: url("../images/name-bg.png") no-repeat 0 0/100% 100%; text-align: center; - font-size: 0.3466666667rem; + font-size: 0.26667rem; font-weight: bold; - color: #FFECC2; + color: white; } + .wrap .game-area .select-time ul li .name.general { - height: 0.6133333333rem; + height: 0.61333rem; line-height: 0.4rem; background: url("../images/name-general-bg.png") no-repeat 0 0/100% 100%; } + .wrap .game-area .select-time ul li .name .gift-price { font-size: 0.24rem; - padding-top: 0.0533333333rem; + padding-top: 0.05333rem; } + .wrap .game-area .select-time ul li .bubble-2s { display: none; - width: 1.68rem; - height: 0.6933333333rem; + width: 1.76rem; + height: 0.98667rem; position: absolute; top: -0.96rem; - left: -0.1rem; + left: -0.37333rem; background: url("../images/qipao-2s.png") no-repeat 0 0/100% 100%; transform: rotate(343deg); - text-indent: 0.2133333333rem; + text-indent: 0.21333rem; } + .wrap .game-area .select-time ul li .bubble-2s p { font-size: 0.24rem; color: white; font-weight: bold; text-align: center; - margin-left: -0.2666666667rem; + margin-left: -0.26667rem; } + .wrap .game-area .select-time ul li .bubble-2s p.first-line { - padding-top: 0.03rem; + padding-top: 0.13333rem; } + .wrap .game-area .select-time ul li .bubble-2s p.second-line { - padding-top: 0.02rem; + padding-top: 0.05333rem; } + .wrap .game-area .select-time ul li .select-num { position: absolute; top: -0.08rem; - right: -0.0533333333rem; + right: -0.05333rem; font-size: 0.32rem; font-weight: bold; color: #fff; text-shadow: 1px 1px 0px #ff622b, -1px -1px 0px #ff622b, 1px 1px 0px #ff622b, -1px -1px 0px #ff622b, 1px 1px 0px #ff622b, -1px -1px 0px #ff622b; } + .wrap .game-area .select-time .btn-wrap { display: flex; align-items: center; - width: 9.4666666667rem; + width: 9.46667rem; height: 1.68rem; - margin: 0.6rem auto 0; + margin: 1.86667rem auto 0; + background: url("../images/btn-wrap-bg.png") no-repeat 0 0/100% 100%; } + .wrap .game-area .select-time .btn-wrap div { display: flex; justify-content: center; - width: 2.5333333333rem; - height: 1.0666666667rem; + width: 2.53333rem; + height: 1.06667rem; background: url("../images/fragment-btn.png") no-repeat 0 0/100% 100%; - line-height: 1.0666666667rem; + line-height: 1.06667rem; font-size: 0.4rem; color: #975B25; } + .wrap .game-area .select-time .btn-wrap div.active { background-image: url("../images/fragment-btn-active.png"); color: #B33E17; } + .wrap .game-area .select-time .btn-wrap div:first-child { margin-left: 0.8rem; } + .wrap .game-area .select-time .btn-wrap div:last-child { margin-left: 0; } + .wrap .game-area .select-time .btn-wrap div:nth-child(2) { margin: 0 0.16rem; } + .wrap .game-area .select-time .shelf { - width: 8.1333333333rem; - height: 2.6933333333rem; + width: 9.46667rem; + height: 1.33333rem; position: absolute; - top: 2.055rem; + top: 5.86667rem; left: 50%; transform: translateX(-50%); } + .wrap .game-area .select-time .shelf:last-child { - top: 5.4rem; + top: 9.6rem; } + .wrap .game-area .wait-time { display: none; - width: 8rem; - height: 7rem; - margin: 1.7rem auto 0; + width: 10rem; + height: 8rem; + margin: auto; position: relative; } -.wrap .game-area .wait-time .count-down, -.wrap .game-area .wait-time .current-tip { - font-family: "pingfang-bold"; + +.wrap .game-area .wait-time .count-down, .wrap .game-area .wait-time .current-tip { + font-family: 'pingfang-bold'; position: absolute; - top: -1.85rem; + top: -0.53333rem; left: 50%; transform: translateX(-50%); - width: 4.2933333333rem; + width: 4.29333rem; height: 0.96rem; - line-height: 0.96rem; + line-height: 0.82667rem; background: url("../images/count-down.png") no-repeat 0 0/100% 100%; text-align: center; - color: #fff; - font-size: 0.48rem; - font-weight: bold; -} -.wrap .game-area .wait-time .count-down span, -.wrap .game-area .wait-time .current-tip span { - color: #FEEF60; + color: #B82F1A; + font-size: 0.32rem; font-weight: bold; } + .wrap .game-area .wait-time .current-tip { - top: 0.6666666667rem; - width: 4.9066666667rem; - height: 0.9066666667rem; - line-height: 0.9066666667rem; + top: 0.66667rem; + width: 4.90667rem; + height: 0.90667rem; + line-height: 0.90667rem; background: url("../images/tip.png") no-repeat 0 0/100% 100%; text-align: center; - font-size: 0.2933333333rem; - color: #fff; + font-size: 0.29333rem; + color: #FFF0C799; font-weight: bold; } + .wrap .game-area .draw-time { display: none; - width: 8rem; - height: 7rem; - margin: 1.7rem auto 0; + width: 10rem; + height: 8rem; } -.wrap .game-area .draw-time .count-down, -.wrap .game-area .draw-time .current-tip { - font-family: "pingfang-bold"; + +.wrap .game-area .draw-time .count-down, .wrap .game-area .draw-time .current-tip { + font-family: 'pingfang-bold'; position: absolute; - top: -0.2rem; + top: -0.53333rem; left: 50%; transform: translateX(-50%); - width: 4.2933333333rem; + width: 4.29333rem; height: 0.96rem; - line-height: 0.96rem; + line-height: 0.82667rem; background: url("../images/count-down.png") no-repeat 0 0/100% 100%; text-align: center; - font-size: 0.48rem; - color: #fff; - font-weight: bold; -} -.wrap .game-area .draw-time .count-down span, -.wrap .game-area .draw-time .current-tip span { - color: #FEEF60; + font-size: 0.32rem; + color: #B82F1A; font-weight: bold; } + .wrap .game-area .draw-time .current-tip { - top: 0.6666666667rem; - width: 4.9066666667rem; - height: 0.9066666667rem; - line-height: 0.9066666667rem; + top: 0.66667rem; + width: 4.90667rem; + height: 0.90667rem; + line-height: 0.90667rem; background: url("../images/tip.png") no-repeat 0 0/100% 100%; - font-size: 0.2933333333rem; - color: #FEEF60; + font-size: 0.29333rem; + color: #F0C799; } + .wrap .game-area .draw-time .top-three { position: absolute; left: 50%; @@ -341,190 +364,135 @@ body { bottom: 3.2rem; width: 100%; } -.wrap .game-area .draw-time .top-three .top_three { - height: 1.12rem; - position: absolute; - bottom: -2.55rem; - left: 1rem; - display: none; -} -.wrap .game-area .draw-time .top-three .top_three .text { - line-height: 1.12rem; - font-weight: bold; - color: #FFFFFF; - -webkit-text-stroke: 0.0266666667rem #FB6D2D; - text-stroke: 0.0266666667rem #FB6D2D; - font-size: 0.4rem; - float: left; - margin-right: 0.3333333333rem; -} -.wrap .game-area .draw-time .top-three .top_three .img { - display: inline-block; - width: 1.12rem; - height: 1.12rem; - margin-right: 0.2133333333rem; - border: 2px solid #FEEF60; - border-radius: 50%; - color: #C3C6C8; - font-size: 0.38rem; - text-align: center; - background: url(../images/mrlogo.png) no-repeat; - background-size: 100% 100%; - line-height: 0.5rem; - float: left; -} + .wrap .game-area .draw-time .top-three .top-three-title { display: flex; justify-content: center; align-items: center; - font-family: "pingfang-bold"; + font-family: 'pingfang-bold'; font-size: 0.32rem; font-weight: bold; color: white; - margin-bottom: 4.24rem; + margin-bottom: 0.24rem; } + .wrap .game-area .draw-time .top-three .top-three-title .line { - width: 0.6666666667rem; - border: 0.0133333333rem solid white; + width: 0.66667rem; + border: 0.01333rem solid white; } + .wrap .game-area .draw-time .top-three .top-three-list { display: flex; justify-content: space-between; - width: 4.5333333333rem; + width: 4.53333rem; margin: auto; } + .wrap .game-area .draw-time .top-three .top-three-list p { - width: 0.9866666667rem; - height: 0.9866666667rem; + width: 0.98667rem; + height: 0.98667rem; } + .wrap .game-area .draw-time .top-three .top-three-list p img { width: 100%; height: 100%; border-radius: 50%; - border: 0.0266666667rem solid #FEEF60; + border: 0.02667rem solid #FEEF60; } + .wrap .game-area .draw-time .draw-pic { position: absolute; left: 50%; transform: translateX(-50%); - top: 3.2rem; + top: 1.92rem; z-index: 1; - width: 3.7333333333rem; - height: 3.7333333333rem; - left: 50%; - transform: translateX(-50%); + width: 3.73333rem; + height: 3.73333rem; } + .wrap .game-area .draw-time .draw-pic img { width: 100%; height: 100%; } + .wrap .game-area .draw-time .award-info { position: absolute; top: 8rem; width: 100%; - font-family: "pingfang-bold"; + font-family: 'pingfang-bold'; text-align: center; font-size: 0.32rem; font-weight: bold; - left: 50%; - transform: translateX(-50%); } + .wrap .game-area .draw-time .award-info .desc { color: #FEEF60; margin-bottom: 0.16rem; } + .wrap .game-area .draw-time .award-info .award-wrap { - display: none; color: white; } + .wrap .game-area .draw-time .award-info .award-wrap .award-total { color: #FEEF60; } + .wrap .info-bottom { position: fixed; bottom: 0; left: 0; z-index: 99; width: 100%; - height: 1.7333333333rem; + height: 1.73333rem; background: url("../images/index-bottom.png") no-repeat 0 0/100% 100%; display: flex; align-items: center; } + .wrap .info-bottom .f-wrap { - margin-top: 0.1866666667rem; + margin-top: 0.18667rem; } -.wrap .info-bottom .f-wrap .fragment { + +.wrap .info-bottom .f-wrap .fragment, .wrap .info-bottom .f-wrap .award { + width: 3.33333rem; height: 0.56rem; - background-color: none; - border-radius: 0.2666666667rem; + background-color: #BD7F38; + border-radius: 0.26667rem; line-height: 0.56rem; - font-size: 0.4rem; + font-size: 0.34667rem; font-weight: bold; color: white; - text-indent: 0.1333333333rem; - margin-bottom: 0.1333333333rem; - margin-top: -0.7rem; -} -.wrap .info-bottom .f-wrap .award { - min-width: 3.28rem; - height: 0.48rem; - border-radius: 0.4rem; - line-height: 0.48rem; - background: #349B9F; - font-size: 0.2666666667rem; - position: absolute; - text-align: center; - margin-top: 0rem; - color: #fff; - box-sizing: border-box; - padding: 0 0.2666666667rem; -} -.wrap .info-bottom .f-wrap .award span { - color: #FEEF60; - font-size: 0.2666666667rem; + text-indent: 0.13333rem; + margin-bottom: 0.13333rem; } + .wrap .info-bottom .avatar { - width: 1.3333333333rem; - height: 1.3333333333rem; + width: 1.33333rem; + height: 1.33333rem; margin-left: 0.56rem; - margin-right: 0.2666666667rem; + margin-right: 0.26667rem; } + .wrap .info-bottom .avatar img { width: 100%; height: 100%; border-radius: 50%; } + .wrap .info-bottom .add { - width: 0.5466666667rem; - height: 0.5466666667rem; + width: 0.54667rem; + height: 0.54667rem; margin-top: -0.64rem; margin-left: 0.16rem; } -.wrap .info-bottom .activeBalance { - position: absolute; - right: 0.1rem; - bottom: 0.3rem; - height: 0.48rem; - border-radius: 0.48rem; - line-height: 0.48rem; - font-size: 0.2933333333rem; - color: #fff; - background: #349B9F; - box-sizing: border-box; - padding: 0 0.2rem; - text-align: center; -} -.wrap .info-bottom .activeBalance b { - color: #FEEF60; -} -.wrap .rank { - width: 2.2666666667rem; + +.wrap .info-bottom .rank { + width: 2.26667rem; height: 0.72rem; - position: fixed; - right: -0.25rem; - top: 3.66rem; + margin-left: 0.58667rem; } + .wrap .shade-mask { display: none; position: fixed; @@ -535,52 +503,59 @@ body { height: 100vh; background-color: rgba(0, 0, 0, 0.4); } + .wrap .shade-mask .shade-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 7.68rem; - height: 6.9066666667rem; + height: 8.88rem; background: url("../images/rule-bg.png") no-repeat 0 0/100% 100%; - font-size: 0.3466666667rem; + font-size: 0.34667rem; color: #B58147; font-weight: 600; + overflow: hidden; } -.wrap .shade-mask .shade-content .shade-content-close { - position: absolute; - bottom: -2rem; - left: 50%; - transform: translateX(-50%); - width: 0.9333333333rem; - height: 0.9333333333rem; -} + .wrap .shade-mask .shade-content main { position: absolute; - top: 0.7rem; + top: 0.8rem; width: 100%; height: 85%; padding: 0 0.56rem; box-sizing: border-box; overflow: auto; - color: #B58147; -} -.wrap .shade-mask .shade-content main h3 { - width: 100%; - text-align: center; - font-size: 0.4rem; - font-weight: bold; } + .wrap .shade-mask .shade-content main div { - width: 6.44rem; - height: 4.6533333333rem; - margin: 0.4133333333rem auto; + line-height: 1.2; } -.wrap .shade-mask .shade-content main div p { - font-size: 0.3466666667rem; - line-height: 0.45rem; - margin-bottom: 0.4rem; + +.wrap .shade-mask .shade-content main div .title { + width: 3.36rem; + height: 0.61333rem; + line-height: 0.61333rem; + background: url("../images/title-bg.png") no-repeat 0 0/100% 100%; + margin: 0 auto 0.29333rem; + text-align: center; } + +.wrap .shade-mask .shade-content main div .jietu { + width: 6.53333rem; + height: 3.66667rem; + margin-top: 0.16rem; + margin-bottom: 0.42667rem; +} + +.wrap .shade-mask .shade-content main div .jietu.t2 { + height: 3.98667rem; +} + +.wrap .shade-mask .shade-content main div .jietu.t3 { + height: 4.01333rem; +} + .wrap .shade-mask-rank { display: none; position: fixed; @@ -591,28 +566,32 @@ body { height: 100vh; background-color: rgba(0, 0, 0, 0.6); } + .wrap .shade-mask-rank .shade-content-rank { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 8.8rem; - height: 13.0666666667rem; + height: 13.06667rem; background: white; } + .wrap .shade-mask-rank .shade-content-rank .rank-top { - height: 4.5333333333rem; + height: 4.53333rem; background-image: linear-gradient(#F49C35, #FFDD81); overflow: hidden; } + .wrap .shade-mask-rank .shade-content-rank .rank-top .tab-wrap { - font-family: "pingfang-regular"; - width: 6.1333333333rem; - height: 0.9333333333rem; + font-family: 'pingfang-regular'; + width: 6.13333rem; + height: 0.93333rem; background-color: rgba(255, 255, 255, 0.3); border-radius: 0.48rem; - margin: 0.2666666667rem auto 0.08rem; + margin: 0.26667rem auto 0.08rem; } + .wrap .shade-mask-rank .shade-content-rank .rank-top .tab-wrap span { display: inline-block; width: 2.8rem; @@ -621,19 +600,23 @@ body { text-align: center; font-size: 0.4rem; color: white; - margin-top: 0.0666666667rem; + margin-top: 0.06667rem; } + .wrap .shade-mask-rank .shade-content-rank .rank-top .tab-wrap span:first-child { - margin-left: 0.1866666667rem; + margin-left: 0.18667rem; } + .wrap .shade-mask-rank .shade-content-rank .rank-top .tab-wrap .active { background-color: white; color: #F5A03A; border-radius: 0.4rem; } + .wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap { position: relative; } + .wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap { position: absolute; display: flex; @@ -641,19 +624,23 @@ body { align-items: center; width: 100%; } + .wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap:first-child { width: 1.76rem; left: 50%; transform: translateX(-50%); } + .wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap:first-child .diamond-num { display: none; } + .wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap .avatar { width: 1.76rem; - height: 2.3333333333rem; - margin-bottom: 0.2666666667rem; + height: 2.33333rem; + margin-bottom: 0.26667rem; } + .wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap .avatar p { position: relative; z-index: 99; @@ -661,45 +648,50 @@ body { height: 100%; background: url("../images/first.png") no-repeat 0 0/100% 100%; } + .wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap .avatar img { position: relative; z-index: 9; - top: -1.8133333333rem; - left: 0.0266666667rem; - width: 1.7066666667rem; - height: 1.7066666667rem; + top: -1.81333rem; + left: 0.02667rem; + width: 1.70667rem; + height: 1.70667rem; border-radius: 50%; } -.wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap .nick, -.wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap .diamond-num { + +.wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap .nick, .wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap .diamond-num { width: 4.8rem; text-align: center; font-size: 0.4rem; font-weight: bold; color: white; } + .wrap .shade-mask-rank .shade-content-rank .rank-top .topthree-wrap .info-wrap .diamond-num { - font-family: "din-medium"; + font-family: 'din-medium'; margin: 0; - margin-top: -0.2666666667rem; - margin-bottom: 0.0533333333rem; + margin-top: -0.26667rem; + margin-bottom: 0.05333rem; color: #ED7B50; font-size: 0.32rem; } + .wrap .shade-mask-rank .shade-content-rank .other-rank { overflow: auto; position: absolute; width: 100%; height: 7.2rem; background-color: white; - padding: 0.4rem 0.2666666667rem 0; + padding: 0.4rem 0.26667rem 0; box-sizing: border-box; } + .wrap .shade-mask-rank .shade-content-rank .other-rank li { display: flex; align-items: center; - margin-bottom: 0.5333333333rem; + margin-bottom: 0.53333rem; } + .wrap .shade-mask-rank .shade-content-rank .other-rank li .index { display: inline-block; width: 0.4rem; @@ -708,68 +700,79 @@ body { color: #333333; text-align: center; } + .wrap .shade-mask-rank .shade-content-rank .other-rank li .others-info { flex: 1; display: flex; align-items: center; - margin-left: 0.2666666667rem; + margin-left: 0.26667rem; } + .wrap .shade-mask-rank .shade-content-rank .other-rank li .others-info img { - width: 1.7066666667rem; - height: 1.7066666667rem; + width: 1.33333rem; + height: 1.33333rem; border-radius: 50%; - margin-right: 0.2666666667rem; + margin-right: 0.26667rem; } + .wrap .shade-mask-rank .shade-content-rank .other-rank li .others-info .others-nick { - font-size: 0.3733333333rem; + font-size: 0.37333rem; font-weight: bold; color: #333333; } + .wrap .shade-mask-rank .shade-content-rank .other-rank li .others-diamond-num { - font-size: 0.3466666667rem; + font-size: 0.34667rem; font-weight: bold; color: #ED7B50; } + .wrap .shade-mask-rank .shade-content-rank .mine { position: fixed; left: 0; bottom: 0; z-index: 999; width: 100%; - height: 1.3333333333rem; + height: 1.33333rem; background-color: rgba(0, 0, 0, 0.8); padding: 0 0.2rem; box-sizing: border-box; display: flex; align-items: center; } + .wrap .shade-mask-rank .shade-content-rank .mine .mine-rank { - font-size: 0.3466666667rem; + font-size: 0.34667rem; font-weight: bold; color: white; } + .wrap .shade-mask-rank .shade-content-rank .mine .mine-info { flex: 1; display: flex; align-items: center; } + .wrap .shade-mask-rank .shade-content-rank .mine .mine-info img { - width: 1.0666666667rem; - height: 1.0666666667rem; + width: 1.06667rem; + height: 1.06667rem; border-radius: 50%; margin-left: 0.4rem; - margin-right: 0.5333333333rem; + margin-right: 0.53333rem; } + .wrap .shade-mask-rank .shade-content-rank .mine .mine-info .mine-nick { - font-size: 0.3733333333rem; + font-size: 0.37333rem; font-weight: bold; color: white; } + .wrap .shade-mask-rank .shade-content-rank .mine .mine-diamond-num { - font-size: 0.3466666667rem; + font-size: 0.34667rem; font-weight: bold; color: #ED7B50; } + .wrap .shade-mask-fragmentNum { display: none; position: fixed; @@ -780,6 +783,7 @@ body { height: 100vh; background-color: rgba(0, 0, 0, 0.6); } + .wrap .shade-mask-fragmentNum .shade-content-fragmentNum { position: absolute; top: 50%; @@ -794,47 +798,50 @@ body { flex-direction: column; align-items: center; } + .wrap .shade-mask-fragmentNum .shade-content-fragmentNum .fragmentNum-title { font-size: 0.48rem; font-weight: bold; color: #333333; - margin-top: 0.5066666667rem; + margin-top: 0.50667rem; } + .wrap .shade-mask-fragmentNum .shade-content-fragmentNum img { width: 1.6rem; width: 1.6rem; margin-top: 1.44rem; } + .wrap .shade-mask-fragmentNum .shade-content-fragmentNum p { font-size: 0.4rem; font-weight: 600; color: #333333; - margin-top: 0.6666666667rem; + margin-top: 0.66667rem; } + .wrap .shade-mask-fragmentNum .shade-content-fragmentNum .fragmentNum-btn-wrap { display: flex; justify-content: space-between; - width: 6.8266666667rem; - height: 1.0133333333rem; + width: 6.82667rem; + height: 1.01333rem; margin-top: 1.2rem; } -.wrap .shade-mask-fragmentNum .shade-content-fragmentNum .fragmentNum-btn-wrap .cancel-btn, -.wrap .shade-mask-fragmentNum .shade-content-fragmentNum .fragmentNum-btn-wrap .confirm-btn { + +.wrap .shade-mask-fragmentNum .shade-content-fragmentNum .fragmentNum-btn-wrap .cancel-btn, .wrap .shade-mask-fragmentNum .shade-content-fragmentNum .fragmentNum-btn-wrap .confirm-btn { width: 3.2rem; - height: 1.0133333333rem; - line-height: 1.0133333333rem; + height: 1.01333rem; + line-height: 1.01333rem; text-align: center; - border-radius: 0.5066666667rem; - font-size: 0.3733333333rem; + border-radius: 0.50667rem; + font-size: 0.37333rem; font-weight: 600; - background: url(../images/cBut.png) no-repeat; - background-size: 100% 100%; - color: #333; + background-color: #EAE5FC; + color: #7154EE; } + .wrap .shade-mask-fragmentNum .shade-content-fragmentNum .fragmentNum-btn-wrap .confirm-btn { - background: url(../images/sBut.png) no-repeat; - background-size: 100% 100%; - color: #333; + background-color: #735FFE; + color: #fff; } .no-in-app { @@ -847,5 +854,3 @@ body { z-index: 99999; background-color: white; } - -/*# sourceMappingURL=index.css.map */ diff --git a/view/peko/activity/act-ocean/css/index.scss b/view/peko/activity/act-ocean/css/index.scss index 5f80703..6a365f0 100644 --- a/view/peko/activity/act-ocean/css/index.scss +++ b/view/peko/activity/act-ocean/css/index.scss @@ -2,7 +2,7 @@ @return $px / $rem+rem; } -@font-face { +@font-face{ font-family: 'pingfang-bold'; src: url('../../../common/fonts/PingFang\ Bold.ttf'); src: url('../../../common/fonts/PingFang\ Bold.ttf') format('woff'), @@ -10,7 +10,7 @@ url('../../../common/fonts/PingFang\ Bold.ttf') format('svg'); } -@font-face { +@font-face{ font-family: 'din-medium'; src: url('../../../common/fonts/DINCond-Medium.ttf'); src: url('../../../common/fonts/DINCond-Medium.ttf') format('woff'), @@ -18,92 +18,83 @@ url('../../../common/fonts/DINCond-Medium.ttf') format('svg'); } -html, -body { +html, body{ font-family: 'din-medium'; - background: #201E36; + background: #C8864C; // 海浪svga过长 overflow-x: hidden; - height: 100vh; } -.wrap { +.wrap{ width: 100%; height: 100vh; // background: url('../images/index-bg.png') no-repeat center/cover; position: relative; - - .banner { + .banner{ width: 100%; - margin-top: -0.1rem; - } - .rule, - .record { + } + .rule, .record{ position: fixed; - top: 3.7rem; + top: px2rem(160); // bottom: px2rem(1100); left: 0; z-index: 99; width: px2rem(118); height: px2rem(40); - - img { + img{ width: 100%; } } - - .record { - top: 4.5rem; + .record{ + top: px2rem(214); // bottom: px2rem(1040); } - .previous-result { + .previous-result{ position: absolute; - top: 15.2rem; + // bottom: px2rem(200); + top: px2rem(1120); left: 50%; transform: translateX(-50%); - width: 8.7rem; - height: 0.9066666667rem; - font-family: "pingfang-bold"; - font-size: px2rem(30, ); + width: px2rem(710); + height: px2rem(68); + font-family: 'pingfang-bold'; + font-size: px2rem(30); font-weight: bold; color: white; display: flex; align-items: center; - background: url(../images/previous-result-bg.png) no-repeat 0 0/100% 100%; + background: url('../images/previous-result-bg.png') no-repeat 0 0/100% 100%; z-index: 9; - - span { - margin-left: 0.2rem; + span{ + font-weight: bold; + margin-left: px2rem(27); text-shadow: 1px 1px 0px#fc8321, - -1px -1px 0px#fc8321, - 1px 1px 0px#fc8321, - -1px -1px 0px#fc8321, - 1px 1px 0px#fc8321, - -1px -1px 0px#fc8321; + -1px -1px 0px#fc8321, + 1px 1px 0px#fc8321, + -1px -1px 0px#fc8321, + 1px 1px 0px#fc8321, + -1px -1px 0px#fc8321; } - - .result-list { + .result-list{ display: flex; - - p { + p{ width: px2rem(40); height: px2rem(40); - margin-left: 0.066666667rem; + margin-left: px2rem(8); background: url('../images/little-bubble.png') 0 0/100% 100%; - // &:last-child{ // background: url('../images/last-little-bubble.png') 0 0/100% 100%,url('../images/little-bubble.png') 0 0/100% 100%; // } - img { + img{ width: 100%; } } } } - - .mall { + + .mall{ position: absolute; top: px2rem(184); // bottom: px2rem(1020); @@ -111,49 +102,36 @@ body { z-index: 99; width: px2rem(142); height: px2rem(134); - - img { + img{ width: 100%; } } - - .game-area { + .game-area{ position: absolute; - top: 6.5rem; + top: px2rem(274); z-index: 9; - width: px2rem(730, ); - height: 11.1rem; + width: 100%; + height: px2rem(1054); background: url('../images/game-area.png') no-repeat 0 0/100% 100%; - left: 50%; - transform: translateX(-50%); - // 等待倒计时30s - .select-time { + .select-time{ display: none; - - .count-down, - .current-tip { + .count-down, .current-tip{ font-family: 'pingfang-bold'; position: absolute; - top: -0.2rem; + top: px2rem(-40); left: 50%; transform: translateX(-50%); width: px2rem(322); height: px2rem(72); - line-height: px2rem(72); - background: url('../images/count-down.png') no-repeat 0 0/100% 100%; + line-height: px2rem(62); + background: url('../images/count-down.png') no-repeat 0 0/100% 100% ; text-align: center; - font-size: px2rem(32); + font-size: px2rem(24); font-weight: bold; - color: #fff; - - span { - color: #FEEF60; - font-weight: bold; - } + color: #B82F1A; } - - .current-tip { + .current-tip{ top: px2rem(50); width: px2rem(368); height: px2rem(68); @@ -161,38 +139,33 @@ body { background: url('../images/tip.png') no-repeat 0 0/100% 100%; font-size: px2rem(22); color: #F0C799; - display: none; } - // 海鲜列表 - ul { + ul{ display: flex; flex-wrap: wrap; // justify-content: space-between; padding-left: px2rem(47); - - li { + li{ position: relative; z-index: 99; width: px2rem(138); height: px2rem(148); - margin-top: 1.35rem; - - // background: url('../images/bubble-bg.png') no-repeat 0 0/100% 100%; - &:nth-child(-n+4) { + margin-top: px2rem(130); + margin-right: px2rem(32); + background: url('../images/bubble-bg.png') no-repeat 0 0/100% 100%; + &:nth-child(-n+4){ margin-top: px2rem(80); } - - img { + img{ width: px2rem(120); height: px2rem(120); - transform: translate(0.7rem, -0.6rem); + transform: translate( px2rem(8), px2rem(-26) ); } - - .multiple { + .multiple{ position: absolute; - bottom: 1.2rem; - left: 0.6rem; + bottom: px2rem(20); + left: px2rem(-10); width: px2rem(64); height: px2rem(28); line-height: px2rem(28); @@ -202,63 +175,58 @@ body { font-weight: bold; color: white; } - - .name { + .name{ position: absolute; - bottom: 0.2rem; + bottom: px2rem(-40); left: 50%; - transform: translateX(-15%); + transform: translateX(-50%); + min-width: px2rem(160); padding: px2rem(8); box-sizing: border-box; - width: px2rem(120); - height: px2rem(47); + width: px2rem(136); + height: px2rem(58); background: url('../images/name-bg.png') no-repeat 0 0/100% 100%; text-align: center; - font-size: px2rem(26); + font-size: px2rem(20); font-weight: bold; - color: #FFECC2; - - &.general { + color: white; + &.general{ height: px2rem(46); line-height: px2rem(30); background: url('../images/name-general-bg.png') no-repeat 0 0/100% 100%; } - - .gift-price { + .gift-price{ font-size: px2rem(18); padding-top: px2rem(4); } } - - .bubble-2s { + .bubble-2s{ display: none; - width: px2rem(126); - height: px2rem(52); + // width: px2rem(92); + // height: px2rem(56); + width: px2rem(132); + height: px2rem(74); position: absolute; top: px2rem(-72); - left: -0.1rem; + left: px2rem(-28); background: url('../images/qipao-2s.png') no-repeat 0 0/100% 100%; transform: rotate(343deg); text-indent: px2rem(16); - - p { + p{ font-size: px2rem(18); color: white; font-weight: bold; text-align: center; margin-left: px2rem(-20); - - &.first-line { - padding-top: 0.03rem; + &.first-line{ + padding-top: px2rem(10); } - - &.second-line { - padding-top: 0.02rem; + &.second-line{ + padding-top: px2rem(4); } } } - - .select-num { + .select-num{ // display: none; position: absolute; top: px2rem(-6); @@ -268,26 +236,24 @@ body { color: #fff; // text-shadow: 1px 1px #FF5C7F, -1px -1px #FF5C7F ; text-shadow: 1px 1px 0px#ff622b, - -1px -1px 0px#ff622b, - 1px 1px 0px#ff622b, - -1px -1px 0px#ff622b, - 1px 1px 0px#ff622b, - -1px -1px 0px#ff622b; + -1px -1px 0px#ff622b, + 1px 1px 0px#ff622b, + -1px -1px 0px#ff622b, + 1px 1px 0px#ff622b, + -1px -1px 0px#ff622b; } } } - // 碎片按钮 - .btn-wrap { + .btn-wrap{ display: flex; // justify-content: space-between; align-items: center; width: px2rem(710); height: px2rem(126); - margin: 0.6rem auto 0; - - // background: url('../images/btn-wrap-bg.png') no-repeat 0 0/100% 100%; - div { + margin: px2rem(140) auto 0; + background: url('../images/btn-wrap-bg.png') no-repeat 0 0/100% 100%; + div{ display: flex; justify-content: center; width: px2rem(190); @@ -296,168 +262,107 @@ body { line-height: px2rem(80); font-size: px2rem(30); color: #975B25; - - &.active { + &.active{ background-image: url('../images/fragment-btn-active.png'); color: #B33E17; } - - &:first-child { + &:first-child{ margin-left: px2rem(60); } - - &:last-child { + &:last-child{ margin-left: 0; } - - &:nth-child(2) { + &:nth-child(2){ margin: 0 px2rem(12); } } } - // 架子 - .shelf { - width: px2rem(610); - height: px2rem(202); + .shelf{ + width: px2rem(710); + height: px2rem(100); position: absolute; - top: 2.055rem; + top: px2rem(440); left: 50%; transform: translateX(-50%); - - &:last-child { - top: 5.4rem; + &:last-child{ + top: px2rem(720); } } } - // 等待结果5s - .wait-time { + .wait-time{ display: none; - width: 8rem; - height: 7rem; - margin: 1.7rem auto 0; + width: px2rem(750); + height: px2rem(600); + margin: auto; position: relative; - - .count-down, - .current-tip { + .count-down, .current-tip{ font-family: 'pingfang-bold'; position: absolute; - top: -1.85rem; + top: px2rem(-40); left: 50%; transform: translateX(-50%); width: px2rem(322); height: px2rem(72); - line-height: px2rem(72); + line-height: px2rem(62); background: url('../images/count-down.png') no-repeat 0 0/100% 100%; text-align: center; - color: #fff; - font-size: px2rem(36); + color: #B82F1A; + font-size: px2rem(24); font-weight: bold; - - span { - color: #FEEF60; - font-weight: bold; - } } - - .current-tip { + .current-tip{ top: px2rem(50); width: px2rem(368); height: px2rem(68); line-height: px2rem(68); - background: url('../images/tip.png') no-repeat 0 0/100% 100%; + background: url('../images/tip.png') no-repeat 0 0/100% 100% ; text-align: center; font-size: px2rem(22); - color: #fff; + color: #FFF0C799; font-weight: bold; } - + } - // 开奖时间 - .draw-time { + .draw-time{ display: none; - width: 8rem; - height: 7rem; - margin: 1.7rem auto 0; - + width: px2rem(750); + height: px2rem(600); // margin: auto; // margin-top: px2rem(80); - .count-down, - .current-tip { + .count-down, .current-tip{ font-family: 'pingfang-bold'; position: absolute; - top: -0.2rem; + top: px2rem(-40); left: 50%; transform: translateX(-50%); width: px2rem(322); height: px2rem(72); - line-height: px2rem(72); - background: url('../images/count-down.png') no-repeat 0 0/100% 100%; + line-height: px2rem(62); + background: url('../images/count-down.png') no-repeat 0 0/100% 100% ; text-align: center; - font-size: px2rem(36); - color: #fff; + font-size: px2rem(24); + color: #B82F1A; font-weight: bold; - - span { - color: #FEEF60; - font-weight: bold; - } } - - .current-tip { + .current-tip{ top: px2rem(50); width: px2rem(368); height: px2rem(68); line-height: px2rem(68); - background: url('../images/tip.png') no-repeat 0 0/100% 100%; + background: url('../images/tip.png') no-repeat 0 0/100% 100% ; font-size: px2rem(22); - color: #FEEF60; + color: #F0C799; } - - .top-three { + .top-three{ position: absolute; left: 50%; transform: translateX(-50%); bottom: px2rem(240); width: 100%; - - .top_three { - // width: px2rem(400, ); - height: px2rem(84, ); - position: absolute; - bottom: -2.55rem; - left: 1rem; - display: none; - .text { - line-height: px2rem(84, ); - font-weight: bold; - color: #FFFFFF; - -webkit-text-stroke: px2rem(2, ) #FB6D2D; - text-stroke: px2rem(2, ) #FB6D2D; - font-size: px2rem(30, ); - float: left; - margin-right: px2rem(25, ); - } - - .img { - display: inline-block; - width: px2rem(84, ); - height: px2rem(84, ); - margin-right: px2rem(16, ); - border: 2px solid #FEEF60; - border-radius: 50%; - color: #C3C6C8; - font-size: 0.38rem; - text-align: center; - background: url(../images/mrlogo.png) no-repeat;background-size: 100% 100%; - line-height: 0.5rem; - float: left; - } - } - - .top-three-title { + .top-three-title{ display: flex; justify-content: center; align-items: center; @@ -465,25 +370,21 @@ body { font-size: px2rem(24); font-weight: bold; color: white; - margin-bottom: 4.24rem; - - .line { + margin-bottom: px2rem(18); + .line{ width: px2rem(50); border: px2rem(1) solid white; } } - - .top-three-list { + .top-three-list{ display: flex; justify-content: space-between; width: px2rem(340); margin: auto; - - p { + p{ width: px2rem(74); height: px2rem(74); - - img { + img{ width: 100%; height: 100%; border-radius: 50%; @@ -492,25 +393,20 @@ body { } } } - - .draw-pic { + .draw-pic{ position: absolute; left: 50%; transform: translateX(-50%); - top: 3.2rem; + top: px2rem(144); z-index: 1; width: px2rem(280); height: px2rem(280); - left: 50%; - transform: translateX(-50%); - - img { + img{ width: 100%; height: 100%; } } - - .award-info { + .award-info{ position: absolute; top: px2rem(600); width: 100%; @@ -518,28 +414,21 @@ body { text-align: center; font-size: px2rem(24); font-weight: bold; - left: 50%; - transform: translateX(-50%); - - .desc { + .desc{ color: #FEEF60; margin-bottom: px2rem(12); } - - .award-wrap { - display: none; + .award-wrap{ color: white; - - .award-total { + .award-total{ color: #FEEF60; } } } } } - // 底部信息 - .info-bottom { + .info-bottom{ position: fixed; bottom: 0; left: 0; @@ -550,93 +439,46 @@ body { display: flex; // justify-content: space-evenly; align-items: center; - - .f-wrap { + .f-wrap{ margin-top: px2rem(14); - - .fragment { - // width: px2rem(250); + .fragment, .award{ + width: px2rem(250); height: px2rem(42); - background-color: none; + background-color: #BD7F38; border-radius: px2rem(20); line-height: px2rem(42); - font-size: px2rem(30); + font-size: px2rem(26); font-weight: bold; color: white; text-indent: px2rem(10); margin-bottom: px2rem(10); - margin-top: -0.7rem; - } - - .award { - min-width: px2rem(246, ); - height: px2rem(36, ); - border-radius: px2rem(30, ); - line-height: px2rem(36, ); - background: #349B9F; - font-size: px2rem(20, ); - position: absolute; - text-align: center; - margin-top: 0rem; - color: #fff; - box-sizing: border-box; - padding: 0 px2rem(20, ); - - span { - color: #FEEF60; - font-size: px2rem(20, ); - } } } - - .avatar { + .avatar{ width: px2rem(100); height: px2rem(100); margin-left: px2rem(42); margin-right: px2rem(20); - - img { + img{ width: 100%; height: 100%; border-radius: 50%; } } - - .add { + .add{ width: px2rem(41); height: px2rem(41); margin-top: px2rem(-48); margin-left: px2rem(12); } - - .activeBalance{ - position: absolute; - right: 0.1rem; - bottom: 0.3rem; - height: px2rem(36, ); - border-radius: px2rem(36, ); - line-height: px2rem(36, ); - font-size: px2rem(22, ); - color: #fff; - background: #349B9F; - box-sizing: border-box; - padding: 0 px2rem(15, ); - text-align: center; - b{ - color: #FEEF60; - } + .rank{ + width: px2rem(170); + height: px2rem(54); + margin-left: px2rem(44); } } - .rank { - width: px2rem(170); - height: px2rem(54); - position: fixed; - right: -0.25rem; - top: 3.66rem; - - } // 规则弹窗 - .shade-mask { + .shade-mask{ display: none; position: fixed; top: 0; @@ -645,62 +487,56 @@ body { width: 100vw; height: 100vh; background-color: rgba($color: #000000, $alpha: 0.4); - - .shade-content { + .shade-content{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: px2rem(576); - height: px2rem(518); + height: px2rem(666); background: url('../images/rule-bg.png') no-repeat 0 0/100% 100%; + // padding: px2rem(56) px2rem(54) px2rem(42) px2rem(40); + // box-sizing: border-box; font-size: px2rem(26); color: #B58147; font-weight: 600; - - .shade-content-close { + overflow: hidden; + main{ position: absolute; - bottom: -2rem; - left: 50%; - transform: translateX(-50%); - width: px2rem(70, ); - height: px2rem(70, ); - } - - main { - position: absolute; - top: 0.7rem; + top: px2rem(60); width: 100%; height: 85%; padding: 0 px2rem(42); box-sizing: border-box; overflow: auto; - color: #B58147; - - h3 { - width: 100%; - text-align: center; - font-size: px2rem(30, ); - font-weight: bold; - } - - div { - width: px2rem(483, ); - height: px2rem(349, ); - margin: px2rem(31, ) auto; - - p { - font-size: px2rem(26, ); - line-height: 0.45rem; - margin-bottom: px2rem(30, ); + div{ + line-height: 1.2; + .title{ + width: px2rem(252); + height: px2rem(46); + line-height: px2rem(46); + background: url('../images/title-bg.png') no-repeat 0 0/100% 100%; + margin: 0 auto px2rem(22); + text-align: center; + } + .jietu{ + width: px2rem(490); + height: px2rem(275); + margin-top: px2rem(12); + margin-bottom: px2rem(32); + &.t2{ + height: px2rem(299); + } + &.t3{ + height: px2rem(301); + } } } } } } - // 今日排名弹窗 - .shade-mask-rank { + .shade-mask-rank{ display: none; position: fixed; top: 0; @@ -709,8 +545,7 @@ body { width: 100vw; height: 100vh; background-color: rgba($color: #000000, $alpha: 0.6); - - .shade-content-rank { + .shade-content-rank{ position: absolute; top: 50%; left: 50%; @@ -718,21 +553,18 @@ body { width: px2rem(660); height: px2rem(980); background: white; - - .rank-top { + .rank-top{ height: px2rem(340); background-image: linear-gradient(#F49C35, #FFDD81); overflow: hidden; - - .tab-wrap { + .tab-wrap{ font-family: 'pingfang-regular'; width: px2rem(460); height: px2rem(70); background-color: rgba($color: #fff, $alpha: .3); border-radius: px2rem(36); margin: px2rem(20) auto px2rem(6); - - span { + span{ display: inline-block; width: px2rem(210); height: px2rem(60); @@ -741,55 +573,46 @@ body { font-size: px2rem(30); color: white; margin-top: px2rem(5); - - &:first-child { + &:first-child{ margin-left: px2rem(14); } } - - .active { + .active{ background-color: white; color: #F5A03A; border-radius: px2rem(30); } } - - .topthree-wrap { + .topthree-wrap{ position: relative; - - .info-wrap { + .info-wrap{ position: absolute; display: flex; flex-direction: column; align-items: center; width: 100%; - - &:first-child { + &:first-child{ width: px2rem(132); // height: px2rem(175); // margin-top: px2rem(86); left: 50%; transform: translateX(-50%); - - .diamond-num { + .diamond-num{ display: none; } } - - .avatar { + .avatar{ width: px2rem(132); height: px2rem(175); margin-bottom: px2rem(20); - - p { + p{ position: relative; z-index: 99; width: 100%; height: 100%; background: url('../images/first.png') no-repeat 0 0/100% 100%; } - - img { + img{ position: relative; z-index: 9; top: px2rem(-136); @@ -799,17 +622,14 @@ body { border-radius: 50%; } } - - .nick, - .diamond-num { + .nick, .diamond-num{ width: px2rem(360); text-align: center; font-size: px2rem(30); font-weight: bold; color: white; } - - .diamond-num { + .diamond-num{ font-family: 'din-medium'; margin: 0; margin-top: px2rem(-20); @@ -820,8 +640,8 @@ body { } } } - - .other-rank { + + .other-rank{ overflow: auto; position: absolute; width: 100%; @@ -829,17 +649,14 @@ body { background-color: white; padding: px2rem(30) px2rem(20) 0; box-sizing: border-box; - - li { + li{ display: flex; align-items: center; margin-bottom: px2rem(40); - - &:last-child { + &:last-child{ // margin-bottom: px2rem(140); } - - .index { + .index{ display: inline-block; width: px2rem(30); font-size: px2rem(30); @@ -847,36 +664,32 @@ body { color: #333333; text-align: center; } - - .others-info { + .others-info{ flex: 1; display: flex; align-items: center; margin-left: px2rem(20); - - img { - width: 1.7066666667rem; - height: 1.7066666667rem; + img{ + width: px2rem(100); + height: px2rem(100); border-radius: 50%; margin-right: px2rem(20); } - - .others-nick { + .others-nick{ font-size: px2rem(28); font-weight: bold; color: #333333; } } - - .others-diamond-num { + .others-diamond-num{ font-size: px2rem(26); font-weight: bold; color: #ED7B50; } } } - - .mine { + + .mine{ position: fixed; left: 0; bottom: 0; @@ -888,34 +701,29 @@ body { box-sizing: border-box; display: flex; align-items: center; - - .mine-rank { + .mine-rank{ font-size: px2rem(26); font-weight: bold; color: white; } - - .mine-info { + .mine-info{ flex: 1; display: flex; align-items: center; - - img { + img{ width: px2rem(80); height: px2rem(80); border-radius: 50%; margin-left: px2rem(30); margin-right: px2rem(40); } - - .mine-nick { + .mine-nick{ font-size: px2rem(28); font-weight: bold; color: white; } } - - .mine-diamond-num { + .mine-diamond-num{ font-size: px2rem(26); font-weight: bold; color: #ED7B50; @@ -923,9 +731,8 @@ body { } } } - // 碎片不足弹窗 - .shade-mask-fragmentNum { + .shade-mask-fragmentNum{ display: none; position: fixed; top: 0; @@ -934,8 +741,7 @@ body { width: 100vw; height: 100vh; background-color: rgba($color: #000000, $alpha: 0.6); - - .shade-content-fragmentNum { + .shade-content-fragmentNum{ position: absolute; top: 50%; left: 50%; @@ -948,36 +754,30 @@ body { display: flex; flex-direction: column; align-items: center; - - .fragmentNum-title { + .fragmentNum-title{ font-size: px2rem(36); font-weight: bold; color: #333333; margin-top: px2rem(38); } - - img { + img{ width: px2rem(120); width: px2rem(120); margin-top: px2rem(108); } - - p { + p{ font-size: px2rem(30); font-weight: 600; color: #333333; margin-top: px2rem(50); } - - .fragmentNum-btn-wrap { + .fragmentNum-btn-wrap{ display: flex; justify-content: space-between; width: px2rem(512); height: px2rem(76); margin-top: px2rem(90); - - .cancel-btn, - .confirm-btn { + .cancel-btn, .confirm-btn{ width: px2rem(240); height: px2rem(76); line-height: px2rem(76); @@ -985,22 +785,19 @@ body { border-radius: px2rem(38); font-size: px2rem(28); font-weight: 600; - background: url(../images/cBut.png) no-repeat; - background-size: 100% 100%; - color: #333; + background-color: #EAE5FC; + color: #7154EE; } - - .confirm-btn { - background: url(../images/sBut.png) no-repeat; - background-size: 100% 100%; - color: #333; + .confirm-btn{ + background-color: #735FFE; + color: #fff; } } } } } -.no-in-app { +.no-in-app{ display: none; position: fixed; top: 0; @@ -1009,4 +806,4 @@ body { height: 100vh; z-index: 99999; background-color: white; -} \ No newline at end of file +} diff --git a/view/peko/activity/act-ocean/css/rank.css b/view/peko/activity/act-ocean/css/rank.css index 96a6a39..37192cb 100644 --- a/view/peko/activity/act-ocean/css/rank.css +++ b/view/peko/activity/act-ocean/css/rank.css @@ -1,139 +1,163 @@ @font-face { - font-family: "pingfang-bold"; + font-family: 'pingfang-bold'; src: url("../../../common/fonts/PingFang Bold.ttf"); src: url("../../../common/fonts/PingFang Bold.ttf") format("woff"), url("../../../common/fonts/PingFang Bold.ttf") format("truetype"), url("../../../common/fonts/PingFang Bold.ttf") format("svg"); } + @font-face { - font-family: "din-medium"; + font-family: 'din-medium'; src: url("../../../common/fonts/DINCond-Medium.ttf"); src: url("../../../common/fonts/DINCond-Medium.ttf") format("woff"), url("../../../common/fonts/DINCond-Medium.ttf") format("truetype"), url("../../../common/fonts/DINCond-Medium.ttf") format("svg"); } + @font-face { - font-family: "pingfang-medium"; + font-family: 'pingfang-medium'; src: url("../../../common/fonts/PingFang-Medium.ttf"); src: url("../../../common/fonts/PingFang-Medium.ttf") format("woff"), url("../../../common/fonts/PingFang-Medium.ttf") format("truetype"), url("../../../common/fonts/PingFang-Medium.ttf") format("svg"); } + @font-face { - font-family: "pingfang-regular"; + font-family: 'pingfang-regular'; src: url("../../../common/fonts/PingFang-Regular.ttf"); src: url("../../../common/fonts/PingFang-Regular.ttf") format("woff"), url("../../../common/fonts/PingFang-Regular.ttf") format("truetype"), url("../../../common/fonts/PingFang-Regular.ttf") format("svg"); } + html, body { - font-family: "pingfang-bold"; + font-family: 'pingfang-bold'; position: relative; } .rank-top { - height: 6.6666666667rem; + height: 6.66667rem; background-image: linear-gradient(#3491F5, #60C7FC); overflow: hidden; } + .rank-top .tab-wrap { - font-family: "pingfang-regular"; - width: 5.3333333333rem; - height: 0.9333333333rem; + font-family: 'pingfang-regular'; + width: 5.33333rem; + height: 0.93333rem; background-color: #7ABDF9; border-radius: 0.48rem; - margin: 0.48rem auto 0.2933333333rem; + margin: 0.48rem auto 0.29333rem; } + .rank-top .tab-wrap span { display: inline-block; - width: 2.5333333333rem; + width: 2.53333rem; height: 0.8rem; line-height: 0.8rem; text-align: center; font-size: 0.4rem; color: white; - margin-top: 0.0666666667rem; + margin-top: 0.06667rem; } + .rank-top .tab-wrap span:first-child { margin-left: 0.08rem; } + .rank-top .tab-wrap .active { background-color: white; color: #3C9BF7; border-radius: 0.4rem; } + .rank-top .topthree-wrap { position: relative; } + .rank-top .topthree-wrap .info-wrap { position: absolute; display: flex; flex-direction: column; align-items: center; - width: 2.6666666667rem; + width: 2.66667rem; height: 3.2rem; background-image: linear-gradient(#3F9EF7, #52B6FA); margin-top: 1.68rem; - border-radius: 0.2666666667rem 0.2666666667rem 0 0; + border-radius: 0.26667rem 0.26667rem 0 0; } + .rank-top .topthree-wrap .info-wrap:first-child { width: 3.2rem; - height: 3.7333333333rem; - margin-top: 1.1466666667rem; + height: 3.73333rem; + margin-top: 1.14667rem; left: 50%; transform: translateX(-50%); } + .rank-top .topthree-wrap .info-wrap:nth-child(2) { left: 0.48rem; } + .rank-top .topthree-wrap .info-wrap:nth-child(2) .avatar { - width: 1.8666666667rem; - height: 2.5333333333rem; - margin-top: -1.1466666667rem; + width: 1.86667rem; + height: 2.53333rem; + margin-top: -1.14667rem; } + .rank-top .topthree-wrap .info-wrap:nth-child(2) .avatar p { background-image: url("../images/second.png"); } + .rank-top .topthree-wrap .info-wrap:nth-child(2) .avatar img { - width: 1.8666666667rem; - height: 1.8666666667rem; - top: -1.9733333333rem; + width: 1.86667rem; + height: 1.86667rem; + top: -1.97333rem; } + .rank-top .topthree-wrap .info-wrap:nth-child(3) { right: 0.48rem; } + .rank-top .topthree-wrap .info-wrap:nth-child(3) .avatar { - width: 1.8666666667rem; - height: 2.5333333333rem; - margin-top: -1.1466666667rem; + width: 1.86667rem; + height: 2.53333rem; + margin-top: -1.14667rem; } + .rank-top .topthree-wrap .info-wrap:nth-child(3) .avatar p { background-image: url("../images/third.png"); } + .rank-top .topthree-wrap .info-wrap:nth-child(3) .avatar img { - width: 1.8666666667rem; - height: 1.8666666667rem; - top: -1.9733333333rem; + width: 1.86667rem; + height: 1.86667rem; + top: -1.97333rem; } + .rank-top .topthree-wrap .info-wrap .avatar { - width: 2.1333333333rem; - height: 2.8533333333rem; - margin-top: -0.9333333333rem; + width: 2.13333rem; + height: 2.85333rem; + margin-top: -0.93333rem; } + .rank-top .topthree-wrap .info-wrap .avatar p { position: relative; z-index: 99; height: 100%; background: url("../images/first.png") no-repeat 0 0/100% 100%; } + .rank-top .topthree-wrap .info-wrap .avatar img { position: relative; z-index: 9; top: -2.24rem; - width: 2.1333333333rem; - height: 2.1333333333rem; + width: 2.13333rem; + height: 2.13333rem; border-radius: 50%; } + .rank-top .topthree-wrap .info-wrap .nick, .rank-top .topthree-wrap .info-wrap .diamond-num { font-size: 0.4rem; font-weight: bold; color: white; - margin: 0.2133333333rem 0; + margin: 0.21333rem 0; } + .rank-top .topthree-wrap .info-wrap .diamond-num { - font-family: "din-medium"; + font-family: 'din-medium'; margin: 0; } @@ -142,19 +166,22 @@ html, body { position: absolute; width: 100%; border-radius: 0.4rem 0.4rem 0 0; - margin-top: -0.3466666667rem; + margin-top: -0.34667rem; background-color: white; - padding: 0.5333333333rem 0.7733333333rem 0; + padding: 0.53333rem 0.77333rem 0; box-sizing: border-box; } + .other-rank li { display: flex; align-items: center; - margin-bottom: 0.5333333333rem; + margin-bottom: 0.53333rem; } + .other-rank li:last-child { - margin-bottom: 1.8666666667rem; + margin-bottom: 1.86667rem; } + .other-rank li .index { display: inline-block; width: 0.4rem; @@ -162,25 +189,29 @@ html, body { font-weight: bold; color: #333333; } + .other-rank li .others-info { flex: 1; display: flex; align-items: center; margin-left: 0.4rem; } + .other-rank li .others-info img { - width: 1.3333333333rem; - height: 1.3333333333rem; + width: 1.33333rem; + height: 1.33333rem; border-radius: 50%; - margin-right: 0.2666666667rem; + margin-right: 0.26667rem; } + .other-rank li .others-info .others-nick { - font-size: 0.3733333333rem; + font-size: 0.37333rem; font-weight: bold; color: #333333; } + .other-rank li .others-diamond-num { - font-size: 0.3466666667rem; + font-size: 0.34667rem; font-weight: bold; color: #ED7B50; } @@ -193,40 +224,46 @@ html, body { width: 100%; height: 1.6rem; background-color: rgba(0, 0, 0, 0.8); - padding: 0 0.7733333333rem; + padding: 0 0.77333rem; box-sizing: border-box; display: flex; align-items: center; } + .mine .mine-rank { - font-size: 0.3466666667rem; + font-size: 0.34667rem; font-weight: bold; color: white; } + .mine .mine-info { flex: 1; display: flex; align-items: center; } + .mine .mine-info img { - width: 1.3333333333rem; - height: 1.3333333333rem; + width: 1.33333rem; + height: 1.33333rem; border-radius: 50%; margin-left: 0.4rem; - margin-right: 0.2666666667rem; + margin-right: 0.26667rem; } + .mine .mine-info .mine-nick { - font-size: 0.3733333333rem; + font-size: 0.37333rem; font-weight: bold; color: white; } + .mine .mine-diamond-num { - font-size: 0.3466666667rem; + font-size: 0.34667rem; font-weight: bold; color: #ED7B50; } .no-in-app { + display: none; position: fixed; top: 0; left: 0; @@ -235,5 +272,3 @@ html, body { z-index: 99999; background-color: white; } - -/*# sourceMappingURL=rank.css.map */ diff --git a/view/peko/activity/act-ocean/css/rank.scss b/view/peko/activity/act-ocean/css/rank.scss index 42537c5..2b8846f 100644 --- a/view/peko/activity/act-ocean/css/rank.scss +++ b/view/peko/activity/act-ocean/css/rank.scss @@ -246,7 +246,7 @@ html,body{ } .no-in-app{ - // display: none; + display: none; position: fixed; top: 0; left: 0; diff --git a/view/peko/activity/act-ocean/css/record.css b/view/peko/activity/act-ocean/css/record.css index 16acd05..bc68b46 100644 --- a/view/peko/activity/act-ocean/css/record.css +++ b/view/peko/activity/act-ocean/css/record.css @@ -1,125 +1,155 @@ -html, -body { - width: 100%; - background: #233346; +@font-face { + font-family: 'pingfang-bold'; + src: url("../../../common/fonts/PingFang Bold.ttf"); + src: url("../../../common/fonts/PingFang Bold.ttf") format("woff"), url("../../../common/fonts/PingFang Bold.ttf") format("truetype"), url("../../../common/fonts/PingFang Bold.ttf") format("svg"); } -.img { - position: fixed; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - width: 6rem; - height: 4.1333333333rem; - background: url(../images/null.png) no-repeat; - background-size: 100% 100%; -} -.img p { - text-align: center; - width: 1.3333333333%rem; - position: absolute; - bottom: -1rem; - left: 50%; - transform: translate(-50%); - color: #fff; - font-size: 0.2666666667rem; +@font-face { + font-family: 'din-medium'; + src: url("../../../common/fonts/DINCond-Medium.ttf"); + src: url("../../../common/fonts/DINCond-Medium.ttf") format("woff"), url("../../../common/fonts/DINCond-Medium.ttf") format("truetype"), url("../../../common/fonts/DINCond-Medium.ttf") format("svg"); } -.record-list { - width: 9.2rem; - margin: 0.4rem auto; +@font-face { + font-family: 'pingfang-medium'; + src: url("../../../common/fonts/PingFang-Medium.ttf"); + src: url("../../../common/fonts/PingFang-Medium.ttf") format("woff"), url("../../../common/fonts/PingFang-Medium.ttf") format("truetype"), url("../../../common/fonts/PingFang-Medium.ttf") format("svg"); } -.record-list li { - width: 100%; - height: 4.8rem; - background: linear-gradient(0deg, #46BBC1 0%, #62DEE4 100%); - border-radius: 0.2666666667rem; + +.clearfix:after { + display: block; + content: ' '; + clear: both; } -.record-list li h3 { - width: 100%; - height: 0.7rem; - line-height: 0.7rem; + +.clearfix { + *zoom: 1; +} + +html, body { + font-family: 'pingfang-bold'; + background-image: linear-gradient(#E6AD6A, #F9CA92); +} + +ul.record-list { + height: 100vh; + overflow-y: scroll; + overflow-x: hidden; + padding-top: 0.69333rem; + box-sizing: border-box; +} + +ul.record-list li.record-item { + overflow: hidden; + width: 10rem; + height: 5.6rem; + background: url("../images/record/record-bg.png") no-repeat 0 0/100% 100%; + margin-bottom: 0.4rem; +} + +ul.record-list li.record-item .time { + font-family: 'pingfang-medium'; + font-size: 0.34667rem; + color: white; text-align: center; - color: #fff; + margin-top: 0.58667rem; + margin-bottom: 0.21333rem; } -.record-list li .goldBox { - width: 1.3333333333%rem; - height: 0.5866666667rem; - line-height: 0.5866666667rem; - background: #1B9196; + +ul.record-list li.record-item .award { display: flex; justify-content: space-between; - box-sizing: border-box; - padding: 0 0.2666666667rem; + align-items: center; + width: 9.04rem; + height: 0.58667rem; + background-color: #F46331; + margin: auto; } -.record-list li .goldBox span { - color: #fff; - font-size: 0.3733333333rem; + +ul.record-list li.record-item .award .text { + font-size: 0.37333rem; + color: white; + font-weight: bold; + margin-left: 0.32rem; } -.record-list li .goldBox .gold { - font-size: 0.3466666667rem; + +ul.record-list li.record-item .award .diamond-num { + font-family: 'din-medium'; + font-size: 0.34667rem; + color: white; + margin-right: 0.34667rem; +} + +ul.record-list li.record-item .award img.diamond-pic { + width: 0.48rem; + height: 0.37333rem; + margin: 0 0.34667rem 0 -0.26667rem; +} + +ul.record-list li.record-item .award img.diamond-pic1 { + width: 0.48rem; + height: 0.37333rem; + margin: 0; +} + +ul.record-list li.record-item ul.award-animal { + display: flex; + flex-wrap: wrap; + padding: 0 0.66667rem 0 0.8rem; +} + +ul.record-list li.record-item ul.award-animal li.animal-item { + width: 25%; + margin: 0.26667rem 0; + display: flex; + align-items: center; +} + +ul.record-list li.record-item ul.award-animal li.animal-item.active { + margin: 0.13333rem 0; +} + +ul.record-list li.record-item ul.award-animal li.animal-item.active div { + width: 1.06667rem; + height: 1.06667rem; + background: url("../images/little-bubble-active.png") no-repeat 0 0/100% 100%; +} + +ul.record-list li.record-item ul.award-animal li.animal-item.active span { color: #FEEF60; } -.record-list li .marine_organism { - width: 7.4666666667rem; - height: 2.1333333333rem; - margin: 0 auto; - display: flex; - justify-content: space-between; - flex-wrap: wrap; -} -.record-list li .marine_organism span { - width: 1.6rem; - height: 1.6rem; - position: relative; - display: block; -} -.record-list li .marine_organism span img { - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - width: 0.72rem; - height: 0.6266666667rem; - display: block; -} -.record-list li .marine_organism span b { - position: absolute; - right: -0.1rem; - top: 0.3rem; - color: #FFFFFF; - font-size: 0.2666666667rem; -} -.record-list li .marine_organism .active { - width: 1.6rem; - height: 1.6rem; - position: relative; -} -.record-list li .marine_organism .active img { - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - width: 0.96rem; - height: 0.8266666667rem; - display: block; -} -.record-list li .marine_organism .active b { - position: absolute; - right: -0.1rem; - top: 0.3rem; - color: #FFFFFF; - -webkit-text-stroke: 0.0266666667rem #FF5C7E; - text-stroke: 0.0266666667rem #FF5C7E; - font-weight: bold; - font-size: 0.32rem; -} -.record-list li p { - color: #fff; - width: 100%; - text-align: center; - margin-top: 0.9rem; - display: none; + +ul.record-list li.record-item ul.award-animal li.animal-item div { + width: 0.8rem; + height: 0.8rem; + background: url("../images/little-bubble.png") no-repeat 0 0/100% 100%; } -/*# sourceMappingURL=record.css.map */ +ul.record-list li.record-item ul.award-animal li.animal-item div img { + width: 100%; +} + +ul.record-list li.record-item ul.award-animal li.animal-item span { + font-size: 0.26667rem; + font-weight: bold; + color: white; + margin-left: 0.10667rem; +} + +ul.record-list li.record-item .tip { + font-family: 'pingfang-medium'; + font-size: 0.26667rem; + color: white; + text-align: center; + margin-top: 0.26667rem; +} + +ul.record-list .no-record { + position: relative; + top: 50%; + transform: translateY(-50%); + text-align: center; + color: white; + font-size: 0.42667rem; + font-weight: bold; +} diff --git a/view/peko/activity/act-ocean/css/record.scss b/view/peko/activity/act-ocean/css/record.scss index 4c8ad33..e561c02 100644 --- a/view/peko/activity/act-ocean/css/record.scss +++ b/view/peko/activity/act-ocean/css/record.scss @@ -2,137 +2,149 @@ @return $px / $rem+rem; } -html, -body { - width: 100%; - background: #233346; +@font-face{ + font-family: 'pingfang-bold'; + src: url('../../../common/fonts/PingFang\ Bold.ttf'); + src: url('../../../common/fonts/PingFang\ Bold.ttf') format('woff'), + url('../../../common/fonts/PingFang\ Bold.ttf') format('truetype'), + url('../../../common/fonts/PingFang\ Bold.ttf') format('svg'); } -.img{ - position: fixed; - left: 50%; - top: 50%; - transform: translate(-50%,-50%); - width: px2rem(450, ); - height: px2rem(310, ); - background: url(../images/null.png) no-repeat; - background-size: 100% 100%; - p{ - text-align: center; - width: px2rem(100%, ); - position: absolute; - bottom: -1rem; - left: 50%; - transform: translate(-50%); - color: #fff; - font-size: px2rem(20, ); - } -} -.record-list { - width: px2rem(690, ); - margin: px2rem(30, ) auto; - li { - width: 100%; - height: px2rem(360, ); - background: linear-gradient(0deg, #46BBC1 0%, #62DEE4 100%); - border-radius: px2rem(20, ); - h3 { - width: 100%; - height: 0.7rem; - line-height: 0.7rem; +@font-face{ + font-family: 'din-medium'; + src: url('../../../common/fonts/DINCond-Medium.ttf'); + src: url('../../../common/fonts/DINCond-Medium.ttf') format('woff'), + url('../../../common/fonts/DINCond-Medium.ttf') format('truetype'), + url('../../../common/fonts/DINCond-Medium.ttf') format('svg'); +} + +@font-face{ + font-family: 'pingfang-medium'; + src: url('../../../common/fonts/PingFang-Medium.ttf'); + src: url('../../../common/fonts/PingFang-Medium.ttf') format('woff'), + url('../../../common/fonts/PingFang-Medium.ttf') format('truetype'), + url('../../../common/fonts/PingFang-Medium.ttf') format('svg'); +} + +.clearfix:after{ + display:block; + content:' '; + clear:both; +} +.clearfix{ + *zoom:1;//兼容到ie6 +} + +html,body{ + font-family: 'pingfang-bold'; + background-image: linear-gradient(#E6AD6A, #F9CA92) ; +} + +ul.record-list{ + height: 100vh; + overflow-y: scroll; + overflow-x: hidden; + padding-top: px2rem(52); + box-sizing: border-box; + li.record-item{ + overflow: hidden; + width: px2rem(750); + height: px2rem(420); + background: url('../images/record/record-bg.png') no-repeat 0 0/100% 100%; + margin-bottom: px2rem(30); + .time{ + font-family: 'pingfang-medium'; + font-size: px2rem(26); + color: white; text-align: center; - color: #fff; - + margin-top: px2rem(44); + margin-bottom: px2rem(16); } - - .goldBox { - width: px2rem(100%, ); - height: px2rem(44, ); - line-height: px2rem(44, ); - background: #1B9196; + .award{ display: flex; justify-content: space-between; - box-sizing: border-box; - padding: 0 px2rem(20, ); - - span { - color: #fff; - font-size: px2rem(28, ); + align-items: center; + width: px2rem(678); + height: px2rem(44); + background-color: #F46331; + margin: auto; + .text{ + font-size: px2rem(28); + color: white; + font-weight: bold; + margin-left: px2rem(24); } - - .gold { - font-size: px2rem(26, ); - color: #FEEF60; + .diamond-num{ + font-family: 'din-medium'; + font-size: px2rem(26); + color: white; + margin-right: px2rem(26); + } + img.diamond-pic{ + width: px2rem(36); + height: px2rem(28); + margin: 0 px2rem(26) 0 px2rem(-20); + } + img.diamond-pic1{ + width: px2rem(36); + height: px2rem(28); + margin: 0; } } - - .marine_organism { - width: px2rem(560, ); - height: px2rem(160, ); - margin: 0 auto; + ul.award-animal{ display: flex; - justify-content: space-between; flex-wrap: wrap; - - span { - width: px2rem(120, ); - height: px2rem(120, ); - position: relative; - display: block; - - img { - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - width: px2rem(54, ); - height: px2rem(47, ); - display: block; + padding: 0 px2rem(50) 0 px2rem(60); + // margin-left: px2rem(60); + li.animal-item{ + // float: left; + width: 25%; + margin: px2rem(20) 0; + display: flex; + // justify-content: center; + align-items: center; + &.active{ + margin: px2rem(10) 0; + div{ + width: px2rem(80); + height: px2rem(80); + background: url('../images/little-bubble-active.png') no-repeat 0 0/100% 100%; + } + span{ + color: #FEEF60; + } } - - b { - position: absolute; - right: -0.1rem; - top: 0.3rem; - color: #FFFFFF; - font-size: px2rem(20, ); + div{ + width: px2rem(60); + height: px2rem(60); + background: url('../images/little-bubble.png') no-repeat 0 0/100% 100%; + img{ + width: 100%; + } } - } - - .active { - width: px2rem(120, ); - height: px2rem(120, ); - position: relative; - - img { - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - width: px2rem(72, ); - height: px2rem(62, ); - display: block; - } - - b { - position: absolute; - right: -0.1rem; - top: 0.3rem; - color: #FFFFFF; - -webkit-text-stroke: px2rem(2, ) #FF5C7E; - text-stroke: px2rem(2, ) #FF5C7E; + span{ + font-size: px2rem(20); font-weight: bold; - font-size: px2rem(24, ); + color: white; + margin-left: px2rem(8); } } } - - p { - color: #fff; - width: 100%; + .tip{ + font-family: 'pingfang-medium'; + font-size: px2rem(20); + color: white; text-align: center; - margin-top: 0.9rem; - display: none; + margin-top: px2rem(20); } } + .no-record{ + position: relative; + top: 50%; + transform: translateY(-50%); + text-align: center; + color: white; + font-size: px2rem(32); + font-weight: bold; + } } \ No newline at end of file diff --git a/view/peko/activity/act-ocean/images/add.png b/view/peko/activity/act-ocean/images/add.png index 03436d1..a1985a7 100644 Binary files a/view/peko/activity/act-ocean/images/add.png and b/view/peko/activity/act-ocean/images/add.png differ diff --git a/view/peko/activity/act-ocean/images/banner.png b/view/peko/activity/act-ocean/images/banner.png index 6b004ca..5542c6b 100644 Binary files a/view/peko/activity/act-ocean/images/banner.png and b/view/peko/activity/act-ocean/images/banner.png differ diff --git a/view/peko/activity/act-ocean/images/btn-wrap-bg.png b/view/peko/activity/act-ocean/images/btn-wrap-bg.png index ba5f511..f9d4b7b 100644 Binary files a/view/peko/activity/act-ocean/images/btn-wrap-bg.png and b/view/peko/activity/act-ocean/images/btn-wrap-bg.png differ diff --git a/view/peko/activity/act-ocean/images/bubble-bg.png b/view/peko/activity/act-ocean/images/bubble-bg.png index a8b16aa..b5d299e 100644 Binary files a/view/peko/activity/act-ocean/images/bubble-bg.png and b/view/peko/activity/act-ocean/images/bubble-bg.png differ diff --git a/view/peko/activity/act-ocean/images/cBut.png b/view/peko/activity/act-ocean/images/cBut.png deleted file mode 100644 index 4f03fd5..0000000 Binary files a/view/peko/activity/act-ocean/images/cBut.png and /dev/null differ diff --git a/view/peko/activity/act-ocean/images/close.png b/view/peko/activity/act-ocean/images/close.png deleted file mode 100644 index 57bf82a..0000000 Binary files a/view/peko/activity/act-ocean/images/close.png and /dev/null differ diff --git a/view/peko/activity/act-ocean/images/count-down.png b/view/peko/activity/act-ocean/images/count-down.png index 289d1b9..7933a22 100644 Binary files a/view/peko/activity/act-ocean/images/count-down.png and b/view/peko/activity/act-ocean/images/count-down.png differ diff --git a/view/peko/activity/act-ocean/images/default-hui.png b/view/peko/activity/act-ocean/images/default-hui.png index 24debb6..3921304 100644 Binary files a/view/peko/activity/act-ocean/images/default-hui.png and b/view/peko/activity/act-ocean/images/default-hui.png differ diff --git a/view/peko/activity/act-ocean/images/default.png b/view/peko/activity/act-ocean/images/default.png index a404f0b..bba4f23 100644 Binary files a/view/peko/activity/act-ocean/images/default.png and b/view/peko/activity/act-ocean/images/default.png differ diff --git a/view/peko/activity/act-ocean/images/draw.svga b/view/peko/activity/act-ocean/images/draw.svga index 7a7f98c..3fd0198 100644 Binary files a/view/peko/activity/act-ocean/images/draw.svga and b/view/peko/activity/act-ocean/images/draw.svga differ diff --git a/view/peko/activity/act-ocean/images/first.png b/view/peko/activity/act-ocean/images/first.png index 1eec8f7..9c3cefe 100644 Binary files a/view/peko/activity/act-ocean/images/first.png and b/view/peko/activity/act-ocean/images/first.png differ diff --git a/view/peko/activity/act-ocean/images/fragment-btn-active.png b/view/peko/activity/act-ocean/images/fragment-btn-active.png index 894712d..e7c6272 100644 Binary files a/view/peko/activity/act-ocean/images/fragment-btn-active.png and b/view/peko/activity/act-ocean/images/fragment-btn-active.png differ diff --git a/view/peko/activity/act-ocean/images/fragment-btn.png b/view/peko/activity/act-ocean/images/fragment-btn.png index 1f28664..c2807af 100644 Binary files a/view/peko/activity/act-ocean/images/fragment-btn.png and b/view/peko/activity/act-ocean/images/fragment-btn.png differ diff --git a/view/peko/activity/act-ocean/images/game-area.png b/view/peko/activity/act-ocean/images/game-area.png index 2d2b2c8..45cf8a9 100644 Binary files a/view/peko/activity/act-ocean/images/game-area.png and b/view/peko/activity/act-ocean/images/game-area.png differ diff --git a/view/peko/activity/act-ocean/images/gold.png b/view/peko/activity/act-ocean/images/gold.png deleted file mode 100644 index 2ed9532..0000000 Binary files a/view/peko/activity/act-ocean/images/gold.png and /dev/null differ diff --git a/view/peko/activity/act-ocean/images/index-bottom.png b/view/peko/activity/act-ocean/images/index-bottom.png index bedfacd..12a56c1 100644 Binary files a/view/peko/activity/act-ocean/images/index-bottom.png and b/view/peko/activity/act-ocean/images/index-bottom.png differ diff --git a/view/peko/activity/act-ocean/images/last-little-bubble.png b/view/peko/activity/act-ocean/images/last-little-bubble.png index b2d3206..0fbb754 100644 Binary files a/view/peko/activity/act-ocean/images/last-little-bubble.png and b/view/peko/activity/act-ocean/images/last-little-bubble.png differ diff --git a/view/peko/activity/act-ocean/images/little-bubble-active.png b/view/peko/activity/act-ocean/images/little-bubble-active.png new file mode 100644 index 0000000..f04c718 Binary files /dev/null and b/view/peko/activity/act-ocean/images/little-bubble-active.png differ diff --git a/view/peko/activity/act-ocean/images/logo.png b/view/peko/activity/act-ocean/images/logo.png new file mode 100644 index 0000000..06bbf4a Binary files /dev/null and b/view/peko/activity/act-ocean/images/logo.png differ diff --git a/view/peko/activity/act-ocean/images/mall.png b/view/peko/activity/act-ocean/images/mall.png index 15c67f7..cfd7798 100644 Binary files a/view/peko/activity/act-ocean/images/mall.png and b/view/peko/activity/act-ocean/images/mall.png differ diff --git a/view/peko/activity/act-ocean/images/mall/banner.png b/view/peko/activity/act-ocean/images/mall/banner.png index 287053b..1f97a98 100644 Binary files a/view/peko/activity/act-ocean/images/mall/banner.png and b/view/peko/activity/act-ocean/images/mall/banner.png differ diff --git a/view/peko/activity/act-ocean/images/mall/bottom.png b/view/peko/activity/act-ocean/images/mall/bottom.png index e943a17..7b955de 100644 Binary files a/view/peko/activity/act-ocean/images/mall/bottom.png and b/view/peko/activity/act-ocean/images/mall/bottom.png differ diff --git a/view/peko/activity/act-ocean/images/mall/buy-area-long.png b/view/peko/activity/act-ocean/images/mall/buy-area-long.png index 2dc1d0e..b1d3e13 100644 Binary files a/view/peko/activity/act-ocean/images/mall/buy-area-long.png and b/view/peko/activity/act-ocean/images/mall/buy-area-long.png differ diff --git a/view/peko/activity/act-ocean/images/mall/buy-area.png b/view/peko/activity/act-ocean/images/mall/buy-area.png index a2d9a69..9038bfb 100644 Binary files a/view/peko/activity/act-ocean/images/mall/buy-area.png and b/view/peko/activity/act-ocean/images/mall/buy-area.png differ diff --git a/view/peko/activity/act-ocean/images/mall/buy.png b/view/peko/activity/act-ocean/images/mall/buy.png index 4fa120e..cd7ddd2 100644 Binary files a/view/peko/activity/act-ocean/images/mall/buy.png and b/view/peko/activity/act-ocean/images/mall/buy.png differ diff --git a/view/peko/activity/act-ocean/images/mall/decrease.png b/view/peko/activity/act-ocean/images/mall/decrease.png index 6d8449d..52ef80c 100644 Binary files a/view/peko/activity/act-ocean/images/mall/decrease.png and b/view/peko/activity/act-ocean/images/mall/decrease.png differ diff --git a/view/peko/activity/act-ocean/images/mall/increase.png b/view/peko/activity/act-ocean/images/mall/increase.png index 0c37968..4e8b476 100644 Binary files a/view/peko/activity/act-ocean/images/mall/increase.png and b/view/peko/activity/act-ocean/images/mall/increase.png differ diff --git a/view/peko/activity/act-ocean/images/mall/no-money.png b/view/peko/activity/act-ocean/images/mall/no-money.png index 28f6871..c460916 100644 Binary files a/view/peko/activity/act-ocean/images/mall/no-money.png and b/view/peko/activity/act-ocean/images/mall/no-money.png differ diff --git a/view/peko/activity/act-ocean/images/mrlogo.png b/view/peko/activity/act-ocean/images/mrlogo.png deleted file mode 100644 index 7c77e36..0000000 Binary files a/view/peko/activity/act-ocean/images/mrlogo.png and /dev/null differ diff --git a/view/peko/activity/act-ocean/images/multiple-bg.png b/view/peko/activity/act-ocean/images/multiple-bg.png index 2dcc29a..8f0dc98 100644 Binary files a/view/peko/activity/act-ocean/images/multiple-bg.png and b/view/peko/activity/act-ocean/images/multiple-bg.png differ diff --git a/view/peko/activity/act-ocean/images/name-bg.png b/view/peko/activity/act-ocean/images/name-bg.png index e82b122..d7a2356 100644 Binary files a/view/peko/activity/act-ocean/images/name-bg.png and b/view/peko/activity/act-ocean/images/name-bg.png differ diff --git a/view/peko/activity/act-ocean/images/name-general-bg.png b/view/peko/activity/act-ocean/images/name-general-bg.png index 7d83cfe..59d4738 100644 Binary files a/view/peko/activity/act-ocean/images/name-general-bg.png and b/view/peko/activity/act-ocean/images/name-general-bg.png differ diff --git a/view/peko/activity/act-ocean/images/null.png b/view/peko/activity/act-ocean/images/null.png deleted file mode 100644 index a04d131..0000000 Binary files a/view/peko/activity/act-ocean/images/null.png and /dev/null differ diff --git a/view/peko/activity/act-ocean/images/previous-result-bg.png b/view/peko/activity/act-ocean/images/previous-result-bg.png index 833b54a..9f8c3dd 100644 Binary files a/view/peko/activity/act-ocean/images/previous-result-bg.png and b/view/peko/activity/act-ocean/images/previous-result-bg.png differ diff --git a/view/peko/activity/act-ocean/images/qipao-2s.png b/view/peko/activity/act-ocean/images/qipao-2s.png index 3c240ae..28daf19 100644 Binary files a/view/peko/activity/act-ocean/images/qipao-2s.png and b/view/peko/activity/act-ocean/images/qipao-2s.png differ diff --git a/view/peko/activity/act-ocean/images/rank.png b/view/peko/activity/act-ocean/images/rank.png index 3272991..839fcb5 100644 Binary files a/view/peko/activity/act-ocean/images/rank.png and b/view/peko/activity/act-ocean/images/rank.png differ diff --git a/view/peko/activity/act-ocean/images/record.png b/view/peko/activity/act-ocean/images/record.png index fb306ca..f31646e 100644 Binary files a/view/peko/activity/act-ocean/images/record.png and b/view/peko/activity/act-ocean/images/record.png differ diff --git a/view/peko/activity/act-ocean/images/record/diamond.png b/view/peko/activity/act-ocean/images/record/diamond.png new file mode 100644 index 0000000..bf02c6c Binary files /dev/null and b/view/peko/activity/act-ocean/images/record/diamond.png differ diff --git a/view/peko/activity/act-ocean/images/record/lottery.png b/view/peko/activity/act-ocean/images/record/lottery.png deleted file mode 100644 index 676a970..0000000 Binary files a/view/peko/activity/act-ocean/images/record/lottery.png and /dev/null differ diff --git a/view/peko/activity/act-ocean/images/record/record-bg.png b/view/peko/activity/act-ocean/images/record/record-bg.png new file mode 100644 index 0000000..b57c4be Binary files /dev/null and b/view/peko/activity/act-ocean/images/record/record-bg.png differ diff --git a/view/peko/activity/act-ocean/images/rule-bg.png b/view/peko/activity/act-ocean/images/rule-bg.png index 9789a3d..3194ebd 100644 Binary files a/view/peko/activity/act-ocean/images/rule-bg.png and b/view/peko/activity/act-ocean/images/rule-bg.png differ diff --git a/view/peko/activity/act-ocean/images/rule.png b/view/peko/activity/act-ocean/images/rule.png index e4dddbb..4ef7618 100644 Binary files a/view/peko/activity/act-ocean/images/rule.png and b/view/peko/activity/act-ocean/images/rule.png differ diff --git a/view/peko/activity/act-ocean/images/sBut.png b/view/peko/activity/act-ocean/images/sBut.png deleted file mode 100644 index ac32ba5..0000000 Binary files a/view/peko/activity/act-ocean/images/sBut.png and /dev/null differ diff --git a/view/peko/activity/act-ocean/images/shelf.png b/view/peko/activity/act-ocean/images/shelf.png index 5188d42..617aaa9 100644 Binary files a/view/peko/activity/act-ocean/images/shelf.png and b/view/peko/activity/act-ocean/images/shelf.png differ diff --git a/view/peko/activity/act-ocean/images/t1.png b/view/peko/activity/act-ocean/images/t1.png index ba582ec..4024ec9 100644 Binary files a/view/peko/activity/act-ocean/images/t1.png and b/view/peko/activity/act-ocean/images/t1.png differ diff --git a/view/peko/activity/act-ocean/images/t2.png b/view/peko/activity/act-ocean/images/t2.png index 741790a..632e1ea 100644 Binary files a/view/peko/activity/act-ocean/images/t2.png and b/view/peko/activity/act-ocean/images/t2.png differ diff --git a/view/peko/activity/act-ocean/images/t3.png b/view/peko/activity/act-ocean/images/t3.png index 793b77d..e2144bc 100644 Binary files a/view/peko/activity/act-ocean/images/t3.png and b/view/peko/activity/act-ocean/images/t3.png differ diff --git a/view/peko/activity/act-ocean/images/tip.png b/view/peko/activity/act-ocean/images/tip.png index 000c70b..8da3eaa 100644 Binary files a/view/peko/activity/act-ocean/images/tip.png and b/view/peko/activity/act-ocean/images/tip.png differ diff --git a/view/peko/activity/act-ocean/images/title-bg.png b/view/peko/activity/act-ocean/images/title-bg.png index 078ac88..904b6ad 100644 Binary files a/view/peko/activity/act-ocean/images/title-bg.png and b/view/peko/activity/act-ocean/images/title-bg.png differ diff --git a/view/peko/activity/act-ocean/images/wait.svga b/view/peko/activity/act-ocean/images/wait.svga index 3aa941a..d10c584 100644 Binary files a/view/peko/activity/act-ocean/images/wait.svga and b/view/peko/activity/act-ocean/images/wait.svga differ diff --git a/view/peko/activity/act-ocean/index.html b/view/peko/activity/act-ocean/index.html index a64dbc7..1246e63 100644 --- a/view/peko/activity/act-ocean/index.html +++ b/view/peko/activity/act-ocean/index.html @@ -1,41 +1,40 @@ - - 奇遇森林 + 星级厨房 - +
- +
- +
-
倒計時:S
- - +
开奖倒计时:
+
玩法:选择碎片数量→选择食材
+
-
100钻石
-
1000钻石
-
10000钻石
+
1
+
10
+
100
@@ -43,20 +42,20 @@
-
開獎中:S
- +
开奖中:
+
等待结果
-
下一輪:S
-
本輪結果:
+
下一轮:
+
本轮结果:
- +
@@ -71,20 +70,13 @@

-
- 本輪前三名 - - 虛位以待 - 虛位以待 - 虛位以待 -
- 往輪結果 + 往轮结果

@@ -102,29 +94,38 @@
-
+
-
用户昵称
-
今日獎勵:0
+
我的碎片:0
+
今日奖励:0
-
余額:钻石 儲值>
- - +
+
- -
+
-

遊戲規則

-
-

1.每次至少選擇1種森林動物,可多次疊加選擇,中獎後可以獲得對應钻石獎勵(中獎森林動物選中數*中獎森林動物對應倍數)

-

2.活動結束將關閉頁面,請留意活動關閉時間。

-

3.本活動與Apple Inc.無關,最終解釋權歸平臺所有。

+
+

参与方式

+ 用戶可通過花費「碎片」參與《星級廚房》遊戲,「碎片」為購買商店內頭飾的贈品,每次最少消耗1個碎片,每回合時間30秒 +

+
+
+

礼物发放

+ 每次參與遊戲後會獲得一次禮物開獎機會 +

+ 每次隨機從8種食材中選取一個作為中獎物品,中獎後獲得【中獎物品購買碎片數*中獎物品對應倍數*1000】的鉆石獎勵,鉆石將直接發放到錢包 +

+ 例如購買1個5倍的洋蔥,中獎後獲得1*5*1000的鉆石 +
+
+

其他說明

+ 如果以上說明未能解答您的疑問,請聯系客服,會有專人解答疑難 +

本活动与苹果公司无关

-
@@ -132,25 +133,25 @@
- +
- 钻石榜 - 今日歐皇榜 + 今日礼物榜 + 今日欧皇榜
- +
- +
- +
    - +
- +
- +
@@ -161,12 +162,12 @@
-
钻石不足
+
碎片不足
-

當前钻石不足

+

当前碎片不足,购买头像框获取碎片

取消
-
獲取钻石
+
获取碎片
@@ -178,7 +179,7 @@ - + \ No newline at end of file diff --git a/view/peko/activity/act-ocean/js/index.js b/view/peko/activity/act-ocean/js/index.js index bab74e3..881aba4 100644 --- a/view/peko/activity/act-ocean/js/index.js +++ b/view/peko/activity/act-ocean/js/index.js @@ -6,17 +6,17 @@ if (env == 'test') { new VConsole(); } -let lock = false //防止用户暴力点击加的锁 +let lock = false //防止用戶暴力點擊加的鎖 -// 封装layer消息提醒框 +// 封裝layer消息提醒框 let layerIndex -const showLoading = (content = '加载中...') => { +const showLoading = (content = '加載中...') => { layer.open({ type: 2, shadeClose: false, content, - success (e) { + success(e) { layerIndex = $(e).attr('index') } }) @@ -32,99 +32,80 @@ const toastMsg = (content = '操作完成', time = 2) => { }) } -if (!browser.app) {// +if(!browser.app){ toastMsg('請在app內打開!'); -} else { +}else{ $('.wrap').removeClass('no-in-app') - if (browser.ios) {window.webkit.messageHandlers.getChannel.postMessage(null);} } -// 获取用户相关信息 +// 獲取用戶相關信息 let myFragment const getUserInfo = (param) => { networkRequest({ type: 'GET', url: urlPrefix + '/act/luckySea/getUserActInfo', - success (res) { - if (res.code === 200) { + success(res){ + if(res.code === 200){ $('.info-bottom').find('.avatar img').attr('src', res.data.avatar) - - if (res.data.todayReward.toString().length >= 5) { - res.data.todayReward = (res.data.todayReward / 10000).toFixed(2) + 'W' + + if(res.data.todayReward.toString().length >= 5) { + res.data.todayReward = (res.data.todayReward/10000).toFixed(2) + 'w' } - $('.info-bottom').find('.award span').html(res.data.todayReward + '钻石') - $('.info-bottom').find('.fragment').html(res.data.nick) - myFragment = res.data.diamonds - $('.info-bottom .activeBalance span').text(res.data.diamonds); - } else { + $('.info-bottom').find('.award span').html(res.data.todayReward) + $('.info-bottom').find('.fragment span').html(res.data.pieceNum) + myFragment = res.data.pieceNum + }else{ return toastMsg(res.message) } }, - error (err) { + error(err){ toastMsg('網絡錯誤,請退出重進') } }) } -function numberFormat (value) { - var param = {}; - var k = 10000, - sizes = ['', 'W', '亿', '万亿'], - i; - if (value < k) { - param.value = value - param.unit = '' - } else { - i = Math.floor(Math.log(value) / Math.log(k)); - - param.value = ((value / Math.pow(k, i))).toFixed(2); - param.unit = sizes[i]; - } - console.log(param) - return param; -} -// 获取用户碎片信息 +// 獲取用戶碎片信息 const getUserPieceNum = () => { networkRequest({ type: 'GET', url: urlPrefix + '/act/luckySea/getUserActInfo', - success (res) { - if (res.code === 200) { - $('.info-bottom').find('.fragment span').html(res.data.diamonds) - myFragment = res.data.diamonds - } else { + success(res){ + if(res.code === 200){ + $('.info-bottom').find('.fragment span').html(res.data.pieceNum) + myFragment = res.data.pieceNum + }else{ return toastMsg(res.message) } lock = !lock }, - error (err) { + error(err){ toastMsg('網絡錯誤,請退出重進') } }) } -// 获取游戏模式 1普通模式 2礼物模式 +// 獲取遊戲模式 1普通模式 2禮物模式 let modelType const getGameMode = () => { networkRequest({ type: 'GET', url: urlPrefix + '/act/luckySea/getTimeConfig', - success (res) { - if (res.code === 200) { + success(res){ + if(res.code === 200){ modelType = res.data.modelType getNewestAct() - } else { + }else{ return toastMsg(res.message) } }, - error (err) { + error(err){ toastMsg('網絡錯誤,請退出重進') } }) } -let userComeinTime //用户进入游戏界面时间,后端返回的timestamp -let startTime, drawStageStartTime, showResultStageStartTime, endTime //4个时间戳判断落于哪个界面 +let userComeinTime //用戶進入遊戲界面時間,後端返回的timestamp +let startTime, drawStageStartTime, showResultStageStartTime, endTime //4個時間戳判斷落於哪個界面 let timer2 let roundId let roundIdArr = [] @@ -134,32 +115,32 @@ const getNewestAct = () => { networkRequest({ type: 'GET', url: urlPrefix + '/act/luckySea/getNewestAct', - success (res) { - if (res.code === 200) { - if ($.isEmptyObject(res.data) || res.data.status === 4) { - return showLoading('服务器正在维护中...') - } else { - console.log(res.timestamp > res.data.endTime); - if (res.timestamp >= res.data.endTime) { //请求的还是上一轮的数据,重新请求 - console.log('请求的还是上一轮的数据,必须重新请求'); + success(res){ + if(res.code === 200){ + if($.isEmptyObject(res.data) || res.data.status === 4 ) { + return showLoading('服務器正在維護中...') + }else{ + console.log(res.timestamp>res.data.endTime); + if(res.timestamp >= res.data.endTime){ //請求的還是上一輪的數據,重新請求 + console.log('請求的還是上一輪的數據,必須重新請求'); showLoading() timer2 = setTimeout(() => { getNewestAct() }, 600); - } else { + }else{ clearTimeout(timer2) hideLoading(layerIndex) roundId = res.data.roundId getListItem(roundId, modelType) - // 进行下一轮时,arrTime重新置为空数组,不然在下一轮开始的时候也会执行location.reload() - if (roundIdArr.length < 2) { + // 進行下一輪時,arrTime重新置為空數組,不然在下一輪開始的時候也會執行location.reload() + if(roundIdArr.length < 2){ roundIdArr = [roundId, roundId] - } else { + }else{ roundIdArr[0] = roundIdArr[1] roundIdArr[1] = roundId - if (roundIdArr[0] != roundIdArr[1]) { + if(roundIdArr[0] != roundIdArr[1]){ arrTime = [] arrTime2 = [] arrTime3 = [] @@ -168,32 +149,32 @@ const getNewestAct = () => { userComeinTime = res.timestamp - + startTime = res.data.startTime drawStageStartTime = res.data.drawStageStartTime showResultStageStartTime = res.data.showResultStageStartTime endTime = res.data.endTime - console.log('获取5个时间戳的值-----', 'timestamp:', userComeinTime, 'startTime:', startTime, 'drawStageStartTime:', drawStageStartTime, 'showResultStageStartTime:', showResultStageStartTime, 'endTime:', endTime); + console.log('獲取5個時間戳的值-----','timestamp:',userComeinTime, 'startTime:', startTime, 'drawStageStartTime:', drawStageStartTime, 'showResultStageStartTime:', showResultStageStartTime, 'endTime:', endTime); showView() } } - } else { + }else{ return toastMsg(res.message) } }, - error (err) { + error(err){ toastMsg('網絡錯誤,請退出重進') } }) } -//不为3继续请求 为3拿数据 为4弹窗 -let status - -// 显示哪个界面 +//不為3繼續請求 為3拿數據 為4彈窗 +let status + +// 顯示哪個界面 let $countDown -//区分倒计时到0时的区别处理的字段,处于第二阶段时isStatus2为真,处于第三阶段时isStatus3为真 +//區分倒計時到0時的區別處理的字段,處於第二階段時isStatus2為真,處於第三階段時isStatus3為真 let isStatus2 let isStatus3 @@ -203,20 +184,19 @@ let fragmentNum let reg = /^[0-9]*$/ const showView = () => { - if (startTime <= userComeinTime && userComeinTime < drawStageStartTime) { - // 第一阶段 - console.log('进入第一阶段'); - $('.previous-result').show(); + if( startTime <= userComeinTime && userComeinTime < drawStageStartTime ){ + // 第一階段 + console.log('進入第一階段'); isSelectTab = false $('.select-time').show().siblings().hide() $countDown = $('.select-time .count-down .count-down-num') - mySelect = sessionStorage.getItem("mySelect") - if (reg.test(mySelect)) { + mySelect = sessionStorage.getItem("mySelect") + if(reg.test(mySelect)){ $('.btn-wrap div').eq(mySelect).addClass('active').siblings().removeClass('active') fragmentNum = parseInt($('.btn-wrap div').eq(mySelect).html()) isSelectTab = true - } else { + }else{ $('.btn-wrap div').eq(0).addClass('active').siblings().removeClass('active') fragmentNum = parseInt($('.btn-wrap div').eq(0).html()) isSelectTab = true @@ -225,138 +205,134 @@ const showView = () => { $('.award-wrap').html('').show() $('.award-info .desc').html('') - getPreviousResults(6, roundId) + getPreviousResults(11, roundId) showCountDown(userComeinTime, startTime, drawStageStartTime) getUserInfo() - } else if (drawStageStartTime <= userComeinTime && userComeinTime < showResultStageStartTime) { - // 第二阶段 - console.log('进入第二阶段'); + }else if( drawStageStartTime <= userComeinTime && userComeinTime < showResultStageStartTime ){ + // 第二階段 + console.log('進入第二階段'); + sessionStorage.removeItem("mySelect") $('.wait-time').show().siblings().hide() $countDown = $('.wait-time .count-down .count-down-num') - clearTimeout(timer2s) //清除第一阶段的2s气泡定时器 + clearTimeout(timer2s) //清除第一階段的2s氣泡定時器 time2sIndex = 0 - isStatus2 = true //处于第二阶段的标识 + isStatus2 = true //處於第二階段的標識 console.log('isStatus2的值------------', isStatus2); // $('.btn-wrap').find('div').removeClass('active') - getPreviousResults(6, roundId) + getPreviousResults(11, roundId) showCountDown(userComeinTime, drawStageStartTime, showResultStageStartTime) judgeStatus() getUserInfo() - // 播放5s动画 + // 播放5s動畫 let player = new SVGA.Player('.wait-time'); let parser = new SVGA.Parser('.wait-time'); - parser.load('./images/wait.svga', function (videoItem) { - // player.loops = 2; - player.clearsAfterStop = false; - player.setVideoItem(videoItem); - player.startAnimation(); - $('.previous-result').hide(); - $('.current-tip').hide(); - }) + parser.load('./images/wait.svga', function(videoItem){ + // player.loops = 2; + player.clearsAfterStop = false; + player.setVideoItem(videoItem); + player.startAnimation(); + }) - } else if (showResultStageStartTime <= userComeinTime && userComeinTime < endTime) { - // 第三阶段 - console.log('进入第三阶段'); + }else if( showResultStageStartTime <= userComeinTime && userComeinTime < endTime ){ + // 第三階段 + console.log('進入第三階段'); $('.draw-time').show().siblings().hide() $countDown = $('.draw-time .count-down .count-down-num') - isStatus3 = true //处于第三阶段的标识 + isStatus3 = true //處於第三階段的標識 console.log('isStatus3的值------------', isStatus3); showCountDown(userComeinTime, showResultStageStartTime, endTime) judgeStatus() getUserInfo() - // getPreviousResults(6, roundId) - $('.previous-result').hide(); - $('.current-tip').hide(); - $('.current-tip').hide(); + // getPreviousResults(11, roundId) } } -// 显示倒计时 +// 顯示倒計時 let countDownTime let deltaT let timer let delayTime let interval const showCountDown = (timestamp, startTime, endTime) => { - deltaT = ((endTime - startTime) - (timestamp - startTime)) / 1000 //12.361 - if (deltaT >= 1) { + deltaT = ( (endTime - startTime) - (timestamp - startTime) )/1000 //12.361 + if( deltaT >= 1 ){ interval = 1 - } else { + }else{ interval = 0 } - console.log('deltaT----------', deltaT); - countDownTime = Math.floor(deltaT) //12.361 => 12 - delayTime = deltaT - countDownTime //请求接口的延迟时间 + console.log('deltaT----------',deltaT); + countDownTime = Math.floor( deltaT ) //12.361 => 12 + delayTime = deltaT - countDownTime //請求接口的延遲時間 $countDown.html(countDownTime) timer = setInterval(() => { - if (browser.ios) { - if (!isStatus3 && !isStatus2) { - // 处理第一阶段 - if (arrTime.length < 2) { + if(browser.ios){ + if(!isStatus3 && !isStatus2){ + // 處理第一階段 + if(arrTime.length < 2){ arrTime = [new Date().getTime(), new Date().getTime()] - } else { + }else{ arrTime[0] = arrTime[1] arrTime[1] = new Date().getTime() - if ((arrTime[1] - arrTime[0]) / 1000 > 1.5) { + if((arrTime[1] - arrTime[0])/1000 > 1.5){ window.location.reload() } } - } else if (isStatus2) { - // 第二阶段也要处理 - if (arrTime2.length < 2) { + }else if(isStatus2){ + // 第二階段也要處理 + if(arrTime2.length < 2){ arrTime2 = [new Date().getTime(), new Date().getTime()] - } else { + }else{ arrTime2[0] = arrTime2[1] arrTime2[1] = new Date().getTime() - if ((arrTime2[1] - arrTime2[0]) / 1000 > 1.5) { + if((arrTime2[1] - arrTime2[0])/1000 > 1.5){ window.location.reload() } } - } else if (isStatus3) { - // 第三阶段也要处理 - if (arrTime3.length < 2) { + }else if(isStatus3){ + // 第三階段也要處理 + if(arrTime3.length < 2){ arrTime3 = [new Date().getTime(), new Date().getTime()] - } else { + }else{ arrTime3[0] = arrTime3[1] arrTime3[1] = new Date().getTime() - if ((arrTime3[1] - arrTime3[0]) / 1000 > 1.5) { + if((arrTime3[1] - arrTime3[0])/1000 > 1.5){ window.location.reload() } } } } countDownTime-- - if (countDownTime <= 0) { - $countDown.html(0) + if(countDownTime <= 0){ + $countDown.html( 0 ) clearInterval(timer) - if (isStatus2) { // 倒计时为0时,处于第二阶段的处理 - if (status) { + if(isStatus2){ // 倒計時為0時,處於第二階段的處理 + if(status){ // hideLoading(layerIndex) setTimeout(() => { getNewestAct() }, delayTime * 1000) isStatus2 = false - } else { + }else{ showLoading() - // toastMsg('服务器繁忙,请稍等') - console.log('status的值-----------', status); + // toastMsg('服務器繁忙,請稍等') + console.log('status的值-----------',status); judgeStatus() } - } else if (isStatus3) { //倒计时为0时,处于第三阶段的处理 + }else if(isStatus3){ //倒計時為0時,處於第三階段的處理 setTimeout(() => { getNewestAct() // getListItem(roundId) @@ -364,12 +340,12 @@ const showCountDown = (timestamp, startTime, endTime) => { // getNewestAct() // getListItem() isStatus3 = false - } else { + }else{ setTimeout(() => { getNewestAct() }, delayTime * 1000) } - + // else { // setTimeout(() => { @@ -377,120 +353,103 @@ const showCountDown = (timestamp, startTime, endTime) => { // }, delayTime * 1000) // } - } else { + }else{ $countDown.html(countDownTime) } }, interval * 1000) } -//判断status的状态 +//判斷status的狀態 let timer4 let drawInfo -let img //第三阶段的中奖动物img +let img //第三階段的中獎動物img const judgeStatus = () => { - console.log('进入二阶段时轮询查看结果是否已经出了'); + console.log('進入二階段時輪詢查看結果是否已經出了'); networkRequest({ type: 'GET', url: urlPrefix + '/act/luckySea/getNewestAct', - success (res) { - if (res.code === 200) { - console.log('res.data的值------------', res.data); - if ($.isEmptyObject(res.data) || res.data.status === 4) { + success(res){ + if(res.code === 200){ + console.log('res.data的值------------',res.data); + if($.isEmptyObject(res.data) || res.data.status === 4){ console.log('程序崩了!!!'); - return showLoading('服务器正在维护中...') - } else if (res.data.status === 3) { + return showLoading('服務器正在維護中...') + }else if(res.data.status === 3){ clearTimeout(timer4) status = true - if (isStatus2 && countDownTime <= 0) { + if(isStatus2 && countDownTime <= 0){ showCountDown(userComeinTime, drawStageStartTime, showResultStageStartTime) } // hideLoading(layerIndex) - console.log('status为3时返回的数据--------------', res.data); + console.log('status為3時返回的數據--------------',res.data); drawInfo = res.data img = res.data.drawImageUrl - if (isStatus3) { - getPreviousResults(6, roundId) + if(isStatus3){ + getPreviousResults(11, roundId) } renderDrawInfo() - if (res.data.rankUserList.length != 0) { - if (res.data.rankUserList[0] != undefined) { - $('.top_three .img1').css({ "background": `url(${res.data.rankUserList[0]}) no-repeat`, "background-size": '100% 100%' }); - $('.top_three .img1').text(''); - }; - if (res.data.rankUserList[1] != undefined) { - $('.top_three .img2').css({ "background": `url(${res.data.rankUserList[1]}) no-repeat`, "background-size": '100% 100%' }) - $('.top_three .img2').text(''); - }; - if (res.data.rankUserList[2] != undefined) { - $('.top_three .img3').css({ "background": `url(${res.data.rankUserList[2]}) no-repeat`, "background-size": '100% 100%' }) - $('.top_three .img3').text(''); - }; - $('.top_three').show(); - } else { - $('.top_three').hide(); - } - } else { - - timer4 = setTimeout(() => { - judgeStatus() - }, 1000) - + }else{ + + timer4 = setTimeout(() => { + judgeStatus() + }, 1000) + } - } else { + }else{ toastMsg(res.message) } }, - error (err) { + error(err){ toastMsg('網絡錯誤,請退出重進') } }) } -// 渲染开奖信息 +// 渲染開獎信息 let topThreeArr = [] const renderDrawInfo = () => { $('.draw-time .current-tip .current-result').html(drawInfo.drawName) $('.draw-pic img').attr('src', drawInfo.drawImageUrl) - // if (isStatus3) { - // if (drawInfo.userDrawResult.drawStatus === 1) { - // $('.award-info .desc').html('恭喜你,猜中了!') - // if (modelType === 1) { - // $('.award-wrap').html(`获得 ${drawInfo.userDrawResult.prizeDiamonds} 鉆石`) - // } else { - // $('.award-wrap').html(`获得 ${drawInfo.userDrawResult.prizeName} (${drawInfo.userDrawResult.prizePrice}钻)*${drawInfo.userDrawResult.prizeCount}个 累计${drawInfo.userDrawResult.prizeDiamonds}鉆石`) - // } - // } else if (drawInfo.userDrawResult.drawStatus === 2) { - // $('.award-info .desc').html('很遗憾,本轮未猜中') - // $('.award-wrap').hide() - // } else if (drawInfo.userDrawResult.drawStatus === 3) { - // $('.award-info .desc').html('本轮未参与') - // $('.award-wrap').hide() - // } - // } + if(isStatus3){ + if(drawInfo.userDrawResult.drawStatus === 1){ + $('.award-info .desc').html('恭喜你,猜中了!') + if(modelType === 1){ + $('.award-wrap').html(`獲得 ${drawInfo.userDrawResult.prizeDiamonds} 鉆石`) + }else{ + $('.award-wrap').html(`獲得 ${drawInfo.userDrawResult.prizeName} (${drawInfo.userDrawResult.prizePrice}鉆)*${drawInfo.userDrawResult.prizeCount}個 累計${drawInfo.userDrawResult.prizeDiamonds}鉆石`) + } + }else if(drawInfo.userDrawResult.drawStatus === 2){ + $('.award-info .desc').html('很遺憾,本輪未猜中') + $('.award-wrap').hide() + }else if(drawInfo.userDrawResult.drawStatus === 3){ + $('.award-info .desc').html('本輪未參與') + $('.award-wrap').hide() + } + } // 渲染前三名 topThreeArr = drawInfo.rankUserList let str = '' - if (topThreeArr.length === 0) { + if(topThreeArr.length === 0){ $('.topthree-desc').html('本輪無人猜中') $('.top-three-list p img').attr('src', './images/default-hui.png') - } else { - $('.topthree-desc').html('') - topThreeArr.map((item, index) => { + }else{ + $('.topthree-desc').html('本輪前三名') + topThreeArr.map((item, index) => { $('.top-three-list p img').eq(index).attr('src', item) }) - if (topThreeArr.length === 1) { + if(topThreeArr.length === 1){ $('.top-three-list p img').eq(1).attr('src', './images/default-hui.png') $('.top-three-list p img').eq(2).attr('src', './images/default-hui.png') - } else if (topThreeArr.length === 2) { + }else if(topThreeArr.length === 2){ $('.top-three-list p img').eq(2).attr('src', './images/default-hui.png') } } } -// 获取每一轮抽奖的相关配置 +// 獲取每一輪抽獎的相關配置 let listItem = [] const getListItem = (roundId, type) => { networkRequest({ @@ -500,41 +459,41 @@ const getListItem = (roundId, type) => { roundId, type }, - success (res) { - if (res.code === 200) { + success(res){ + if(res.code === 200){ listItem = res.data renderListItem() - } else { + }else{ toastMsg(res.message) } }, - error (err) { + error(err){ toastMsg('網絡錯誤,請退出重進') } }) } -// 2s气泡定时器 +// 2s氣泡定時器 let timer2s -let time2sIndex = 0 +let time2sIndex = 0 const setTimeout2s = () => { - clearTimeout(timer2s) + clearTimeout(timer2s) $('.bubble-2s').eq(time2sIndex).fadeIn(50) - timer2s = setTimeout(function () { + timer2s = setTimeout(function(){ $('.bubble-2s').eq(time2sIndex).fadeOut(50) - if (time2sIndex >= listItem.length - 1) { + if(time2sIndex >= listItem.length-1){ time2sIndex = 0 - } else { + }else{ time2sIndex++; } setTimeout2s() }, 2000) } -// 渲染每一轮抽奖的选项 +// 渲染每一輪抽獎的選項 const renderListItem = () => { let str = '' - if (modelType === 1) { + if(modelType === 1){ listItem.map((item) => { str += `
  • @@ -542,23 +501,23 @@ const renderListItem = () => {
    x${item.multiple}
    ${item.name}
    -

    收獲

    -

    ${item.multiple} 倍獎勵

    +

    點擊選取

    +

    ${item.multiple} 倍獎勵

    ${item.costPieceNum === 0 ? '' : '+ ' + item.costPieceNum}
  • ` }) - } else { + }else{ listItem.map((item) => { str += `
  • x${item.multiple}
    -
    ${item.name}

    ${item.price ? `(${item.price}鉆石)` : ''}

    +
    ${item.name}

    ${item.price ? `(${item.price}鉆石)` : '' }

    -

    收獲

    -

    ${item.multiple} 倍獎勵

    +

    點擊選取

    +

    ${item.multiple} 倍獎勵

    ${item.costPieceNum === 0 ? '' : '+ ' + item.costPieceNum}
  • @@ -569,46 +528,46 @@ const renderListItem = () => { setTimeout2s() } -// 获取往轮游戏结果 +// 獲取往輪遊戲結果 let previousResults = [] const getPreviousResults = (count, roundId) => { networkRequest({ type: 'GET', url: urlPrefix + '/act/luckySea/listLuckySeaActInfo', - data: { + data:{ count, roundId }, - success (res) { - if (res.code === 200) { + success(res){ + if(res.code === 200){ previousResults = res.data renderPreviousResults() } }, - error (err) { + error(err){ toastMsg('網絡錯誤,請退出重進') } }) } -// 渲染往轮游戏结果 +// 渲染往輪遊戲結果 const renderPreviousResults = () => { - + let str = '' - if (previousResults.length < 5) { + if(previousResults.length < 5){ let len = 5 - previousResults.length let arr = new Array(len).fill(1) previousResults.push(...arr) } - if (isStatus3) { - if (img) { + if(isStatus3){ + if(img){ previousResults.pop() previousResults.unshift({ drawImageUrl: img }) console.log(previousResults); } - + } previousResults.map((item) => { str += ` @@ -618,7 +577,7 @@ const renderPreviousResults = () => { $('.result-list').html(str) } -// 发送用户抽奖数量 +// 發送用戶抽獎數量 const sendUserDrawInfo = (itemId, num) => { networkRequest({ type: 'POST', @@ -628,36 +587,36 @@ const sendUserDrawInfo = (itemId, num) => { "itemId":${itemId}, "num":${num} }]`, - success (res) { - if (res.code === 200) { + success(res){ + if(res.code === 200){ - } else { + }else{ toastMsg(res.message) } }, - error (err) { + error(err){ toastMsg('網絡錯誤,請退出重進') } }) } -/******************************************** 今日排名相关 ********************************************/ +/******************************************** 今日排名相關 ********************************************/ -// 榜单类型,1是鉆石榜,2是欧皇榜 +// 榜單類型,1是鉆石榜,2是歐皇榜 let type = 1 let pageSize = 10 -// 鉆石榜单 +// 鉆石榜單 let pageD = 1 let myInfoD = [] let rankListD = [] -// 欧皇榜单 +// 歐皇榜單 let pageN = 1 let myInfoN = [] let rankListN = [] -let clickTabCanNetworkN = true +let clickTabCanNetworkN = true let isLockD = true let isLockN = true @@ -666,24 +625,24 @@ let isLock = true let canRequsetNextPageD = true let canRequsetNextPageN = true -const getListRank = (type, page) => { +const getListRank = (type, page) => { networkRequest({ type: 'GET', url: urlPrefix + '/act/luckySea/listRank', - data: { + data:{ type, page, pageSize }, - success (res) { - if (res.code === 200) { - if (type === 1) { - // 鉆石榜单 - if (res.data.rankList.length === pageSize) { - // 可以请求下一页 + success(res){ + if(res.code === 200){ + if(type === 1){ + // 鉆石榜單 + if(res.data.rankList.length === pageSize){ + // 可以請求下一頁 canRequsetNextPageD = true - } else { - // 不再请求下一页 + }else{ + // 不再請求下一頁 canRequsetNextPageD = false } rankListD.push(...res.data.rankList) @@ -691,12 +650,12 @@ const getListRank = (type, page) => { renderMyInfo() renderRankList() isLockD = true - } else { - if (res.data.rankList.length === pageSize) { - // 可以请求下一页 + }else{ + if(res.data.rankList.length === pageSize){ + // 可以請求下一頁 canRequsetNextPageN = true - } else { - // 不再请求下一页 + }else{ + // 不再請求下一頁 canRequsetNextPageN = false } rankListN.push(...res.data.rankList) @@ -705,58 +664,58 @@ const getListRank = (type, page) => { renderRankList() isLockN = true } - } else { + }else{ toastMsg(res.message) } }, - error (err) { + error(err){ toastMsg('網絡錯誤') } }) } -// 渲染底部个人信息 +// 渲染底部個人信息 const renderMyInfo = () => { - if (type === 1) { - // 鉆石榜单 + if(type === 1){ + // 鉆石榜單 let erbanNo = myInfoD.erbanNo let myIndex = rankListD.findIndex((item, index) => { return item.erbanNo === erbanNo }) - if (myIndex === -1) { + if(myIndex === -1){ $('.mine-rank').html('未上榜') - } else { + }else{ $('.mine-rank').html(myIndex + 1) } $('.mine-info').find('img').attr('src', myInfoD.avatar) - if (myInfoD.nick) { + if(myInfoD.nick){ myInfoD.nick.length > 5 ? myInfoD.nick.slice(0, 5) + '...' : myInfoD.nick - } else { + }else{ myInfoD.nick = '未知' } $('.mine-info').find('.mine-nick').html(myInfoD.nick) let tostr = myInfoD.num.toString() let num - if (tostr.length >= 5) { - num = (myInfoD.num / 10000).toFixed(2) + 'w' - } else { + if(tostr.length >= 5) { + num = (myInfoD.num/10000).toFixed(2) + 'w' + }else{ num = myInfoD.num } $('.mine-diamond-num').html('今日獎勵' + num) - } else { + }else{ let erbanNo = myInfoN.erbanNo let myIndex = rankListN.findIndex((item, index) => { return item.erbanNo === erbanNo }) - if (myIndex === -1) { + if(myIndex === -1){ $('.mine-rank').html('未上榜') - } else { + }else{ $('.mine-rank').html(myIndex + 1) } $('.mine-info').find('img').attr('src', myInfoN.avatar) - if (myInfoN.nick) { + if(myInfoN.nick){ myInfoN.nick.length > 5 ? myInfoN.nick.slice(0, 5) + '...' : myInfoN.nick - } else { + }else{ myInfoN.nick = '未知' } $('.mine-info').find('.mine-nick').html(myInfoN.nick) @@ -764,13 +723,13 @@ const renderMyInfo = () => { } } -// 渲染榜单信息 +// 渲染榜單信息 const renderRankList = () => { - if (type === 1) { - // 鉆石榜单 + if(type === 1){ + // 鉆石榜單 // 渲染前3 let topThreeArr = rankListD.slice(0, 1) - if (rankListD.length === 0) { + if(rankListD.length === 0){ let len = 1 - rankListD.length let arr = new Array(len).fill({ nick: '虛位以待', @@ -783,12 +742,12 @@ const renderRankList = () => { topThreeArr.map((item) => { let tostr = item.num.toString() let num - if (tostr.length >= 5) { - num = (item.num / 10000).toFixed(2) + 'w' - } else { + if(tostr.length >= 5) { + num = (item.num/10000).toFixed(2) + 'w' + }else{ num = item.num } - + topThreeStr = `
    @@ -796,12 +755,12 @@ const renderRankList = () => {

    ${num}

    -

    ${item.nick.length > 5 ? item.nick.slice(0, 5) + '...' : item.nick}

    +

    ${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}

    ` }) $('.topthree-wrap').html(topThreeStr) - + // 渲染非前3 let othersArr = rankListD.slice(1) @@ -809,28 +768,28 @@ const renderRankList = () => { othersArr.map((item, index) => { let tostr = item.num.toString() let num - if (tostr.length >= 5) { - num = (item.num / 10000).toFixed(2) + 'w' - } else { + if(tostr.length >= 5) { + num = (item.num/10000).toFixed(2) + 'w' + }else{ num = item.num } others += `
  • - ${index + 2} + ${index+2}
    - ${item.nick.length > 5 ? item.nick.slice(0, 5) + '...' : item.nick} + ${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}
    距離上一名${num}
  • ` }) $('.other-rank').html(others) - } else { - // 欧皇榜单 + }else{ + // 歐皇榜單 // 渲染前3 let topThreeArr = rankListN.slice(0, 1) - if (rankListN.length === 0) { + if(rankListN.length === 0){ let len = 1 - rankListN.length let arr = new Array(len).fill({ nick: '虛位以待', @@ -841,8 +800,8 @@ const renderRankList = () => { let topThreeStr = '' topThreeArr.map((item) => { let num = '' - if (item.erbanNo) { - num = '猜中' + item.num + '次' + if(item.erbanNo){ + num = '猜中'+item.num + '次' } topThreeStr = `
    @@ -851,7 +810,7 @@ const renderRankList = () => {

    ${num}

    -

    ${item.nick.length > 5 ? item.nick.slice(0, 5) + '...' : item.nick}

    +

    ${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}

    ` }) @@ -863,15 +822,15 @@ const renderRankList = () => { let others = '' othersArr.map((item, index) => { let num - if (item.erbanNo) { - num = '' + item.num + '次' + if(item.erbanNo){ + num = '猜中'+item.num + '次' } others += `
  • - ${index + 2} + ${index+2}
    - ${item.nick.length > 5 ? item.nick.slice(0, 5) + '...' : item.nick} + ${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}
    ${num}
  • @@ -879,84 +838,79 @@ const renderRankList = () => { }) $('.other-rank').html(others) } - + } -$(function () { +$(function(){ getInfoFromClient() - setTimeout(function () { + setTimeout(function(){ // getUserInfo() getGameMode() // getNewestAct() // getListItem() }, 50) - // 监听按钮点击事件 + // 監聽按鈕點擊事件 // let fragmentNum // let isSelectTab = false - $('.btn-wrap').on('click', 'div', function () { + $('.btn-wrap').on('click', 'div', function(){ $(this).addClass('active').siblings().removeClass('active') fragmentNum = parseInt($(this).html()) - console.log(fragmentNum) isSelectTab = true sessionStorage.setItem("mySelect", $(this).index()) }) - // 监听规则按钮点击事件 - $('.rule').on('click', function () { + // 監聽規則按鈕點擊事件 + $('.rule').on('click', function(){ $('.shade-mask').show() }) - // 关闭规则弹窗 - $('.shade-mask').on('click', function () { + // 關閉規則彈窗 + $('.shade-mask').on('click', function(){ $(this).hide() }) - $('.shade-content-close').on('click', function () { - $('.shade-mask').hide() - }) - $('.shade-content').on('click', function (e) { + $('.shade-content').on('click', function(e){ e.stopPropagation() }) - // 跳转特权商城 - $('.mall').on('click', function () { + // 跳轉特權商城 + $('.mall').on('click', function(){ window.location.href = './mall.html' }) - $('.add').on('click', function () { + $('.add').on('click', function(){ window.location.href = './mall.html' }) - // 监听游戏记录按钮点击事件 - $('.record').on('click', function () { + // 監聽遊戲記錄按鈕點擊事件 + $('.record').on('click', function(){ window.location.href = './record.html' }) - // 监听今日排名按钮点击事件 - $('.rank').on('click', function () { - // getListRank(type, pageD) - // $('.shade-mask-rank').show() - window.location.href = './rank.html' + // 監聽今日排名按鈕點擊事件 + $('.rank').on('click', function(){ + getListRank(type, pageD) + $('.shade-mask-rank').show() }) - // 监听今日排名tab - $('.tab-wrap').on('click', 'span', function () { + // 監聽今日排名tab + $('.tab-wrap').on('click', 'span', function(){ $(this).addClass('active').siblings().removeClass('active') - if (type === $(this).index() + 1) return + if(type === $(this).index() + 1) return type = $(this).index() + 1 $('.other-rank').scrollTop(0) - if (type === 1) { + if(type === 1){ renderRankList() renderMyInfo() - } else { - if (clickTabCanNetworkN) { + }else{ + if(clickTabCanNetworkN){ getListRank(type, pageN) - } else { + }else{ renderRankList() renderMyInfo() } clickTabCanNetworkN = false } }) - // 关闭排名弹窗 - $('.shade-mask-rank').on('click', function () { + // 關閉排名彈窗 + $('.shade-mask-rank').on('click', function(){ $(this).hide() type = 1 pageD = 1 @@ -969,169 +923,137 @@ $(function () { $('.diamond-rank').addClass('active').siblings('.num-rank').removeClass('active') $('.other-rank').html('') }) - $('.shade-content-rank').on('click', function (e) { + $('.shade-content-rank').on('click', function(e){ e.stopPropagation() }) - // 监听滚动 - $('.other-rank').on('scroll', function () { - let scrollTop = $(this).scrollTop();//这是已经卷进去滚动条的的高度 - let scrollHeight = $('.other-rank')[0].scrollHeight;//这个是other-rank包含滚动条的总高度 - let ulHeight = $(this).innerHeight();//这个是other-rank的高度 - - //这样距离到底还有一段距离就请求,但是会导致重复请求,所以要加锁限制 - if (scrollTop + ulHeight + 100 >= scrollHeight) { - if (type === 1) { - if (isLockD) { + // 監聽滾動 + $('.other-rank').on('scroll', function(){ + let scrollTop = $(this).scrollTop();//這是已經卷進去滾動條的的高度 + let scrollHeight = $('.other-rank')[0].scrollHeight;//這個是other-rank包含滾動條的總高度 + let ulHeight = $(this).innerHeight();//這個是other-rank的高度 + + //這樣距離到底還有一段距離就請求,但是會導致重復請求,所以要加鎖限製 + if(scrollTop + ulHeight + 100 >= scrollHeight){ + if(type === 1){ + if(isLockD){ isLockD = false pageD++ - if (pageSize * pageD > 30) { - toastMsg('没有更多数据啦~') - } else { - if (canRequsetNextPageD) { - getListRank(type, pageD); - } else { - toastMsg('没有更多数据啦~') + if(pageSize * pageD > 30){ + toastMsg('沒有更多數據啦~') + }else{ + if(canRequsetNextPageD){ + getListRank(type,pageD); + }else{ + toastMsg('沒有更多數據啦~') } } - } else { - if (scrollTop + ulHeight >= scrollHeight) { - if (pageSize * pageD > 30) { - toastMsg('没有更多数据啦~') + }else{ + if(scrollTop + ulHeight >= scrollHeight){ + if(pageSize * pageD > 30){ + toastMsg('沒有更多數據啦~') } } } - } else { - if (isLockN) { + }else{ + if(isLockN){ isLockN = false pageN++ - if (pageSize * pageN > 30) { - toastMsg('没有更多数据啦~') - } else { - if (canRequsetNextPageN) { - getListRank(type, pageN); - } else { - toastMsg('没有更多数据啦') + if(pageSize * pageN > 30){ + toastMsg('沒有更多數據啦~') + }else{ + if(canRequsetNextPageN){ + getListRank(type,pageN); + }else{ + toastMsg('沒有更多數據啦') } } - } else { - if (scrollTop + ulHeight >= scrollHeight) { - if (pageSize * pageN > 30) { - toastMsg('没有更多数据啦~') + }else{ + if(scrollTop + ulHeight >= scrollHeight){ + if(pageSize * pageN > 30){ + toastMsg('沒有更多數據啦~') } } } } } }) - - // 播放3s动画 + + // 播放3s動畫 let player1 = new SVGA.Player('.draw-time'); let parser1 = new SVGA.Parser('.draw-time'); - parser1.load('./images/draw.svga', function (videoItem) { + parser1.load('./images/draw.svga', function(videoItem){ // player.loops = 2; player1.clearsAfterStop = false; player1.setVideoItem(videoItem); player1.startAnimation(); }) - // 关闭碎片不足提示弹窗 - $('.cancel-btn').on('click', function () { + // 關閉碎片不足提示彈窗 + $('.cancel-btn').on('click', function(){ $('.shade-mask-fragmentNum').hide() }) - $('.shade-mask-fragmentNum').on('click', function () { + $('.shade-mask-fragmentNum').on('click', function(){ $(this).hide() }) - $('.shade-content-fragmentNum').on('click', function (e) { + $('.shade-content-fragmentNum').on('click', function(e){ e.stopPropagation() }) - $('.confirm-btn').on('click', function () { - if (browser.ios) {//ios - console.log(pubInfo.channel) - if (pubInfo.channel == 'appstore') { - window.webkit.messageHandlers.openChargePage.postMessage(null); - } else { - window.location.href = '../../modules/payApp/index.html'; - } - } else if (browser.android) {//android - let getChannel = window.androidJsObj.getChannel(); - if (getChannel == 'google') { - var jsonObj = '{"routerType":"5"}'; - window.androidJsObj.jumpAppointPage(jsonObj) - } else { - window.location.href = '../../modules/payApp/index.html'; - } - } + $('.confirm-btn').on('click', function(){ + window.location.href = './mall.html' $('.shade-mask-fragmentNum').hide() }) - $('.activeBalance b').click(function () { - if (browser.ios) {//ios - console.log(pubInfo.channel) - if (pubInfo.channel == 'appstore') { - window.webkit.messageHandlers.openChargePage.postMessage(null); - } else { - window.location.href = '../../modules/payApp/index.html'; - } - } else if (browser.android) {//android - let getChannel = window.androidJsObj.getChannel(); - if (getChannel == 'google') { - var jsonObj = '{"routerType":"5"}'; - window.androidJsObj.jumpAppointPage(jsonObj) - } else { - window.location.href = '../../modules/payApp/index.html'; - } + // 點擊海鮮動物的動畫以及發送請求 + $('.select-time ul').on('click', 'li', function(){ + if(!isSelectTab){ + return toastMsg('請先選擇碎片數量') } - }) - // 点击海鲜动物的动画以及发送请求 - $('.select-time ul').on('click', 'li', function () { - if (!isSelectTab) { - return toastMsg('请先选择碎片数量') - } - if (myFragment < fragmentNum) { + if(myFragment < fragmentNum){ $('.shade-mask-fragmentNum').show() return } - if (!lock) { + + if(!lock){ lock = !lock console.log($(this).data('total-num')); console.log($(this).data('total-num').number); console.log(fragmentNum); $(this).data('total-num').number = parseInt($(this).data('total-num').number) + fragmentNum $(this) - .stop(true, true) - .animate({ scale: 1.1 }, 200) - .animate({ scale: 1 }, 200, function () { - if (lock) { - $(this).find('.select-num').html('+' + $(this).data('total-num').number).hide().fadeIn(200) - } - setTimeout(() => { - // getUserInfo() - getUserPieceNum() - // getListItem(roundId) - },100) - }) - sendUserDrawInfo($(this).data('total-num').id, fragmentNum) + .stop(true,true) + .animate({scale: 1.1}, 200) + .animate({scale: 1}, 200, function(){ + if(lock){ + $(this).find('.select-num').html('+' + $(this).data('total-num').number).hide().fadeIn(200) + } + setTimeout(() => { + // getUserInfo() + getUserPieceNum() + // getListItem(roundId) + },100) + }) + sendUserDrawInfo($(this).data('total-num').id , fragmentNum) } }) - - // ios去到后台或者锁屏后再回来倒计时不准确 + + // ios去到後臺或者鎖屏後再回來倒計時不準確 let leftTime, deltaTime, startTime, endTime - document.addEventListener('visibilitychange', function () { - if (document.visibilityState == 'hidden') { + document.addEventListener('visibilitychange',function(){ + if(document.visibilityState == 'hidden'){ leftTime = countDownTime startTime = new Date().getTime() - } else if (document.visibilityState == 'visible') { + }else if(document.visibilityState == 'visible'){ endTime = new Date().getTime() - deltaTime = Math.floor((endTime - startTime) / 1000) //出去了多久 - if (deltaTime > 300) { + deltaTime = Math.floor( ( endTime - startTime )/1000 ) //出去了多久 + if(deltaTime > 300){ window.location.reload() } countDownTime = leftTime - deltaTime - if (countDownTime < 0) { + if(countDownTime < 0){ countDownTime = 0 } $countDown.html(countDownTime) } }) -}) \ No newline at end of file +}) \ No newline at end of file diff --git a/view/peko/activity/act-ocean/js/mall.js b/view/peko/activity/act-ocean/js/mall.js index 8432c25..c178fd3 100644 --- a/view/peko/activity/act-ocean/js/mall.js +++ b/view/peko/activity/act-ocean/js/mall.js @@ -5,14 +5,14 @@ if (env == 'test') { new VConsole(); } -// 封装layer消息提醒框 +// 封裝layer消息提醒框 let layerIndex const showLoading = () => { layer.open({ type: 2, shadeClose: false, - content: '加载中...', - success(e) { + content: '加載中...', + success (e) { layerIndex = $(e).attr('index') } }) @@ -27,51 +27,51 @@ const toastMsg = (content = '操作完成', time = 2) => { skin: 'msg' }) } -// 获取用户相关信息 +// 獲取用戶相關信息 const getUserInfo = (param) => { networkRequest({ type: 'GET', url: urlPrefix + '/act/luckySea/getUserActInfo', - success(res){ - if(res.code === 200){ + success (res) { + if (res.code === 200) { // console.log(res.data); $('.bottom').find('.avatar img').attr('src', res.data.avatar) - if(res.data.nick.length > 10){ - res.data.nick = res.data.nick.slice(0,10) + '...' + if (res.data.nick.length > 10) { + res.data.nick = res.data.nick.slice(0, 10) + '...' } $('.bottom').find('.nick').html(res.data.nick) $('.bottom').find('.diamond-num span').html(res.data.diamonds) - if(param){ - $('.bottom').find('.fragment-num span')[0].innerHTML = parseInt($('.bottom').find('.fragment-num span')[0].innerHTML) + param - } else{ + if (param) { + $('.bottom').find('.fragment-num span')[0].innerHTML = parseInt($('.bottom').find('.fragment-num span')[0].innerHTML) + param + } else { $('.bottom').find('.fragment-num span').html(res.data.pieceNum) } } }, - error(err){ - toastMsg('网络错误') + error (err) { + toastMsg('網絡錯誤') } }) } -// 获取头饰礼包信息 +// 獲取頭飾禮包信息 let listPack = [] const getListPack = () => { networkRequest({ type: 'GET', url: urlPrefix + '/act/luckySea/listPack', - success(res){ - if(res.code === 200){ + success (res) { + if (res.code === 200) { // console.log(res.data); listPack = res.data renderList() } }, - error(err){ - toastMsg('网络错误') + error (err) { + toastMsg('網絡錯誤') } }) } -// 渲染礼包 +// 渲染禮包 const renderList = () => { listPack.map((item, index) => { let $li = $('ul.buy-area li').eq(index) @@ -89,19 +89,19 @@ const renderList = () => { }) } -$(function(){ +$(function () { getInfoFromClient() - setTimeout(function(){ + setTimeout(function () { getUserInfo() getListPack() }, 50) - // 监听购买按钮点击事件 - $('ul.buy-area').on('click', '.buy-btn', function(){ + // 監聽購買按鈕點擊事件 + $('ul.buy-area').on('click', '.buy-btn', function () { console.log($(this).data()); if (!$(this).data('name') || !$(this).data('day') || !$(this).data('gold') || !$(this).data('giftId')) { - toastMsg('礼包信息不完整') + toastMsg('禮包信息不完整') return } @@ -113,67 +113,67 @@ $(function(){ giftObj['num'] = 1 giftObj['ticketNum'] = $(this).data('ticketNum') - + $('.shade-mask-buy').find('.title span').html(giftObj['name']) $('.shade-mask-buy').find('.buy-day span').html(giftObj['day']) $('.shade-mask-buy').find('.buy-price span').html(giftObj['gold']) $('.shade-mask-buy').find('.inputNum').val(giftObj['num']) $('.shade-mask-buy').fadeIn(50) }) - // 关闭购买弹窗 - $('.cancel').on('click', function(){ + // 關閉購買彈窗 + $('.cancel').on('click', function () { $('.shade-mask-buy').fadeOut(50) }) - $('.shade-mask-buy').on('click', function(){ + $('.shade-mask-buy').on('click', function () { $('.shade-mask-buy').fadeOut(50) }) - $('.shade-content-buy').on('click', function(e){ + $('.shade-content-buy').on('click', function (e) { e.stopPropagation() }) - // 关闭余额不足弹窗 - $('.shade-mask-no-money').on('click', function(){ + // 關閉余額不足彈窗 + $('.shade-mask-no-money').on('click', function () { $('.shade-mask-no-money').fadeOut(50) }) - $('.shade-content-no-money').on('click', function(e){ + $('.shade-content-no-money').on('click', function (e) { e.stopPropagation() }) - // 增加购买数量 - $('.increase').on('click', function(){ - if(giftObj['num']<9999){ + // 增加購買數量 + $('.increase').on('click', function () { + if (giftObj['num'] < 9999) { giftObj['num']++; giftObj['day']++; let allPrice = giftObj['num'] * giftObj['gold']; $('.inputNum').val(giftObj['num']) $('.buy-day span').html(giftObj['day']) $('.buy-price span').html(allPrice) - }else{ - toastMsg('单次购买数量最多为9999') + } else { + toastMsg('單次購買數量最多為9999') } }) - // 减少购买数量 - $('.decrease').on('click', function(){ - if($('.inputNum').val()>0){ + // 減少購買數量 + $('.decrease').on('click', function () { + if ($('.inputNum').val() > 0) { giftObj['num']--; giftObj['day']--; let allPrice = giftObj['num'] * giftObj['gold']; $('.inputNum').val(giftObj['num']) $('.buy-day span').html(giftObj['day']) $('.buy-price span').html(allPrice) - }else{ - toastMsg('最少购买数量为1') + } else { + toastMsg('最少購買數量為1') } }) - // 手动输入购买数量 - $('.inputNum').on('input', function(){ + // 手動輸入購買數量 + $('.inputNum').on('input', function () { let exp = /^[0-9]+$/ if (!exp.test($(this).val())) { - toastMsg('请输入数字') + toastMsg('請輸入數字') // $(this).val(1) return } - if($(this).val() > 9999){ + if ($(this).val() > 9999) { giftObj['num'] = 9999 - }else{ + } else { giftObj['num'] = $(this).val() } giftObj['day'] = giftObj['num']; @@ -182,19 +182,19 @@ $(function(){ $('.buy-day span').html(giftObj['day']) $('.buy-price span').html(allPrice) }) - // 确认购买 + // 確認購買 let lock = false - $('.confirm').on('click', function(){ + $('.confirm').on('click', function () { let exp = /^[0-9]+$/ - if(!exp.test($('.inputNum').val())){ - toastMsg('请输入数字') + if (!exp.test($('.inputNum').val())) { + toastMsg('請輸入數字') $('.inputNum').val(1) return } - if($('.inputNum').val() == 0){ - return toastMsg('最少购买数量为1') + if ($('.inputNum').val() == 0) { + return toastMsg('最少購買數量為1') } - if(!lock){ + if (!lock) { lock = true networkRequest({ type: 'POST', @@ -205,51 +205,51 @@ $(function(){ packNum: giftObj.num, ticket: pubInfo.ticket }, - success(res){ - if(res.code === 200){ + success (res) { + if (res.code === 200) { $('.shade-mask-buy').hide() - toastMsg('购买成功!') + toastMsg('購買成功!') getUserInfo(res.data) - }else if(res.code === 2103){ + } else if (res.code === 2103) { $('.shade-mask-buy').hide() $('.shade-mask-no-money').show() - }else{ + } else { toastMsg(res.message) } lock = false }, - error(err){ - toastMsg('网络错误') + error (err) { + toastMsg('網絡錯誤') } }) } - + }) - // 跳转充值 + // 跳轉充值 $('.recharge, .no-money-recharge').on('click', function () { - if(browser.app){ - if(browser.android){ + if (browser.app) { + if (browser.android) { // window.androidJsObj.openChargePage() tools.nativeUtils.jumpAppointPage('RECHARGE_PAGE') - }else if(browser.ios){ + } else if (browser.ios) { window.webkit.messageHandlers.openChargePage.postMessage(null) } - }else{ - toastMsg('请在app内打开') + } else { + toastMsg('請在app內打開') } }) - //返回页面 重新请求接口 + //返回頁面 重新請求接口 var hiddenProperty = 'hidden' in document ? 'hidden' : - 'webkitHidden' in document ? 'webkitHidden' : - 'mozHidden' in document ? 'mozHidden' : null; + 'webkitHidden' in document ? 'webkitHidden' : + 'mozHidden' in document ? 'mozHidden' : null; var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange'); var onVisibilityChange = function () { - if(!document[hiddenProperty]){ + if (!document[hiddenProperty]) { $('.shade-mask-no-money').hide() getUserInfo() - } + } } document.addEventListener(visibilityChangeEvent, onVisibilityChange); }) \ No newline at end of file diff --git a/view/peko/activity/act-ocean/js/rank.js b/view/peko/activity/act-ocean/js/rank.js deleted file mode 100644 index 499142e..0000000 --- a/view/peko/activity/act-ocean/js/rank.js +++ /dev/null @@ -1,369 +0,0 @@ -let urlPrefix = getUrlPrefix() -let browser = checkVersion() -let env = EnvCheck(); -if (env == 'test') { - new VConsole(); -} - -// 封装layer消息提醒框 -let layerIndex -const showLoading = () => { - layer.open({ - type: 2, - shadeClose: false, - content: '加載中...', - success(e) { - layerIndex = $(e).attr('index') - } - }) -} -const hideLoading = (index) => { - layer.close(index) -} -const toastMsg = (content = '操作完成', time = 2) => { - layer.open({ - content, - time, - skin: 'msg' - }) -} - -if(!browser.app){ - toastMsg('请在app内打开!'); -}else{ - $('body').removeClass('no-in-app') -} - -// 榜单类型,1是钻石榜,2是欧皇榜 -let type = 1 - -let pageSize = 20 - -// 钻石榜单 -let pageD = 1 -let myInfoD = [] -let rankListD = [] -// 欧皇榜单 -let pageN = 1 -let myInfoN = [] -let rankListN = [] -let clickTabCanNetworkN = true - -let isLockD = true -let isLockN = true -let isLock = true - -let canRequsetNextPageD = true -let canRequsetNextPageN = true - -const getListRank = (type, page) => { - networkRequest({ - type: 'GET', - url: urlPrefix + '/act/luckySea/listRank', - data:{ - type, - page, - pageSize - }, - success(res){ - if(res.code === 200){ - if(type === 1){ - // 钻石榜单 - if(res.data.rankList.length === pageSize){ - // 可以请求下一页 - canRequsetNextPageD = true - }else{ - // 不再请求下一页 - canRequsetNextPageD = false - } - rankListD.push(...res.data.rankList) - // 底部个人信息只渲染一次 x - // if(pageD === 1){ - // } - myInfoD = res.data.myRankInfo - renderMyInfo() - renderRankList() - isLockD = true - }else{ - if(res.data.rankList.length === pageSize){ - // 可以请求下一页 - console.log('gekk'); - canRequsetNextPageN = true - }else{ - // 不再请求下一页 - canRequsetNextPageN = false - } - rankListN.push(...res.data.rankList) - // 底部个人信息只渲染一次 x - // if(pageN === 1){ - // } - myInfoN = res.data.myRankInfo - renderMyInfo() - // renderMyInfo() - renderRankList() - isLockN = true - } - // isLock = true - }else{ - toastMsg(res.message) - } - }, - error(err){ - toastMsg('網絡錯誤') - } - }) -} - -// 渲染底部个人信息 -const renderMyInfo = () => { - if(type === 1){ - // 钻石榜单 - let erbanNo = myInfoD.erbanNo - let myIndex = rankListD.findIndex((item, index) => { - return item.erbanNo === erbanNo - }) - if(myIndex === -1){ - $('.mine-rank').html('未上榜') - }else{ - $('.mine-rank').html(myIndex + 1) - } - $('.mine-info').find('img').attr('src', myInfoD.avatar) - $('.mine-info').find('.mine-nick').html(myInfoD.nick) - // if(myInfoD.num.toString().length >= 5) { - // myInfoD.num = (myInfoD.num/10000).toFixed(2) + 'w' - // } - let tostr = myInfoD.num.toString() - let num - if(tostr.length >= 5) { - num = (myInfoD.num/10000).toFixed(2) + 'w' - }else{ - num = myInfoD.num - } - $('.mine-diamond-num').html(num) - }else{ - let erbanNo = myInfoN.erbanNo - let myIndex = rankListN.findIndex((item, index) => { - return item.erbanNo === erbanNo - }) - if(myIndex === -1){ - $('.mine-rank').html('未上榜') - }else{ - $('.mine-rank').html(myIndex + 1) - } - $('.mine-info').find('img').attr('src', myInfoN.avatar) - $('.mine-info').find('.mine-nick').html(myInfoN.nick) - $('.mine-diamond-num').html('猜對' + myInfoN.num + '次') - } -} - -// 渲染榜单信息 -const renderRankList = () => { - if(type === 1){ - // 钻石榜单 - // 渲染前3 - let topThreeArr = rankListD.slice(0, 3) - console.log(topThreeArr); - if(rankListD.length < 3){ - let len = 3 - rankListD.length - let arr = new Array(len).fill({ - nick: '虛位以待', - avatar: './images/default.png', - num: '' - }) - topThreeArr.push(...arr) - } - let topThreeStr = '' - topThreeArr.map((item) => { - let tostr = item.num.toString() - let num - if(tostr.length >= 5) { - num = (item.num/10000).toFixed(2) + 'w' - }else{ - num = item.num - } - - topThreeStr += ` -
    -
    -

    - -
    -

    ${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}

    -

    ${num}

    -
    - ` - }) - $('.topthree-wrap').html(topThreeStr) - - - // 渲染非前3 - let othersArr = rankListD.slice(3) - console.log(othersArr); - let others = '' - othersArr.map((item, index) => { - let tostr = item.num.toString() - let num - if(tostr.length >= 5) { - num = (item.num/10000).toFixed(2) + 'w' - }else{ - num = item.num - } - others += ` -
  • - ${index+4} -
    - - ${item.nick} -
    - ${num} -
  • - ` - }) - $('.other-rank').html(others) - }else{ - // 欧皇榜单 - // 渲染前3 - let topThreeArr = rankListN.slice(0, 3) - console.log(topThreeArr); - if(rankListN.length < 3){ - let len = 3 - rankListN.length - let arr = new Array(len).fill({ - nick: '虛位以待', - avatar: './images/default.png' - }) - topThreeArr.push(...arr) - } - let topThreeStr = '' - topThreeArr.map((item) => { - let num = '' - if(item.erbanNo){ - num = '猜對'+item.num + '次' - } - topThreeStr += ` -
    -
    -

    - -
    -

    ${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}

    -

    ${num}

    -
    - ` - }) - $('.topthree-wrap').html(topThreeStr) - - // 渲染非前3 - let othersArr = rankListN.slice(3) - console.log(othersArr); - let others = '' - othersArr.map((item, index) => { - let num - if(item.erbanNo){ - num = '猜對'+item.num + '次' - } - others += ` -
  • - ${index+4} -
    - - ${item.nick} -
    - ${num} -
  • - ` - }) - $('.other-rank').html(others) - } - -} - -$(function(){ - getInfoFromClient() - setTimeout(function(){ - getListRank(type, pageD) - }, 50) - - $('.other-rank').height($(window).innerHeight() - $('.rank-top').height()); - - $('.tab-wrap').on('click', 'span', function(){ - $(this).addClass('active').siblings().removeClass('active') - if(type === $(this).index() + 1) return - type = $(this).index() + 1 - - - $('.other-rank').scrollTop(0) - if(type === 1){ - renderRankList() - renderMyInfo() - // getListRank(type, pageD) - }else{ - if(clickTabCanNetworkN){ - getListRank(type, pageN) - }else{ - renderRankList() - renderMyInfo() - } - clickTabCanNetworkN = false - } - }) - - // 监听滚动 - $('.other-rank').scroll(function(){ - - let scrollTop = $(this).scrollTop();//这是已经卷进去滚动条的的高度 - let scrollHeight = $('.other-rank')[0].scrollHeight;//这个是other-rank包含滚动条的总高度 - let ulHeight = $(this).innerHeight();//这个是other-rank的高度 - console.log(ulHeight,scrollTop, scrollHeight); - - // 安卓可以只触发一次(安卓机型太多,不确定是否所有安卓都能触发一次),ios会触发多次,ios要加锁, pc端触发不了 - - - //这样距离到底还有一段距离就请求,但是会导致重复请求,所以要加锁限制 - if(scrollTop + ulHeight + 100 >= scrollHeight){ - console.log('到底了'); - if(type === 1){ - if(isLockD){ - isLockD = false - pageD++ - if(pageSize * pageD > 100){ - toastMsg('沒有更多數據啦~') - }else{ - if(canRequsetNextPageD){ - getListRank(type,pageD); - }else{ - toastMsg('沒有更多數據啦~') - } - } - }else{ - if(scrollTop + ulHeight >= scrollHeight){ - if(pageSize * pageD > 100){ - toastMsg('沒有更多數據啦~') - } - } - } - - }else{ - // getListRank(type,++pageN); - if(isLockN){ - isLockN = false - pageN++ - if(pageSize * pageN > 100){ - toastMsg('沒有更多數據啦~') - }else{ - if(canRequsetNextPageN){ - getListRank(type,pageN); - }else{ - toastMsg('没有更多数据啦') - } - } - }else{ - if(scrollTop + ulHeight >= scrollHeight){ - if(pageSize * pageN > 100){ - toastMsg('沒有更多數據啦~') - } - } - } - } - } - }) -}) \ No newline at end of file diff --git a/view/peko/activity/act-ocean/js/record.js b/view/peko/activity/act-ocean/js/record.js index 541ce99..4930091 100644 --- a/view/peko/activity/act-ocean/js/record.js +++ b/view/peko/activity/act-ocean/js/record.js @@ -2,13 +2,13 @@ let urlPrefix = getUrlPrefix() let browser = checkVersion() if (EnvCheck() === 'test') new VConsole -// 封装layer消息提醒框 +// 封裝layer消息提醒框 let layerIndex const showLoading = () => { layer.open({ type: 2, shadeClose: false, - content: '加载中...', + content: '加載中...', success (e) { layerIndex = $(e).attr('index') } @@ -26,7 +26,7 @@ const toastMsg = (content = '操作完成', time = 2) => { } -// 获取用户的游戏记录 +// 獲取用戶的遊戲記錄 let recordList = [] let page = 1 let pageSize = 10 @@ -43,58 +43,107 @@ const getUserRecord = () => { success (res) { if (res.code === 200) { if (res.data.length === pageSize) { - // 能够继续请求下一页 + // 能夠繼續請求下一頁 canNext = true } else { canNext = false } recordList.push(...res.data) - renderRecord(res) + renderRecord() isLock = true } else { toastMsg(res.message) } }, error (err) { - toastMsg('网络错误') + toastMsg('網絡錯誤') } }) } -// 渲染游戏记录 -const renderRecord = (res) => { +// 渲染遊戲記錄 +const renderRecord = () => { if (recordList.length === 0) { - $('.record-list').hide(); - $('.img').show(); + $('.record-list').html('
  • 暫無遊戲記錄
  • ') } else { - $('.record-list').show(); - $('.img').hide(); - var str = ''; - let str2 = ''; - let drawId = [];; - var results = []; - console.log(res.data) - res.data.forEach((res, index) => { - drawId.push(res.drawId); - str += ` -
  • -

    ${dateFormat(res.drawTime, 'yy-MM-dd hh:mm:ss')}

    -
    - 遊戲獎勵: - ${res.reward}钻石 -
    -
    -

    哎呀~猜錯了o(╥﹏╥)o

    -

    厲害~猜對了୧(๑•̀◡•́๑)૭

    -
  • - ` - results.push(res.results); - }); - $('.record-list').append(str) - results.forEach((res, index) => { - res.forEach(val => { - $('.record-list li').eq(index).children('.marine_organism').append(`+${val.costPiece}`) + let str = '' + recordList.map((item, index) => { + let drawId = item.drawId + let itemType = item.itemType + // 渲染li裏面的ul + let str1 = '' + let userCostPiece = '' //用戶投註情況 + let userReward = '' //用戶獎勵情況 + item.results.map((item1, index) => { + if (itemType === 1) { + userCostPiece = '+' + item1.costPiece + } else { + userCostPiece = item1.multiple * 10 + '*' + item1.costPiece + } + + str1 += ` +
  • +
    + ${userCostPiece} +
  • + ` + + if (item1.itemId === drawId) { + $('.none').html(str1) + $('.none').find('li').eq(index).addClass('active') + str1 = $('.none').html() + } }) - }); + + if (itemType === 1) { + if (item.reward) { + userReward = ` + ${item.reward} + + ` + } else { + userReward = ` + 未猜中 + ` + } + } else { + if (item.reward) { + userReward = ` + + ${item.itemName} (${item.price}) *${item.reward / item.price}個 (共計${item.reward}) + + ` + + } else { + userReward = ` + 未猜中 + ` + } + } + + // 渲染li + let text = '' + if (item.drawStatus === 1) { + text = '厲害~猜對了(*^▽^*)' + } else { + text = '哎呀~猜錯了o(╥﹏╥)o' + } + str += ` +
  • +
    ${dateFormat(item.drawTime, "yyyy-MM-dd hh:mm:ss")}
    +
    + 遊戲獎勵: +

    + ${userReward} +

    +
    +
      + ${str1} +
    +
    ${text}
    +
  • + ` + }) + $('.record-list').html(str) } } @@ -103,14 +152,14 @@ $(function () { setTimeout(function () { getUserRecord() }, 50) - // 监听滚动 + // 監聽滾動 $('ul').scroll(function () { let scrollTop = $(this).scrollTop() let scrollHeight = $('ul')[0].scrollHeight let ulHeight = $(this).innerHeight() if (scrollTop + ulHeight + 100 >= scrollHeight) { if (isLock) { - // 请求下一页 + // 請求下一頁 if (canNext) { getUserRecord(page++) isLock = false diff --git a/view/peko/activity/act-ocean/rank.html b/view/peko/activity/act-ocean/rank.html deleted file mode 100644 index 8dfbc8f..0000000 --- a/view/peko/activity/act-ocean/rank.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - 今日排名 - - - - - - -
    - -
    - 钻石榜 - 欧皇榜 -
    - -
    - -
    -
    - -
      - -
    - -
    - -
    - - -
    - 0 -
    - - - - - - - - - - \ No newline at end of file diff --git a/view/peko/activity/act-ocean/record.html b/view/peko/activity/act-ocean/record.html index 5eeae20..a48c1c1 100644 --- a/view/peko/activity/act-ocean/record.html +++ b/view/peko/activity/act-ocean/record.html @@ -1,44 +1,26 @@ - - 遊戲記錄 + 游戏记录 - + -
      - -
    -
    -

    暫無遊戲記錄

    -
    - +
      + +
    + - + \ No newline at end of file diff --git a/view/peko/modules/game/css/index.css b/view/peko/modules/game/css/index.css index 8da7be0..18801af 100644 --- a/view/peko/modules/game/css/index.css +++ b/view/peko/modules/game/css/index.css @@ -1,34 +1,30 @@ @font-face { - font-family: 'pingfang-medium'; + font-family: "pingfang-medium"; src: url("../../../common/fonts/PingFang-Medium.ttf"); src: url("../../../common/fonts/PingFang-Medium.ttf") format("woff"), url("../../../common/fonts/PingFang-Medium.ttf") format("truetype"), url("../../../common/fonts/PingFang-Medium.ttf") format("svg"); } - @font-face { - font-family: 'pingfang-bold'; + font-family: "pingfang-bold"; src: url("../../../common/fonts/PingFang Bold.ttf"); src: url("../../../common/fonts/PingFang Bold.ttf") format("woff"), url("../../../common/fonts/PingFang Bold.ttf") format("truetype"), url("../../../common/fonts/PingFang Bold.ttf") format("svg"); } - @font-face { - font-family: 'pingfang-regular'; + font-family: "pingfang-regular"; src: url("../../../common/fonts/PingFang-Regular.ttf"); src: url("../../../common/fonts/PingFang-Regular.ttf") format("woff"), url("../../../common/fonts/PingFang-Regular.ttf") format("truetype"), url("../../../common/fonts/PingFang-Regular.ttf") format("svg"); } - body { display: none; - background-color: #11111D; + background-color: #DFF7F3; position: relative; - font-family: 'pingfang-medium'; + font-family: "pingfang-medium"; } .banner { width: 10rem; - height: 11.46667rem; + height: 5.7733333333rem; margin: auto; } - .banner img { width: 100%; height: 100%; @@ -36,75 +32,68 @@ body { .personal-info-wrap { position: absolute; - top: 8.32rem; + top: 4.0933333333rem; left: 50%; transform: translateX(-50%); - width: 10rem; - height: 3.02667rem; + width: 9.0666666667rem; + height: 2.4rem; background: url("../images/info-bg.png") no-repeat 0 0/100% 100%; } - .personal-info-wrap .personal-info-content { width: 100%; height: 2.4rem; display: flex; align-items: center; } - .personal-info-wrap .personal-info-content .avatar { - width: 1.33333rem; - height: 1.33333rem; - margin-left: 0.86667rem; - margin-right: 0.26667rem; + width: 1.3333333333rem; + height: 1.3333333333rem; + margin-left: 0.8666666667rem; + margin-right: 0.2666666667rem; } - .personal-info-wrap .personal-info-content .avatar img { width: 100%; height: 100%; border-radius: 50%; } - .personal-info-wrap .personal-info-content .personal-info { flex: 1; - font-size: 0.26667rem; - color: white; + font-size: 0.2666666667rem; + color: #141949; } - .personal-info-wrap .personal-info-content .personal-info .nickname { font-size: 0.4rem; font-weight: 600; margin-bottom: 0.24rem; } - -.personal-info-wrap .personal-info-content .personal-info .platform-code, .personal-info-wrap .personal-info-content .personal-info .invite-code { - font-family: 'pingfang-regular'; - margin-bottom: 0.10667rem; +.personal-info-wrap .personal-info-content .personal-info .platform-code, +.personal-info-wrap .personal-info-content .personal-info .invite-code { + font-family: "pingfang-regular"; + margin-bottom: 0.1066666667rem; } - .personal-info-wrap .personal-info-content .qr { - width: 1.42667rem; - height: 1.42667rem; - margin-right: 0.93333rem; + width: 1.4266666667rem; + height: 1.4266666667rem; + margin-right: 0.9333333333rem; } - .personal-info-wrap .personal-info-content .qr .active { width: 100%; height: 100%; box-sizing: border-box; border-radius: 0.16rem; - border: 0.13333rem solid white; + border: 0.1333333333rem solid white; } .share-btn { position: absolute; - top: 10.44rem; + top: 6.2rem; left: 50%; transform: translateX(-50%); width: 4.52rem; - height: 0.92rem; - line-height: 0.92rem; + height: 0.9466666667rem; + line-height: 0.9466666667rem; background: url("../images/share-btn.png") no-repeat 0 0/100% 100%; - font-family: 'pingfang-bold'; + font-family: "pingfang-bold"; font-size: 0.4rem; font-weight: bold; color: #DB98FF; @@ -112,86 +101,96 @@ body { } .rule-wrap { - width: 9.13333rem; + width: 9.1333333333rem; height: 2.8rem; - background: url("../images/rule-bg.png") no-repeat 0 0/100% 100%; - margin: 0.56rem auto 0.66667rem; - padding: 0.96rem 0.4rem 0 0.4rem; + background: url("../images/ruleBg.png") no-repeat 0 0/100% 100%; + margin: 2.2rem auto 0.6666666667rem; + padding: 0.96rem 0.3333333333rem 0 0.4rem; box-sizing: border-box; - font-size: 0.34667rem; - color: white; - line-height: 1.5; + position: relative; } - -.rule-wrap.rule-wrap-big { - height: 3.89333rem; - background: url("../images/rule-bg-big.png") no-repeat 0 0/100% 100%; +.rule-wrap P { + color: #141949; + font-size: 0.3466666667rem; + margin-bottom: 0.2rem; + font-weight: bold; +} +.rule-wrap div { + position: absolute; + top: 0.2133333333rem; + left: 0.24rem; + color: #141949; + font-size: 0.32rem; + font-weight: bold; } .invite-record-wrap { - width: 9.13333rem; - height: 4.25333rem; + width: 9.1333333333rem; + height: 4.7066666667rem; background: url("../images/record-bg.png") no-repeat 0 0/100% 100%; margin: auto; - padding-top: 1.05333rem; + padding-top: 1.0533333333rem; box-sizing: border-box; + position: relative; +} +.invite-record-wrap .text { + color: #141949; + font-size: 0.32rem; + position: absolute; + font-weight: bold; + top: 0.2266666667rem; + left: 0.2533333333rem; } - .invite-record-wrap::after { - content: ''; - border: 0.53333rem solid transparent; + content: ""; + border: 0.5333333333rem solid transparent; } - .invite-record-wrap li { position: relative; display: flex; align-items: center; - margin-bottom: 0.53333rem; + margin-bottom: 0.5333333333rem; } - .invite-record-wrap li .item-avatar { - width: 1.33333rem; - height: 1.33333rem; - margin-left: 0.42667rem; - margin-right: 0.25333rem; + width: 1.3333333333rem; + height: 1.3333333333rem; + margin-left: 0.4266666667rem; + margin-right: 0.2533333333rem; } - .invite-record-wrap li .item-avatar img { width: 100%; height: 100%; border-radius: 50%; } - .invite-record-wrap li .item-info { flex: 1; } - .invite-record-wrap li .item-info .item-nickname { font-size: 0.4rem; font-weight: 600; - color: #E1E1E2; - margin-bottom: 0.45333rem; + color: #141949; + margin-bottom: 0.4533333333rem; } - .invite-record-wrap li .item-info .item-nickname img { width: 0.4rem; height: 0.4rem; } - .invite-record-wrap li .item-info .item-date { - font-size: 0.26667rem; - color: #7A767C; + font-size: 0.2666666667rem; + color: #141949; + font-weight: bold; } - .invite-record-wrap li .isActive { position: absolute; - right: 0.29333rem; + right: 0.2933333333rem; bottom: 0.08rem; - font-family: 'pingfang-regular'; + font-family: "pingfang-regular"; font-size: 0.32rem; - color: #E1E1E2; + color: #141949; + font-weight: bold; +} +.invite-record-wrap li .isActive.inactive { + color: #FF6BEF; } -.invite-record-wrap li .isActive.inactive { - color: #4A7DFF; -} +/*# sourceMappingURL=index.css.map */ diff --git a/view/peko/modules/game/css/index.scss b/view/peko/modules/game/css/index.scss index 1a3b5c7..ca47eb6 100644 --- a/view/peko/modules/game/css/index.scss +++ b/view/peko/modules/game/css/index.scss @@ -1,8 +1,8 @@ -@function px2rem($px, $rem:75){ +@function px2rem($px, $rem:75) { @return $px/$rem+rem; } -@font-face{ +@font-face { font-family: 'pingfang-medium'; src: url('../../../common/fonts/PingFang-Medium.ttf'); src: url('../../../common/fonts/PingFang-Medium.ttf') format('woff'), @@ -10,7 +10,7 @@ url('../../../common/fonts/PingFang-Medium.ttf') format('svg'); } -@font-face{ +@font-face { font-family: 'pingfang-bold'; src: url('../../../common/fonts/PingFang\ Bold.ttf'); src: url('../../../common/fonts/PingFang\ Bold.ttf') format('woff'), @@ -18,7 +18,7 @@ url('../../../common/fonts/PingFang\ Bold.ttf') format('svg'); } -@font-face{ +@font-face { font-family: 'pingfang-regular'; src: url('../../../common/fonts/PingFang-Regular.ttf'); src: url('../../../common/fonts/PingFang-Regular.ttf') format('woff'), @@ -26,66 +26,76 @@ url('../../../common/fonts/PingFang-Regular.ttf') format('svg'); } -body{ +body { display: none; - background-color: #11111D; + background-color: #DFF7F3; position: relative; font-family: 'pingfang-medium'; } -.banner{ +.banner { width: px2rem(750); - height: px2rem(860); + height: px2rem(433); margin: auto; - img{ + + img { width: 100%; height: 100%; } } -.personal-info-wrap{ +.personal-info-wrap { position: absolute; - top: px2rem(624); + top: px2rem(307); left: 50%; transform: translateX(-50%); - width: px2rem(750); - height: px2rem(227); + width: px2rem(680); + height: px2rem(180); background: url('../images/info-bg.png') no-repeat 0 0/100% 100%; - .personal-info-content{ + + .personal-info-content { width: 100%; height: px2rem(180); display: flex; align-items: center; - .avatar{ + + .avatar { width: px2rem(100); height: px2rem(100); margin-left: px2rem(65); margin-right: px2rem(20); - img{ + + img { width: 100%; height: 100%; border-radius: 50%; } } - .personal-info{ + + .personal-info { flex: 1; font-size: px2rem(20); - color: white; - .nickname{ + color: #141949; + + .nickname { font-size: px2rem(30); font-weight: 600; margin-bottom: px2rem(18); } - .platform-code, .invite-code{ + + .platform-code, + .invite-code { font-family: 'pingfang-regular'; margin-bottom: px2rem(8); } } - .qr{ + + .qr { width: px2rem(107); height: px2rem(107); margin-right: px2rem(70); - .active{ + + .active { width: 100%; height: 100%; box-sizing: border-box; @@ -96,14 +106,14 @@ body{ } } -.share-btn{ +.share-btn { position: absolute; - top: px2rem(783); + top: px2rem(465); left: 50%; transform: translateX(-50%); width: px2rem(339); - height: px2rem(69); - line-height: px2rem(69); + height: px2rem(71); + line-height: px2rem(71); background: url('../images/share-btn.png') no-repeat 0 0/100% 100%; font-family: 'pingfang-bold'; font-size: px2rem(30); @@ -112,76 +122,108 @@ body{ text-align: center; } -.rule-wrap{ +.rule-wrap { width: px2rem(685); height: px2rem(210); - background: url('../images/rule-bg.png') no-repeat 0 0/100% 100%; - margin: px2rem(42) auto px2rem(50); - padding: px2rem(72) px2rem(30) 0 px2rem(30); + background: url('../images/ruleBg.png') no-repeat 0 0/100% 100%; + margin: 2.2rem auto px2rem(50); + padding: px2rem(72) px2rem(25) 0 px2rem(30); box-sizing: border-box; - font-size: px2rem(26); - color: white; - line-height: 1.5; - &.rule-wrap-big{ - height: px2rem(292); - background: url('../images/rule-bg-big.png') no-repeat 0 0/100% 100%; + position: relative; + + P { + color: #141949; + font-size: px2rem(26, ); + margin-bottom: px2rem(15, ); + font-weight: bold; + } + + div { + position: absolute; + top: px2rem(16, ); + left: px2rem(18, ); + color: #141949; + font-size: px2rem(24, ); + font-weight: bold; } } -.invite-record-wrap{ +.invite-record-wrap { width: px2rem(685); - height: px2rem(319); + height: px2rem(353); background: url('../images/record-bg.png') no-repeat 0 0/100% 100%; margin: auto; padding-top: px2rem(79); box-sizing: border-box; - &::after{ + position: relative; + + .text { + color: #141949; + font-size: px2rem(24, ); + position: absolute; + font-weight: bold; + top: px2rem(17, ); + left: px2rem(19, ); + } + + &::after { content: ''; border: px2rem(40) solid transparent; } - li{ + + li { position: relative; display: flex; align-items: center; margin-bottom: px2rem(40); - .item-avatar{ + + .item-avatar { width: px2rem(100); height: px2rem(100); margin-left: px2rem(32); margin-right: px2rem(19); - img{ + + img { width: 100%; height: 100%; border-radius: 50%; } } - .item-info{ + + .item-info { flex: 1; - .item-nickname{ + + .item-nickname { font-size: px2rem(30); font-weight: 600; - color: #E1E1E2; + color: #141949; margin-bottom: px2rem(34); - img{ + + img { width: px2rem(30); height: px2rem(30); } } - .item-date{ + + .item-date { font-size: px2rem(20); - color: #7A767C; + color: #141949; + font-weight: bold; } } - .isActive{ + + .isActive { position: absolute; right: px2rem(22); bottom: px2rem(6); font-family: 'pingfang-regular'; font-size: px2rem(24); - color: #E1E1E2; - &.inactive{ - color: #4A7DFF; + color: #141949; + font-weight: bold; + + &.inactive { + color: #FF6BEF; } } } -} +} \ No newline at end of file diff --git a/view/peko/modules/game/css/register.css b/view/peko/modules/game/css/register.css index f816fe0..3a81471 100644 --- a/view/peko/modules/game/css/register.css +++ b/view/peko/modules/game/css/register.css @@ -1,27 +1,29 @@ @font-face { - font-family: 'pingfang-medium'; + font-family: "pingfang-medium"; src: url("../../../common/fonts/PingFang-Medium.ttf"); src: url("../../../common/fonts/PingFang-Medium.ttf") format("woff"), url("../../../common/fonts/PingFang-Medium.ttf") format("truetype"), url("../../../common/fonts/PingFang-Medium.ttf") format("svg"); } +html { + background: #E7F5F8; +} body { display: none; - font-family: 'pingfang-medium'; + font-family: "pingfang-medium"; width: 100%; - height: 17.78667rem; - background: url("../images/register.png") #080709 no-repeat 0 0/100% 100%; + height: 17.7866666667rem; + background: url("../images/register.png") #E7F5F8 no-repeat 0 0/100% 100%; position: relative; } .avatar { position: absolute; - top: 6.05333rem; - left: 50%; + top: 5.3rem; + left: 49.6%; transform: translateX(-50%); - width: 2.13333rem; - height: 2.13333rem; + width: 2.2rem; + height: 2.2rem; } - .avatar img { width: 100%; height: 100%; @@ -30,7 +32,7 @@ body { .tip { position: absolute; - top: 10.05333rem; + top: 10.0533333333rem; left: 50%; transform: translateX(-50%); font-size: 0.4rem; @@ -38,80 +40,79 @@ body { color: white; width: 100%; text-align: center; + display: none; } .form-wrap { position: absolute; - top: 10.93333rem; + top: 8.933333rem; left: 50%; transform: translateX(-50%); } - -.form-wrap .mobile-number, .form-wrap .verify-ipt { - width: 8.4rem; - height: 0.93333rem; +.form-wrap .mobile-number, +.form-wrap .verify-ipt { + width: 8.28rem; + height: 1.2266666667rem; outline: none; - border-radius: 0.4rem; + border-radius: 1.2266666667rem; padding-left: 0.4rem; - background-color: rgba(255, 255, 255, 0.1); + background: #fff; margin-bottom: 0.4rem; font-size: 0.4rem; - color: white; + color: #141949; + border: 1px solid #C8C9FF; + box-sizing: border-box; + font-weight: bold; } - -.form-wrap .mobile-number::placeholder, .form-wrap .verify-ipt::placeholder { - color: white; - font-weight: 200; +.form-wrap .mobile-number::placeholder, +.form-wrap .verify-ipt::placeholder { + color: #141949; + font-weight: bold; } - .form-wrap .verify-wrap { position: relative; - height: 0.93333rem; + height: 0.9333333333rem; } - .form-wrap .verify-wrap .verify-btn { position: absolute; - right: 0; - top: 0; - width: 1.84rem; - height: 0.93333rem; - background-image: linear-gradient(to right, #256DC2, #5E2AB0); - border-radius: 0.46667rem; + right: 0.32rem; + top: 0.2533333333rem; + width: 1.8666666667rem; + height: 0.7333333333rem; + background: #FF6BEF; + border-radius: 0.7333333333rem; color: white; font-size: 0.4rem; text-align: center; - line-height: 0.93333rem; + line-height: 0.7333333333rem; } - .form-wrap .verify-wrap .invite-code { position: absolute; - top: 50%; + top: 63%; left: 50%; transform: translate(-50%, -50%); - color: white; + color: #141949; font-size: 0.48rem; font-weight: bold; } - .form-wrap .register-btn { display: block; - height: 0.93333rem; - background-image: linear-gradient(to right, #218EFF, #7727E4); - border-radius: 0.46667rem; + width: 8.28rem; + height: 1.2266666667rem; + background: linear-gradient(-90deg, #BBFFFF 0%, #A9AAFF 52%, #ECD0FF 100%); + border-radius: 1.2266666667rem; margin: 0.8rem auto 0; - color: white; + color: #141949; font-size: 0.48rem; font-weight: bold; text-align: center; - line-height: 0.93333rem; + line-height: 1.2266666667rem; } - .form-wrap .form-tip { color: #999; - font-size: 0.34667rem; + font-size: 0.3466666667rem; text-align: center; } - .form-wrap .form-tip a { color: white; text-decoration: underline; @@ -125,34 +126,33 @@ body { z-index: 999; width: 10rem; height: 1.68rem; - background-color: rgba(101, 61, 233, 0.4); + background: linear-gradient(-90deg, #A493FC 0%, #40D3F8 100%); display: inline-flex; align-items: center; } - .bottom img { - width: 1.14667rem; - height: 1.14667rem; - border-radius: 0.21333rem; - margin-left: 0.26667rem; - margin-right: 0.13333rem; + width: 1.1466666667rem; + height: 1.1466666667rem; + border-radius: 0.2133333333rem; + margin-left: 0.2666666667rem; + margin-right: 0.1333333333rem; } - .bottom p { flex: 1; font-size: 0.4rem; color: white; } - .bottom a { - width: 2.13333rem; - height: 0.69333rem; - line-height: 0.69333rem; - border-radius: 0.34667rem; + width: 2.1333333333rem; + height: 0.6933333333rem; + line-height: 0.6933333333rem; + border-radius: 0.3466666667rem; background: white; - margin-right: 0.26667rem; + margin-right: 0.2666666667rem; text-align: center; - font-size: 0.34667rem; + font-size: 0.3733333333rem; font-weight: bold; - color: #752AE4; + color: #141949; } + +/*# sourceMappingURL=register.css.map */ diff --git a/view/peko/modules/game/css/register.scss b/view/peko/modules/game/css/register.scss index 22b89be..ef14a96 100644 --- a/view/peko/modules/game/css/register.scss +++ b/view/peko/modules/game/css/register.scss @@ -1,8 +1,8 @@ -@function px2rem($px, $rem:75){ +@function px2rem($px, $rem:75) { @return $px/$rem+rem; } -@font-face{ +@font-face { font-family: 'pingfang-medium'; src: url('../../../common/fonts/PingFang-Medium.ttf'); src: url('../../../common/fonts/PingFang-Medium.ttf') format('woff'), @@ -10,30 +10,35 @@ url('../../../common/fonts/PingFang-Medium.ttf') format('svg'); } -body{ +html { + background: #E7F5F8; +} + +body { display: none; font-family: 'pingfang-medium'; width: 100%; height: px2rem(1334); - background: url('../images/register.png') #080709 no-repeat 0 0/100% 100%; + background: url('../images/register.png') #E7F5F8 no-repeat 0 0/100% 100%; position: relative; } -.avatar{ +.avatar { position: absolute; - top: px2rem(454); - left: 50%; + top: 5.3rem; + left: 49.6%; transform: translateX(-50%); - width: px2rem(160); - height: px2rem(160); - img{ + width: 2.2rem; + height: 2.2rem; + + img { width: 100%; height: 100%; border-radius: 50%; } } -.tip{ +.tip { position: absolute; top: px2rem(754); left: 50%; @@ -43,72 +48,85 @@ body{ color: white; width: 100%; text-align: center; + display: none; } -.form-wrap{ +.form-wrap { position: absolute; - top: px2rem(820); + top: 8.933333rem; left: 50%; transform: translateX(-50%); - .mobile-number, .verify-ipt{ - width: px2rem(630); - height: px2rem(70); + + .mobile-number, + .verify-ipt { + width: px2rem(621); + height: px2rem(92); outline: none; - border-radius: px2rem(30); + border-radius: px2rem(92); padding-left: px2rem(30); - background-color: rgba($color: #fff, $alpha: .1); + background: #fff; margin-bottom: px2rem(30); font-size: px2rem(30); - color: white; - &::placeholder{ - color: white; - font-weight: 200; + color: #141949; + border: 1px solid #C8C9FF; + box-sizing: border-box; + font-weight: bold; + + &::placeholder { + color: #141949; + font-weight: bold; } } - .verify-wrap{ + + .verify-wrap { position: relative; height: px2rem(70); - .verify-btn{ + + .verify-btn { position: absolute; - right: 0; - top: 0; - width: px2rem(138); - height: px2rem(70); - background-image: linear-gradient(to right, #256DC2, #5E2AB0); - border-radius: px2rem(35); + right: px2rem(24, ); + top: px2rem(19, ); + width: px2rem(140); + height: px2rem(55); + background: #FF6BEF; + border-radius: px2rem(55); color: white; font-size: px2rem(30); text-align: center; - line-height: px2rem(70); + line-height: px2rem(55); } - .invite-code{ + + .invite-code { position: absolute; - top: 50%; + top: 63%; left: 50%; transform: translate(-50%, -50%); - color: white; + color: #141949; font-size: px2rem(36, ); font-weight: bold; } } - .register-btn{ + + .register-btn { display: block; - // width: px2rem(630); - height: px2rem(70); - background-image: linear-gradient(to right, #218EFF, #7727E4); - border-radius: px2rem(35); + width: px2rem(621); + height: px2rem(92); + background: linear-gradient(-90deg, #BBFFFF 0%, #A9AAFF 52%, #ECD0FF 100%); + border-radius: px2rem(92); margin: px2rem(60) auto 0; - color: white; + color: #141949; font-size: px2rem(36); font-weight: bold; text-align: center; - line-height: px2rem(70); + line-height: px2rem(92); } - .form-tip{ + + .form-tip { color: #999; font-size: px2rem(26); text-align: center; - a{ + + a { color: white; text-decoration: underline; } @@ -118,7 +136,7 @@ body{ -.bottom{ +.bottom { position: fixed; bottom: 0; left: 50%; @@ -126,22 +144,25 @@ body{ z-index: 999; width: px2rem(750); height: px2rem(126); - background-color: rgba($color: #653DE9, $alpha: .4); + background: linear-gradient(-90deg, #A493FC 0%, #40D3F8 100%);; display: inline-flex; align-items: center; - img{ + + img { width: px2rem(86); height: px2rem(86); border-radius: px2rem(16); margin-left: px2rem(20); margin-right: px2rem(10); } - p{ + + p { flex: 1; font-size: px2rem(30); color: white; } - a{ + + a { width: px2rem(160); height: px2rem(52); line-height: px2rem(52); @@ -149,8 +170,8 @@ body{ background: white; margin-right: px2rem(20); text-align: center; - font-size: px2rem(26); + font-size: px2rem(28); font-weight: bold; - color: #752AE4; + color: #141949; } -} +} \ No newline at end of file diff --git a/view/peko/modules/game/images/banner-yy.png b/view/peko/modules/game/images/banner-yy.png index 324a1b8..b04e6d3 100644 Binary files a/view/peko/modules/game/images/banner-yy.png and b/view/peko/modules/game/images/banner-yy.png differ diff --git a/view/peko/modules/game/images/banner.png b/view/peko/modules/game/images/banner.png index d2fa7ed..4b69bdd 100644 Binary files a/view/peko/modules/game/images/banner.png and b/view/peko/modules/game/images/banner.png differ diff --git a/view/peko/modules/game/images/default.png b/view/peko/modules/game/images/default.png index f026653..9db2f89 100644 Binary files a/view/peko/modules/game/images/default.png and b/view/peko/modules/game/images/default.png differ diff --git a/view/peko/modules/game/images/delete.png b/view/peko/modules/game/images/delete.png index 34c42da..81dcda2 100644 Binary files a/view/peko/modules/game/images/delete.png and b/view/peko/modules/game/images/delete.png differ diff --git a/view/peko/modules/game/images/female.png b/view/peko/modules/game/images/female.png index cb8880e..76405af 100644 Binary files a/view/peko/modules/game/images/female.png and b/view/peko/modules/game/images/female.png differ diff --git a/view/peko/modules/game/images/info-bg.png b/view/peko/modules/game/images/info-bg.png index 9b68258..1844c4e 100644 Binary files a/view/peko/modules/game/images/info-bg.png and b/view/peko/modules/game/images/info-bg.png differ diff --git a/view/peko/modules/game/images/info-tip.png b/view/peko/modules/game/images/info-tip.png index 73136df..c5531e7 100644 Binary files a/view/peko/modules/game/images/info-tip.png and b/view/peko/modules/game/images/info-tip.png differ diff --git a/view/peko/modules/game/images/logo-yy.png b/view/peko/modules/game/images/logo-yy.png index b7e7d69..0112525 100644 Binary files a/view/peko/modules/game/images/logo-yy.png and b/view/peko/modules/game/images/logo-yy.png differ diff --git a/view/peko/modules/game/images/logo.png b/view/peko/modules/game/images/logo.png index c700763..06bbf4a 100644 Binary files a/view/peko/modules/game/images/logo.png and b/view/peko/modules/game/images/logo.png differ diff --git a/view/peko/modules/game/images/male.png b/view/peko/modules/game/images/male.png index 5b6d044..49bcafb 100644 Binary files a/view/peko/modules/game/images/male.png and b/view/peko/modules/game/images/male.png differ diff --git a/view/peko/modules/game/images/record-bg.png b/view/peko/modules/game/images/record-bg.png index cdaf6c8..97aa666 100644 Binary files a/view/peko/modules/game/images/record-bg.png and b/view/peko/modules/game/images/record-bg.png differ diff --git a/view/peko/modules/game/images/register.png b/view/peko/modules/game/images/register.png index 54c6bc6..d4a011d 100644 Binary files a/view/peko/modules/game/images/register.png and b/view/peko/modules/game/images/register.png differ diff --git a/view/peko/modules/game/images/rule-bg-big.png b/view/peko/modules/game/images/rule-bg-big.png index 04ec99f..c80c7a8 100644 Binary files a/view/peko/modules/game/images/rule-bg-big.png and b/view/peko/modules/game/images/rule-bg-big.png differ diff --git a/view/peko/modules/game/images/rule-bg.png b/view/peko/modules/game/images/rule-bg.png deleted file mode 100644 index 30d1374..0000000 Binary files a/view/peko/modules/game/images/rule-bg.png and /dev/null differ diff --git a/view/peko/modules/game/images/ruleBg.png b/view/peko/modules/game/images/ruleBg.png new file mode 100644 index 0000000..5a83dbd Binary files /dev/null and b/view/peko/modules/game/images/ruleBg.png differ diff --git a/view/peko/modules/game/images/share-btn.png b/view/peko/modules/game/images/share-btn.png index 42309c2..06bfe61 100644 Binary files a/view/peko/modules/game/images/share-btn.png and b/view/peko/modules/game/images/share-btn.png differ diff --git a/view/peko/modules/game/index.html b/view/peko/modules/game/index.html index 3c14d23..6a20cb5 100644 --- a/view/peko/modules/game/index.html +++ b/view/peko/modules/game/index.html @@ -1,12 +1,15 @@ + - + 邀请好友 +
    @@ -21,17 +24,30 @@
  • - + +
    -

    1.分享后好友注册并下载peko,自动填写您的邀请码;

    -

    2.同一台手机设备注册的用户,视为同一用户;

    -

    3.每位新用户仅能填写一次邀请码,填写后不可修改

    +
    分享規則
    +

    1.分享後好友註冊並下載Peko,填寫您的邀請碼:

    +

    2.同一臺手機設備註冊的用戶,視為同一用戶;

    +

    3.每位新用戶僅能填寫一次邀請碼, 填寫後不可修改。

    - + @@ -40,4 +56,5 @@ + \ No newline at end of file diff --git a/view/peko/modules/game/js/register.js b/view/peko/modules/game/js/register.js index 8c89e03..049b5c4 100644 --- a/view/peko/modules/game/js/register.js +++ b/view/peko/modules/game/js/register.js @@ -5,12 +5,12 @@ if (env == 'test') { new VConsole(); } -const productUrlNew = 'https://api.99park.cn'; // 正式环境 -const testUrlNew = 'http://beta.99park.cn'; // 测试环境 +const productUrlNew = 'https://api.pekolive.com'; // 正式环境 +const testUrlNew = 'https://beta.api.pekolive.com'; // 测试环境 //获取新域名前缀 -function getUrlPrefixNew() { - if (!EnvCheck()) return undefined; - return EnvCheck() === 'live' ? productUrlNew : testUrlNew; +function getUrlPrefixNew () { + if (!EnvCheck()) return undefined; + return EnvCheck() === 'live' ? productUrlNew : testUrlNew; } const urlPrefixNew = getUrlPrefixNew() @@ -22,7 +22,7 @@ const showLoading = (content = '加載中...') => { type: 2, shadeClose: false, content, - success(e) { + success (e) { layerIndex = $(e).attr('index') } }) @@ -44,14 +44,15 @@ const getUserInfo = () => { networkRequest({ type: 'GET', url: urlPrefix + `/user/get?uid=${queryObj.shareUid}`, - success(res) { - if(res.code === 200){ + success (res) { + if (res.code === 200) { // $('.avatar').find('img').attr('src', res.data.avatar) - }else{ + $('.avatar img').attr('src',res.data.avatar) + } else { toastMsg(res.message) } }, - error(){ + error () { toastMsg('網絡錯誤') } }) @@ -59,66 +60,95 @@ const getUserInfo = () => { -$(function(){ +$(function () { getInfoFromClient() setTimeout(() => { getUserInfo() }, 50) - if (browser.app) { - if (browser.android) { - let channel = JSON.parse(pubInfo.deviceInfo).channel - if (channel.indexOf('toutiao') != -1 || channel.indexOf('kuaishou') != -1) { - $('.avatar img').attr('src', './images/logo-yy.png') - $('.bottom img').attr('src', './images/logo-yy.png') - $('.appName').html('peko') - } - } - } + // if (browser.app) { + // if (browser.android) { + // let channel = JSON.parse(pubInfo.deviceInfo).channel + // if (channel.indexOf('toutiao') != -1 || channel.indexOf('kuaishou') != -1) { + // $('.avatar img').attr('src', './images/logo-yy.png') + // $('.bottom img').attr('src', './images/logo-yy.png') + // $('.appName').html('peko') + // } + // } + // } setTimeout(() => { $('body').show() }, 0) - + $('.invite-code').html(`${queryObj.inviteCode}`) - $('.verify-btn').on('click', function(){ + $('.verify-btn').on('click', function () { $('#int').val(`${queryObj.inviteCode}`) let clipboard = new Clipboard('.verify-btn') - clipboard.on('success', function(e){ + clipboard.on('success', function (e) { toastMsg('已复制邀请码') e.clearSelection(); }) }) - // 创建深度链接 - let linkedKey = '6ba9e9d9760b8acc50b2b499cfd557da' - let paramsObj = { - inviteCode: queryObj.inviteCode - } - let jsonStr = JSON.stringify(paramsObj) - let linkedObj = { - type: EnvCheck(), - params: jsonStr - } - if(queryObj.enterprise){ - linkedKey = 'af4f58541a86d5f6c4193349f675419a' - } - linkedme.init(linkedKey, { type: EnvCheck() }, null) - linkedme.link(linkedObj, function(err, response){ - if(err){ - // 生成深度链接失败,返回错误对象err - console.log('err:', err); - }else{ - $('.register-btn').on('click', function(){ - linkedme.trigger_deeplink(response.url); - }) - $('.register-btn').attr('href', response.url) + // // 创建深度链接 + // let linkedKey = '6ba9e9d9760b8acc50b2b499cfd557da' + // let paramsObj = { + // inviteCode: queryObj.inviteCode + // } + // let jsonStr = JSON.stringify(paramsObj) + // let linkedObj = { + // type: EnvCheck(), + // params: jsonStr + // } + // if(queryObj.enterprise){ + // linkedKey = 'af4f58541a86d5f6c4193349f675419a' + // } + // linkedme.init(linkedKey, { type: EnvCheck() }, null) + // linkedme.link(linkedObj, function(err, response){ + // if(err){ + // // 生成深度链接失败,返回错误对象err + // console.log('err:', err); + // }else{ + // $('.register-btn').on('click', function(){ + // linkedme.trigger_deeplink(response.url); + // }) + // $('.register-btn').attr('href', response.url) - - $('.download').on('click', function(){ - linkedme.trigger_deeplink(response.url); - }) - $('.download').attr('href', response.url) - + + // $('.download').on('click', function(){ + // linkedme.trigger_deeplink(response.url); + // }) + // $('.download').attr('href', response.url) + + // } + // }, false) + function get_param (param) { + var query = location.search.substring(1).split('&'); + for (var i = 0; i < query.length; i++) { + var kv = query[i].split('='); + if (kv[0] == param) { + return kv[1]; + } } - }, false) + return null; + } + uid = get_param('uid'); + mobid = get_param('mobid'); + ROOM_UID = get_param('ROOM_UID') + fromType = get_param('fromType') + enterType = get_param('enterType') + workAuthor = get_param('workAuthor') + workAuthorId = get_param('workAuthorId') + roomuid = get_param('uid') + MobLink([{ + el: '#bomlinkdomload', + path: '', + params: { mobLinkType: 1, inviteCode: queryObj.inviteCode, roomuid, uid, mobid, ROOM_UID, fromType, enterType, workAuthor, workAuthorId } + }, + { + el: '#bomlinkdomload1', + path: '', + params: { mobLinkType: 2, inviteCode: queryObj.inviteCode, roomuid, uid, mobid, ROOM_UID, fromType, enterType, workAuthor, workAuthorId } + } + ]); }) \ No newline at end of file diff --git a/view/peko/modules/game/register.html b/view/peko/modules/game/register.html index 310ddf8..497d6d1 100644 --- a/view/peko/modules/game/register.html +++ b/view/peko/modules/game/register.html @@ -1,12 +1,15 @@ + - + 邀请好友 +

    邀你来peko一起聊天打游戏

    @@ -17,22 +20,24 @@

    复制

    - 立即下载 + 立即下载
    -

    peko打游戏,争夺更多赏金!

    - 下载APP +

    peko,邂逅你的專屬聲音~

    + 下载APP
    - + + + \ No newline at end of file diff --git a/view/peko/modules/pay/images/active.png b/view/peko/modules/pay/images/active.png index d48c32e..0fb061b 100644 Binary files a/view/peko/modules/pay/images/active.png and b/view/peko/modules/pay/images/active.png differ diff --git a/view/peko/modules/pay/images/but.png b/view/peko/modules/pay/images/but.png index 4b70525..3007b0e 100644 Binary files a/view/peko/modules/pay/images/but.png and b/view/peko/modules/pay/images/but.png differ diff --git a/view/peko/modules/pay/images/jvxing.png b/view/peko/modules/pay/images/jvxing.png index 36b46f6..08d4f87 100644 Binary files a/view/peko/modules/pay/images/jvxing.png and b/view/peko/modules/pay/images/jvxing.png differ diff --git a/view/peko/modules/pay/images/logo.png b/view/peko/modules/pay/images/logo.png index c700763..06bbf4a 100644 Binary files a/view/peko/modules/pay/images/logo.png and b/view/peko/modules/pay/images/logo.png differ diff --git a/view/peko/modules/pay/images/more.png b/view/peko/modules/pay/images/more.png index 73fb174..5a077cd 100644 Binary files a/view/peko/modules/pay/images/more.png and b/view/peko/modules/pay/images/more.png differ diff --git a/view/peko/modules/pay/images/noActive.png b/view/peko/modules/pay/images/noActive.png index 9b3f8a1..4e36929 100644 Binary files a/view/peko/modules/pay/images/noActive.png and b/view/peko/modules/pay/images/noActive.png differ diff --git a/view/peko/modules/pay/images/noBut.png b/view/peko/modules/pay/images/noBut.png index 5922c0d..7500d3a 100644 Binary files a/view/peko/modules/pay/images/noBut.png and b/view/peko/modules/pay/images/noBut.png differ diff --git a/view/peko/modules/pay/images/null.png b/view/peko/modules/pay/images/null.png index ea650cb..2f6f634 100644 Binary files a/view/peko/modules/pay/images/null.png and b/view/peko/modules/pay/images/null.png differ diff --git a/view/peko/modules/pay/images/wx_skip.png b/view/peko/modules/pay/images/wx_skip.png index f101350..b60e05b 100644 Binary files a/view/peko/modules/pay/images/wx_skip.png and b/view/peko/modules/pay/images/wx_skip.png differ diff --git a/view/peko/modules/pay/images/wx_skip_ar.png b/view/peko/modules/pay/images/wx_skip_ar.png index 03912cc..70a1716 100644 Binary files a/view/peko/modules/pay/images/wx_skip_ar.png and b/view/peko/modules/pay/images/wx_skip_ar.png differ diff --git a/view/peko/modules/pay/images/wx_skip_en.png b/view/peko/modules/pay/images/wx_skip_en.png index aa1d145..27ec2a5 100644 Binary files a/view/peko/modules/pay/images/wx_skip_en.png and b/view/peko/modules/pay/images/wx_skip_en.png differ diff --git a/view/peko/modules/pay/images/wx_skip_in.png b/view/peko/modules/pay/images/wx_skip_in.png index 540ba35..923e992 100644 Binary files a/view/peko/modules/pay/images/wx_skip_in.png and b/view/peko/modules/pay/images/wx_skip_in.png differ diff --git a/view/peko/modules/pay/js/index.js b/view/peko/modules/pay/js/index.js index f96e5f2..4fb5e59 100644 --- a/view/peko/modules/pay/js/index.js +++ b/view/peko/modules/pay/js/index.js @@ -11,7 +11,8 @@ let openId; let payChannel;//付款方式 let paymentType;//付款码 var host = window.location.host; -let successUrl = `${window.location.protocol}//${host}/peko/modules/pay/index.html`;//支付成功回调路径 +// let successUrl = `${window.location.protocol}//${host}/peko/modules/pay/index.html`;//支付成功回调路径 +let successUrl = window.location.href;//支付成功回调路径 let uid; let modeOfPayment = false;//判断是否有选择支付方式 let paymentAmount = false;//判断是否有选择付款金额 @@ -122,7 +123,7 @@ $(function () { console.log(res) $('.logingActive').text("請稍等");//"" $('.logingActive').show(); - window.location.href = res.data.mweb_url + window.location.replace(res.data.payInfo.mweb_url); } else { logingFun(res.message) } diff --git a/view/peko/modules/share_room/images/logo.png b/view/peko/modules/share_room/images/logo.png new file mode 100644 index 0000000..c700763 Binary files /dev/null and b/view/peko/modules/share_room/images/logo.png differ diff --git a/view/peko/modules/share_room/index.html b/view/peko/modules/share_room/index.html index ccc1048..05f9819 100644 --- a/view/peko/modules/share_room/index.html +++ b/view/peko/modules/share_room/index.html @@ -27,7 +27,7 @@
    - +

    diff --git a/view/peko/modules/share_room/js/index.js b/view/peko/modules/share_room/js/index.js index 1b63b90..20ac2d7 100644 --- a/view/peko/modules/share_room/js/index.js +++ b/view/peko/modules/share_room/js/index.js @@ -91,7 +91,7 @@ $(function () { enterType = get_param('enterType') workAuthor = get_param('workAuthor') workAuthorId = get_param('workAuthorId') - roomuid = get_param('roomuid') + roomuid = get_param('uid') MobLink([{ el: '#bomlinkdomload', path: '',