level.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. <template>
  2. <view >
  3. <view style="margin: 20rpx;">
  4. <u-row gutter="16" justify="center">
  5. <u-col span="9">
  6. <view style="vertical-align: middle;display: flex;">
  7. <image src="/static/avatar.png" style="width: 80rpx;height: 80rpx;"></image>
  8. <view class="r_t2">李宏杰</view>
  9. </view>
  10. </u-col>
  11. <u-col span="3" text-align="right">
  12. <view style="height: 80rpx;display: flex;justify-content: center;flex-direction: column;">
  13. <view class="rule">
  14. <text>查看规则</text>
  15. </view>
  16. </view>
  17. </u-col>
  18. </u-row>
  19. </view>
  20. <view class="sv_box">
  21. <scroll-view class="r_sliper" scroll-x="true" >
  22. <view v-for="(item,index) in list" :key="index" class="sv_item_box item_bac1" :style="'background:'+item.bac">
  23. <view style="display: flex;">
  24. <view class="left_t" >
  25. 当前等级
  26. </view>
  27. <view style="position: relative;">
  28. <view style="width: 280rpx;text-align: center;margin-top: 30rpx;">
  29. <text class="left_t2" :style="'color:'+item.title_color">{{item.name}}</text>
  30. </view>
  31. <image :src="item.img" class="level_flower"></image>
  32. </view>
  33. </view>
  34. <view class="progress_box">
  35. <view class="progress_text">349/1000</view>
  36. <u-line-progress height="8" inactive-color="rgba(47, 67, 121, 0.1)" :active-color="item.title_color" :percent="70" :show-percent="false"></u-line-progress>
  37. <view class="tip">{{item.tip}}</view>
  38. </view>
  39. </view>
  40. </scroll-view>
  41. </view>
  42. <view style="padding: 20rpx;">
  43. <view class="box1">
  44. <u-row >
  45. <u-col span="3">
  46. <view class="menu_p">
  47. <view class="menu_box">
  48. <image src="/static/level/menu1.png" class="menu_img"></image>
  49. <view class="menu_t">优惠券</view>
  50. </view>
  51. </view>
  52. </u-col>
  53. <u-col span="3">
  54. <view class="menu_p">
  55. <view class="menu_box">
  56. <image src="/static/level/menu2.png" class="menu_img"></image>
  57. <view class="menu_t">折扣券</view>
  58. </view>
  59. </view>
  60. </u-col>
  61. <u-col span="3">
  62. <view class="menu_p">
  63. <view class="menu_box">
  64. <image src="/static/level/menu3.png" class="menu_img"></image>
  65. <view class="menu_t">解锁题库</view>
  66. </view>
  67. </view>
  68. </u-col>
  69. <u-col span="3">
  70. <view class="menu_p">
  71. <view class="menu_box">
  72. <image src="/static/level/menu4.png" class="menu_img"></image>
  73. <view class="menu_t">解锁课程</view>
  74. </view>
  75. </view>
  76. </u-col>
  77. </u-row>
  78. </view>
  79. <view class="box2">
  80. <view >
  81. <u-row >
  82. <u-col >
  83. <view class="box2_title">做任务得经验</view>
  84. </u-col>
  85. </u-row>
  86. <view style="margin-top: 15rpx;">
  87. <u-row >
  88. <u-col span="2">
  89. <image class="box2_img" src="/static/level/qiandao.png"></image>
  90. </u-col>
  91. <u-col span="5">
  92. <view class="box_qd1">
  93. <view style="width: 95rpx;">签到</view>
  94. <text style="margin-left: 20rpx;">经验 +2</text>
  95. </view>
  96. <view class="box_qd">每日签到</view>
  97. </u-col>
  98. <u-col offset="2" span="3" text-align="right">
  99. <view class="box2_btn">去完成</view>
  100. </u-col>
  101. </u-row>
  102. </view>
  103. <view style="margin-top: 15rpx;">
  104. <u-row >
  105. <u-col span="2">
  106. <image class="box2_img" src="/static/level/spxuexi.png"></image>
  107. </u-col>
  108. <u-col span="5">
  109. <view class="box_qd1">
  110. <view style="width: 95rpx;">视频学习</view>
  111. <text style="margin-left: 20rpx;">经验 +2</text>
  112. </view>
  113. <view class="box_qd">观看课程视频5分钟</view>
  114. </u-col>
  115. <u-col offset="2" span="3" text-align="right">
  116. <view class="box2_btn">去完成</view>
  117. </u-col>
  118. </u-row>
  119. </view>
  120. <view style="margin-top: 15rpx;">
  121. <u-row >
  122. <u-col span="2">
  123. <image class="box2_img" src="/static/level/wsziliao.png"></image>
  124. </u-col>
  125. <u-col span="5">
  126. <view class="box_qd1">
  127. <view style="width: 95rpx;">完善资料</view>
  128. <text style="margin-left: 20rpx;">经验 +1</text>
  129. </view>
  130. <view class="box_qd">完善学习档案信息</view>
  131. </u-col>
  132. <u-col offset="2" span="3" text-align="right">
  133. <view class="box2_btn">去完成</view>
  134. </u-col>
  135. </u-row>
  136. </view>
  137. <view style="margin-top: 15rpx;">
  138. <u-row >
  139. <u-col span="2">
  140. <image class="box2_img" src="/static/level/zffenxiang.png"></image>
  141. </u-col>
  142. <u-col span="5">
  143. <view class="box_qd1">
  144. <view style="width: 95rpx;">转发分享</view>
  145. <text style="margin-left: 20rpx;">经验 +5</text>
  146. </view>
  147. <view class="box_qd">转发分享给好友</view>
  148. </u-col>
  149. <u-col offset="2" span="3" text-align="right">
  150. <view class="box2_btn">去完成</view>
  151. </u-col>
  152. </u-row>
  153. </view>
  154. <view style="margin-top: 15rpx;">
  155. <u-row >
  156. <u-col span="2">
  157. <image class="box2_img" src="/static/level/hdbaoming.png"></image>
  158. </u-col>
  159. <u-col span="5">
  160. <view class="box_qd1">
  161. <view style="width: 95rpx;">活动报名</view>
  162. <text style="margin-left: 20rpx;">经验 +100</text>
  163. </view>
  164. <view class="box_qd">报名参加一次活动</view>
  165. </u-col>
  166. <u-col offset="2" span="3" text-align="right">
  167. <view class="box2_btn">去完成</view>
  168. </u-col>
  169. </u-row>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. </template>
  176. <script>
  177. export default {
  178. data() {
  179. return {
  180. list:[
  181. {
  182. title_color:'#0046AB',
  183. name:'初出茅庐',
  184. img:'/static/level/flower_1.png',
  185. tip:'还需 651 经验可升级成为「崭露头角」',
  186. bac:'linear-gradient(45deg, rgba(99, 163, 255, 0.8), rgba(182, 220, 255, 0.8), rgba(114, 190, 255, 0.8));'
  187. },
  188. {
  189. title_color:'#6724BD',
  190. name:'崭露头角',
  191. img:'/static/level/flower_2.png',
  192. tip:'还需 651 经验可升级成为「自成一派」',
  193. bac:'linear-gradient(45deg, rgba(152, 14, 188, 0.4), rgba(173, 108, 254, 0.4));'
  194. },
  195. {
  196. title_color:'#27BA27',
  197. name:'自成一派',
  198. img:'/static/level/flower_3.png',
  199. tip:'还需 651 经验可升级成为「小有名气」',
  200. bac:'linear-gradient(45deg, rgba(8, 202, 96, 0.4), rgba(66, 254, 64, 0.4));'
  201. },
  202. {
  203. title_color:'#E17713',
  204. name:'小有名气',
  205. img:'/static/level/flower_4.png',
  206. tip:'还需 651 经验可升级成为「惊艳四座」',
  207. bac:'linear-gradient(45deg, rgba(231, 105, 45, 0.4), rgba(255, 169, 90, 0.4));'
  208. },
  209. {
  210. title_color:'#C21A7A',
  211. name:'惊艳四座',
  212. img:'/static/level/flower_5.png',
  213. tip:'还需 651 经验可升级成为「初露锋芒」',
  214. bac:'linear-gradient(45deg, rgba(148, 38, 117, 0.4), rgba(228, 83, 165, 0.4));'
  215. },
  216. {
  217. title_color:'#D1B214',
  218. name:'初露锋芒',
  219. img:'/static/level/flower_6.png',
  220. tip:'您已解锁所有成就!',
  221. bac:'linear-gradient(45deg, rgba(240, 157, 9, 0.4), rgba(251, 218, 56, 0.4));'
  222. }
  223. ]
  224. }
  225. },
  226. onLoad(option) {
  227. },
  228. onShow(){
  229. },
  230. methods: {
  231. },
  232. }
  233. </script>
  234. <style>
  235. ::-webkit-scrollbar{
  236. width: 0;
  237. height: 0;
  238. color: transparent;
  239. }
  240. </style>
  241. <style scope>
  242. .level_flower{
  243. width: 280rpx;
  244. height: 160rpx;
  245. position: absolute;
  246. top: 0;
  247. left: 0;
  248. }
  249. .menu_p{
  250. display: flex;
  251. flex-direction: column;
  252. justify-content: center;
  253. height: 130rpx;
  254. }
  255. .menu_box{
  256. width: 100%;
  257. text-align: center;
  258. }
  259. .menu_t{
  260. font-size: 24rpx;
  261. font-family: PingFang SC;
  262. font-weight: 500;
  263. color: #32467B;
  264. margin-top: 10rpx;
  265. }
  266. .menu_img{
  267. width: 44rpx;
  268. height: 38rpx;
  269. }
  270. .box_jy{
  271. font-size: 22rpx;
  272. font-family: PingFang SC;
  273. font-weight: 400;
  274. color: #000000;
  275. }
  276. .box_qd1{
  277. font-size: 22rpx;
  278. font-family: PingFang SC;
  279. font-weight: 400;
  280. color: #000000;
  281. display: flex;
  282. }
  283. .box_qd{
  284. font-size: 18rpx;
  285. font-family: PingFang SC;
  286. font-weight: 400;
  287. color: #999999;
  288. margin-top: 8rpx;
  289. }
  290. .box2_btn{
  291. width: 132rpx;
  292. height: 40rpx;
  293. background: rgba(249, 96, 10, 0.6);
  294. border-radius: 20rpx;
  295. font-size: 24rpx;
  296. color: #FFFFFF;
  297. text-align: center;
  298. line-height: 40rpx;
  299. margin-right: 20rpx;
  300. }
  301. .box2_img{
  302. width: 83rpx;
  303. height: 83rpx;
  304. }
  305. .box2_title{
  306. font-size: 24rpx;
  307. font-family: PingFang SC;
  308. font-weight: bold;
  309. color: #32467B;
  310. }
  311. .box2{
  312. width: 100%;
  313. background: #FFFFFF;
  314. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  315. border-radius: 32rpx;
  316. padding: 20rpx;
  317. margin-top: 30rpx;
  318. }
  319. .box1{
  320. width: 100%;
  321. height: 130rpx;
  322. background: #FFFFFF;
  323. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  324. border-radius: 32rpx;
  325. margin-top: 20rpx;
  326. }
  327. .tip{
  328. font-size: 16rpx;
  329. font-family: PingFang SC;
  330. font-weight: 400;
  331. color: #32467B;
  332. margin-top: 8rpx;
  333. }
  334. .progress_box{
  335. padding: 40rpx;
  336. margin-top: 40rpx;
  337. }
  338. .progress_text{
  339. font-size: 24rpx;
  340. font-family: PingFang SC;
  341. font-weight: 800;
  342. color: #2F4379;
  343. position: relative;
  344. top: 15rpx;
  345. }
  346. .left_t2{
  347. font-size: 32rpx;
  348. font-family: PingFang SC;
  349. font-weight: bold;
  350. }
  351. .left_t{
  352. width: 118rpx;
  353. height: 40rpx;
  354. background: rgba(50, 70, 123, 0.5);
  355. border-radius: 0rpx 20rpx 20rpx 0rpx;
  356. color: #FEFEFF;
  357. font-size: 24rpx;
  358. text-align: center;
  359. line-height: 40rpx;
  360. margin-top: 30rpx;
  361. }
  362. .item_bac1{
  363. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  364. border-radius: 32rpx;
  365. }
  366. .sv_item_box{
  367. margin-right: 20rpx;
  368. display:inline-block;
  369. width: 678rpx;
  370. height: 296rpx;
  371. }
  372. .sv_box{
  373. width: 100%;
  374. height: 296rpx;
  375. background: #FFFFFF;
  376. white-space:nowrap;
  377. overflow: hidden;
  378. margin-left: 20rpx;
  379. }
  380. .rule{
  381. width: 132rpx;
  382. height: 40rpx;
  383. background: rgba(255, 255, 255, 0.5);
  384. border: 1rpx solid #32467B;
  385. border-radius: 20rpx;
  386. color: #2F4379;
  387. opacity: 0.5;
  388. font-size: 24rpx;
  389. text-align: center;
  390. }
  391. page {
  392. background: #FFFFFF;
  393. }
  394. .r_t2{
  395. font-size: 32rpx;
  396. font-weight: bold;
  397. color: #32467B;
  398. line-height: 80rpx;
  399. padding-left: 20rpx;
  400. }
  401. </style>