建材商城系统20241014
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.

132 lines
2.1 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="commission">
  3. <image src="/static/image/center/10.png" mode=""></image>
  4. <view class="price">
  5. <view class="title">
  6. 总积分
  7. </view>
  8. <view class="num">
  9. {{ userInfo.money }}
  10. </view>
  11. </view>
  12. <view class="font-menu"
  13. v-if="purse">
  14. <view @click="toRunningWater(index)"
  15. v-for="(item, index) in list"
  16. :key="index">{{ item.name }}</view>
  17. </view>
  18. <view class="btn"
  19. v-if="!purse"
  20. @click="toPurse">
  21. 提现
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. name: "userShopCommission",
  28. props : {
  29. purse : {
  30. default : false,
  31. },
  32. },
  33. data() {
  34. return {
  35. list : [
  36. {
  37. name : '余额记录',
  38. },
  39. {
  40. name : '提现记录',
  41. },
  42. {
  43. name : '积分记录',
  44. },
  45. ],
  46. };
  47. },
  48. onLoad() {
  49. this.$store.commit('getUserInfo');
  50. },
  51. methods : {
  52. // 跳转到钱包提现
  53. toPurse(){
  54. uni.navigateTo({
  55. url:'/pages_order/mine/purse'
  56. })
  57. },
  58. // 跳转到记录页面
  59. toRunningWater(index){
  60. uni.navigateTo({
  61. url:'/pages_order/mine/runningWater?status=' + index
  62. })
  63. },
  64. }
  65. }
  66. </script>
  67. <style scoped lang="scss">
  68. .commission {
  69. width: 700rpx;
  70. height: 300rpx;
  71. position: relative;
  72. margin: 20rpx auto;
  73. color: #fff;
  74. image {
  75. width: 700rpx;
  76. height: 300rpx;
  77. position: absolute;
  78. border-radius: 20rpx;
  79. }
  80. .price {
  81. position: absolute;
  82. left: 50rpx;
  83. top: 80rpx;
  84. font-weight: 900;
  85. .title {
  86. font-size: 32rpx;
  87. }
  88. .num {
  89. font-size: 44rpx;
  90. margin-top: 20rpx;
  91. }
  92. }
  93. .font-menu {
  94. font-size: 24rpx;
  95. font-family: PingFang SC, PingFang SC-Regular;
  96. font-weight: 500;
  97. text-align: center;
  98. color: #ffffff;
  99. line-height: 24rpx;
  100. width: 710rpx;
  101. position: absolute;
  102. left: 0;
  103. bottom: 25rpx;
  104. display: flex;
  105. view{
  106. width: 160rpx;
  107. }
  108. }
  109. .btn {
  110. position: absolute;
  111. right: 50rpx;
  112. bottom: 50rpx;
  113. background-color: #FDC440;
  114. width: 160rpx;
  115. height: 60rpx;
  116. display: flex;
  117. justify-content: center;
  118. align-items: center;
  119. border-radius: 30rpx;
  120. }
  121. }
  122. </style>