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';//版本号
......
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"
:background="background"
title-color="#000000"
:border-bottom="false">
</u-navbar> </u-navbar>
<view class="title"> <view class="title">
{{ title }} {{ title }}
</view> </view>
<view class="time-txt"> <view class="creat_at">
{{time | datefmt('YYYY.MM.DD HH:mm:ss')}} {{create_at}}
</view> </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: `
color: #666666;
font-size: 24rpx;
letter-spacing: 0.03rpx;
`,
span: 'font-size: 26rpx',
img: `
padding: 40rpx 0;
`,
},
}
}, },
onLoad() { onLoad() {
getApp().trackPage('消息通知详情页') getApp().trackPage("消息通知详情页");
var that = this; var that = this;
const eventChannel = this.getOpenerEventChannel() const eventChannel = this.getOpenerEventChannel();
eventChannel.on('acceptDataFromLearn', function(data) { eventChannel.on("acceptDataFromLearn", function (data) {
that.title = data.title; that.title = data.title;
that.body = data.body; that.body = data.body;
that.time = data.create_at that.create_at = data.create_at;
}) console.log(data);
this.$u.mpShare.path = '' });
this.$u.mpShare.path = "";
}, },
} };
</script> </script>
<style> <style>
.news-wrap { .title {
background-color: #FFFFFF; font-size: 32rpx;
height: 100vh;
}
.title{
font-size: 36rpx;
font-weight: bold; font-weight: bold;
margin: 20rpx 30rpx; margin-left: 30rpx;
} margin-top: 30rpx;
.time-txt { }
margin: 0 30rpx; .u-content {
font-size: 24rpx;
font-weight: 400;
color: #999999;
line-height: 24rpx;
}
.u-content{
font-size: 24rpx; font-size: 24rpx;
line-height: 36rpx; line-height: 36rpx;
color: #666666; color: #666666;
margin-left: 30rpx; margin-left: 30rpx;
margin-right: 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> </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