member-record.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <app-layout>
  3. <view class="container">
  4. <view class="cell-box main-left" v-if="record">
  5. <view class="head-img">
  6. <u-image
  7. width="140"
  8. height="140"
  9. :src="userData.head_img"
  10. shape="circle"></u-image>
  11. </view>
  12. <view class="info dir-top-wrap main-center">
  13. <view class="title">充值桥架会员</view>
  14. <view class="sub-title">充值时间:{{record.buy_time}}</view>
  15. </view>
  16. <view class="price main-center cross-center">¥{{record.order_fee}}</view>
  17. </view>
  18. </view>
  19. </app-layout>
  20. </template>
  21. <script>
  22. import appLayout from "@/components/app-layout"
  23. export default {
  24. components:{
  25. appLayout,
  26. },
  27. data() {
  28. return {
  29. userData: this.vuex_user_data,
  30. record: null
  31. }
  32. },
  33. methods: {
  34. getMemberRecord(){
  35. this.$u.api.memberRecord().then(res => {
  36. this.record = res
  37. })
  38. }
  39. },
  40. onLoad(){
  41. this.userData = this.vuex_user_data
  42. this.getMemberRecord();
  43. }
  44. }
  45. </script>
  46. <style lang="scss" scoped>
  47. .cell-box{
  48. padding: 30rpx 0;
  49. .head-img{}
  50. .info{
  51. flex: 1;
  52. padding: 0 30rpx;
  53. .title{
  54. color: #333333;
  55. font-size: 32rpx;
  56. font-weight: 600;
  57. }
  58. .sub-title{
  59. color: #cccccc;
  60. font-size: 24rpx;
  61. line-height: 60rpx;
  62. }
  63. }
  64. .price{
  65. width: 100rpx;
  66. color: $main-color;
  67. font-weight: 600;
  68. font-size: 36rpx;
  69. }
  70. }
  71. </style>