cardDetail.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view>
  3. <view class="card-box clearfix">
  4. <image class="card-bottom" src="/static/images/card_bottom.png" mode="widthFix"></image>
  5. <view class="hearder">
  6. <image src="../../static/images/userimg.png"></image>
  7. </view>
  8. <view class="user-name">杜平</view>
  9. <view class="user-tag ddflex">
  10. <view class="user-tag-item" v-for="item in 2">高级组经理</view>
  11. </view>
  12. <view class="pf">
  13. <view class="pf-title">综合评分</view>
  14. <uni-rate style="justify-content: center;" class="ddflex" color="#999999" active-color="#FF4600" :readonly="true" size="18" allow-half :value="4" />
  15. </view>
  16. <view class="user-data ddflex">
  17. <view>
  18. <view class="user-data-num">1678</view>
  19. <view class="user-data-label ddflex">
  20. <image src="/static/pages/images/fw_hui.png"></image>
  21. <view>服务客户</view>
  22. </view>
  23. </view>
  24. <view style="margin-left: 109rpx;">
  25. <view class="user-data-num">1678</view>
  26. <view class="user-data-label ddflex">
  27. <image src="/static/pages/images/cy_hui.png"></image>
  28. <view>保单件数</view>
  29. </view>
  30. </view>
  31. <view style="margin-left: 109rpx;">
  32. <view class="user-data-num">1678</view>
  33. <view class="user-data-label ddflex">
  34. <image src="/static/pages/images/dz_hui.png"></image>
  35. <view>点赞量</view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="user-des">
  40. 本人拥有丰富的保险知识及行业经验,可为您和您的家庭提供专业合理的保障规划,让保险成为您生活的P士,免去您的后顾之忧,守护您的幸福人生。
  41. </view>
  42. <image class="user-code" src="/static/images/lj_img.png"></image>
  43. <view class="user-btn">
  44. 选TA做专属顾问
  45. </view>
  46. <view class="user-btn-text" @click="jumpUrl('/card/cardFound/cardFound')">
  47. 更多专属顾问>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. const app = getApp();
  54. const req = require("../../utils/request.js");
  55. export default {
  56. components: {},
  57. props: {},
  58. data() {
  59. return {
  60. systems: {},
  61. isTop:0,
  62. }
  63. },
  64. onLoad(options) {
  65. },
  66. onShow() {
  67. },
  68. methods: {
  69. jumpUrl(url){
  70. uni.navigateTo({
  71. url:url
  72. })
  73. }
  74. },
  75. mounted() {
  76. const systemInfo = uni.getSystemInfoSync();
  77. // px转换到rpx的比例
  78. let pxToRpxScale = 750 / systemInfo.windowWidth;
  79. let systems = {
  80. ktxStatusHeight: systemInfo.statusBarHeight * pxToRpxScale, // 状态栏的高度
  81. navigationHeight: 44 * pxToRpxScale // 导航栏的高度
  82. };
  83. systems.barHeight = systems.ktxStatusHeight + systems.navigationHeight;
  84. this.systems = systems;
  85. },
  86. onPageScroll: function(e) {
  87. if (e.scrollTop > this.systems.barHeight) {
  88. this.isTop = 1;
  89. } else {
  90. this.isTop = 0;
  91. }
  92. }
  93. }
  94. </script>
  95. <style>
  96. @import "./cardDetail.css";
  97. </style>