青蛙卖大米小程序2024-11-24
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.

283 lines
5.5 KiB

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="个人中心" />
  4. <view class="head">
  5. <view class="headImage">
  6. <image src="" mode=""></image>
  7. </view>
  8. <view class="info">
  9. <view class="name">
  10. 倾心.
  11. </view>
  12. <!-- <view class="vip">
  13. VIP1
  14. </view> -->
  15. <view class="tips">
  16. 今天是您来的的第32天
  17. </view>
  18. </view>
  19. <view class="setting">
  20. <uv-icon name="setting" size="40rpx"></uv-icon>
  21. </view>
  22. </view>
  23. <!-- 酒店 -->
  24. <view class="user">
  25. <view class="line">
  26. <view class="item">
  27. <view class="image">
  28. <image src="/static/image/center/1.png" mode=""></image>
  29. </view>
  30. <view class="">
  31. 余额3000
  32. </view>
  33. </view>
  34. <view class="item">
  35. <view class="image">
  36. <image src="/static/image/center/4.png" mode=""></image>
  37. </view>
  38. <view class="">
  39. 押金30000
  40. </view>
  41. </view>
  42. </view>
  43. <view class="line grid">
  44. <view class="title">
  45. 常用功能
  46. </view>
  47. <uv-grid :col="4" :border="false">
  48. <uv-grid-item @click="$utils.navigateTo('/pages_order/mine/address')">
  49. <image class="image" src="/static/image/center/7.png" mode=""></image>
  50. <text class="grid-text">地址管理</text>
  51. </uv-grid-item>
  52. <uv-grid-item @click="$utils.redirectTo('/index/order')">
  53. <image class="image" src="/static/image/center/8.png" mode=""></image>
  54. <text class="grid-text">订单管理</text>
  55. </uv-grid-item>
  56. <uv-grid-item @click="$utils.navigateTo('/pages_order/order/refundsOrExchange?index='+0)">
  57. <image class="image" src="/static/image/center/5.png" mode=""></image>
  58. <text class="grid-text">换货</text>
  59. </uv-grid-item>
  60. <uv-grid-item @click="$utils.navigateTo('/pages_order/order/refundsOrExchange?index='+1)">
  61. <image class="image" src="/static/image/center/7.png" mode=""></image>
  62. <text class="grid-text">退货</text>
  63. </uv-grid-item>
  64. </uv-grid>
  65. </view>
  66. <view class="line grid">
  67. <uv-grid :col="4" :border="false">
  68. <uv-grid-item @click="contactUs">
  69. <image class="image" src="/static/image/center/9.png" mode=""></image>
  70. <text class="grid-text">联系客服</text>
  71. </uv-grid-item>
  72. <uv-grid-item>
  73. <image class="image" src="/static/image/center/6.png" mode=""></image>
  74. <text class="grid-text">我的租赁</text>
  75. </uv-grid-item>
  76. <uv-grid-item @click="$utils.redirectTo('/index/cart')">
  77. <image class="image" src="/static/image/center/7.png" mode=""></image>
  78. <text class="grid-text">租赁车</text>
  79. </uv-grid-item>
  80. <uv-grid-item
  81. @click="$utils.navigateTo('/pages_order/auth/loginAndRegisterAndForgetPassword?index='+2)">
  82. <image class="image" src="/static/image/center/7.png" mode=""></image>
  83. <text class="grid-text">申请成为水洗店</text>
  84. </uv-grid-item>
  85. </uv-grid>
  86. </view>
  87. </view>
  88. <tabber select="center" />
  89. </view>
  90. </template>
  91. <script>
  92. import tabber from '@/components/base/tabbar.vue'
  93. import {
  94. mapGetters
  95. } from 'vuex'
  96. import userShopCommission from '@/components/userShop/userShopCommission.vue'
  97. export default {
  98. components: {
  99. tabber,
  100. userShopCommission,
  101. },
  102. computed: {
  103. },
  104. data() {
  105. return {
  106. }
  107. },
  108. methods: {
  109. }
  110. }
  111. </script>
  112. <style scoped lang="scss">
  113. .page {
  114. .warp {
  115. display: flex;
  116. align-items: center;
  117. justify-content: center;
  118. height: 100%;
  119. }
  120. .rect {
  121. width: 600rpx;
  122. height: 300rpx;
  123. background-color: #fff;
  124. border-radius: 20rpx;
  125. overflow: hidden;
  126. .title {
  127. padding: 10rpx 0 0 15rpx;
  128. background-color: #fd5100;
  129. color: #FFF;
  130. text-align: left;
  131. width: 100%;
  132. height: 18%;
  133. font-size: 36rpx;
  134. }
  135. .center {
  136. height: 40%;
  137. display: flex;
  138. justify-content: center;
  139. align-items: center;
  140. font-size: 36rpx;
  141. }
  142. .bottom {
  143. display: flex;
  144. justify-content: center;
  145. gap: 50rpx;
  146. }
  147. }
  148. }
  149. image {
  150. width: 100%;
  151. height: 100%;
  152. }
  153. .head {
  154. display: flex;
  155. background-color: #fff;
  156. padding: 40rpx 20rpx;
  157. align-items: center;
  158. position: relative;
  159. .headImage {
  160. width: 120rpx;
  161. height: 120rpx;
  162. background-image: url(/static/image/center/3.png);
  163. background-size: 100% 100%;
  164. overflow: hidden;
  165. border-radius: 50%;
  166. margin-right: 40rpx;
  167. }
  168. .info {
  169. font-size: 28rpx;
  170. .vip {
  171. background-color: #FCCC92;
  172. color: #FA6239;
  173. width: 100rpx;
  174. display: flex;
  175. justify-content: center;
  176. align-items: center;
  177. height: 40rpx;
  178. border-radius: 20rpx;
  179. margin-top: 20rpx;
  180. }
  181. .name {
  182. font-size: 32rpx;
  183. }
  184. .tips {
  185. font-size: 26rpx;
  186. color: #ABABAB;
  187. }
  188. }
  189. .headBtn {
  190. margin-left: auto;
  191. padding: 15rpx 20rpx;
  192. background-color: $uni-color;
  193. color: #fff;
  194. border-radius: 20rpx;
  195. margin-top: 50rpx;
  196. }
  197. .setting {
  198. position: absolute;
  199. right: 50rpx;
  200. top: 50rpx;
  201. }
  202. }
  203. .user {
  204. .line {
  205. display: flex;
  206. background-color: #fff;
  207. margin-top: 20rpx;
  208. padding: 20rpx 0;
  209. .item {
  210. flex: 1;
  211. display: flex;
  212. justify-content: center;
  213. align-items: center;
  214. padding: 20rpx 0;
  215. &:nth-child(1) {
  216. border-right: 1px solid #00000013;
  217. }
  218. .image {
  219. width: 100rpx;
  220. height: 70rpx;
  221. margin-right: 20rpx;
  222. }
  223. }
  224. }
  225. .grid {
  226. flex-direction: column;
  227. font-size: 26rpx;
  228. padding: 20rpx;
  229. .title {
  230. margin-bottom: 30rpx;
  231. font-size: 28rpx;
  232. font-weight: 600;
  233. }
  234. .image {
  235. width: 70rpx;
  236. height: 70rpx;
  237. margin-bottom: 10rpx;
  238. }
  239. text {
  240. text-align: center;
  241. width: 120rpx;
  242. }
  243. }
  244. }
  245. </style>