my.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view class="intro-page common">
  3. <view class="top-class"></view>
  4. <view class="title">个人中心</view>
  5. <view class="head">
  6. <u-row class="row-class" justify="flex-end">
  7. <u-col span="4">
  8. <image class="logo-rules"
  9. src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/qilang/common/rules.png"
  10. @click="openDetail" />
  11. </u-col>
  12. </u-row>
  13. </view>
  14. <view class="content">
  15. <view class="">
  16. <u-row customStyle="margin-bottom: 10px">
  17. <u-col span="4">
  18. <image class="tubiao"
  19. src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/qilang/common/logo.png"
  20. mode="aspectFit" />
  21. </u-col>
  22. <u-col span="8">
  23. <view class="jf_phone">
  24. {{userPhone}}
  25. </view>
  26. </u-col>
  27. </u-row>
  28. </view>
  29. <view class="content_title">
  30. 我的服务
  31. </view>
  32. <view class="content_text">
  33. <u-row style="height: 200rpx;">
  34. <u-col span="4" textAlign="center" @click="jumpScanLog">
  35. <image class="tubiao" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/qilang/scan.png" mode="aspectFit" />
  36. <view class="text-class">
  37. 扫码记录
  38. </view>
  39. </u-col>
  40. </u-row>
  41. </view>
  42. <view class="return_view">
  43. <view class="return-button" @click="goBack()">返回</view>
  44. </view>
  45. </view>
  46. <!-- <CustomTabbar />-->
  47. </view>
  48. </template>
  49. <script>
  50. import CustomTabbar from '@/components/tabbar_common.vue';
  51. import {
  52. getMiniCustomerUserInfo
  53. } from '@/api/scan';
  54. export default {
  55. components: {
  56. CustomTabbar
  57. },
  58. data() {
  59. return {
  60. userPhone: '',
  61. point: 0
  62. }
  63. },
  64. onLoad() {
  65. this.initUserData();
  66. },
  67. methods: {
  68. initUserData() {
  69. let that = this;
  70. getMiniCustomerUserInfo().then(res => {
  71. if (res.code == 0) {
  72. that.userPhone = res.data.phone;
  73. that.point = res.data.point;
  74. console.log(that.point);
  75. }
  76. })
  77. },
  78. goBack() {
  79. uni.navigateBack();
  80. },
  81. jumpScanLog() {
  82. uni.navigateTo({
  83. url: '/pages/qilang/record/record'
  84. });
  85. },
  86. }
  87. }
  88. </script>
  89. <style lang="scss" scoped>
  90. @import url('../../../static/scss/common_qilang.css');
  91. .row-class {
  92. height: 80rpx;
  93. }
  94. .content_text {
  95. height: calc(100% - 300rpx);
  96. }
  97. .content_title {
  98. font-weight: 700;
  99. font-size: 38rpx;
  100. color: #333333;
  101. margin-bottom: 10rpx;
  102. margin-left: 30rpx;
  103. }
  104. .content {
  105. height: 64vh;
  106. border-radius: 10rpx;
  107. margin: 16vh 40rpx 0vh 40rpx;
  108. padding: 10rpx 24rpx;
  109. overflow: auto;
  110. align-items: center;
  111. justify-content: center;
  112. border-radius: 48px;
  113. background: #FDE2B1;
  114. border: 6px solid #FB911b;
  115. }
  116. .tubiao {
  117. background-size: cover;
  118. /* 确保背景图片自适应填充整个容器 */
  119. background-position: center;
  120. /* 背景图片居中显示 */
  121. background-repeat: no-repeat;
  122. /* 防止背景图重复 */
  123. height: 120rpx;
  124. width: 100%;
  125. }
  126. .text-class {
  127. font-weight: 600;
  128. font-size: 16px;
  129. color: #333333;
  130. }
  131. .jf_phone {
  132. font-weight: bold;
  133. font-size: 30rpx;
  134. color: #000000;
  135. margin-bottom: 10rpx;
  136. }
  137. </style>