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.
 
 
 

72 lines
2.0 KiB

<template>
<view class="page flex-col" style="height: auto;">
<view class="group_1 flex-col" style="height: auto;">
<view class="group_3 flex-col" style="height: auto;">
<text class="text_2"
style="width:90%;text-align: center;overflow: hidden;margin:20rpx 5%;height: 50rpx;">{{article.title}}</text>
<view class="block_1 flex-row justify-between" style="margin: 0 50rpx;">
<view class="image-text_1 flex-row justify-between">
<image class="icon_2" referrerpolicy="no-referrer"
style="width: 30rpx;height: 20rpx;margin-top: 10rpx;"
src="/static/lanhu_zhuantixiangqing/b599c2b65658adeeeb6e27c545e23224.png" />
<text class="text-group_1">{{article.views}}</text>
</view>
<view class="image-text_2 flex-row justify-between">
<image class="icon_3" referrerpolicy="no-referrer"
style="width: 20rpx;height: 20rpx;margin-top: 10rpx;"
src="/static/lanhu_zhuantixiangqing/15e93ca77de4585c472a621d2f8ae706.png" />
<text class="text-group_2">{{article.ctime}}</text>
</view>
</view>
<!-- <image class="block_2 flex-col" :src="article.image"></image> -->
</view>
<view class="margin-bj content" style="padding-top: 0;">
<rich-text :nodes="article.content"></rich-text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
id: '',
constants: {},
article: ''
};
},
onLoad(id) {
this.id = id.id
this.getData()
uni.setNavigationBarColor({
backgroundColor: '#802931', // 背景颜色
frontColor: '#ffffff' // 前景颜色(包括标题、返回图标等)
})
},
methods: {
getData() {
this.$api.get({
url: '/wanlshop/data/getArticleDetail',
data: {
id: this.id
},
success: res => {
this.article = res
uni.setNavigationBarTitle({
title: res.title
})
}
})
},
}
};
</script>
<style lang='css'>
@import '../common/common.css';
@import './assets/style/index.rpx.css';
</style>