Commit 5244262e authored by Damon's avatar Damon

Merge branch 'dev' of https://git.banshouhui.com/lijundan/self-support into dev

parents 22b14cee 2ff3594f
; ;
(function() { (function () {
let NODE_ENV = 'test'; // dev:开发环境 | test:测试环境 | prod:生产环境 let NODE_ENV = 'test'; // dev:开发环境 | test:测试环境 | prod:生产环境
let ENV_VAR = null; let ENV_VAR = null;
let VERSION_NUMBER = '1.3.1';//版本号 let VERSION_NUMBER = '1.3.1';//版本号
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频 //小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
if (NODE_ENV === 'dev') { if (NODE_ENV === 'dev') {
ENV_VAR = require('./.env.dev.js'); ENV_VAR = require('./.env.dev.js');
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
} }
if (ENV_VAR) { if (ENV_VAR) {
process.uniEnv = {}; process.uniEnv = {};
process.uniEnv['node_env'] = NODE_ENV; process.uniEnv['node_env'] = NODE_ENV;
process.uniEnv['version_number'] = VERSION_NUMBER; process.uniEnv['version_number'] = VERSION_NUMBER;
for (let key in ENV_VAR) { for (let key in ENV_VAR) {
process.uniEnv[key] = ENV_VAR[key]; process.uniEnv[key] = ENV_VAR[key];
} }
......
This diff is collapsed.
<template> <template>
<view class="news-wrap"> <view>
<u-navbar <u-navbar back-icon-color="#000000" :background="background" title-color="#000000" :border-bottom="false">
back-icon-color="#000000" </u-navbar>
:background="background" <view class="title">
title-color="#000000" {{ title }}
:border-bottom="false"> </view>
</u-navbar> <view class="creat_at">
<view class="title"> {{create_at}}
{{ title }}
</view> </view>
<view class="time-txt">
{{time | datefmt('YYYY.MM.DD HH:mm:ss')}}
</view>
<view class="u-content"> <view class="u-content">
<u-parse :html="body" :tag-style="style" :selectable="true"></u-parse> <u-parse :html="body" :tag-style="style"></u-parse>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
title: '', title: "",
body: '', body: "",
time: '', create_at: "",
style: { };
// 字符串的形式 },
p: ` onLoad() {
color: #666666; getApp().trackPage("消息通知详情页");
font-size: 24rpx; var that = this;
letter-spacing: 0.03rpx; const eventChannel = this.getOpenerEventChannel();
`, eventChannel.on("acceptDataFromLearn", function (data) {
span: 'font-size: 26rpx', that.title = data.title;
img: ` that.body = data.body;
padding: 40rpx 0; that.create_at = data.create_at;
`, console.log(data);
}, });
} this.$u.mpShare.path = "";
}, },
onLoad() { };
getApp().trackPage('消息通知详情页') </script>
var that = this;
const eventChannel = this.getOpenerEventChannel()
eventChannel.on('acceptDataFromLearn', function(data) {
that.title = data.title;
that.body = data.body;
that.time = data.create_at
})
this.$u.mpShare.path = ''
},
}
</script>
<style> <style>
.news-wrap { .title {
background-color: #FFFFFF; font-size: 32rpx;
height: 100vh; font-weight: bold;
} margin-left: 30rpx;
.title{ margin-top: 30rpx;
font-size: 36rpx; }
font-weight: bold; .u-content {
margin: 20rpx 30rpx; font-size: 24rpx;
} line-height: 36rpx;
.time-txt { color: #666666;
margin: 0 30rpx; margin-left: 30rpx;
font-size: 24rpx; margin-right: 30rpx;
font-weight: 400; }
color: #999999; .creat_at {
line-height: 24rpx; font-size: 24rpx;
} color: #999999;
.u-content{ margin-left: 30rpx;
font-size: 24rpx; margin-top: 20rpx;
line-height: 36rpx; }
color: #666666; rich-text {
margin-left: 30rpx; margin-top: 40rpx;
margin-right: 30rpx; display: block;
} }
</style> </style>
...@@ -40,12 +40,12 @@ ...@@ -40,12 +40,12 @@
<!-- 不是从我的页面,而是其他页面进来 --> <!-- 不是从我的页面,而是其他页面进来 -->
<view v-else> <view v-else>
<!-- 业务文件 --> <!-- 业务文件 -->
<view class="order-file" v-if="showFile"> <view class="order-file" v-if="showFile" @click="$u.throttle(handleClickFile, 500)">
<view class="order-file-left"> <view class="order-file-left">
<image :src="wenjianImage" class="file-image"></image> <image :src="wenjianImage" class="file-image"></image>
<text>充电桩安装业务文件</text> <text>充电桩安装业务文件</text>
</view> </view>
<view class="order-file-right" @click="$u.throttle(handleClickFile, 500)"> <view class="order-file-right">
<text>点击查看</text> <text>点击查看</text>
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> </view>
...@@ -682,7 +682,7 @@ ...@@ -682,7 +682,7 @@
}, },
// 去业务材料页面 // 去业务材料页面
handleClickFile() { handleClickFile() {
this.$u.route({url: 'pages/order/document'})
}, },
trackOrder() { trackOrder() {
// 接单成功事件,签到成功事件 // 接单成功事件,签到成功事件
......
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