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.
|
|
<template> <view class="content flex_col flex_start bg-white"> <!-- title --> <view class="title_item flex_col flex_start_y bg-white padding " > <view class="title flex_row flex_start"> <view class="text-m text-left">{{data.msg_title}}</view> <view class="bandage"></view> </view> <view class="time">{{data.updated_at}}</view> </view> <!-- <rich-text class="txt" :nodes="data.msg_content"></rich-text> --> <u-parse class="txt" :content="data.msg_content" space @navigate="navigate"></u-parse> </view> </template> <script> import {msgGet} from "../../nxTemp/apis/userAPI.js" import uParse from "@/components/feng-parse/parse.vue" export default { components:{ uParse }, data() { return { txt:"", login:true, opts:"", data:"" }; }, onLoad(opts) { this.setOnloadOpts(opts) this.updatePage() }, onUnload() { }, methods: { //更新页面列表
updatePage() { msgGet(this.opts).then(res => { // res.msg_content = res.msg_content.replace(/ /g, '\xa0');
this.data = res }).catch(e=>{ this.$tools.showNone(e.errMsg) }) }, setOnloadOpts(opts){ console.log("onLoad:",opts); this.opts = opts }, navigate(e){ console.log(e) }, jumpPage(){ this.$Router.push({name:"login"}) }, } } </script>
<style lang="less" > page{ background-color: white; background: #FFFFFF; } .content{ .title_item{ color: #333333; position: relative; margin-top: 24rpx; border-radius: 10rpx; width: 100%; margin-bottom: 60rpx; // height: 124rpx;
.title{ margin-bottom: 16rpx; font-weight: 700; font-size: 40rpx; color: #1A1A1A } .time{ font-size: 24rpx; color: #B2B2B2; }
} .txt{ width: 662rpx; padding-bottom:10rpx ; font-size: 32rpx; color: #1A1A1A; font-weight: 400; text-indent: 64rpx; line-height: 60rpx; p{ text-indent: 1rem; } } } </style>
|