index.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="page" :style="{'height':windowHeight}">
  3. <scroll-view scroll-y :style="{'height':windowHeight}">
  4. <view class="row-list flex-row justify-start" v-for="(item,index) in equityList" :key="index">
  5. <view class="h-text flex-col justify-center ">
  6. <view class="money">
  7. <text>¥{{item.faceValue}}</text>
  8. </view>
  9. <!-- <view class="desc">-->
  10. <!-- <text>{{item.title}}</text>-->
  11. <!-- </view>-->
  12. </view>
  13. <view class="h-center-content flex-col justify-around">
  14. <view class="h-value">
  15. <text>{{item.description}}</text>
  16. </view>
  17. <view class="title">
  18. 使用项目:{{item.serviceProjectName || ''}}
  19. </view>
  20. <view class="title">
  21. 绑定对象:{{item.serviceObjectName}}
  22. </view>
  23. <view class="title">
  24. 结束期限:{{item.effectiveEndTime.substring(0,10)}}
  25. </view>
  26. </view>
  27. <!-- <view class="h-right-content flex-col justify-center ">-->
  28. <!-- <view class="btn" @click="payRights(item)">-->
  29. <!-- <text>购买</text>-->
  30. <!-- </view>-->
  31. <!-- </view>-->
  32. </view>
  33. </scroll-view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. windowHeight:'',
  41. userInfo:{},
  42. equityList:[],
  43. };
  44. },
  45. onLoad(option) {
  46. let sysInfo = uni.getSystemInfoSync()
  47. this.windowHeight =sysInfo.windowHeight - 44 +'px'//除标题栏栏外的屏幕可用高度
  48. this.userInfo = uni.getStorageSync('userInfo')
  49. this.myEquityCardList()
  50. },
  51. methods: {
  52. myEquityCardList(){
  53. this.$api.myEquityCardList().then(res=>{
  54. console.log(res)
  55. this.equityList = res.data.data
  56. })
  57. },
  58. },
  59. };
  60. </script>
  61. <style lang="scss" scoped>
  62. @import '/common/css/common.css';
  63. @import './index.rpx.scss';
  64. </style>