index.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="page">
  3. <view class="flex-row justify-between top">
  4. <view class="flex-col justify-start item">
  5. <view class="flex-row justify-center">
  6. <image class="image" src="/static/order/ud16.png"></image>
  7. </view>
  8. <view class="title">
  9. <text>奖励金额</text>
  10. </view>
  11. <view class="title1">
  12. <text>{{earningsAmount}}</text>
  13. </view>
  14. </view>
  15. <view class="flex-col justify-start item1">
  16. <view class="flex-row justify-center">
  17. <image class="image" src="/static/order/ud15.png"></image>
  18. </view>
  19. <view class="title">
  20. <text>注册人数</text>
  21. </view>
  22. <view class="title1">
  23. <text>{{registerNum}}</text>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="btn" @click="goStatisticalPanel">
  28. <text>去提现</text>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. components: {
  35. },
  36. data() {
  37. return {
  38. earningsAmount:'',
  39. registerNum:''
  40. };
  41. },
  42. onLoad() {
  43. },
  44. onShow(){
  45. this.$api.spreadCount().then(res=>{
  46. if (res.data.code==200){
  47. this.earningsAmount=res.data.data.earningsAmount
  48. this.registerNum=res.data.data.registerNum
  49. }else {
  50. uni.showToast({
  51. title: "获取失败"
  52. })
  53. }
  54. })
  55. },
  56. methods: {
  57. goStatisticalPanel(){
  58. // uni.navigateTo({
  59. // url:'/myPages/statisticalPanel/index'
  60. // })
  61. uni.showToast({
  62. title: '亲爱的娇宝贝,惊喜将在30天后开启,敬请期待哟!爱你哟',
  63. //将值设置为 success 或者直接不用写icon这个参数
  64. icon: 'none',
  65. //显示持续时间为 2秒
  66. duration: 3000
  67. })
  68. }
  69. }
  70. }
  71. </script>
  72. <style scoped lang="scss">
  73. @import '../../common/css/common.css';
  74. @import './index.rpx.scss';
  75. </style>