56 lines
865 B
Vue
Executable File
56 lines
865 B
Vue
Executable File
<template>
|
|
<view class="help">
|
|
<block v-for="(item,index) in itemList" :key="index">
|
|
<view class="content" slot="body">
|
|
<u-parse :html="item.content"></u-parse>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { pageArticle } from '@/api/article.js'
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
// 列表数据
|
|
itemList: [{
|
|
head: "关于我们",
|
|
body: "",
|
|
open: true,
|
|
disabled: true
|
|
}],
|
|
}
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad(options) {
|
|
const app = this
|
|
pageArticle({
|
|
categoryId: 51
|
|
}).then(res => {
|
|
app.itemList = res.data.list
|
|
})
|
|
},
|
|
|
|
methods: {
|
|
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.help {
|
|
border-bottom: 1rpx solid #f6f6f9;
|
|
width: 750rpx;
|
|
margin: 0rpx auto;
|
|
.content{
|
|
padding: 20rpx 40rpx;
|
|
}
|
|
}
|
|
</style>
|