12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <template>
- <view class="">
- <u-navbar
- :title="title"
- :placeholder="true"
- :autoBack="true"
- :safeAreaInsetTop="true"
- >
- </u-navbar>
- <!-- <view class="title">积分规则</view> -->
- <view class="page-wrap">
- <u-parse :content="content"></u-parse>
- </view>
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- title:'',
- regulationName:'',
- content:'',
- }
- },
- onShow() {
-
- },
- onLoad(page) {
- this.title = page.regulationName;;
- this.regulationName = page.regulationName;
- // console.log('page',page);
- this.getPageData();
- },
- methods: {
- getPageData(){
- this.$u.api.getRegistinfoByName({type:1,name:this.regulationName}).then(res=>{
- this.content = res.data.content
- console.log('res',res.data);
- }).catch(err=>{
- console.log('memberCreditDesc',err);
- })
- }
- }
- }
- </script>
- <style>
- page{
- background-color: #f5f5f5;
- }
- </style>
- <style lang="scss" scoped>
- .title{
- text-align: center;
- }
- </style>
|