酒店桌布为微信小程序
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.

264 lines
5.0 KiB

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