mineMoney.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <view class="mine-money" id="mine-money" :style="{'height':isTeam?'110px':'66px'}">
  3. <view class="top" v-if="isTeam">
  4. <view class="content">
  5. <image class="money-icon" src='../../../static/mine/308.png' mode=""></image>
  6. <text>我的保证金</text>
  7. </view>
  8. <view class="content">200.00 <text class="right-icon"></text> </view>
  9. </view>
  10. <view class="bottom">
  11. <view class="basis" @click="jumpBalance">
  12. <view class="num">0.00</view>
  13. <view class="characters">余额</view>
  14. </view>
  15. <view class="basis">
  16. <view class="num">225</view>
  17. <view class="characters">我的关注</view>
  18. </view>
  19. <view class="basis">
  20. <view class="num">13</view>
  21. <view class="characters">我的包裹</view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. props:{
  29. isTeam:{
  30. type:Boolean,
  31. default:false
  32. }
  33. },
  34. data(){
  35. return{
  36. }
  37. },
  38. methods:{
  39. jumpBalance(){
  40. uni.navigateTo({
  41. url:'/pageC/accountBalance/accountBalance'
  42. })
  43. }
  44. },
  45. created() {
  46. }
  47. }
  48. </script>
  49. <style lang="scss">
  50. .mine-money{
  51. height: 110px;
  52. width: 100%;
  53. background-color: #3B3D55;
  54. margin-top: 15px;
  55. border-radius: 10px;
  56. .top{
  57. display: flex;
  58. justify-content: space-between;
  59. align-items: center;
  60. color: #fff;
  61. font-size: 14px;
  62. height: 44px;
  63. .content{
  64. display: flex;
  65. align-items: center;
  66. margin: 0 10px;
  67. }
  68. .money-icon{
  69. width: 18px;
  70. height: 18px;
  71. margin-right: 6px;
  72. }
  73. .right-icon{
  74. display: inline-block;
  75. width: 20px;
  76. height: 20px;
  77. background-image: url('../../../static/mine/309.png');
  78. background-size: 100% 100%;
  79. background-repeat: no-repeat;
  80. }
  81. }
  82. .bottom{
  83. display: flex;
  84. justify-content: space-around;
  85. background-color: #fff;
  86. border-radius: 10px;
  87. height: 66px;
  88. align-items: center;
  89. .num{
  90. font-size: 18px;
  91. color: #333;
  92. text-align: center;
  93. font-weight: 600;
  94. }
  95. .characters{
  96. font-size: 13px;
  97. color: #333;
  98. text-align: center;
  99. }
  100. }
  101. }
  102. </style>