myCenter.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view class="myCenter" :style="{backgroundImage: 'url('+imageURL+')'}">
  3. <view class="set_class" @click="goSetting">
  4. <u-icon name="setting"size="25"></u-icon>
  5. </view>
  6. <view class="urowClass">
  7. <u-row>
  8. <u-col span="1" >
  9. </u-col>
  10. <u-col span="2" >
  11. <u-image src="/static/login/1.jpg" shape="circle" width="140rpx" height="140rpx"></u-image>
  12. </u-col>
  13. <u-col span="7">
  14. <view class="nameClass">王小二</view>
  15. </u-col>
  16. </u-row>
  17. </view>
  18. <view class="gridClass">
  19. <u-grid :border="false" col="4" >
  20. <u-grid-item v-for="(listItem,listIndex) in list" :key="listIndex">
  21. <text>{{listItem.name}}</text>
  22. <text class="bottomText">{{listItem.title}}</text>
  23. </u-grid-item>
  24. </u-grid>
  25. </view>
  26. <view class="menuClass">
  27. <view class="title_class">
  28. <u-row>
  29. <u-col span="9">我的订单</u-col>
  30. <u-col span="3"><view style="text-align: center;">全部订单 ></view></u-col>
  31. </u-row>
  32. </view>
  33. <u-grid :border="false" col="5" >
  34. <u-grid-item >
  35. <view class="badgeClass"><u-badge bgColor="#D62D4A" value="2" class="badgeClass"></u-badge></view>
  36. <image class="imgClass" src="@/static/myCenter/1.jpg" />
  37. <text>代付款</text>
  38. </u-grid-item>
  39. <u-grid-item>
  40. <view class="badgeClass"><u-badge bgColor="#D62D4A" value="2" class="badgeClass"></u-badge></view>
  41. <image class="imgClass" src="@/static/myCenter/2.jpg" />
  42. <text >待发货</text>
  43. </u-grid-item>
  44. <u-grid-item >
  45. <view class="badgeClass"><u-badge bgColor="#D62D4A" value="2" class="badgeClass"></u-badge></view>
  46. <image class="imgClass" src="@/static/myCenter/3.jpg"/>
  47. <text >待收货</text>
  48. </u-grid-item>
  49. <u-grid-item >
  50. <view class="badgeClass"><u-badge bgColor="#D62D4A" value="2" class="badgeClass"></u-badge></view>
  51. <image class="imgClass" src="@/static/myCenter/4.jpg"/>
  52. <text >待评价</text>
  53. </u-grid-item>
  54. <u-grid-item>
  55. <view class="badgeClass"><u-badge bgColor="#D62D4A" value="2" ></u-badge></view>
  56. <image class="imgClass" src="@/static/myCenter/5.jpg"/>
  57. <text >售后</text>
  58. </u-grid-item>
  59. </u-grid>
  60. </view>
  61. <view class="myPurse">
  62. <u-row>
  63. <u-col span="1" >
  64. <u-image class="img_class" width="30px" height="30px" src="/static/myCenter/pingan.png"></u-image>
  65. </u-col>
  66. <u-col span="8" >
  67. <text>爱养牛钱包</text>
  68. </u-col>
  69. <u-col span="3">
  70. <text >查看余额 ></text>
  71. </u-col>
  72. </u-row>
  73. </view>
  74. <view class="bott">
  75. <view class="title">必备工具</view>
  76. <view class="tool_class">
  77. <u-grid :border="false" col="4" >
  78. <u-grid-item style="margin-top:15rpx" v-for="(tool,index) in toolList" :key="index">
  79. <u-image class="img_class" width="40px" height="40px" :src="tool.src"></u-image>
  80. <text class="grid-text">{{tool.name}}</text>
  81. </u-grid-item>
  82. </u-grid>
  83. </view>
  84. </view>
  85. </view>
  86. </template>
  87. <script>
  88. export default {
  89. data() {
  90. return {
  91. list: [{
  92. name: '2',
  93. title: '积分'
  94. },
  95. {
  96. name: '0',
  97. title: '优惠券'
  98. },
  99. {
  100. name: '2',
  101. title: '购物车'
  102. },
  103. {
  104. name: '24',
  105. title: '收藏夹'
  106. },
  107. ],
  108. imageURL:'/static/login/bg5.jpg',
  109. toolList:[{
  110. src: '/static/myCenter/pingtuan.png',
  111. name: '物料预定'
  112. },
  113. {
  114. src: '/static/myCenter/caigoujuece.png',
  115. name: '奶款担保'
  116. },
  117. {
  118. src: '/static/myCenter/daikou.png',
  119. name: '我的代扣'
  120. },
  121. {
  122. src: '/static/myCenter/jifen.png',
  123. name: '我的积分'
  124. },
  125. {
  126. src: '/static/myCenter/milkPrice.png',
  127. name: '物料预定'
  128. },
  129. {
  130. src: '/static/myCenter/piliang.png',
  131. name: '物料预定'
  132. },
  133. {
  134. src: '/static/myCenter/companyManager.png',
  135. name: '物料预定'
  136. },
  137. ],
  138. };
  139. },
  140. methods:{
  141. goSetting(){
  142. uni.navigateTo({ url: '/pages/myCenter/setting'})
  143. }
  144. }
  145. }
  146. </script>
  147. <style lang="scss">
  148. @import 'myCenter.scss';
  149. </style>