regulation.vue 970 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view class="">
  3. <u-navbar
  4. :title="title"
  5. :autoBack="true"
  6. :safeAreaInsetTop="true"
  7. >
  8. </u-navbar>
  9. <!-- <view class="title">积分规则</view> -->
  10. <view class="page-wrap">
  11. <u-parse :content="content"></u-parse>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. title:'',
  20. regulationName:'',
  21. content:'',
  22. }
  23. },
  24. onShow() {
  25. },
  26. onLoad(page) {
  27. this.title = page.regulationName;;
  28. this.regulationName = page.regulationName;
  29. // console.log('page',page);
  30. this.getPageData();
  31. },
  32. methods: {
  33. getPageData(){
  34. this.$u.api.memberCreditDesc({type:1,name:this.regulationName}).then(res=>{
  35. this.content = res.data.content
  36. console.log('res',res.data);
  37. }).catch(err=>{
  38. console.log('memberCreditDesc',err);
  39. })
  40. }
  41. }
  42. }
  43. </script>
  44. <style>
  45. page{
  46. background-color: #f5f5f5;
  47. }
  48. </style>
  49. <style lang="scss" scoped>
  50. .title{
  51. text-align: center;
  52. }
  53. </style>