my.vue 6.0 KB

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