index.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. <template>
  2. <view class="gallery" :style="{background:'url('+ bannerImage +')#ffffff'}">
  3. <view><nav-bar title="none" icon="none" background="transparent" border-color="transparent" ></nav-bar></view>
  4. <view class="logo"><re-image imgSrc="/retail/main/img_logo.png" width="300" height="56"></re-image></view>
  5. <view class="content">
  6. <view class="news">
  7. <view class="info flex">
  8. <re-image imgSrc="/" width="104" height="104"></re-image>
  9. <view class="info-text flex-column jcsa">
  10. <view class="info-top flex">
  11. <view class="name">王安安</view>
  12. <view class="level flex aic">
  13. <re-image imgSrc="/retail/main/ic_chuji.png" width="40" height="44"></re-image>
  14. <view class="level-text">初级</view>
  15. </view>
  16. </view>
  17. <view class="phone">13630639549</view>
  18. </view>
  19. </view>
  20. <view class="news-total flex jcsa">
  21. <view class="total-item">
  22. <view class="item-num">156</view>
  23. <view class="item-text">总销订单</view>
  24. </view>
  25. <view class="total-item">
  26. <view class="item-num">156</view>
  27. <view class="item-text">总销游戏币</view>
  28. </view>
  29. <view class="total-item">
  30. <view class="item-num orange">¥156</view>
  31. <view class="item-text">预估总收益</view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="list-title-wrapper flex jcsb aic">
  36. <view class="list-title flex aic">
  37. <span class="title-line"></span>
  38. 套餐充值
  39. </view>
  40. <view class="timer">
  41. 赠送游戏币倒计时
  42. <span>
  43. <span class="lb" id="day">2</span>
  44. <span class="lb" id="hours">17</span>
  45. <span class="lb" id="mins">56</span>
  46. </span>
  47. </view>
  48. </view>
  49. <view class="list-wrapper">
  50. <view class="list-item">
  51. <view class="item-wrapper">
  52. <view class="sub-title ${item.subTitle ? 'show' : ''}">2</view>
  53. <view class="big">
  54. <view class="">
  55. <view class="flex jcsb aic">
  56. <view>
  57. <span class="strong">122</span><span class="strong-text">游戏币</span>
  58. </view>
  59. <view>
  60. <span class="symbol">¥</span>
  61. <span class="list-price">23</span>
  62. </view>
  63. </view>
  64. <view class="original">¥344</view>
  65. </view>
  66. <view class="msg flex jcsb aic">
  67. <view class="msg-left">
  68. <span class="zeng ">赠</span>
  69. <span class="og"><span class="num">233</span>游戏币</span>
  70. <!-- <span class="og">
  71. <span class="">+</span>
  72. <span class="">2M</span>
  73. </span> -->
  74. <span class="og red">
  75. <span class=""
  76. style="margin-left:2px">+</span>
  77. <view class="red-box">
  78. <re-image width="30" imgSrc="/retail/main/ic_putonghb.png"></re-image>
  79. <span>红包机会x2</span>
  80. </view>
  81. </span>
  82. </view>
  83. <span class="time-text">23天有效</span>
  84. <view class="pay-btn" @click="toMall">去充值</view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. </template>
  93. <script>
  94. import {
  95. toRpx
  96. } from '@/utils/calculate.js'
  97. import defaultConfig from '@/config/default.js'
  98. export default {
  99. components: {},
  100. computed: {
  101. statusBarHeight() {
  102. return this.$store.state.info.systemInfo?.statusBarHeight
  103. },
  104. },
  105. data() {
  106. return {
  107. bannerImage: defaultConfig.ossImgUrl + '/retail/main/img_bgtop.png',
  108. title: 'Hello',
  109. navBarHeight: uni.getStorageSync('navBarHeight')
  110. }
  111. },
  112. onLoad() {
  113. },
  114. methods: {
  115. toMall(){
  116. uni.navigateTo({
  117. url: '/pages/mall/mallRecharge/index'
  118. })
  119. }
  120. },
  121. mounted() {
  122. },
  123. }
  124. </script>
  125. <style lang="scss" scoped>
  126. .gallery {
  127. background-repeat: no-repeat !important;
  128. background-size: contain !important;
  129. // background-position: top;
  130. width: 100%;
  131. position: absolute;
  132. top: 0;
  133. bottom: 0;
  134. .logo {
  135. margin-top: 16rpx;
  136. margin-left: 24rpx;
  137. }
  138. .content {
  139. padding: 0 32rpx;
  140. .news {
  141. background: #FFFFFF;
  142. box-shadow: 0rpx 6rpx 16rpx 0rpx #E3E6F2;
  143. border-radius: 24rpx;
  144. margin-top: 48rpx;
  145. padding: 40rpx;
  146. .info {
  147. .info-text {
  148. .info-top {
  149. .name {
  150. font-weight: 500;
  151. font-size: 32rpx;
  152. color: #363531;
  153. }
  154. .level {
  155. margin-left: 12rpx;
  156. .level-text {
  157. width: 80rpx;
  158. height: 36rpx;
  159. padding: 6rpx 12rpx 6rpx 20rpx;
  160. background: linear-gradient(130deg, #FFB873 0%, #FEC287 0%, #E69349 100%);
  161. border-radius: 0rpx 18rpx 18rpx 0rpx;
  162. font-weight: 500;
  163. font-size: 24rpx;
  164. color: #FFFFFF;
  165. line-height: 24rpx;
  166. margin-left: -12rpx;
  167. // text-align: left;
  168. }
  169. }
  170. }
  171. }
  172. .phone {
  173. font-weight: 400;
  174. font-size: 28rpx;
  175. color: #989897;
  176. }
  177. }
  178. .news-total {
  179. margin-top: 44rpx;
  180. .item-num {
  181. font-weight: bold;
  182. font-size: 40rpx;
  183. color: #363531;
  184. }
  185. .orange {
  186. color: #FF6400;
  187. }
  188. .item-text {
  189. font-weight: 400;
  190. font-size: 28rpx;
  191. color: #9598A6;
  192. }
  193. }
  194. }
  195. .list-title-wrapper {
  196. margin-top: 48rpx;
  197. .list-title {
  198. color: #363531;
  199. font-weight: bold;
  200. font-size: 36rpx;
  201. line-height: 36rpx;
  202. .title-line {
  203. width: 8rpx;
  204. height: 32rpx;
  205. background-color: #FF8800;
  206. margin-right: 20rpx;
  207. }
  208. }
  209. .timer {
  210. font-size: 24rpx;
  211. .lb {
  212. display: inline-block;
  213. vertical-align: top;
  214. width: 32rpx;
  215. height: 32rpx;
  216. background-color: #FFE4DA;
  217. color: #FF4300;
  218. text-align: center;
  219. line-height: 32rpx;
  220. border-radius: 6rpx;
  221. margin: 0 2rpx;
  222. font-weight: bold;
  223. }
  224. }
  225. }
  226. .list-wrapper {
  227. margin-top: 40rpx;
  228. .list-item {
  229. margin-bottom: 20rpx;
  230. position: relative;
  231. .pay-btn {
  232. background: linear-gradient(140deg, #FF8500 0%, #FFA600 100%);
  233. border-radius: 48rpx;
  234. color: #fff;
  235. width: 168rpx;
  236. height: 64rpx;
  237. text-align: center;
  238. font-weight: 600;
  239. font-size: 28rpx;
  240. color: #FFFFFF;
  241. line-height: 64rpx;
  242. }
  243. .item-wrapper {
  244. background-color: #F6F6F6;
  245. border: 4rpx solid #F6F6F6;
  246. border-radius: 24rpx;
  247. padding: 40rpx 40rpx 24rpx;
  248. position: relative;
  249. border: 2rpx solid #FFB74E;
  250. .sub-title {
  251. position: absolute;
  252. z-index: 10;
  253. left: -2rpx;
  254. top: -2rpx;
  255. padding: 6rpx 16rpx;
  256. font-size: 24rpx;
  257. color: #fff;
  258. line-height: 11rpx;
  259. background: #FF6400;
  260. border-radius: 24rpx 0rpx 24rpx 0rpx;
  261. }
  262. .big {
  263. font-size: 24rpx;
  264. color: #281A13;
  265. font-weight: bold;
  266. .symbol {
  267. color: #2C2B28;
  268. font-weight: bold;
  269. font-size: 32rpx;
  270. }
  271. .list-price {
  272. color: #2C2B28;
  273. font-weight: bold;
  274. font-size: 48rpx;
  275. }
  276. .strong {
  277. font-size: 48rpx;
  278. line-height: 58rpx;
  279. color: #2C2B28;
  280. font-weight: bold;
  281. margin-right: 8rpx;
  282. }
  283. .original{
  284. font-weight: bold;
  285. font-size: 20rpx;
  286. color: #898989;
  287. line-height: 24rpx;
  288. text-decoration-line: line-through;
  289. text-align: right;
  290. }
  291. .strong-text {
  292. font-size: 24rpx;
  293. color: #564C47;
  294. line-height: 28rpx;
  295. font-weight: normal;
  296. }
  297. .msg {
  298. margin-top: 4rpx;
  299. font-size: 32rpx;
  300. color: #2C2B28;
  301. .msg-left {
  302. width: calc(100% - 150rpx);
  303. display: flex;
  304. align-items: center;
  305. white-space: nowrap;
  306. overflow: hidden;
  307. font-weight: normal;
  308. font-size: 24rpx;
  309. .num{
  310. }
  311. }
  312. .og {
  313. color: #FF7C00;
  314. font-weight: bold;
  315. }
  316. .red {
  317. display: flex;
  318. align-items: center;
  319. .red-box {
  320. display: flex;
  321. align-items: center;
  322. }
  323. }
  324. .time-text {
  325. position: absolute;
  326. right: 0;
  327. top: 0;
  328. font-size: 24rpx;
  329. color: #564C47;
  330. // font-weight: normal;
  331. z-index: 200;
  332. background: #E5F1FF;
  333. border-radius: 0rpx 20rpx 0rpx 20rpx;
  334. padding: 6rpx 14rpx;
  335. }
  336. .zeng {
  337. flex-shrink: 0;
  338. object-fit: contain;
  339. display: inline-block;
  340. background-color: #5CB020;
  341. width: 40rpx;
  342. height: 32rpx;
  343. line-height: 32rpx;
  344. color: #fff;
  345. font-size: 24rpx;
  346. border-radius: 8rpx;
  347. text-align: center;
  348. margin-right: 6rpx;
  349. // font-weight: normal;
  350. }
  351. }
  352. }
  353. .sm {
  354. font-size: 28rpx;
  355. margin-top: 16rpx;
  356. color: #74706D;
  357. padding-right: 20rpx;
  358. }
  359. }
  360. }
  361. }
  362. }
  363. }
  364. </style>