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

240 lines
5.5 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-yue"></text>
  15. <text>余额</text>
  16. </view>
  17. <view class="head-menu" @click="onScanCode">
  18. <text class="lf-iconfont icon-saoyisao"></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-20"></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. onScanCode(){
  111. uni.scanCode({
  112. complete: res => {
  113. console.log(res);
  114. // 二维码内的内容
  115. let result = res.result;
  116. this.$url('/pages/business/payment/money');
  117. }
  118. })
  119. }
  120. }
  121. }
  122. </script>
  123. <style lang="scss" scoped="scoped">
  124. .head{
  125. width: 750rpx;
  126. height: 409rpx;
  127. background: linear-gradient(90deg, #1339B8 0%, #092788 100%);
  128. position: relative;
  129. overflow: hidden;
  130. display: flex;
  131. align-items: flex-end;
  132. box-sizing: border-box;
  133. padding: 60rpx 32rpx 110rpx;
  134. color: #FFFFFF;
  135. .bg-left{
  136. position: absolute;
  137. width: 196rpx;
  138. height: 196rpx;
  139. border-radius: 50%;
  140. background-color: rgba(255,255,255,0.04);
  141. left: -92rpx;
  142. bottom: 60rpx;
  143. }
  144. .bg-right{
  145. position: absolute;
  146. width: 520rpx;
  147. height: 520rpx;
  148. border-radius: 50%;
  149. background-color: rgba(255,255,255,0.04);
  150. right: -168rpx;
  151. top: -142rpx;
  152. }
  153. .head-content{
  154. width: 100%;
  155. display: flex;
  156. justify-content: space-between;
  157. position: relative;
  158. z-index: 9;
  159. .head-img{
  160. width: 100rpx;
  161. height: 100rpx;
  162. border: 2rpx solid #FFFFFF;
  163. box-sizing: border-box;
  164. margin-right: 20rpx;
  165. border-radius: 50%;
  166. }
  167. .head-title{
  168. font-size: 36rpx;
  169. color: #FFFFFF;
  170. font-weight: bold;
  171. width: 390rpx;
  172. }
  173. .head-menu{
  174. display: flex;
  175. flex-direction: column;
  176. align-items: center;
  177. justify-content: center;
  178. color: #FFFFFF;
  179. &:nth-child(n+2){
  180. margin-left: 30rpx;
  181. }
  182. &>text:nth-child(1){
  183. font-size: 50rpx;
  184. }
  185. &>text:nth-child(2){
  186. font-size: 24rpx;
  187. }
  188. }
  189. }
  190. }
  191. .notice{
  192. width: 686rpx;
  193. height: 100rpx;
  194. background: #FFFFFF;
  195. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  196. border-radius: 20rpx;
  197. margin: -50rpx auto 0;
  198. position: relative;
  199. z-index: 9;
  200. padding: 16rpx 4rpx 0;
  201. box-sizing: border-box;
  202. }
  203. .card{
  204. padding: 30rpx;
  205. width: 686rpx;
  206. height: 287rpx;
  207. background: #FFFFFF;
  208. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  209. border-radius: 20rpx;
  210. margin: 30rpx auto 0;
  211. &:last-child{
  212. margin-bottom: 50rpx;
  213. }
  214. .title{
  215. font-size: 32rpx;
  216. color: #222222;
  217. font-weight: bold;
  218. }
  219. .item{
  220. box-sizing: border-box;
  221. padding: 0 20rpx;
  222. text-align: center;
  223. font-size: 24rpx;
  224. color: #777777;
  225. .num{
  226. font-size: 36rpx;
  227. color: #222222;
  228. font-weight: bold;
  229. // word-break: break-all;
  230. // line-height: 1;
  231. }
  232. }
  233. }
  234. </style>