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.
99 lines
1.5 KiB
99 lines
1.5 KiB
<template>
|
|
<view class="container">
|
|
<view class="introduce-section">
|
|
<text class="title">{{ info.params }}</text>
|
|
|
|
<view class="bot-row">
|
|
<text>{{ info.code }}</text>
|
|
<text>{{ info.cdate}}</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="c-list">
|
|
<text >{{ info.content }}</text>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import Api from '@/common/api';
|
|
import {
|
|
formatDate
|
|
} from '@/common/date';
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
info: {
|
|
|
|
}
|
|
};
|
|
},
|
|
|
|
async onLoad() {
|
|
|
|
// 别问我啥意思。这是官方文档提供的
|
|
this.page = this.getOpenerEventChannel();
|
|
// 你可以在这里直接接受,这里不是$on
|
|
this.page.on('sendTestValue', (data) => {
|
|
// 这是data 就是上个页面传递的对象了
|
|
console.log("消息", data)
|
|
this.info = data.info
|
|
})
|
|
|
|
|
|
},
|
|
filters: {
|
|
formatCreateTime(time) {
|
|
let date = new Date(time);
|
|
return formatDate(date, 'MM-dd')
|
|
},
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
page {
|
|
background: $page-color-base;
|
|
}
|
|
|
|
/* 标题简介 */
|
|
.introduce-section {
|
|
background: #fff;
|
|
padding: 20upx 30upx;
|
|
|
|
.title {
|
|
font-size: 32upx;
|
|
color: $font-color-dark;
|
|
height: 50upx;
|
|
line-height: 50upx;
|
|
}
|
|
|
|
.bot-row {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 50upx;
|
|
font-size: $font-sm;
|
|
color: $font-color-light;
|
|
|
|
text {
|
|
flex: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.c-list {
|
|
display: flex;
|
|
margin-top: 10px;
|
|
height: 850px;
|
|
font-size: 28px;
|
|
padding: 20upx 30upx;
|
|
background-color: #fff;
|
|
|
|
}
|
|
</style>
|
|
|