酒店桌布为微信小程序
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.

135 lines
2.1 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 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.wallet.shopBalance }}
  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. import {
  27. mapState,
  28. } from 'vuex'
  29. export default {
  30. name: "userShopCommission",
  31. props : {
  32. purse : {
  33. default : false,
  34. },
  35. },
  36. computed: {
  37. ...mapState(['userInfo']),
  38. },
  39. data() {
  40. return {
  41. list : [
  42. {
  43. name : '余额记录',
  44. },
  45. {
  46. name : '提现记录',
  47. },
  48. {
  49. name : '佣金记录',
  50. },
  51. ],
  52. };
  53. },
  54. methods : {
  55. // 跳转到钱包提现
  56. toPurse(){
  57. uni.navigateTo({
  58. url:'/pages_order/mine/purse'
  59. })
  60. },
  61. // 跳转到记录页面
  62. toRunningWater(index){
  63. uni.navigateTo({
  64. url:'/pages_order/mine/runningWater?status=' + index
  65. })
  66. },
  67. }
  68. }
  69. </script>
  70. <style scoped lang="scss">
  71. .commission {
  72. width: 700rpx;
  73. height: 300rpx;
  74. position: relative;
  75. margin: 20rpx auto;
  76. color: #fff;
  77. image {
  78. width: 700rpx;
  79. height: 300rpx;
  80. position: absolute;
  81. border-radius: 20rpx;
  82. }
  83. .price {
  84. position: absolute;
  85. left: 50rpx;
  86. top: 80rpx;
  87. font-weight: 900;
  88. .title {
  89. font-size: 32rpx;
  90. }
  91. .num {
  92. font-size: 44rpx;
  93. margin-top: 20rpx;
  94. }
  95. }
  96. .font-menu {
  97. font-size: 24rpx;
  98. font-family: PingFang SC, PingFang SC-Regular;
  99. font-weight: 500;
  100. text-align: center;
  101. color: #ffffff;
  102. line-height: 24rpx;
  103. width: 710rpx;
  104. position: absolute;
  105. left: 0;
  106. bottom: 25rpx;
  107. display: flex;
  108. view{
  109. width: 160rpx;
  110. }
  111. }
  112. .btn {
  113. position: absolute;
  114. right: 50rpx;
  115. bottom: 50rpx;
  116. background-color: #FDC440;
  117. width: 160rpx;
  118. height: 60rpx;
  119. display: flex;
  120. justify-content: center;
  121. align-items: center;
  122. border-radius: 30rpx;
  123. }
  124. }
  125. </style>