integral.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <v-header title="积分返现" scroll backgroundColor="#F6F6F6">
  3. <view class="integral-container flex">
  4. <view class="integral-header flex relative">
  5. <view class="integral-header-item row">
  6. <view class="flex-all-1 flex jCenter">
  7. <view class="integral-header-title">我的收益</view>
  8. <view class="integral-header-price">{{user.profit || '0.00'}}</view>
  9. </view>
  10. <view @click.stop="routerWith" class="integral-hash row center">
  11. <image src="/static/images/hash.png" class="integral-hash-icon"></image>
  12. <view class="flex-all-1">提现</view>
  13. <text class="iconfont iconfont-more integral-hash-more"></text>
  14. </view>
  15. </view>
  16. <view class="flex-all-1 integral-content jCenter">
  17. 我的邀请人数:{{user.inviteCount || 0}}
  18. </view>
  19. <image src="/static/images/decorate.png" class="absolute integral-decorate"></image>
  20. </view>
  21. <view class="integral-introduce">
  22. <view class="integral-introduce-title">说明:</view>
  23. <view class="introduce-introduce-content">
  24. <view>1.邀请好友一起使用沣胜食品商城,您会获得--奖励</view>
  25. <view>2.使用您的推广码人数越多,您获得的奖励越多</view>
  26. <view>3.一个用户只能绑定一次推广码</view>
  27. </view>
  28. </view>
  29. <view class="flex-all-1"></view>
  30. <view class="center">
  31. <view @click="openPoster" class="integral-button center">分享给好友</view>
  32. </view>
  33. </view>
  34. <poster ref="poster" :authorize="authorize" @openSetting="openSetting"></poster>
  35. </v-header>
  36. </template>
  37. <script>
  38. import vHeader from '@/components/v-header/main.vue';
  39. import poster from '@/components/poster/poster';
  40. import authorize from '@/mixins/authorize';
  41. import user from '@/mixins/user';
  42. export default {
  43. name: "integral",
  44. mixins:[authorize,user],
  45. components:{
  46. vHeader,
  47. poster
  48. },
  49. methods:{
  50. routerWith(){
  51. return this.$router.navigateTo({
  52. name:'withdrawal'
  53. });
  54. }
  55. },
  56. created(){
  57. this.$store.dispatch('updateUserInfoPromise',true);
  58. }
  59. }
  60. </script>
  61. <style scoped lang="scss" src="./style.scss">
  62. </style>