index.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <template>
  2. <view class="management">
  3. <u-navbar placeholder :safeAreaInsetTop="true" bgColor="#363C4F">
  4. <view class="u-nav-left" slot="left" style="height:100%;display: flex;
  5. align-items: center;">
  6. 管理
  7. </view>
  8. <view class="u-nav-center" slot="center">
  9. </view>
  10. </u-navbar>
  11. <view class="manageStyle">
  12. <view class="dis_flex userBox">
  13. <img src="@/static/logo.png" alt="">
  14. <view class="userInfo">
  15. <h3>欧阳娜娜</h3>
  16. <p>深圳乔恩心理咨询有限公司</p>
  17. </view>
  18. <view class="exit">
  19. <img src="@/static/images/icon_exit@2x.png" alt="">
  20. <text>退出</text>
  21. </view>
  22. </view>
  23. <view class="bg"></view>
  24. </view>
  25. <view class="card_box">
  26. <view class="c1">
  27. <view class="title_style">
  28. <h3>蜜雪冰城(天河店)</h3>
  29. <img src="@/static/images/chevron-down@2x.png" alt="">
  30. </view>
  31. <view class="all_price_box dis_flex">
  32. <view class="left">
  33. <h2>5233.09</h2>
  34. <p>会员消费总金额(元)</p>
  35. </view>
  36. <view class="right">
  37. <text>2023/05/12</text>
  38. <img src="@/static/images/icon_zk@2x.png" alt="">
  39. </view>
  40. </view>
  41. <view class="fg"></view>
  42. <view class="bottom_tab dis_flex">
  43. <view class="li" v-for="(item,index) in 4" :key="index">
  44. <h3>2313</h3>
  45. <text>回头客</text>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="c1">
  50. <view class="title_style">
  51. <h3>管理工具</h3>
  52. </view>
  53. <u-grid :border="false" col="4">
  54. <u-grid-item class="grid_item" v-for="(item,index) in tab_list" :key="index"
  55. @click="active_li(item,index)">
  56. <img style="width:56rpx;height:56rpx;" :src="item.icon" alt="">
  57. <text class="grid-text">{{item.label}}</text>
  58. </u-grid-item>
  59. </u-grid>
  60. </view>
  61. </view>
  62. </view>
  63. </template>
  64. <script>
  65. export default {
  66. data() {
  67. return {
  68. tab_list: [{
  69. label: "店铺管理",
  70. icon: require("@/static/images/icon_dpgl@2x.png"),
  71. path: "/pagesA/shop/index"
  72. }, {
  73. label: "会员管理",
  74. icon: require("@/static/images/icon_hygl@2x.png"),
  75. path: "/pagesA/member/index"
  76. }, {
  77. label: "核销管理",
  78. icon: require("@/static/images/icon_hxgl@2x.png"),
  79. path: "/pagesA/destroy/index"
  80. }, {
  81. label: "冲账管理",
  82. icon: require("@/static/images/icon_czgl@2x.png"),
  83. path: "/pagesA/strikeBalance/index"
  84. }, {
  85. label: "店员管理",
  86. icon: require("@/static/images/icon_dygl@2x.png"),
  87. path: "/pagesA/clerk/index"
  88. }, {
  89. label: "商品分类",
  90. icon: require("@/static/images/icon_spfl@2x.png"),
  91. path: "/pagesA/commodity/index"
  92. }, {
  93. label: "商品管理",
  94. icon: require("@/static/images/icon_spgl@2x.png"),
  95. path: "/pagesA/goodsInfo/index"
  96. }, {
  97. label: "系统设置",
  98. icon: require("@/static/images/icon_xtsz@2x.png")
  99. }, ]
  100. }
  101. },
  102. onLoad() {},
  103. onReady() {},
  104. methods: {
  105. active_li(item, index) {
  106. uni.navigateTo({
  107. url: item.path
  108. })
  109. console.log(item, index)
  110. }
  111. }
  112. }
  113. </script>
  114. <style lang="scss" scoped>
  115. .card_box {
  116. padding: 0rpx 32rpx;
  117. margin-top: -244rpx;
  118. &>.c1 {
  119. border-radius: 24rpx;
  120. background-color: #fff;
  121. padding: 32rpx;
  122. margin-bottom: 34rpx;
  123. &>.title_style {
  124. display: flex;
  125. align-items: center;
  126. margin-bottom: 40rpx;
  127. &>h3 {
  128. color: #222222;
  129. font-weight: bold;
  130. font-size: 28rpx;
  131. }
  132. &>img {
  133. width: 24rpx;
  134. height: 24rpx;
  135. margin-left: 6rpx;
  136. }
  137. }
  138. &>.all_price_box {
  139. &>.left {
  140. &>h2 {
  141. font-size: 60rpx;
  142. font-weight: 500;
  143. color: #F9722E;
  144. margin-bottom: 14rpx;
  145. }
  146. &>p {
  147. font-size: 24rpx;
  148. font-family: OPPOSans-Regular, OPPOSans;
  149. font-weight: 400;
  150. color: #909398;
  151. }
  152. }
  153. &>.right {
  154. background: #F7F7F7;
  155. border-radius: 104rpx;
  156. padding: 18rpx 24rpx;
  157. display: flex;
  158. align-items: center;
  159. &>text {
  160. font-size: 26rpx;
  161. font-weight: 400;
  162. color: #4A4A4B;
  163. }
  164. &>img {
  165. width: 24rpx;
  166. height: 24rpx;
  167. margin-left: 8rpx;
  168. }
  169. }
  170. }
  171. &>.fg {
  172. margin: 40rpx 0rpx;
  173. height: 1rpx;
  174. background-color: #e1e1e1;
  175. }
  176. &>.bottom_tab {
  177. margin-bottom: 16rpx;
  178. padding: 0rpx 30rpx;
  179. &>.li {
  180. text-align: center;
  181. &>h3 {
  182. font-size: 40rpx;
  183. font-weight: 500;
  184. color: #4A4A4B;
  185. margin-bottom: 8rpx;
  186. }
  187. &>text {
  188. font-size: 24rpx;
  189. font-weight: 400;
  190. color: #909398;
  191. }
  192. }
  193. }
  194. }
  195. }
  196. .u-nav-left,
  197. .u-nav-center {
  198. color: #fff;
  199. }
  200. .management {
  201. background-color: #F5F6FA;
  202. height: 100vh;
  203. }
  204. .manageStyle {
  205. &>.bg {
  206. height: 218rpx;
  207. background: linear-gradient(180deg, #363C4F 0%, rgba(54, 60, 79, 0) 100%);
  208. }
  209. }
  210. .userBox {
  211. background-color: #363C4F;
  212. padding: 32rpx;
  213. padding-bottom: 94rpx;
  214. &>img {
  215. width: 104rpx;
  216. height: 104rpx;
  217. border-radius: 50%;
  218. overflow: hidden;
  219. }
  220. &>.userInfo {
  221. flex: 1;
  222. margin: 0rpx 24rpx;
  223. &>h3 {
  224. font-size: 30rpx;
  225. font-weight: bold;
  226. color: #FFFFFF;
  227. margin-bottom: 8rpx;
  228. }
  229. &>p {
  230. font-size: 26rpx;
  231. font-weight: 500;
  232. color: rgba(255, 255, 255, .8);
  233. }
  234. }
  235. &>.exit {
  236. display: flex;
  237. align-items: center;
  238. border-radius: 80rpx;
  239. background-color: #4b5260;
  240. color: rgba(255, 255, 255, .7);
  241. padding: 16rpx 20rpx;
  242. font-size: 26rpx;
  243. &>img {
  244. width: 32rpx;
  245. height: 32rpx;
  246. margin-right: 8rpx;
  247. }
  248. }
  249. }
  250. ::v-deep .u-grid-item {
  251. margin-bottom: 56rpx;
  252. }
  253. .grid-text {
  254. margin-top: 28rpx;
  255. font-size: 24rpx;
  256. font-weight: 400;
  257. color: rgba(74, 74, 75, .8);
  258. }
  259. </style>