Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
5244262e
Commit
5244262e
authored
Jun 08, 2021
by
Damon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://git.banshouhui.com/lijundan/self-support
into dev
parents
22b14cee
2ff3594f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
209 additions
and
168 deletions
+209
-168
.env.js
.env.js
+5
-5
learn.vue
src/pages/index/learn.vue
+139
-83
news-details.vue
src/pages/learn/news-details.vue
+62
-77
detail.vue
src/pages/order/detail.vue
+3
-3
No files found.
.env.js
View file @
5244262e
;
;
(
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
];
}
}
...
...
src/pages/index/learn.vue
View file @
5244262e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<u-tabs-swiper
bg-color=
"#F4F5F7"
inactive-color=
"#999999"
font-size=
"28"
ref=
"uTabs"
:list=
"tabs"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
:bar-width=
"52"
swiperWidth=
"750"
></u-tabs-swiper>
<u-tabs-swiper
bg-color=
"#F4F5F7"
inactive-color=
"#999999"
font-size=
"28"
ref=
"uTabs"
:list=
"tabs"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
:bar-width=
"52"
swiperWidth=
"750"
></u-tabs-swiper>
<swiper
class=
"swiper_group"
:current=
"swiperCurrent"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
>
<swiper
class=
"swiper_group"
:current=
"swiperCurrent"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
>
<scroll-view
scroll-y
style=
"
height:100%;
width:100%;"
>
<scroll-view
scroll-y
style=
"width:100%;"
>
<view
class=
"jf-currency-class"
>
<view
class=
"jf-currency-class"
>
<image
:src=
"jianBianImg"
mode=
""
class=
"current-img"
></image>
<image
:src=
"jianBianImg"
mode=
""
class=
"current-img"
></image>
<view
class=
"class1"
style=
"position: relative;"
@
click=
"goToPrint"
>
<view
class=
"class1"
style=
"position: relative;"
@
click=
"goToPrint"
>
...
@@ -19,21 +19,29 @@
...
@@ -19,21 +19,29 @@
<view
class=
"jf-line u-margin-right-30 u-margin-top-60"
>
去查看
</view>
<view
class=
"jf-line u-margin-right-30 u-margin-top-60"
>
去查看
</view>
</view>
</view>
</view>
</view>
<view
class=
"jf-currency-class"
>
<image
:src=
"jianbianImage"
mode=
""
class=
"current-img"
></image>
<view
class=
"class1"
style=
"position: relative;"
@
click=
"goToDocument"
>
<image
class=
"jf-img"
:src=
"anzhuangwenjianImage"
mode=
""
></image>
<view
class=
"right u-padding-top-10 u-padding-bottom-14 jf-right"
>
<view
class=
"u-font-32 font-bold u-margin-left-30 u-margin-top-30"
>
充电桩安装文件
</view>
<view
class=
"u-font-24 u-margin-left-30 u-margin-top-30"
>
请点击查看
</view>
</view>
<view
class=
"jf-line u-margin-right-30 u-margin-top-60 red-color"
>
去查看
</view>
</view>
</view>
</scroll-view>
</scroll-view>
</swiper-item>
</swiper-item>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
@
scrolltolower=
"onreachBottom"
scroll-y=
"true"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
refresherpulling=
"onPulling"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
@
scrolltolower=
"onreachBottom"
scroll-y=
"true"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
refresherpulling=
"onPulling"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
>
<view
v-for=
"item in list"
:key=
"item.id"
class=
"notice"
@
click=
"bbb(item)"
>
<view
v-for=
"item in list"
:key=
"item.id"
class=
"notice"
@
click=
"bbb(item)"
>
<view
class=
"n-head"
>
<view
class=
"notice-bottom-left"
>
{{
item
.
create_at
}}
</view>
{{
item
.
title
}}
<view
class=
"notice-content"
>
</view>
<img
:src=
"item.img"
alt=
""
style=
"width:690rpx;height:260rpx;display:block"
>
<view
class=
"news"
v-html=
"item.body"
>
<view
class=
"notice-content-bottom"
>
<u-parse
:html=
"item.body"
></u-parse>
<view
class=
"n-head"
>
{{
item
.
title
}}
</view>
</view>
<view
class=
"news"
>
{{
item
.
text
}}
</view>
<u-line
color=
"#F4F5F7"
/>
</view>
<view
class=
"notice-bottom"
>
<view
class=
"notice-bottom-left"
>
{{
item
.
create_at
}}
</view>
<view
class=
"notice-bottom-right"
>
查看详情
</view>
</view>
</view>
</view>
</view>
<view
v-shou=
"isLoadMore"
class=
"load-more"
>
<view
v-shou=
"isLoadMore"
class=
"load-more"
>
...
@@ -119,7 +127,7 @@
...
@@ -119,7 +127,7 @@
</scroll-view>
</scroll-view>
</swiper-item>
</swiper-item>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
>
<scroll-view
scroll-y
style=
"
height:100%;
width:100%;"
>
<scroll-view
scroll-y
style=
"width:100%;"
>
<view
class=
"title u-margin-top-10 u-margin-bottom-30"
>
通用认证
</view>
<view
class=
"title u-margin-top-10 u-margin-bottom-30"
>
通用认证
</view>
<view
class=
"currency-class"
>
<view
class=
"currency-class"
>
<view
class=
"class1"
@
click=
"aaa(0)"
>
<view
class=
"class1"
@
click=
"aaa(0)"
>
...
@@ -429,8 +437,7 @@ export default {
...
@@ -429,8 +437,7 @@ export default {
pic
:
courseListJson
[
2
].
pic
,
pic
:
courseListJson
[
2
].
pic
,
id
:
courseListJson
[
2
].
id
,
id
:
courseListJson
[
2
].
id
,
sectionId
:
courseListJson
[
2
].
sectionId
,
sectionId
:
courseListJson
[
2
].
sectionId
,
}
},
,
{
{
title
:
courseListJson
[
3
].
title
,
title
:
courseListJson
[
3
].
title
,
desc
:
courseListJson
[
3
].
desc
,
desc
:
courseListJson
[
3
].
desc
,
...
@@ -478,7 +485,7 @@ export default {
...
@@ -478,7 +485,7 @@ export default {
};
};
},
},
onLoad
(
param
)
{
onLoad
(
param
)
{
getApp
().
trackPage
(
'学习首页'
)
getApp
().
trackPage
(
"学习首页"
);
var
that
=
this
;
var
that
=
this
;
try
{
try
{
if
(
param
.
tabs
)
{
if
(
param
.
tabs
)
{
...
@@ -490,8 +497,14 @@ export default {
...
@@ -490,8 +497,14 @@ export default {
},
},
computed
:
{
computed
:
{
bannerImage
()
{
bannerImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
"
banner-xx@3x
.png"
;
return
process
.
uniEnv
.
qn_base_url
+
"
xuexibanner
.png"
;
},
},
jianbianImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
"jianbian.png"
;
},
anzhuangwenjianImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
"anzhuangwenjian.png"
;
},
},
},
onShow
:
function
(
param
)
{
onShow
:
function
(
param
)
{
try
{
try
{
...
@@ -512,14 +525,12 @@ export default {
...
@@ -512,14 +525,12 @@ export default {
.
getVersionInfo
(
version
)
.
getVersionInfo
(
version
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
let
data
=
res
.
data
;
let
data
=
res
.
data
;
if
(
data
.
hasOwnProperty
(
'is_audit'
)
&&
data
.
is_audit
==
0
)
{
if
(
data
.
hasOwnProperty
(
"is_audit"
)
&&
data
.
is_audit
==
0
)
{
that
.
tabs
=
that
.
tabs2
;
that
.
tabs
=
that
.
tabs2
;
that
.
version
=
false
that
.
version
=
false
;
}
}
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{});
});
},
},
stopPull
()
{
stopPull
()
{
let
that
=
this
;
let
that
=
this
;
...
@@ -564,6 +575,24 @@ export default {
...
@@ -564,6 +575,24 @@ export default {
stopTouchMove
()
{
stopTouchMove
()
{
return
false
;
return
false
;
},
},
//取文本第一张图片
imgUrlFun
(
str
)
{
var
data
=
""
;
str
.
replace
(
/<img
[^
>
]
*src=
[
'"
]([^
'"
]
+
)[^
>
]
*>/
,
function
(
match
,
capture
)
{
data
=
capture
;
}
);
return
data
;
},
//取文本信息
getText
(
str
)
{
return
str
.
replace
(
/<
[^
<>
]
+>/g
,
""
)
.
replace
(
/ /gi
,
""
)
.
replace
(
/
(\n)
/g
,
""
);
},
getNoticeList
()
{
getNoticeList
()
{
let
that
=
this
;
let
that
=
this
;
this
.
$u
.
api
this
.
$u
.
api
...
@@ -587,8 +616,11 @@ export default {
...
@@ -587,8 +616,11 @@ export default {
res
.
data
[
i
].
create_at
,
res
.
data
[
i
].
create_at
,
"yyyy.MM.dd hh:mm"
"yyyy.MM.dd hh:mm"
);
);
res
.
data
[
i
].
img
=
this
.
imgUrlFun
(
res
.
data
[
i
].
body
);
res
.
data
[
i
].
text
=
this
.
getText
(
res
.
data
[
i
].
body
);
}
}
that
.
list
=
that
.
list
.
concat
(
res
.
data
);
that
.
list
=
that
.
list
.
concat
(
res
.
data
);
console
.
log
(
"消息列表"
,
that
.
list
);
}
}
if
(
res
.
data
.
length
>=
5
)
{
if
(
res
.
data
.
length
>=
5
)
{
that
.
isLoadMore
=
false
;
that
.
isLoadMore
=
false
;
...
@@ -715,72 +747,78 @@ export default {
...
@@ -715,72 +747,78 @@ export default {
},
},
});
});
},
},
// 安装文件
goToDocument
()
{
this
.
$u
.
route
({
url
:
'pages/order/document'
,
})
},
//考核认证,通用认证,考试通过or未通过查询接口请求
//考核认证,通用认证,考试通过or未通过查询接口请求
getUserExamInfo
()
{
getUserExamInfo
()
{
uni
.
hideLoading
();
uni
.
hideLoading
();
let
that
=
this
;
let
that
=
this
;
let
token
=
that
.
vuex_token
;
let
token
=
that
.
vuex_token
;
let
length
=
this
.
examList
.
length
;
let
length
=
this
.
examList
.
length
;
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
let
examId
=
this
.
examList
[
i
].
id
;
let
examId
=
this
.
examList
[
i
].
id
;
this
.
$u
.
api
.
getExamResult
(
examId
)
this
.
$u
.
api
.
then
((
res
)
=>
{
.
getExamResult
(
examId
)
if
(
res
.
code
!=
200
)
{
.
then
((
res
)
=>
{
console
.
log
(
"getUserExamInfo 200 err"
);
if
(
res
.
code
!=
200
)
{
console
.
log
(
"getUserExamInfo 200 err"
);
uni
.
showToast
({
icon
:
"none"
,
title
:
"获取考试信息失败"
,
});
}
this
.
examList
[
i
].
examId
=
res
.
data
.
id
;
this
.
examList
[
i
].
examStatus
=
res
.
data
.
examStatus
;
//i;//
this
.
examList
[
i
].
questionTime
=
res
.
data
.
questionTime
;
let
examResult
=
res
.
data
.
examLevelResult
;
this
.
examList
[
i
].
status
=
examResult
!=
""
?
examResult
:
"未通过"
;
//动态获取条件
let
ruleDisc
=
res
.
data
.
ruleDisc
;
let
targetIndex
=
ruleDisc
.
indexOf
(
"("
);
if
(
targetIndex
)
{
this
.
examList
[
i
].
condition
=
ruleDisc
.
substr
(
targetIndex
+
1
)
.
replace
(
")"
,
""
);
}
// examStatus 用户考试状态 0考试中 1考试完成 2未参与
that
.
exam
=
res
.
data
;
if
(
res
.
data
.
examStatus
==
2
)
{
return
;
}
if
(
res
.
data
.
examStatus
==
1
)
{
that
.
examList
[
i
].
isComplete
=
this
.
examList
[
i
].
status
==
"已通过"
;
that
.
examScore
=
res
.
data
.
examScore
;
return
;
}
if
(
res
.
data
.
examStatus
==
0
)
{
that
.
userExamId
=
res
.
data
.
id
;
}
})
.
catch
((
err
)
=>
{
uni
.
hideLoading
();
uni
.
showToast
({
uni
.
showToast
({
icon
:
"none"
,
icon
:
"none"
,
title
:
"获取考试信息失败"
,
title
:
"获取考试信息失败"
,
});
});
}
this
.
examList
[
i
].
examId
=
res
.
data
.
id
;
this
.
examList
[
i
].
examStatus
=
res
.
data
.
examStatus
;
//i;//
this
.
examList
[
i
].
questionTime
=
res
.
data
.
questionTime
;
let
examResult
=
res
.
data
.
examLevelResult
;
this
.
examList
[
i
].
status
=
examResult
!=
""
?
examResult
:
"未通过"
;
//动态获取条件
let
ruleDisc
=
res
.
data
.
ruleDisc
;
let
targetIndex
=
ruleDisc
.
indexOf
(
"("
);
if
(
targetIndex
)
{
this
.
examList
[
i
].
condition
=
ruleDisc
.
substr
(
targetIndex
+
1
)
.
replace
(
")"
,
""
);
}
// examStatus 用户考试状态 0考试中 1考试完成 2未参与
that
.
exam
=
res
.
data
;
if
(
res
.
data
.
examStatus
==
2
)
{
return
;
}
if
(
res
.
data
.
examStatus
==
1
)
{
that
.
examList
[
i
].
isComplete
=
this
.
examList
[
i
].
status
==
"已通过"
;
that
.
examScore
=
res
.
data
.
examScore
;
return
;
}
if
(
res
.
data
.
examStatus
==
0
)
{
that
.
userExamId
=
res
.
data
.
id
;
}
})
.
catch
((
err
)
=>
{
uni
.
hideLoading
();
uni
.
showToast
({
icon
:
"none"
,
title
:
"获取考试信息失败"
,
});
});
});
}
}
},
},
//跳转到assessment页面
//跳转到assessment页面
aaa
(
index
)
{
aaa
(
index
)
{
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
//考试完成分成通过、未通过
//考试完成分成通过、未通过
getApp
().
globalData
.
questionTime
=
this
.
examList
[
getApp
().
globalData
.
questionTime
=
index
this
.
examList
[
index
].
questionTime
;
].
questionTime
;
var
examInfo
=
this
.
examList
[
index
];
var
examInfo
=
this
.
examList
[
index
];
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
"/pages/learn/assessment?examId="
+
examInfo
.
id
,
url
:
"/pages/learn/assessment?examId="
+
examInfo
.
id
,
...
@@ -801,7 +839,7 @@ export default {
...
@@ -801,7 +839,7 @@ export default {
var
news
=
{
var
news
=
{
body
:
e
.
body
,
body
:
e
.
body
,
title
:
e
.
title
,
title
:
e
.
title
,
create_at
:
e
.
create_at
,
create_at
:
e
.
create_at
,
};
};
let
that
=
this
;
let
that
=
this
;
wx
.
navigateTo
({
wx
.
navigateTo
({
...
@@ -829,7 +867,7 @@ export default {
...
@@ -829,7 +867,7 @@ export default {
.banner
{
.banner
{
width
:
690
rpx
;
width
:
690
rpx
;
height
:
2
4
0
rpx
;
height
:
2
2
0
rpx
;
margin-top
:
10
rpx
;
margin-top
:
10
rpx
;
}
}
...
@@ -855,26 +893,40 @@ export default {
...
@@ -855,26 +893,40 @@ export default {
min-height
:
370
rpx
;
min-height
:
370
rpx
;
margin-top
:
36
rpx
;
margin-top
:
36
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
background-color
:
#ffffff
;
border-radius
:
12
rpx
;
border-radius
:
12
rpx
;
padding
:
30
rpx
;
}
}
.notice-content
{
background
:
#ffffff
;
width
:
100%
;
border-radius
:
12
rpx
;
overflow
:
hidden
;
}
.notice-content-bottom
{
height
:
150
rpx
;
padding
:
0
30
rpx
;
overflow
:
hidden
;
}
.n-head
{
.n-head
{
text-align
:
left
;
text-align
:
left
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#333333
;
color
:
#333333
;
margin-top
:
30
rpx
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
.news
{
.news
{
height
:
168
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
margin-top
:
30
rpx
;
/* margin-top: 30rpx; */
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
font-size
:
24
rpx
;
font-size
:
24
rpx
;
color
:
#666666
;
color
:
#666666
;
line-height
:
34
rpx
;
line-height
:
34
rpx
;
margin-bottom
:
20
rpx
;
margin-bottom
:
20
rpx
;
margin-top
:
16
rpx
;
}
}
/* 在线学习 */
/* 在线学习 */
...
@@ -894,7 +946,8 @@ export default {
...
@@ -894,7 +946,8 @@ export default {
.jf-currency-class
{
.jf-currency-class
{
width
:
100%
;
width
:
100%
;
height
:
180
rpx
;
height
:
180
rpx
;
position
:
absolute
;
/* position: absolute; */
position
:
relative
;
border-radius
:
12
rpx
;
border-radius
:
12
rpx
;
margin-top
:
60
rpx
;
margin-top
:
60
rpx
;
}
}
...
@@ -989,17 +1042,18 @@ swiper {
...
@@ -989,17 +1042,18 @@ swiper {
}
}
.jf-line
{
.jf-line
{
display
:
flex
;
justify-content
:
space-between
;
width
:
120
rpx
;
width
:
120
rpx
;
height
:
52
rpx
;
height
:
52
rpx
;
border-radius
:
26
rpx
;
border-radius
:
26
rpx
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
color
:
#2272ff
;
color
:
#2272ff
;
text-align
:
center
;
text-align
:
center
;
padding-left
:
20
rpx
;
font-size
:
24
rpx
;
padding-top
:
6
rpx
;
line-height
:
52
rpx
;
margin-top
:
20
rpx
;
}
.red-color
{
color
:
#FA5A49
;
}
}
.u-progress
{
.u-progress
{
...
@@ -1057,8 +1111,10 @@ swiper {
...
@@ -1057,8 +1111,10 @@ swiper {
.notice-bottom-left
{
.notice-bottom-left
{
font-size
:
24
rpx
;
font-size
:
24
rpx
;
font-weight
:
500
;
color
:
#999999
;
color
:
#999999
;
float
:
left
;
text-align
:
center
;
margin-bottom
:
20
rpx
;
}
}
.notice-bottom-right
{
.notice-bottom-right
{
...
@@ -1095,7 +1151,7 @@ swiper {
...
@@ -1095,7 +1151,7 @@ swiper {
.current-img
{
.current-img
{
width
:
100%
;
width
:
100%
;
height
:
1
00%
;
height
:
1
80
rpx
;
position
:
absolute
;
position
:
absolute
;
}
}
...
...
src/pages/learn/news-details.vue
View file @
5244262e
<
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
:
32
rpx
;
height
:
100vh
;
font-weight
:
bold
;
}
margin-left
:
30
rpx
;
.title
{
margin-top
:
30
rpx
;
font-size
:
36
rpx
;
}
font-weight
:
bold
;
.u-content
{
margin
:
20
rpx
30
rpx
;
font-size
:
24
rpx
;
}
line-height
:
36
rpx
;
.time-txt
{
color
:
#666666
;
margin
:
0
30
rpx
;
margin-left
:
30
rpx
;
font-size
:
24
rpx
;
margin-right
:
30
rpx
;
font-weight
:
400
;
}
color
:
#999999
;
.creat_at
{
line-height
:
24
rpx
;
font-size
:
24
rpx
;
}
color
:
#999999
;
.u-content
{
margin-left
:
30
rpx
;
font-size
:
24
rpx
;
margin-top
:
20
rpx
;
line-height
:
36
rpx
;
}
color
:
#666666
;
rich-text
{
margin-left
:
3
0
rpx
;
margin-top
:
4
0
rpx
;
margin-right
:
30
rpx
;
display
:
block
;
}
}
</
style
>
</
style
>
src/pages/order/detail.vue
View file @
5244262e
...
@@ -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
()
{
// 接单成功事件,签到成功事件
// 接单成功事件,签到成功事件
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment