You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
590 B
38 lines
590 B
<template>
|
|
<view>
|
|
<view class="center">{{content}}</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import API from '@/common/js/api.js'
|
|
export default {
|
|
data() {
|
|
return {
|
|
content:''
|
|
}
|
|
},
|
|
onLoad(option) { //option为object类型,会序列化上个页面传递的参数
|
|
if(option.id){
|
|
let data = {
|
|
id:option.id
|
|
}
|
|
API.getErrorInfo(data, res => {
|
|
this.content = res.data.content
|
|
// console.log(res);
|
|
})
|
|
}
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.center{
|
|
text-align: center;
|
|
margin-top: 100rpx;
|
|
padding: 0px 100rpx;
|
|
}
|
|
</style>
|
|
|