regulation.vue 996 B

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