金诚优选前端代码
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.

228 lines
5.2 KiB

  1. <template>
  2. <view>
  3. <lf-nav title="我的" :showIcon="true" :spreadOut="false" bgColor="transparent" titleColor="#fff"></lf-nav>
  4. <view class="head">
  5. <view class="bg-left"></view>
  6. <view class="bg-right"></view>
  7. <view class="head-content">
  8. <view class="lf-flex">
  9. <image class="head-img" mode="aspectFill" src="https://picsum.photos/id/237/200/300"></image>
  10. <view class="head-title lf-line-3">雅诗兰黛专卖店</view>
  11. </view>
  12. <view class="lf-flex">
  13. <view class="head-menu">
  14. <text class="lf-iconfont icon-daifukuan"></text>
  15. <text>余额</text>
  16. </view>
  17. <view class="head-menu">
  18. <text class="lf-iconfont icon-daifukuan"></text>
  19. <text>扫一扫</text>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="notice">
  25. <u-notice-bar mode="vertical" type="none" :list="list"></u-notice-bar>
  26. </view>
  27. <view class="card">
  28. <view class="lf-row-between">
  29. <view class="title">待处理</view>
  30. <view class="lf-color-777" @click="$url('/pages/business/order/list')">
  31. <text class="lf-font-24 lf-m-r-10">订单管理</text>
  32. <text class="lf-iconfont icon-xiangyou lf-font-24"></text>
  33. </view>
  34. </view>
  35. <view class="lf-flex lf-m-t-50">
  36. <view class="item" :style="{width: 100 / 3 +'%'}">
  37. <view class="num">0</view>
  38. <view>待付款</view>
  39. </view>
  40. <view class="item" :style="{width: 100 / 3 +'%'}">
  41. <view class="num">0</view>
  42. <view>待发货</view>
  43. </view>
  44. <view class="item" :style="{width: 100 / 3 +'%'}">
  45. <view class="num">0</view>
  46. <view>待提货</view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="card">
  51. <view class="lf-row-between">
  52. <view class="title">今日数据</view>
  53. </view>
  54. <view class="lf-flex lf-m-t-50">
  55. <view class="item" :style="{width: 100 / 3 +'%'}">
  56. <view class="num">
  57. <text>0</text>
  58. <text class="lf-font-24">()</text>
  59. </view>
  60. <view>支付金额</view>
  61. </view>
  62. <view class="item" :style="{width: 100 / 3 +'%'}">
  63. <view class="num">
  64. <text>0</text>
  65. <text class="lf-font-24">()</text>
  66. </view>
  67. <view>线上订单</view>
  68. </view>
  69. <view class="item" :style="{width: 100 / 3 +'%'}">
  70. <view class="num">
  71. <text>0</text>
  72. <text class="lf-font-24">()</text>
  73. </view>
  74. <view>线下订单</view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="card">
  79. <view class="lf-row-between">
  80. <view class="title">我的商品</view>
  81. </view>
  82. <view class="lf-flex lf-m-t-50">
  83. <view class="item" :style="{width: 100 / 3 +'%'}">
  84. <view class="num">0</view>
  85. <view>销售中</view>
  86. </view>
  87. <view class="item" :style="{width: 100 / 3 +'%'}">
  88. <view class="num">0</view>
  89. <view>待上架</view>
  90. </view>
  91. <view class="item" :style="{width: 100 / 3 +'%'}">
  92. <view class="num">0</view>
  93. <view>已下架</view>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </template>
  99. <script>
  100. export default {
  101. data(){
  102. return {
  103. list: ['我有一只小毛驴,但我从来也不骑', '天苍苍野茫茫']
  104. }
  105. },
  106. onLoad(){
  107. },
  108. methods: {
  109. }
  110. }
  111. </script>
  112. <style lang="scss" scoped="scoped">
  113. .head{
  114. width: 750rpx;
  115. height: 409rpx;
  116. background: linear-gradient(90deg, #1339B8 0%, #092788 100%);
  117. position: relative;
  118. overflow: hidden;
  119. display: flex;
  120. align-items: flex-end;
  121. box-sizing: border-box;
  122. padding: 60rpx 32rpx 110rpx;
  123. color: #FFFFFF;
  124. .bg-left{
  125. position: absolute;
  126. width: 196rpx;
  127. height: 196rpx;
  128. border-radius: 50%;
  129. background-color: rgba(255,255,255,0.04);
  130. left: -92rpx;
  131. bottom: 60rpx;
  132. }
  133. .bg-right{
  134. position: absolute;
  135. width: 520rpx;
  136. height: 520rpx;
  137. border-radius: 50%;
  138. background-color: rgba(255,255,255,0.04);
  139. right: -168rpx;
  140. top: -142rpx;
  141. }
  142. .head-content{
  143. width: 100%;
  144. display: flex;
  145. justify-content: space-between;
  146. .head-img{
  147. width: 100rpx;
  148. height: 100rpx;
  149. border: 2rpx solid #FFFFFF;
  150. box-sizing: border-box;
  151. margin-right: 20rpx;
  152. border-radius: 50%;
  153. }
  154. .head-title{
  155. font-size: 36rpx;
  156. color: #FFFFFF;
  157. font-weight: bold;
  158. width: 390rpx;
  159. }
  160. .head-menu{
  161. display: flex;
  162. flex-direction: column;
  163. align-items: center;
  164. justify-content: center;
  165. color: #FFFFFF;
  166. &:nth-child(n+2){
  167. margin-left: 30rpx;
  168. }
  169. &>text:nth-child(1){
  170. font-size: 50rpx;
  171. }
  172. &>text:nth-child(2){
  173. font-size: 24rpx;
  174. }
  175. }
  176. }
  177. }
  178. .notice{
  179. width: 686rpx;
  180. height: 100rpx;
  181. background: #FFFFFF;
  182. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  183. border-radius: 20rpx;
  184. margin: -50rpx auto 0;
  185. position: relative;
  186. z-index: 9;
  187. padding: 16rpx 4rpx 0;
  188. box-sizing: border-box;
  189. }
  190. .card{
  191. padding: 30rpx;
  192. width: 686rpx;
  193. height: 287rpx;
  194. background: #FFFFFF;
  195. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  196. border-radius: 20rpx;
  197. margin: 30rpx auto 0;
  198. &:last-child{
  199. margin-bottom: 50rpx;
  200. }
  201. .title{
  202. font-size: 32rpx;
  203. color: #222222;
  204. font-weight: bold;
  205. }
  206. .item{
  207. box-sizing: border-box;
  208. padding: 0 20rpx;
  209. text-align: center;
  210. font-size: 24rpx;
  211. color: #777777;
  212. .num{
  213. font-size: 36rpx;
  214. color: #222222;
  215. font-weight: bold;
  216. // word-break: break-all;
  217. // line-height: 1;
  218. }
  219. }
  220. }
  221. </style>