56 lines
777 B
Vue
56 lines
777 B
Vue
<template>
|
|
<view>
|
|
<web-view :src="articleItem.oa_url"></web-view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
let self;
|
|
import {
|
|
getUser,
|
|
setUser
|
|
} from '@/com/storage/auth.js';
|
|
export default {
|
|
data() {
|
|
return {
|
|
articleItem: {
|
|
id: '',
|
|
title: '',
|
|
cover: '',
|
|
note: '',
|
|
created_at: '',
|
|
oa_url: '',
|
|
},
|
|
search: {
|
|
id: ''
|
|
}
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
self = this;
|
|
if (option && option.id) {
|
|
self.search.id = option.id;
|
|
}
|
|
},
|
|
onShow() {
|
|
self.getArticleItem();
|
|
},
|
|
methods: {
|
|
getArticleItem() {
|
|
self.$http.get('/shop/v10/article/item', self.search).then(({
|
|
data,
|
|
success
|
|
}) => {
|
|
if (success) {
|
|
self.articleItem = data;
|
|
|
|
}
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style> |