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

230 lines
5.3 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" @click="$url('/pages/business/balance/balance')">
  14. <text class="lf-iconfont icon-daifukuan"></text>
  15. <text>余额</text>
  16. </view>
  17. <view class="head-menu" @click="$msg('敬请期待')">
  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. position: relative;
  147. z-index: 9;
  148. .head-img{
  149. width: 100rpx;
  150. height: 100rpx;
  151. border: 2rpx solid #FFFFFF;
  152. box-sizing: border-box;
  153. margin-right: 20rpx;
  154. border-radius: 50%;
  155. }
  156. .head-title{
  157. font-size: 36rpx;
  158. color: #FFFFFF;
  159. font-weight: bold;
  160. width: 390rpx;
  161. }
  162. .head-menu{
  163. display: flex;
  164. flex-direction: column;
  165. align-items: center;
  166. justify-content: center;
  167. color: #FFFFFF;
  168. &:nth-child(n+2){
  169. margin-left: 30rpx;
  170. }
  171. &>text:nth-child(1){
  172. font-size: 50rpx;
  173. }
  174. &>text:nth-child(2){
  175. font-size: 24rpx;
  176. }
  177. }
  178. }
  179. }
  180. .notice{
  181. width: 686rpx;
  182. height: 100rpx;
  183. background: #FFFFFF;
  184. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  185. border-radius: 20rpx;
  186. margin: -50rpx auto 0;
  187. position: relative;
  188. z-index: 9;
  189. padding: 16rpx 4rpx 0;
  190. box-sizing: border-box;
  191. }
  192. .card{
  193. padding: 30rpx;
  194. width: 686rpx;
  195. height: 287rpx;
  196. background: #FFFFFF;
  197. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  198. border-radius: 20rpx;
  199. margin: 30rpx auto 0;
  200. &:last-child{
  201. margin-bottom: 50rpx;
  202. }
  203. .title{
  204. font-size: 32rpx;
  205. color: #222222;
  206. font-weight: bold;
  207. }
  208. .item{
  209. box-sizing: border-box;
  210. padding: 0 20rpx;
  211. text-align: center;
  212. font-size: 24rpx;
  213. color: #777777;
  214. .num{
  215. font-size: 36rpx;
  216. color: #222222;
  217. font-weight: bold;
  218. // word-break: break-all;
  219. // line-height: 1;
  220. }
  221. }
  222. }
  223. </style>