123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412 |
- <template>
- <view class="gallery" :style="{background:'url('+ bannerImage +')#ffffff'}">
- <view><nav-bar title="none" icon="none" background="transparent" border-color="transparent" ></nav-bar></view>
- <view class="logo"><re-image imgSrc="/retail/main/img_logo.png" width="300" height="56"></re-image></view>
- <view class="content">
- <view class="news">
- <view class="info flex">
- <re-image imgSrc="/" width="104" height="104"></re-image>
- <view class="info-text flex-column jcsa">
- <view class="info-top flex">
- <view class="name">王安安</view>
- <view class="level flex aic">
- <re-image imgSrc="/retail/main/ic_chuji.png" width="40" height="44"></re-image>
- <view class="level-text">初级</view>
- </view>
- </view>
- <view class="phone">13630639549</view>
- </view>
- </view>
- <view class="news-total flex jcsa">
- <view class="total-item">
- <view class="item-num">156</view>
- <view class="item-text">总销订单</view>
- </view>
- <view class="total-item">
- <view class="item-num">156</view>
- <view class="item-text">总销游戏币</view>
- </view>
- <view class="total-item">
- <view class="item-num orange">¥156</view>
- <view class="item-text">预估总收益</view>
- </view>
- </view>
- </view>
- <view class="list-title-wrapper flex jcsb aic">
- <view class="list-title flex aic">
- <span class="title-line"></span>
- 套餐充值
- </view>
- <view class="timer">
- 赠送游戏币倒计时
- <span>
- <span class="lb" id="day">2</span>
- 天
- <span class="lb" id="hours">17</span>
- 时
- <span class="lb" id="mins">56</span>
- 分
- </span>
- </view>
- </view>
- <view class="list-wrapper">
- <view class="list-item">
- <view class="item-wrapper">
- <view class="sub-title ${item.subTitle ? 'show' : ''}">2</view>
- <view class="big">
- <view class="">
- <view class="flex jcsb aic">
- <view>
- <span class="strong">122</span><span class="strong-text">游戏币</span>
- </view>
- <view>
- <span class="symbol">¥</span>
- <span class="list-price">23</span>
- </view>
- </view>
- <view class="original">¥344</view>
- </view>
- <view class="msg flex jcsb aic">
- <view class="msg-left">
- <span class="zeng ">赠</span>
- <span class="og"><span class="num">233</span>游戏币</span>
- <!-- <span class="og">
- <span class="">+</span>
- <span class="">2M</span>
- </span> -->
- <span class="og red">
- <span class=""
- style="margin-left:2px">+</span>
- <view class="red-box">
- <re-image width="30" imgSrc="/retail/main/ic_putonghb.png"></re-image>
- <span>红包机会x2</span>
- </view>
- </span>
- </view>
- <span class="time-text">23天有效</span>
- <view class="pay-btn" @click="toMall">去充值</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- toRpx
- } from '@/utils/calculate.js'
- import defaultConfig from '@/config/default.js'
- export default {
- components: {},
- computed: {
- statusBarHeight() {
- return this.$store.state.info.systemInfo?.statusBarHeight
- },
- },
- data() {
- return {
- bannerImage: defaultConfig.ossImgUrl + '/retail/main/img_bgtop.png',
- title: 'Hello',
- navBarHeight: uni.getStorageSync('navBarHeight')
- }
- },
- onLoad() {
- },
- methods: {
- toMall(){
- uni.navigateTo({
- url: '/pages/mall/mallRecharge/index'
- })
- }
- },
- mounted() {
- },
- }
- </script>
- <style lang="scss" scoped>
- .gallery {
- background-repeat: no-repeat !important;
- background-size: contain !important;
- // background-position: top;
- width: 100%;
- position: absolute;
- top: 0;
- bottom: 0;
- .logo {
- margin-top: 16rpx;
- margin-left: 24rpx;
- }
- .content {
- padding: 0 32rpx;
- .news {
- background: #FFFFFF;
- box-shadow: 0rpx 6rpx 16rpx 0rpx #E3E6F2;
- border-radius: 24rpx;
- margin-top: 48rpx;
- padding: 40rpx;
- .info {
- .info-text {
- .info-top {
- .name {
- font-weight: 500;
- font-size: 32rpx;
- color: #363531;
- }
- .level {
- margin-left: 12rpx;
- .level-text {
- width: 80rpx;
- height: 36rpx;
- padding: 6rpx 12rpx 6rpx 20rpx;
- background: linear-gradient(130deg, #FFB873 0%, #FEC287 0%, #E69349 100%);
- border-radius: 0rpx 18rpx 18rpx 0rpx;
- font-weight: 500;
- font-size: 24rpx;
- color: #FFFFFF;
- line-height: 24rpx;
- margin-left: -12rpx;
- // text-align: left;
- }
- }
- }
- }
- .phone {
- font-weight: 400;
- font-size: 28rpx;
- color: #989897;
- }
- }
- .news-total {
- margin-top: 44rpx;
- .item-num {
- font-weight: bold;
- font-size: 40rpx;
- color: #363531;
- }
- .orange {
- color: #FF6400;
- }
- .item-text {
- font-weight: 400;
- font-size: 28rpx;
- color: #9598A6;
- }
- }
- }
- .list-title-wrapper {
- margin-top: 48rpx;
- .list-title {
- color: #363531;
- font-weight: bold;
- font-size: 36rpx;
- line-height: 36rpx;
- .title-line {
- width: 8rpx;
- height: 32rpx;
- background-color: #FF8800;
- margin-right: 20rpx;
- }
- }
- .timer {
- font-size: 24rpx;
- .lb {
- display: inline-block;
- vertical-align: top;
- width: 32rpx;
- height: 32rpx;
- background-color: #FFE4DA;
- color: #FF4300;
- text-align: center;
- line-height: 32rpx;
- border-radius: 6rpx;
- margin: 0 2rpx;
- font-weight: bold;
- }
- }
- }
- .list-wrapper {
- margin-top: 40rpx;
- .list-item {
- margin-bottom: 20rpx;
- position: relative;
- .pay-btn {
- background: linear-gradient(140deg, #FF8500 0%, #FFA600 100%);
- border-radius: 48rpx;
- color: #fff;
- width: 168rpx;
- height: 64rpx;
- text-align: center;
- font-weight: 600;
- font-size: 28rpx;
- color: #FFFFFF;
- line-height: 64rpx;
- }
- .item-wrapper {
- background-color: #F6F6F6;
- border: 4rpx solid #F6F6F6;
- border-radius: 24rpx;
- padding: 40rpx 40rpx 24rpx;
- position: relative;
- border: 2rpx solid #FFB74E;
- .sub-title {
- position: absolute;
- z-index: 10;
- left: -2rpx;
- top: -2rpx;
- padding: 6rpx 16rpx;
- font-size: 24rpx;
- color: #fff;
- line-height: 11rpx;
- background: #FF6400;
- border-radius: 24rpx 0rpx 24rpx 0rpx;
- }
- .big {
- font-size: 24rpx;
- color: #281A13;
- font-weight: bold;
- .symbol {
- color: #2C2B28;
- font-weight: bold;
- font-size: 32rpx;
- }
- .list-price {
- color: #2C2B28;
- font-weight: bold;
- font-size: 48rpx;
- }
- .strong {
- font-size: 48rpx;
- line-height: 58rpx;
- color: #2C2B28;
- font-weight: bold;
- margin-right: 8rpx;
- }
- .original{
- font-weight: bold;
- font-size: 20rpx;
- color: #898989;
- line-height: 24rpx;
- text-decoration-line: line-through;
- text-align: right;
- }
- .strong-text {
- font-size: 24rpx;
- color: #564C47;
- line-height: 28rpx;
- font-weight: normal;
- }
- .msg {
- margin-top: 4rpx;
- font-size: 32rpx;
- color: #2C2B28;
- .msg-left {
- width: calc(100% - 150rpx);
- display: flex;
- align-items: center;
- white-space: nowrap;
- overflow: hidden;
- font-weight: normal;
- font-size: 24rpx;
- .num{
- }
- }
- .og {
- color: #FF7C00;
- font-weight: bold;
- }
- .red {
- display: flex;
- align-items: center;
- .red-box {
- display: flex;
- align-items: center;
- }
- }
- .time-text {
- position: absolute;
- right: 0;
- top: 0;
- font-size: 24rpx;
- color: #564C47;
- // font-weight: normal;
- z-index: 200;
- background: #E5F1FF;
- border-radius: 0rpx 20rpx 0rpx 20rpx;
- padding: 6rpx 14rpx;
- }
- .zeng {
- flex-shrink: 0;
- object-fit: contain;
- display: inline-block;
- background-color: #5CB020;
- width: 40rpx;
- height: 32rpx;
- line-height: 32rpx;
- color: #fff;
- font-size: 24rpx;
- border-radius: 8rpx;
- text-align: center;
- margin-right: 6rpx;
- // font-weight: normal;
- }
- }
- }
- .sm {
- font-size: 28rpx;
- margin-top: 16rpx;
- color: #74706D;
- padding-right: 20rpx;
- }
- }
- }
- }
- }
- }
- </style>
|