第一次提交
This commit is contained in:
55
pages/help/xieyi.vue
Executable file
55
pages/help/xieyi.vue
Executable file
@@ -0,0 +1,55 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user