uni-events-helper-wx
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.
 
 
 
 

86 lines
1.5 KiB

<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>
</view>
</template>
<script>
import {msgGet} from "../../nxTemp/apis/userAPI.js"
export default {
data() {
return {
txt:"",
login:true,
opts:"",
data:""
};
},
onLoad(opts) {
this.setOnloadOpts(opts)
this.updatePage()
},
onUnload() {
},
methods: {
//更新页面列表
updatePage() {
msgGet(this.opts).then(res => {
this.data = res
}).catch(e=>{
this.$tools.showNone(e.errMsg)
})
},
setOnloadOpts(opts){
console.log("onLoad:",opts);
this.opts = opts
},
jumpPage(){
this.$Router.push({name:"login"})
},
}
}
</script>
<style lang="less" scoped>
page{
background-color: white;
}
.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 ;
}
}
</style>