景徳镇旅游微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

183 lines
3.8 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="个人中心" />
  4. <view class="head">
  5. <view class="headImage">
  6. <image :src="userInfo.headImage" mode="aspectFill"></image>
  7. </view>
  8. <view class="info">
  9. <view class="name">
  10. {{ userInfo.nickName || '微信用户'}}
  11. </view>
  12. <view class="tips"
  13. v-if="userInfo.createTime">
  14. 加入时间{{ $dayjs(userInfo.createTime).format('YYYY-MM-DD') }}
  15. </view>
  16. </view>
  17. <view class="setting">
  18. <!-- <uv-icon name="setting" size="40rpx"></uv-icon> -->
  19. </view>
  20. </view>
  21. <view class="line">
  22. <uv-cell-group>
  23. <!-- 我的收藏 -->
  24. <uv-cell icon="setting-fill" title="我的收藏"
  25. @click="$utils.navigateTo('/pages_order/mine/collect')"
  26. isLink>
  27. <template #icon>
  28. <image src="/static/image/center/1.png"
  29. class="uv-cell-icon"></image>
  30. </template>
  31. </uv-cell>
  32. <!-- 我的预约 -->
  33. <uv-cell icon="setting-fill" title="我的预约"
  34. @click="$utils.navigateTo('/pages_order/mine/subscribe')"
  35. isLink>
  36. <template #icon>
  37. <image src="/static/image/center/2.png"
  38. class="uv-cell-icon"></image>
  39. </template>
  40. </uv-cell>
  41. <!-- 我的订单 -->
  42. <uv-cell icon="setting-fill" title="我的订单"
  43. @click="$utils.navigateTo('/pages_order/order/order')"
  44. isLink>
  45. <template #icon>
  46. <image src="/static/image/center/3.png"
  47. class="uv-cell-icon"></image>
  48. </template>
  49. </uv-cell>
  50. <!-- 我的地址 -->
  51. <uv-cell icon="setting-fill" title="我的地址"
  52. @click="$utils.navigateTo('/pages_order/mine/address')"
  53. isLink>
  54. <template #icon>
  55. <image src="/static/image/center/1.png"
  56. class="uv-cell-icon"></image>
  57. </template>
  58. </uv-cell>
  59. <!-- 购物车 -->
  60. <uv-cell icon="setting-fill" title="我的购物车"
  61. @click="$utils.navigateTo('/pages_order/mine/cart')"
  62. isLink>
  63. <template #icon>
  64. <image src="/static/image/center/1.png"
  65. class="uv-cell-icon"></image>
  66. </template>
  67. </uv-cell>
  68. <!-- 加入志愿者 -->
  69. <uv-cell icon="setting-fill" title="加入志愿者"
  70. isLink @click="$utils.navigateTo('/pages_order/mine/volunteer')">
  71. <template #icon>
  72. <image src="/static/image/center/4.png"
  73. class="uv-cell-icon"></image>
  74. </template>
  75. </uv-cell>
  76. <!-- 退出登录 -->
  77. <uv-cell icon="setting-fill" title="退出登录"
  78. isLink @click="$store.commit('logout')">
  79. <template #icon>
  80. <image src="/static/image/center/4.png"
  81. class="uv-cell-icon"></image>
  82. </template>
  83. </uv-cell>
  84. </uv-cell-group>
  85. </view>
  86. <tabber select="2" />
  87. </view>
  88. </template>
  89. <script>
  90. import { mapState } from 'vuex'
  91. export default {
  92. computed: {
  93. ...mapState(['userInfo']),
  94. },
  95. data() {
  96. return {
  97. show: false,
  98. }
  99. },
  100. onShow() {
  101. this.$store.commit('getUserInfo')
  102. },
  103. methods: {
  104. }
  105. }
  106. </script>
  107. <style scoped lang="scss">
  108. .page {
  109. .line{
  110. margin: 30rpx;
  111. background-color: #fff;
  112. border-radius: 30rpx;
  113. overflow: hidden;
  114. box-shadow: 0 0 10rpx 10rpx #00000007;
  115. .uv-cell-icon{
  116. width: 60rpx;
  117. height: 60rpx;
  118. margin-right: 20rpx;
  119. }
  120. /deep/ .uv-cell__body{
  121. padding: 40rpx 30rpx;
  122. }
  123. }
  124. }
  125. image {
  126. width: 100%;
  127. height: 100%;
  128. }
  129. .head {
  130. display: flex;
  131. background-color: $uni-color;
  132. padding: 60rpx 40rpx;
  133. align-items: center;
  134. position: relative;
  135. color: #fff;
  136. .headImage {
  137. width: 120rpx;
  138. height: 120rpx;
  139. background-image: url(/static/image/center/3.png);
  140. background-size: 100% 100%;
  141. overflow: hidden;
  142. border-radius: 50%;
  143. margin-right: 40rpx;
  144. }
  145. .info {
  146. font-size: 28rpx;
  147. .name {
  148. font-size: 32rpx;
  149. margin-bottom: 10rpx;
  150. }
  151. .tips {
  152. font-size: 26rpx;
  153. }
  154. }
  155. .setting {
  156. position: absolute;
  157. right: 50rpx;
  158. top: 50rpx;
  159. }
  160. }
  161. </style>