|
|
- <template>
- <view class="page">
- <uv-parse :content="content"></uv-parse>
- </view>
- </template>
-
- <script>
- export default {
- data() {
- return {
- content : '',
- id : 0,
- }
- },
- onLoad({id}) {
- this.id = id
- this.getBrand()
- },
- methods: {
- getBrand(){
- this.$api('getBrand', res => {
- if(res.code == 200){
- res.result.forEach(n => {
- if(this.id == n.id){
- this.content = n.details
- }
- })
- }
- })
- },
- }
- }
- </script>
-
- <style scoped lang="scss">
- .page{
-
- }
- </style>
|