123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <template>
- <view>
- <view id="box">
- <uv-parse :content="content" v-if="isShow"></uv-parse>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- content:"",
- isShow:false
- }
- },
- onLoad(options) {
- this.get_article();
- },
- methods: {
- get_article(){
- this
- .request
- .post("getContent",{cate_id : 3})
- .then(res=>{
- console.log(res);
- if(res.code == 200) {
- this.content = res.data.content;
- this.isShow = true;
- }
- })
- .catch(err=>{
- this.utils.Tip("网络错误,请稍后尝试");
- });
- }
- }
- }
- </script>
- <style>
- #box {
- z-index: -1;
- padding: 0px 10px 0 10px;
- }
- </style>
|