member-record.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 class="no-data main-center cross-center" v-else>
  19. <text>暂无数据</text>
  20. </view>
  21. </view>
  22. </app-layout>
  23. </template>
  24. <script>
  25. import appLayout from "@/components/app-layout"
  26. export default {
  27. components:{
  28. appLayout,
  29. },
  30. data() {
  31. return {
  32. userData: this.vuex_user_data,
  33. record: null
  34. }
  35. },
  36. methods: {
  37. getMemberRecord(){
  38. this.$u.api.memberRecord().then(res => {
  39. this.record = res
  40. })
  41. }
  42. },
  43. onLoad(){
  44. this.userData = this.vuex_user_data
  45. this.getMemberRecord();
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. .cell-box{
  51. padding: 30rpx 0;
  52. .head-img{}
  53. .info{
  54. flex: 1;
  55. padding: 0 30rpx;
  56. .title{
  57. color: #333333;
  58. font-size: 32rpx;
  59. font-weight: 600;
  60. }
  61. .sub-title{
  62. color: #cccccc;
  63. font-size: 24rpx;
  64. line-height: 60rpx;
  65. }
  66. }
  67. .price{
  68. width: 100rpx;
  69. color: $main-color;
  70. font-weight: 600;
  71. font-size: 36rpx;
  72. }
  73. }
  74. </style>