index.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <template>
  2. <view >
  3. <view class="head">
  4. <u-row >
  5. <u-col span="3" offset="1">
  6. <navigator url="/pages2/wd/avatar" hover-class="none">
  7. <image src="/static/avatar.png" class="avatar"></image>
  8. </navigator>
  9. </u-col>
  10. <u-col span="6">
  11. <view style="display: flex;">
  12. <navigator class="name" url="/pages2/wd/avatar" hover-class="none">
  13. 李宏杰
  14. </navigator>
  15. <navigator class="tag" url="/pages2/wd/level" hover-class="none">
  16. 天资过人
  17. </navigator>
  18. </view>
  19. <navigator url="/pages2/wd/level" hover-class="none" style="position: relative;margin-top: 20rpx;">
  20. <view class="progress_text">0/1000</view>
  21. <u-line-progress height="8" active-color="#2F4379" :percent="70" :show-percent="false"></u-line-progress>
  22. </navigator>
  23. </u-col>
  24. <view class="qiandao">
  25. 签到
  26. </view>
  27. </u-row>
  28. <view style="margin-top: 20rpx;">
  29. <u-row >
  30. <u-col span="4" text-align="center">
  31. <navigator url="/pages2/wd/collect" hover-class="none">
  32. <view class="head_t1">
  33. 收藏
  34. </view>
  35. <view class="head_t2">
  36. 100
  37. </view>
  38. </navigator>
  39. </u-col>
  40. <u-col span="4" offset="4" text-align="center">
  41. <navigator url="/pages2/wd/ranking" hover-class="none">
  42. <view class="head_t1">
  43. 学习排名
  44. </view>
  45. <view class="head_t2">
  46. NO.3
  47. </view>
  48. </navigator>
  49. </u-col>
  50. </u-row>
  51. </view>
  52. </view>
  53. <view style="padding: 30rpx;">
  54. <!-- 学习记录-->
  55. <view class="record">
  56. <view class="r_t1">
  57. 最近学习记录
  58. <u-icon name="arrow-right" size="28"></u-icon>
  59. </view>
  60. <scroll-view class="r_sliper" scroll-x="true" >
  61. <view v-for="(item,index) in list" :key="index" style="margin-right: 20rpx;display:inline-block">
  62. <image src="/static/banner.png" class="r_image"></image>
  63. <view class="r_t2">
  64. 二级建造师市政公用工程
  65. </view>
  66. </view>
  67. </scroll-view>
  68. </view>
  69. <!-- 模块-->
  70. <view class="module">
  71. <u-row >
  72. <u-col span="3" text-align="center">
  73. <navigator url="/pages2/study/index" hover-class="none">
  74. <image src="/static/tool_1.png" class="tool_img"></image><view class="tool_t">我的学习</view>
  75. </navigator>
  76. </u-col>
  77. <u-col span="3" text-align="center">
  78. <navigator url="/pages2/wd/menu" hover-class="none">
  79. <image src="/static/tool_2.png" class="tool_img"></image><view class="tool_t">基本资料</view>
  80. </navigator>
  81. </u-col>
  82. <u-col span="3" text-align="center">
  83. <navigator url="/pages2/wd/help" hover-class="none">
  84. <image src="/static/tool_3.png" class="tool_img"></image><view class="tool_t">助学活动</view>
  85. </navigator>
  86. </u-col>
  87. <u-col span="3" text-align="center">
  88. <navigator url="/pages2/wd/coupon" hover-class="none">
  89. <image src="/static/tool_7.png" class="tool_img"></image><view class="tool_t">优惠券</view>
  90. </navigator>
  91. </u-col>
  92. </u-row>
  93. <view style="margin-top: 30rpx;">
  94. <u-row >
  95. <u-col span="3" text-align="center">
  96. <navigator url="/pages2/wd/enroll" hover-class="none">
  97. <image src="/static/tool_5.png" class="tool_img"></image><view class="tool_t">考试报名</view>
  98. </navigator>
  99. </u-col>
  100. <u-col span="3" text-align="center">
  101. <view @click="jumpPopup">
  102. <image src="/static/tool_4.png" class="tool_img"></image><view class="tool_t">成长地图</view>
  103. </view>
  104. </u-col>
  105. </u-row>
  106. </view>
  107. </view>
  108. <view class="module2">
  109. <u-row >
  110. <u-col span="3" text-align="center">
  111. <view @click="jumpPopup">
  112. <image src="/static/tool_6.png" class="tool_img"></image><view class="tool_t">异常反馈</view>
  113. </view>
  114. </u-col>
  115. </u-row>
  116. </view>
  117. </view>
  118. <u-modal v-model="show" :content="content"></u-modal>
  119. </view>
  120. </template>
  121. <script>
  122. import zzxTabs from "@/components/zzx-tabs/zzx-tabs.vue"
  123. import {mapState,mapMutations} from 'vuex';
  124. export default {
  125. components: {
  126. zzxTabs
  127. },
  128. data() {
  129. return {
  130. list:[23,24,25,26,27,28,29],
  131. content:'此功能暂未开放',
  132. show:false
  133. }
  134. },
  135. onLoad() {
  136. },
  137. methods: {
  138. jumpPopup(){
  139. this.show = true
  140. },
  141. },
  142. computed: {...mapState(['avatarUrl', 'login', 'userName'])}
  143. }
  144. </script>
  145. <style>
  146. ::-webkit-scrollbar{
  147. width: 0;
  148. height: 0;
  149. color: transparent;
  150. }
  151. </style>
  152. <style scoped>
  153. .module2{
  154. width: 100%;
  155. height: 130rpx;
  156. background: #FFFFFF;
  157. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  158. border-radius: 32rpx;
  159. margin-top: 30rpx;
  160. padding: 30rpx 0;
  161. }
  162. .tool_t{
  163. font-size: 24rpx;
  164. font-family: PingFang SC;
  165. font-weight: 500;
  166. color: #2F4379;
  167. }
  168. .tool_img{
  169. width: 42rpx;
  170. height: 42rpx;
  171. }
  172. .module{
  173. width: 100%;
  174. height: 260rpx;
  175. background: #FFFFFF;
  176. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  177. border-radius: 32rpx;
  178. margin-top: 30rpx;
  179. padding: 30rpx 0;
  180. }
  181. .r_sliper{
  182. padding: 0 20rpx;
  183. }
  184. .r_t2{
  185. font-size: 20rpx;
  186. font-family: PingFang SC;
  187. font-weight: 400;
  188. color: #2F4379;
  189. }
  190. .r_image{
  191. width: 278rpx;
  192. height: 134rpx;
  193. }
  194. .r_t1{
  195. font-size: 24rpx;
  196. font-family: PingFang SC;
  197. font-weight: 500;
  198. color: #2F4379;
  199. padding: 20rpx;
  200. }
  201. .record{
  202. width: 100%;
  203. height: 260rpx;
  204. background: #FFFFFF;
  205. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  206. border-radius: 32rpx;
  207. white-space:nowrap;
  208. overflow: hidden;
  209. }
  210. page {
  211. background: #FDFDFD;
  212. }
  213. .head_t2{
  214. font-size: 32rpx;
  215. font-family: MF YiHei (Noncommercial);
  216. font-weight: bold;
  217. color: #2F4379;
  218. }
  219. .head_t1{
  220. font-size: 24rpx;
  221. font-family: PingFang SC;
  222. font-weight: bold;
  223. color: #2F4379;
  224. opacity: 0.6;
  225. }
  226. .qiandao{
  227. float: right;
  228. width: 100rpx;
  229. height: 40rpx;
  230. background: #2F4379;
  231. border-radius: 20rpx 0rpx 0rpx 20rpx;
  232. color: #FFFFFF;
  233. text-align: center;
  234. }
  235. .progress_text{
  236. font-size: 24rpx;
  237. font-family: PingFang SC;
  238. font-weight: 800;
  239. color: #2F4379;
  240. position: relative;
  241. top: 15rpx;
  242. }
  243. .tag{
  244. font-size: 24rpx;
  245. font-family: PingFang SC;
  246. font-weight: bold;
  247. color: #2F4379;
  248. margin-left: 30rpx;
  249. border: 1px solid #2F4379;
  250. border-radius: 20px;
  251. padding: 6rpx;
  252. }
  253. .name{
  254. font-size: 32rpx;
  255. font-family: PingFang SC;
  256. font-weight: 800;
  257. color: #2F4379;
  258. }
  259. .wrap {
  260. padding: 24rpx;
  261. }
  262. .head{
  263. padding-top: 30rpx;
  264. background-color: #FFFFFF;
  265. padding-bottom: 20rpx;
  266. }
  267. .avatar{
  268. width: 140rpx;
  269. height: 140rpx;
  270. }
  271. </style>