my.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <template>
  2. <view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='我的' bgColor="transparent" :showback="false"></cus-header>
  4. <image class="topbg" :src="imgBase+'my_topbg.png'" mode="widthFix"></image>
  5. <div class="box">
  6. <div class="top adfacjb">
  7. <div class="top-left adfac">
  8. <div class="top-left-img">
  9. <image :src="userInfo.avatar"></image>
  10. </div>
  11. <div class="top-left-info">
  12. <div class="top-left-info-name">{{userInfo.name||'未登录'}}</div>
  13. <div class="top-left-info-tip">点击立即登录</div>
  14. </div>
  15. </div>
  16. <div class="top-right">
  17. <image :src="imgBase+'my_set.png'"></image>
  18. </div>
  19. </div>
  20. <div class="num adf">
  21. <div class="num-pre adffcac">
  22. <div class="num-pre-sz">{{0}}</div>
  23. <div class="num-pre-text">基础版次数</div>
  24. </div>
  25. <div class="num-pre adffcac">
  26. <div class="num-pre-sz">{{0}}</div>
  27. <div class="num-pre-text">专业版次数</div>
  28. </div>
  29. <div class="num-pre adffcac">
  30. <div class="num-pre-sz">{{0}}</div>
  31. <div class="num-pre-text">我的团队</div>
  32. </div>
  33. </div>
  34. <div class="preill adfacjb">
  35. <div class="preill-left">{{'尚未激活问卷,无法开始PREILL评估'}}</div>
  36. <div class="preill-right">{{'立即激活'}}</div>
  37. </div>
  38. <div class="menu">
  39. <div class="menu-item adfacjb" v-for="(item,index) in menuList" :key="index" @click="handleTurn(item.path)">
  40. <div class="menu-item-left adfac">
  41. <image :src="item.img"></image>
  42. <text>{{item.title}}</text>
  43. </div>
  44. <image class="menu-item-right" :src="imgBase+'my_arrow_right.png'"></image>
  45. </div>
  46. </div>
  47. </div>
  48. <Tabbar :tabbarIndex="2"></Tabbar>
  49. </view>
  50. </template>
  51. <script>
  52. import Tabbar from '@/components/CusTabbar/index.vue'
  53. export default {
  54. components:{ Tabbar },
  55. data(){
  56. return {
  57. userInfo:{
  58. avatar:this.$imgBase+'my_avatar.png',
  59. name:''
  60. },
  61. menuList:[
  62. {
  63. img:this.$imgBase+'my_order.png',
  64. title:'我的订单',
  65. path:''
  66. },
  67. {
  68. img:this.$imgBase+'my_record.png',
  69. title:'推荐记录',
  70. path:''
  71. },
  72. {
  73. img:this.$imgBase+'my_program.png',
  74. title:'我的项目',
  75. path:''
  76. },
  77. {
  78. img:this.$imgBase+'my_teamusers.png',
  79. title:'团队成员',
  80. path:''
  81. },
  82. {
  83. img:this.$imgBase+'my_friends.png',
  84. title:'邀请好友',
  85. path:''
  86. }
  87. ]
  88. }
  89. },
  90. onLoad() {
  91. },
  92. methods:{
  93. handleTurn(url){
  94. if(!url) return
  95. }
  96. }
  97. }
  98. </script>
  99. <style scoped lang="scss">
  100. .tabPage{
  101. .topbg{
  102. width: 100%;
  103. position: absolute;
  104. left: 0;
  105. top: 0;
  106. }
  107. .box{
  108. position: relative;
  109. padding-top: 40rpx;
  110. .top{
  111. padding: 0 22rpx 0 16rpx;
  112. &-left{
  113. &-img{
  114. image{
  115. width: 128rpx;
  116. height: 128rpx;
  117. }
  118. }
  119. &-info{
  120. margin-left: 20rpx;
  121. &-name{
  122. font-family: PingFang-SC, PingFang-SC;
  123. font-weight: bold;
  124. font-size: 40rpx;
  125. color: #002846;
  126. line-height: 40rpx;
  127. }
  128. &-tip{
  129. font-family: PingFangSC, PingFang SC;
  130. font-weight: 400;
  131. font-size: 26rpx;
  132. color: #86909C;
  133. line-height: 26rpx;
  134. margin-top: 31rpx;
  135. }
  136. }
  137. }
  138. &-right{
  139. image{
  140. width: 42rpx;
  141. height: 42rpx;
  142. }
  143. }
  144. }
  145. .num{
  146. margin-top: 48rpx;
  147. &-pre{
  148. width: calc(100% / 3);
  149. &-sz{
  150. font-family: D-DINCondensed, D-DINCondensed;
  151. font-weight: bold;
  152. font-size: 48rpx;
  153. color: #002846;
  154. line-height: 48rpx;
  155. }
  156. &-text{
  157. font-family: PingFangSC, PingFang SC;
  158. font-weight: 400;
  159. font-size: 26rpx;
  160. color: #86909C;
  161. line-height: 26rpx;
  162. text-align: center;
  163. margin-top: 24rpx;
  164. }
  165. }
  166. }
  167. .preill{
  168. margin-top: 49rpx;
  169. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/my_pinggu_bg.png') no-repeat;
  170. background-size: 100% 100%;
  171. padding: 34rpx 24rpx;
  172. &-left{
  173. font-family: PingFangSC, PingFang SC;
  174. font-weight: 400;
  175. font-size: 24rpx;
  176. color: #B0B7C7;
  177. line-height: 24rpx;
  178. padding-top: 42rpx;
  179. }
  180. &-right{
  181. padding: 18rpx 26rpx;
  182. background: linear-gradient( 270deg, #F0E2C7 0%, #E3CD9E 100%);
  183. border-radius: 32rpx;
  184. font-family: PingFangSC, PingFang SC;
  185. font-weight: 400;
  186. font-size: 26rpx;
  187. color: #795021;
  188. line-height: 26rpx;
  189. }
  190. }
  191. .menu{
  192. margin-top: 30rpx;
  193. background: #FFFFFF;
  194. border-radius: 16rpx;
  195. &-item{
  196. padding: 35rpx 30rpx;
  197. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
  198. &-left{
  199. image{
  200. width: 40rpx;
  201. height: 40rpx;
  202. }
  203. text{
  204. font-family: PingFangSC, PingFang SC;
  205. font-weight: 400;
  206. font-size: 30rpx;
  207. color: #002846;
  208. line-height: 32rpx;
  209. margin-left: 21rpx;
  210. }
  211. }
  212. &-right{
  213. width: 36rpx;
  214. height: 36rpx;
  215. }
  216. }
  217. }
  218. }
  219. }
  220. </style>