index.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <div id="agent_index_container">
  3. <div class="header">
  4. <!-- 用户信息模块-->
  5. <van-row>
  6. <div class="userinfo padding-tb-sm">
  7. <van-col span="3" offset="2">
  8. <view class="cu-avatar lg"
  9. :style="'background-image:url('+userinfo.avatar+');'"></view>
  10. </van-col>
  11. <van-col span="6" offset="1">
  12. <view class="label">
  13. <view class="text-bold">
  14. <text class="text-white text-lg">{{ userinfo.nickname }}</text>
  15. </view>
  16. <view class="padding-tb-sm">
  17. <text class="text-white text-sm">{{ userinfo.agent_name }}</text>
  18. </view>
  19. </view>
  20. </van-col>
  21. </div>
  22. </van-row>
  23. <!-- 收益模块-->
  24. <div class="profit_container text-center">
  25. <view>
  26. <text class="text-normal padding">累计收益(元)</text>
  27. </view>
  28. <view>
  29. <text class="text-white text-bold text-sl text-price">{{ userinfo.profit }}</text>
  30. </view>
  31. <view>
  32. <text class="text-normal ">含待结算
  33. <text class="text-price">{{ userinfo.unsettle_account }}</text>
  34. </text>
  35. </view>
  36. </div>
  37. <!-- 订单、客户、邀请卡粗图-->
  38. <div class="profit_detail_contaienr text-center padding-top-lg">
  39. <van-row gutter="40">
  40. <van-col span="6" offset="3" @click="to_extend_order">
  41. <view>
  42. <text class="text-xxl text-white">{{ userinfo.orders_count }}</text>
  43. </view>
  44. <view>
  45. <text class="text-normal text-sm">累计订单</text>
  46. </view>
  47. </van-col>
  48. <van-col span="6" @click="to_customer">
  49. <view>
  50. <text class="text-xxl text-white">{{ userinfo.customer_count }}</text>
  51. </view>
  52. <view>
  53. <text class="text-normal text-sm">累计客户</text>
  54. </view>
  55. </van-col>
  56. <van-col span="6" @click="to_agent_invite_card">
  57. <view>
  58. <text class="text-xxl text-white">{{ userinfo.invite_card_count }}</text>
  59. </view>
  60. <view>
  61. <text class="text-normal text-sm">邀请卡库存</text>
  62. </view>
  63. </van-col>
  64. </van-row>
  65. </div>
  66. </div>
  67. <!-- 提现金额-->
  68. <div class="withdraw_container flex justify-between align-center padding-lr" @click="to_agent_cal_center">
  69. <text class="text-white">可提现金额(元)</text>
  70. <text class="text-white withdraw_money">{{ userinfo.withdraw_money }}.00</text>
  71. </div>
  72. <!-- 菜单列表-->
  73. <div class="menu">
  74. <van-cell title="今日收益(元)" value="0.98" is-link url="/pages/agent/income_cal/main">
  75. <van-icon name="balance-o" slot="icon" color="#4B3AB0" class="margin-lr-sm" size="20px"></van-icon>
  76. </van-cell>
  77. <van-cell title="今日订单" value="1" is-link>
  78. <van-icon name="notes-o" slot="icon" color="#4B3AB0" class="margin-lr-sm" size="20px"></van-icon>
  79. </van-cell>
  80. <van-cell title="今日新增客户" value="0.5" is-link>
  81. <van-icon name="contact" slot="icon" color="#4B3AB0" class="margin-lr-sm" size="20px"></van-icon>
  82. </van-cell>
  83. </div>
  84. </div>
  85. </template>
  86. <script>
  87. export default {
  88. name: "agent_index_container",
  89. filter: {},
  90. components: {},
  91. data() {
  92. return {
  93. userinfo: {
  94. //头像
  95. avatar: "https://img.shuimuai.com/weixintouxiang.png",
  96. //昵称
  97. nickname: "小疯兔屁屁",
  98. //代理商名称
  99. agent_name: "区域代理商",
  100. //累计收益
  101. profit: 16824.50,
  102. //含待结算
  103. unsettle_account: 65.00,
  104. // 累计订单数量
  105. orders_count: 720,
  106. // 累计客户数量
  107. customer_count: 6,
  108. // 邀请卡库存
  109. invite_card_count: 2,
  110. // 提现金额
  111. withdraw_money: 328215.00
  112. },
  113. }
  114. },
  115. methods: {
  116. // 跳转推广订单
  117. to_extend_order() {
  118. mpvue.navigateTo({
  119. url: "/pages/agent/extend/orders/main"
  120. })
  121. },
  122. // 跳转推广客户
  123. to_customer() {
  124. mpvue.navigateTo({
  125. url: "/pages/agent/customer/main"
  126. })
  127. },
  128. // 跳转代理商结算中心
  129. to_agent_cal_center() {
  130. mpvue.navigateTo({
  131. url: "/pages/agent/settlement_center/index/main"
  132. })
  133. },
  134. // 邀请卡库存
  135. to_agent_invite_card() {
  136. mpvue.navigateTo({
  137. url: "/pages/agent/invite_card_inventory/main"
  138. })
  139. }
  140. },
  141. mounted() {
  142. }
  143. }
  144. </script>
  145. <style scoped>
  146. @import "index.css";
  147. </style>