Commit b2d898b7 authored by zhengzy's avatar zhengzy

消息通知栏

parent 9d504117
;
(function() {
let NODE_ENV = 'prod'; // dev:开发环境 | test:测试环境 | prod:生产环境
(function () {
let NODE_ENV = 'test'; // dev:开发环境 | test:测试环境 | prod:生产环境
let ENV_VAR = null;
let VERSION_NUMBER = '1.3.1';//版本号
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
let VERSION_NUMBER = '1.3.1';//版本号
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
if (process.env.NODE_ENV === "development") {
if (NODE_ENV === 'dev') {
ENV_VAR = require('./.env.dev.js');
......@@ -22,8 +22,8 @@
}
if (ENV_VAR) {
process.uniEnv = {};
process.uniEnv['node_env'] = NODE_ENV;
process.uniEnv['version_number'] = VERSION_NUMBER;
process.uniEnv['node_env'] = NODE_ENV;
process.uniEnv['version_number'] = VERSION_NUMBER;
for (let key in ENV_VAR) {
process.uniEnv[key] = ENV_VAR[key];
}
......
This diff is collapsed.
<template>
<template>
<view>
<u-navbar
back-icon-color="#000000"
:background="background"
title-color="#000000"
:border-bottom="false">
</u-navbar>
<view class="title">
{{ title }}
<u-navbar back-icon-color="#000000" :background="background" title-color="#000000" :border-bottom="false">
</u-navbar>
<view class="title">
{{ title }}
</view>
<view class="creat_at">
{{create_at}}
</view>
<view class="u-content">
<u-parse :html="body" :tag-style="style"></u-parse>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: '',
body: ''
}
},
onLoad() {
getApp().trackPage('消息通知详情页')
var that = this;
const eventChannel = this.getOpenerEventChannel()
eventChannel.on('acceptDataFromLearn', function(data) {
that.title = data.title;
that.body = data.body;
})
this.$u.mpShare.path = ''
},
}
</script>
<style>
.title{
font-size: 32rpx;
font-weight: bold;
margin-left: 30rpx;
margin-top: 30rpx;
}
.u-content{
font-size: 24rpx;
line-height: 36rpx;
color: #666666;
margin-left: 30rpx;
margin-top: 30rpx;
margin-right: 30rpx;
}
</style>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: "",
body: "",
create_at: "",
};
},
onLoad() {
getApp().trackPage("消息通知详情页");
var that = this;
const eventChannel = this.getOpenerEventChannel();
eventChannel.on("acceptDataFromLearn", function (data) {
that.title = data.title;
that.body = data.body;
that.create_at = data.create_at;
console.log(data);
});
this.$u.mpShare.path = "";
},
};
</script>
<style>
.title {
font-size: 32rpx;
font-weight: bold;
margin-left: 30rpx;
margin-top: 30rpx;
}
.u-content {
font-size: 24rpx;
line-height: 36rpx;
color: #666666;
margin-left: 30rpx;
margin-right: 30rpx;
}
.creat_at {
font-size: 24rpx;
color: #999999;
margin-left: 30rpx;
margin-top: 20rpx;
}
rich-text {
margin-top: 40rpx;
display: block;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment