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
831c6968
Commit
831c6968
authored
May 07, 2021
by
Damon
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
e07aeb57
652548b9
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1437 additions
and
430 deletions
+1437
-430
index.vue
src/components/order/index.vue
+11
-2
manifest.json
src/manifest.json
+4
-0
pages.json
src/pages.json
+266
-220
learn.vue
src/pages/index/learn.vue
+739
-0
mine.vue
src/pages/index/mine.vue
+93
-93
order.vue
src/pages/index/order.vue
+0
-0
index.vue
src/pages/login/index.vue
+13
-7
complete.vue
src/pages/order/complete.vue
+57
-62
detail.vue
src/pages/order/detail.vue
+5
-4
feedback.vue
src/pages/order/feedback.vue
+17
-30
material.vue
src/pages/order/material.vue
+229
-0
index.vue
src/pages/study/index.vue
+0
-8
u-button.vue
src/uview-ui/components/u-button/u-button.vue
+3
-4
No files found.
src/components/order/index.vue
View file @
831c6968
...
...
@@ -99,7 +99,16 @@
return
{
timeout
:
false
,
timestamp
:
0
,
orderType
:
0
/** orderType
0 待接单、
1 待预约、
2 待签到、
3 待完工、
4 审核中、
5 异常单、
6 已完工
*/
orderType
:
0
};
},
computed
:
{
...
...
@@ -124,7 +133,7 @@
return
this
.
buttonStyles
[
2
]
}
},
showCountTime
()
{
showCountTime
()
{
// ((待预约、 待签到、 待完工) || (待接单 && 业务类型非抢单)) && 有超过时间点
return
([
1
,
2
,
3
].
indexOf
(
this
.
orderType
)
!=
-
1
||
(
this
.
orderType
==
0
&&
this
.
orderData
.
orderBusinessType
!=
'R'
))
&&
this
.
orderData
.
currentOverTime
},
...
...
src/manifest.json
View file @
831c6968
...
...
@@ -6,6 +6,10 @@
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"app-plus"
:
{
"optimization"
:
{
"subPackages"
:
true
},
"runmode"
:
"liberate"
,
//
开启分包优化后,必须配置资源释放模式
/*
5
+App特有相关
*/
"usingComponents"
:
true
,
"splashscreen"
:
{
...
...
src/pages.json
View file @
831c6968
...
...
@@ -15,7 +15,7 @@
}
},
{
"path"
:
"pages/
order/index
"
,
"path"
:
"pages/
index/order
"
,
"style"
:
{
"navigationBarTitleText"
:
"订单"
,
"navigationStyle"
:
"custom"
,
...
...
@@ -23,31 +23,14 @@
}
},
{
"path"
:
"pages/
order/complete
"
,
"path"
:
"pages/
index/learn
"
,
"style"
:
{
"navigationBarTitleText"
:
"订单-完工配置"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
},{
"path"
:
"pages/order/feedback"
,
"style"
:
{
"navigationBarTitleText"
:
"订单-过程反馈"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
}
},{
"path"
:
"pages/order/refuse"
,
"style"
:
{
"navigationBarTitleText"
:
"订单-拒单"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
"navigationBarTitleText"
:
"学习"
,
"navigationStyle"
:
"custom"
//隐藏系统导航栏
}
},
{
"path"
:
"pages/
mine/index
"
,
"path"
:
"pages/
index/mine
"
,
"style"
:
{
"navigationBarTitleText"
:
"我的"
,
"navigationStyle"
:
"custom"
...
...
@@ -58,212 +41,275 @@
"style"
:
{
"navigationBarTitleText"
:
"授权登录"
}
}
],
"subPackages"
:
[{
"root"
:
"pages/exam"
,
"pages"
:
[
{
"path"
:
"start"
,
"style"
:
{
"navigationBarTitleText"
:
"考试"
}
},
{
"path"
:
"index"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻考试"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
}
]
},
{
"path"
:
"pages/settle/index"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻"
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
}
},
{
"path"
:
"pages/settle/base"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
},
{
"path"
:
"pages/learn/index"
,
"style"
:
{
"navigationBarTitleText"
:
"学习"
,
"navigationStyle"
:
"custom"
//隐藏系统导航栏
}
},
{
"path"
:
"pages/learn/assessment"
,
"style"
:
{
"navigationBarTitleText"
:
"认证介绍"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/learn/answer"
,
"style"
:
{
"navigationBarTitleText"
:
"考试答题"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/learn/result"
,
"style"
:{
"navigationBarTitleText"
:
"考试答题"
}
},
{
"path"
:
"pages/learn/news-details"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/learn/section"
,
"style"
:{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/learn/curriculum"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/settle/select"
,
"style"
:
{
"navigationBarTitleText"
:
"选择可服务的城市"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"disableScroll"
:
true
}
},
{
"path"
:
"pages/settle/pay-ensure"
,
"style"
:
{
"navigationBarTitleText"
:
"缴纳设备押金"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
},
{
"path"
:
"pages/settle/prompt"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻提示"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
"root"
:
"pages/learn"
,
"pages"
:
[
{
"path"
:
"assessment"
,
"style"
:
{
"navigationBarTitleText"
:
"认证介绍"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"answer"
,
"style"
:
{
"navigationBarTitleText"
:
"考试答题"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"result"
,
"style"
:{
"navigationBarTitleText"
:
"考试答题"
}
},
{
"path"
:
"news-details"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"section"
,
"style"
:{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"curriculum"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"exam"
,
"style"
:
{
"navigationBarTitleText"
:
"在线考试"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
}
},
{
"path"
:
"course-detail"
,
"style"
:
{
"navigationBarTitleText"
:
"培训视频"
,
"enablePullDownRefresh"
:
false
}
}
]
},
{
"path"
:
"pages/settle/web"
,
"style"
:
{
"navigationBarTitleText"
:
"签约页面"
}
"root"
:
"pages/mine"
,
"pages"
:
[]
},
{
"path"
:
"pages/settle/sign-contract"
,
"style"
:
{
"navigationBarTitleText"
:
"签约页面"
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
}
"root"
:
"pages/order"
,
"pages"
:
[
{
"path"
:
"complete"
,
"style"
:
{
"navigationBarTitleText"
:
"订单-完工配置"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
},
{
"path"
:
"feedback"
,
"style"
:
{
"navigationBarTitleText"
:
"订单-过程反馈"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
}
},
{
"path"
:
"refuse"
,
"style"
:
{
"navigationBarTitleText"
:
"订单-拒单"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
}
},
{
//
订单详情页
"path"
:
"detail"
,
"style"
:
{
"navigationStyle"
:
"custom"
//
隐藏系统导航栏
}
},
{
//
订单搜索页
"path"
:
"search"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#F4F5F7"
}
},
{
"path"
:
"material"
,
"style"
:
{
"navigationBarTitleText"
:
"勘察材料"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
}
}
]
},
{
"path"
:
"pages/settle/file"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻资料"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
},
{
"path"
:
"pages/exam/start"
,
"style"
:
{
"navigationBarTitleText"
:
"考试"
}
"root"
:
"pages/photo"
,
"pages"
:
[
{
"path"
:
"index"
,
"style"
:
{
"navigationBarTitleText"
:
"拍照小工具"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"backgroundColor"
:
"#F4F5F7"
}
},
{
"path"
:
"setting"
,
"style"
:
{
"navigationBarTitleText"
:
"水印设置"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"backgroundColor"
:
"#F4F5F7"
//
"navigationBarBackgroundColor"
:
"#333333"
,
//
"navigationBarTextStyle"
:
"#FFFFFF"
,
//
"disableScroll"
:
true
}
},
{
"path"
:
"take"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"拍照"
,
"navigationBarBackgroundColor"
:
"#333333"
,
"navigationBarTextStyle"
:
"#FFFFFF"
,
"disableScroll"
:
true
}
},
{
"path"
:
"preview"
,
"style"
:
{
"navigationBarTitleText"
:
"照片预览"
,
"navigationBarBackgroundColor"
:
"#333333"
,
"backgroundColor"
:
"#FFFFFF"
,
"navigationBarTextStyle"
:
"white"
}
},
{
"path"
:
"list"
,
"style"
:
{
"navigationBarTitleText"
:
"规范展示"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"backgroundColor"
:
"#F4F5F7"
}
}
]
},
{
"path"
:
"pages/exam/index"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻考试"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
},
{
"path"
:
"pages/learn/exam"
,
"style"
:
{
"navigationBarTitleText"
:
"在线考试"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
}
},
{
"path"
:
"pages/learn/course-detail"
,
"style"
:
{
"navigationBarTitleText"
:
"培训视频"
,
"enablePullDownRefresh"
:
false
}
"root"
:
"pages/settle"
,
"pages"
:
[
{
"path"
:
"index"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻"
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
}
},
{
"path"
:
"base"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
},
{
"path"
:
"select"
,
"style"
:
{
"navigationBarTitleText"
:
"选择可服务的城市"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"disableScroll"
:
true
}
},
{
"path"
:
"pay-ensure"
,
"style"
:
{
"navigationBarTitleText"
:
"缴纳设备押金"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
},
{
"path"
:
"prompt"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻提示"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
},
{
"path"
:
"web"
,
"style"
:
{
"navigationBarTitleText"
:
"签约页面"
}
},
{
"path"
:
"sign-contract"
,
"style"
:
{
"navigationBarTitleText"
:
"签约页面"
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
}
},
{
"path"
:
"file"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻资料"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
}
]
}
,{
//
订单详情页
"path"
:
"pages/order/detail"
,
"style"
:
{
"navigationStyle"
:
"custom"
//
隐藏系统导航栏
}
},
{
"path"
:
"pages/photo/index"
,
"style"
:
{
"navigationBarTitleText"
:
"拍照小工具"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"backgroundColor"
:
"#F4F5F7"
}
},
{
"path"
:
"pages/photo/setting"
,
"style"
:
{
"navigationBarTitleText"
:
"水印设置"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"backgroundColor"
:
"#F4F5F7"
//
"navigationBarBackgroundColor"
:
"#333333"
,
//
"navigationBarTextStyle"
:
"#FFFFFF"
,
//
"disableScroll"
:
true
}
},
{
"path"
:
"pages/photo/take"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"拍照"
,
"navigationBarBackgroundColor"
:
"#333333"
,
"navigationBarTextStyle"
:
"#FFFFFF"
,
"disableScroll"
:
true
}
},
{
"path"
:
"pages/photo/preview"
,
"style"
:
{
"navigationBarTitleText"
:
"照片预览"
,
"navigationBarBackgroundColor"
:
"#333333"
,
"backgroundColor"
:
"#FFFFFF"
,
"navigationBarTextStyle"
:
"white"
}
},
{
"path"
:
"pages/photo/list"
,
"style"
:
{
"navigationBarTitleText"
:
"规范展示"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"backgroundColor"
:
"#F4F5F7"
}
],
"preloadRule"
:
{
"pages/index/index"
:
{
"network"
:
"all"
,
"packages"
:
[
"pages/order"
,
"pages/learn"
]
}
,{
"path"
:
"pages/order/search"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#F4F5F7"
}
}
],
},
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
"navigationBarTitleText"
:
"uni-app"
,
...
...
@@ -283,19 +329,19 @@
"text"
:
"首页"
},
{
"pagePath"
:
"pages/
order/index
"
,
"pagePath"
:
"pages/
index/order
"
,
"iconPath"
:
"static/tab/dingdan-0@3x.png"
,
"selectedIconPath"
:
"static/tab/dingdan-1@3x.png"
,
"text"
:
"订单"
},
{
"pagePath"
:
"pages/
learn/index
"
,
"pagePath"
:
"pages/
index/learn
"
,
"iconPath"
:
"static/tab/xuexi-0@3x.png"
,
"selectedIconPath"
:
"static/tab/xuexi-1@3x.png"
,
"text"
:
"学习"
},
{
"pagePath"
:
"pages/
mine/index
"
,
"pagePath"
:
"pages/
index/mine
"
,
"iconPath"
:
"static/tab/wode-0@3x.png"
,
"selectedIconPath"
:
"static/tab/wode-1@3x.png"
,
"text"
:
"我的"
...
...
@@ -312,7 +358,7 @@
},
{
"name"
:
"订单列表"
,
//模式名称
"path"
:
"pages/
order/index
"
,
//启动页面,必选
"path"
:
"pages/
index/order
"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
...
...
src/pages/index/learn.vue
0 → 100644
View file @
831c6968
<
template
>
<view
class=
"study"
>
<u-navbar
:is-back=
"false"
background=
"
{background: transparent}" :border-bottom="false" :is-fixed="false">
<text
class=
"title-view"
>
学习
</text>
</u-navbar>
<image
:src=
"bannerImage"
mode=
""
class=
"banner"
></image>
<view>
<u-tabs-swiper
bg-color=
"#F4F5F7"
inactive-color=
"#999999"
font-size=
"28"
ref=
"uTabs"
:list=
"tabs"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
swiperWidth=
"750"
></u-tabs-swiper>
</view>
<swiper
:current=
"swiperCurrent"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
style=
"height: 755rpx;padding-top: 30rpx;"
>
<swiper-item
class=
"swiper-item"
>
<scroll-view
scroll-y
style=
"height:796rpx;width:100%;"
@
scrolltolower=
"onreachBottom"
>
<view
class=
"currency-class"
:style=
"
{'background-image':'url(/static/photo/jianbian@3x.png)'}">
<view
class=
"class1"
@
click=
"goToPrint"
>
<image
class=
"img"
:src=
"rule.pic"
mode=
""
></image>
<view
class=
"right u-margin-left-30 u-padding-top-10 u-padding-bottom-14 width-360"
>
<view
class=
"u-font-32 font-bold"
>
充电桩交付规范
</view>
<view
class=
"u-font-24"
>
请点击学习
</view>
</view>
<view
class=
"line-percent"
>
<text
class=
"font-default-color"
>
去查看
</text>
</view>
</view>
</view>
</scroll-view>
</swiper-item>
<swiper-item
class=
"swiper-item"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
@
scrolltolower=
"onreachBottom"
>
<view
v-for=
"item in list"
:key=
"item.id"
class=
"notice"
@
click=
"bbb(item)"
>
<view
class=
"n-head"
>
《
{{
item
.
title
}}
》
</view>
<view
class=
"news"
v-html=
"item.body"
>
<u-parse
:html=
"item.body"
></u-parse>
</view>
<u-line
color=
"#F4F5F7"
class=
"content-line"
/>
</view>
<view
v-shou=
"isLoadMore"
>
<u-loadmore
:status=
"loadStatus"
/>
</view>
</scroll-view>
</swiper-item>
<swiper-item
class=
"swiper-item"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
>
<view
class=
"lean"
>
<view
class=
"top"
>
<view
class=
"title u-margin-top-10 u-margin-bottom-30"
>
通用课程
</view>
<view
class=
"currency-class"
>
<view
class=
"class1"
@
click=
ccc(courselist[0].sectionId)
>
<image
class=
"img"
:src=
"courselist[0].pic"
mode=
""
></image>
<view
class=
"right"
>
<view
class=
"u-font-32 font-bold"
>
{{
courselist
[
0
].
title
}}
</view>
<view
class=
"u-font-24"
>
{{
courselist
[
0
].
desc
}}
</view>
<view
class=
"line-percent"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[0].percent"
:show-percent=
"false"
>
</u-line-progress>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[0].percent}"
v-text="courselist[0].status">
</text>
</view>
</view>
</view>
<view
class=
"class1 u-margin-top-40"
@
click=
ccc(courselist[1].sectionId)
>
<image
class=
"img"
:src=
"courselist[1].pic"
mode=
""
></image>
<view
class=
"right"
>
<view
class=
"u-font-32 font-bold"
>
{{
courselist
[
1
].
title
}}
</view>
<view
class=
"u-font-24"
>
{{
courselist
[
1
].
desc
}}
</view>
<view
class=
"line-percent"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[1].percent"
:show-percent=
"false"
>
</u-line-progress>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[1].percent}"
v-text="courselist[1].status">
</text>
</view>
</view>
</view>
</view>
<view
class=
"title u-margin-top-50 u-margin-bottom-30"
>
技能课程
</view>
<view
class=
"currency-class"
>
<view
class=
"class1"
@
click=
ccc(courselist[2].sectionId)
>
<image
class=
"img"
:src=
"courselist[2].pic"
mode=
""
></image>
<view
class=
"right"
>
<view
class=
"u-font-32 font-bold"
>
{{
courselist
[
2
].
title
}}
</view>
<view
class=
"u-font-24"
>
{{
courselist
[
2
].
desc
}}
</view>
<view
class=
"line-percent"
style=
"display:flex;justify-content: space-between;"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[2].percent"
:show-percent=
"false"
>
</u-line-progress>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[2].percent}"
v-text="courselist[2].status">
</text>
</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
</swiper-item>
<swiper-item>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
@
scrolltolower=
"onreachBottom"
>
<view
class=
"lean"
>
<view
class=
"top"
>
<view
class=
"title u-margin-top-10 u-margin-bottom-30"
>
通用认证
</view>
<view
class=
"currency-class"
>
<view
class=
"class1"
@
click=
"aaa(0)"
>
<image
class=
"img"
:src=
"examList[0].pic"
mode=
""
></image>
<view
class=
"right"
>
<view
class=
"u-font-32 font-bold"
>
{{
examList
[
0
].
title
}}
</view>
<view
class=
"u-font-24"
>
{{
examList
[
0
].
desc
}}
</view>
<view
class=
"u-font-24"
style=
"display:flex;justify-content: space-between;"
>
<text
class=
"font-color-999999"
>
{{
examList
[
0
].
condition
}}
</text>
<text
class=
"font-default-exam-color"
:class=
"
{'font-active-color':examList[0].isComplete}">
{{
examList
[
0
].
status
}}
</text>
</view>
</view>
</view>
<view
class=
"class1 u-margin-top-40"
@
click=
"aaa(1)"
>
<image
class=
"img"
:src=
"examList[1].pic"
mode=
""
></image>
<view
class=
"right"
>
<view
class=
"u-font-32 font-bold"
>
{{
examList
[
1
].
title
}}
</view>
<view
class=
"u-font-24"
>
{{
examList
[
1
].
desc
}}
</view>
<view
class=
"u-font-24"
style=
"display:flex;justify-content: space-between;"
>
<text
class=
"font-color-999999"
>
{{
examList
[
1
].
condition
}}
</text>
<text
class=
"font-default-exam-color"
:class=
"
{'font-active-color':examList[1].isComplete}">
{{
examList
[
1
].
status
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"title u-margin-top-50 u-margin-bottom-30"
>
技能认证
</view>
<view
class=
"currency-class"
>
<view
class=
"class1"
@
click=
"aaa(2)"
>
<image
class=
"img"
:src=
"examList[2].pic"
mode=
""
></image>
<view
class=
"right"
>
<view
class=
"u-font-32 font-bold"
>
{{
examList
[
2
].
title
}}
</view>
<view
class=
"u-font-24"
>
{{
examList
[
2
].
desc
}}
</view>
<view
class=
"u-font-24"
style=
"display:flex;justify-content: space-between;"
>
<text
class=
"font-color-999999"
>
{{
examList
[
2
].
condition
}}
</text>
<text
class=
"font-default-exam-color"
:class=
"
{'font-active-color':examList[2].isComplete}">
{{
examList
[
2
].
status
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
</swiper-item>
</swiper>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
msg
:
"赣南吴彦祖"
,
tabs
:
[{
name
:
"交付规范"
,
},
{
name
:
"培训通知"
,
},
{
name
:
"在线学习"
,
},
{
name
:
"考核认证"
,
},
],
current
:
0
,
swiperCurrent
:
0
,
params
:
{
start
:
0
,
},
list
:
[],
rule
:
{
pic
:
process
.
uniEnv
.
qn_base_url
+
"guifan1@3x.png"
},
courselist
:
[{
title
:
'服务规范'
,
desc
:
'为用户提供更好服务,自己赚更多钱'
,
percent
:
0
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"guifan1@3x.png"
,
id
:
173
,
sectionId
:
''
},
{
title
:
'接单操作'
,
desc
:
'快速学习,使用APP 接单、抢单'
,
percent
:
0
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"guifan2@3x.png"
,
id
:
173
,
sectionId
:
''
},
{
title
:
'从0-1学习充电桩安装服务'
,
desc
:
'让你全面了解充电桩市场及服务规范'
,
percent
:
0
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"kecehng1@3x.png"
,
id
:
173
,
sectionId
:
''
}
],
examList
:
[{
title
:
'服务规范'
,
desc
:
'通过本认证,是接单的必要条件'
,
condition
:
'随机20题,及格20题'
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"guifan1@3x.png"
,
id
:
2
,
examId
:
''
,
examStatus
:
''
,
isComplete
:
false
},
{
title
:
'接单操作'
,
desc
:
'快速认证,是否具备接单操作能力'
,
condition
:
'随机20题,及格16题'
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"guifan2@3x.png"
,
id
:
2
,
examId
:
''
,
examStatus
:
''
,
isComplete
:
false
},
{
title
:
'从0-1学习充电桩安装服务'
,
desc
:
'通过本认证后,可接充电桩业务单'
,
condition
:
'随机30题,及格25题'
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"kecehng1@3x.png"
,
id
:
2
,
examId
:
''
,
examStatus
:
''
,
isComplete
:
false
}
],
loadStatus
:
"loading"
,
//加载样式:loadMore-加载前样式,loading-加载加载中样式,nomore-没有数据样式
isLoadMore
:
false
,
//是否加载中
course_id
:
"course_id_=173"
,
exam
:
null
,
};
},
onLoad
()
{
// this.getList();
// this.getCourseList();
// this.getUserExamInfo();
},
computed
:
{
bannerImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
"banner-xx@3x.png"
;
},
},
methods
:
{
getList
()
{
this
.
$u
.
api
.
getTrainingNoticeList
(
this
.
params
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
)
{
this
.
list
=
this
.
list
.
concat
(
res
.
data
);
if
(
res
.
data
.
length
<
5
)
{
//判断接口返回数据量小于请求数据量,则表示此为最后一页
this
.
isLoadMore
=
true
;
this
.
loadStatus
=
"nomore"
;
}
else
{
this
.
isLoadMore
=
false
;
}
}
else
{
this
.
isLoadMore
=
true
;
this
.
loadStatus
=
"nomore"
;
}
}
else
{
//接口请求失败的处理
uni
.
showToast
({
title
:
res
.
message
,
icon
:
"none"
,
});
this
.
isLoadMore
=
false
;
if
(
this
.
params
.
start
>
0
)
{
this
.
page
-=
5
;
}
}
})
.
catch
((
err
)
=>
{
uni
.
showToast
({
title
:
err
,
icon
:
"none"
,
});
this
.
isLoadMore
=
false
;
if
(
this
.
params
.
start
>
0
)
{
this
.
page
-=
5
;
}
});
},
getTypeName
(
percent
)
{
if
(
percent
==
0
)
{
return
'未开始'
;
}
else
if
(
percent
==
'100'
)
{
return
'已完成'
;
}
else
{
return
'继续'
;
}
},
//在线学习通用课程信息
getCourseList
()
{
let
courseLength
=
this
.
courselist
.
length
;
for
(
let
i
=
0
;
i
<
courseLength
;
i
++
)
{
let
param
=
{
course_id
:
this
.
courselist
[
i
].
id
};
this
.
$u
.
api
.
CourseList
(
param
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
)
{
res
.
data
.
learnedInfo
.
learnPercent
*=
100
;
this
.
courselist
[
i
].
status
=
this
.
getTypeName
(
res
.
data
.
learnedInfo
.
learnPercent
);
this
.
courselist
[
i
].
percent
=
res
.
data
.
learnedInfo
.
learnPercent
;
this
.
courselist
[
i
].
sectionId
=
res
.
data
.
learnedInfo
.
nextLearnedSectionId
;
}
}
})
.
catch
((
err
)
=>
{
uni
.
showToast
({
title
:
err
,
icon
:
"none"
,
});
});
}
},
//tabs通知swiper切换
tabsChange
(
index
)
{
this
.
swiperCurrent
=
index
;
switch
(
index
)
{
case
1
:
this
.
params
.
start
=
0
;
this
.
list
=
[];
this
.
getList
();
break
;
case
2
:
this
.
getCourseList
();
console
.
log
(
'重新加载学习进度'
);
break
;
case
3
:
this
.
getUserExamInfo
();
break
;
}
},
//swiper-item左右移动,通知tabs的滑块跟随移动
transition
(
e
)
{
let
dx
=
e
.
detail
.
dx
;
this
.
$refs
.
uTabs
.
setDx
(
dx
);
},
animationfinish
(
e
)
{
let
current
=
e
.
detail
.
current
;
this
.
$refs
.
uTabs
.
setFinishCurrent
(
current
);
this
.
swiperCurrent
=
current
;
this
.
current
=
current
;
},
//跳转到assessment页面
aaa
(
index
)
{
var
examInfo
=
this
.
examList
[
index
];
if
(
examInfo
.
examStatus
==
0
)
{
console
.
log
(
"这是申请的考试id"
,
examInfo
.
examId
);
wx
.
navigateTo
({
url
:
"./answer?userExamId="
+
examInfo
.
examId
,
});
}
else
if
(
examInfo
.
examStatus
==
1
)
{
wx
.
navigateTo
({
url
:
"./result?userExamId="
+
examInfo
.
examId
,
});
}
else
if
(
examInfo
.
examStatus
==
2
)
{
wx
.
navigateTo
({
url
:
"./assessment"
,
});
}
},
//跳转到课程介绍
ccc
(
id
)
{
uni
.
navigateTo
({
url
:
"./section?section_id="
+
288
,
});
},
//跳转到
bbb
(
e
)
{
var
news
=
{
body
:
e
.
body
,
id
:
e
.
id
,
level
:
e
.
level
,
title
:
e
.
title
,
};
// console.log(news)
uni
.
navigateTo
({
url
:
"./news-details"
,
});
setTimeout
(()
=>
{
uni
.
$emit
(
"news"
,
news
),
console
.
log
(
"发送数据"
);
},
500
);
console
.
log
(
"跳转结束11111111"
);
},
//scroll-view到底部加载更多
onreachBottom
()
{
console
.
log
(
"上拉触底函数"
);
//上拉触底函数
if
(
!
this
.
isLoadMore
)
{
this
.
isLoadMore
=
true
;
this
.
params
.
start
+=
5
;
if
(
this
.
loadStatus
!==
"nomore"
)
{
this
.
getList
();
}
}
},
//跳转到拍照小程序首页
goToPrint
()
{
console
.
log
(
"111111"
);
uni
.
navigateToMiniProgram
({
appId
:
"wxd1d6eede324b0465"
,
success
(
res
)
{
//打开成功
console
.
log
(
"success"
,
res
);
},
fail
(
err
)
{
console
.
log
(
"err"
,
err
);
},
});
},
//考核认证,通用认证,考试通过or未通过查询接口请求
getUserExamInfo
()
{
uni
.
showLoading
({
title
:
"请稍候"
,
});
let
that
=
this
;
let
token
=
that
.
vuex_token
;
let
length
=
this
.
examList
.
length
;
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
let
examId
=
this
.
examList
[
i
].
id
;
this
.
$u
.
api
.
getExamResult
(
examId
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
examList
[
i
].
examId
=
res
.
data
.
id
;
this
.
examList
[
i
].
examStatus
=
res
.
data
.
examStatus
;
let
examResult
=
res
.
data
.
examLevelResult
;
this
.
examList
[
i
].
status
=
examResult
!=
''
?
examResult
:
'未通过'
;
// examStatus 用户考试状态 0考试中 1考试完成 2未参与
that
.
exam
=
res
.
data
;
console
.
log
(
that
.
exam
);
if
(
res
.
data
.
examStatus
==
2
)
{
console
.
log
(
"examStatus "
+
i
+
" 2"
);
return
;
}
if
(
res
.
data
.
examStatus
==
1
)
{
console
.
log
(
"examStatus "
+
i
+
" 1"
);
that
.
examList
[
i
].
isComplete
=
true
;
that
.
examScore
=
res
.
data
.
examScore
;
return
;
}
if
(
res
.
data
.
examStatus
==
0
)
{
console
.
log
(
"examStatus "
+
i
+
" 0"
);
that
.
userExamId
=
res
.
data
.
id
;
// that.getNext();
}
}
else
{
console
.
log
(
'getUserExamInfo 200 err'
);
uni
.
showToast
({
icon
:
"none"
,
title
:
'获取考试信息失败'
,
});
}
})
.
catch
((
err
)
=>
{
console
.
log
(
'getUserExamInfo err'
+
err
);
uni
.
hideLoading
();
uni
.
showToast
({
icon
:
"none"
,
title
:
"获取考试信息失败"
,
});
});
}
}
},
};
</
script
>
<
style
>
.study
{
height
:
100vh
;
background-color
:
#f4f5f7
;
padding
:
0
rpx
30
rpx
0
30
rpx
;
}
.title-view
{
color
:
#333333
;
font-weight
:
bold
;
font-size
:
40
rpx
;
}
.banner
{
width
:
690
rpx
;
height
:
240
rpx
;
margin-top
:
10
rpx
;
}
/* //交付规范 */
.standard
{
width
:
690
rpx
;
height
:
180
rpx
;
display
:
flex
;
justify-content
:
space-between
;
/* border-bottom: 1rpx solid #82848a; */
/* padding: 0 34rpx; */
/* margin: 72rpx auto; */
border-radius
:
12
rpx
;
padding
:
30
rpx
;
margin-top
:
30
rpx
;
background-color
:
#FFFFFF
;
}
/* //培训通知 */
.notice
{
/* border: #808080 solid 2rpx; */
width
:
100%
;
height
:
400
rpx
;
margin-top
:
36
rpx
;
overflow
:
hidden
;
background-color
:
#ffffff
;
border-radius
:
12
rpx
;
padding
:
30
rpx
;
}
.n-head
{
text-align
:
left
;
}
.news
{
height
:
168
rpx
;
overflow
:
hidden
;
margin-top
:
30
rpx
;
/* margin-top: 30rpx;
margin-left: 30rpx;
margin-right: 30rpx;
margin-bottom: 0; */
}
/* //在线学习 */
.currency-class
{
width
:
100%
;
/* height: 340rpx; */
background
:
#ffffff
;
padding
:
30
rpx
;
/* margin-bottom: 11px; */
border-radius
:
12
rpx
;
}
.title
{
font-size
:
32
rpx
;
font-weight
:
bold
;
font-family
:
PingFang-SC-Bold
,
PingFang-SC
;
}
.class1
{
display
:
-webkit-box
;
display
:
-webkit-flex
;
display
:
flex
;
-webkit-box-pack
:
justify
;
-webkit-justify-content
:
space-between
;
justify-content
:
space-between
;
}
.img
{
width
:
160
rpx
;
height
:
120
rpx
;
/* display: block; */
/* margin-right: 0rpx; */
}
.right
{
width
:
434
rpx
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
}
.intro
{
color
:
#9999a6
;
}
.tab
{
background
:
#fff
;
height
:
82
rpx
;
margin
:
0
0
;
}
.text
{
margin
:
0
40
rpx
;
line-height
:
82
rpx
;
color
:
#667eb5
;
}
.content
{
margin
:
5px
0
;
height
:
485
rpx
;
background
:
#fff
;
}
swiper
{
height
:
691
rpx
;
}
.line-percent
{
display
:
flex
;
justify-content
:
space-between
;
line-height
:
24
rpx
;
font-size
:
24
rpx
;
color
:
#999999
;
}
.u-progress
{
width
:
280
rpx
!important
;
height
:
12
rpx
!important
;
background-color
:
#ececec
;
}
.font-bold
{
font-weight
:
bold
;
}
.font-default-color
{
color
:
#999999
;
}
.font-default-exam-color
{
color
:
#FA5A49
;
}
.font-active-color
{
color
:
#2272FF
;
}
.font-color-999999
{
color
:
#99999
;
}
.content-line
{
margin-top
:
30
rpx
;
}
.standard
{
}
.standard-img
{
width
:
160
rpx
;
height
:
120
rpx
;
}
.standard-body
{
height
:
120
rpx
;
display
:
flex
;
}
.standard-body-title
{
font-size
:
32
rpx
;
font-weight
:
bold
;
}
.width-360
{
width
:
360
rpx
;
}
.rule-back
{
background-image
:
process
.
uniEnv
.
qn_base_url
+
"banner-xx@3x.png"
;
}
/*
<
view
class
=
"standard"
@click
=
"goToPrint"
>
<!
--
<
text
>
充电桩交付规范
</
text
>
<
text
>></
text
>
--
>
<
view
class
=
"standard-img"
></
view
>
<
view
class
=
"standard-body"
>
<
view
class
=
"standard-body-title"
>
充电桩交付规范
</
view
>
<
view
class
=
"standard-body-title"
>
请点击学习
</
view
>
</
view
>
<
view
cl
ass
=
"standard-go-look-look"
>
去查看
</
view
>*/
</
style
>
src/pages/
mine/index
.vue
→
src/pages/
index/mine
.vue
View file @
831c6968
<
template
>
<view>
<u-navbar
v-if=
"!takeStatus"
:is-back=
"false"
:title-size=
"26"
title-color=
"#000"
title=
"我的"
></u-navbar>
<view
v-if=
"!takeStatus"
>
<view
class=
"u-flex user-box u-p-l-30 u-p-r-20 u-p-b-30"
>
<view
class=
"u-m-r-10"
>
<u-avatar
:src=
"pic"
size=
"140"
></u-avatar>
</view>
<view
class=
"u-flex-1"
>
<view
class=
"u-font-18 u-p-b-20"
>
uView ui
</view>
<view
class=
"u-font-14 u-tips-color"
>
微信号:helang_uView
</view>
</view>
</view>
<view
class=
"u-m-t-20"
>
<u-cell-group>
<u-cell-item
v-for=
"(item, index) in items"
:title=
"item.title"
:value=
"item.value"
:key=
"index"
>
<u-icon
slot=
"icon"
size=
"32"
name=
"search"
></u-icon>
</u-cell-item>
</u-cell-group>
</view>
<view
class=
"u-m-t-20"
>
<u-cell-group>
<u-cell-item
icon=
"setting"
title=
"设置"
></u-cell-item>
</u-cell-group>
</view>
<view
class=
"u-m-t-20"
@
click=
"take"
>
<u-cell-group>
<u-cell-item
icon=
"setting"
title=
"相机组件测试"
></u-cell-item>
</u-cell-group>
</view>
</view>
<take-photo
v-if=
"takeStatus"
:currentItem=
"testData"
@
close=
"closeTake"
></take-photo>
</view>
</
template
>
<
script
>
import
takePhoto
from
'@/components/take/index.vue'
export
default
{
components
:
{
'take-photo'
:
takePhoto
},
data
()
{
return
{
pic
:
'https://uviewui.com/common/logo.png'
,
show
:
true
,
takeStatus
:
false
,
testData
:
{
_id
:
'1'
,
// 规格ID
system_id
:
'2'
,
// 系统ID
brand_id
:
'3'
,
// 品牌ID
classify_id
:
'4'
,
// 分类ID
images
:
[
// 拍照要求示意图
'https://qn-static.banshouhui.com/live_mark.png'
,
'https://qn-static.banshouhui.com/live_mark.png'
,
'https://qn-static.banshouhui.com/live_mark.png'
],
main_point
:
[]
// 要点
}
}
},
computed
:
{
items
()
{
return
[
{
title
:
'我的钱包'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的质保金'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的合同'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的证件'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的收货地址'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的仓库'
,
value
:
''
,
icon
:
''
},
{
title
:
'联系客服'
,
value
:
'6666666'
,
icon
:
''
}]
}
},
onLoad
()
{
},
methods
:
{
take
()
{
uni
.
hideTabBar
()
this
.
takeStatus
=
true
},
closeTake
(
img
)
{
console
.
log
(
img
)
this
.
takeStatus
=
false
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
<
template
>
<view>
<u-navbar
v-if=
"!takeStatus"
:is-back=
"false"
:title-size=
"26"
title-color=
"#000"
title=
"我的"
></u-navbar>
<view
v-if=
"!takeStatus"
>
<view
class=
"u-flex user-box u-p-l-30 u-p-r-20 u-p-b-30"
>
<view
class=
"u-m-r-10"
>
<u-avatar
:src=
"pic"
size=
"140"
></u-avatar>
</view>
<view
class=
"u-flex-1"
>
<view
class=
"u-font-18 u-p-b-20"
>
uView ui
</view>
<view
class=
"u-font-14 u-tips-color"
>
微信号:helang_uView
</view>
</view>
</view>
<view
class=
"u-m-t-20"
>
<u-cell-group>
<u-cell-item
v-for=
"(item, index) in items"
:title=
"item.title"
:value=
"item.value"
:key=
"index"
>
<u-icon
slot=
"icon"
size=
"32"
name=
"search"
></u-icon>
</u-cell-item>
</u-cell-group>
</view>
<view
class=
"u-m-t-20"
>
<u-cell-group>
<u-cell-item
icon=
"setting"
title=
"设置"
></u-cell-item>
</u-cell-group>
</view>
<view
class=
"u-m-t-20"
@
click=
"take"
>
<u-cell-group>
<u-cell-item
icon=
"setting"
title=
"相机组件测试"
></u-cell-item>
</u-cell-group>
</view>
</view>
<take-photo
v-if=
"takeStatus"
:currentItem=
"testData"
@
close=
"closeTake"
></take-photo>
</view>
</
template
>
<
script
>
import
takePhoto
from
'@/components/take/index.vue'
export
default
{
components
:
{
'take-photo'
:
takePhoto
},
data
()
{
return
{
pic
:
'https://uviewui.com/common/logo.png'
,
show
:
true
,
takeStatus
:
false
,
testData
:
{
_id
:
'1'
,
// 规格ID
system_id
:
'2'
,
// 系统ID
brand_id
:
'3'
,
// 品牌ID
classify_id
:
'4'
,
// 分类ID
images
:
[
// 拍照要求示意图
'https://qn-static.banshouhui.com/live_mark.png'
,
'https://qn-static.banshouhui.com/live_mark.png'
,
'https://qn-static.banshouhui.com/live_mark.png'
],
main_point
:
[]
// 要点
}
}
},
computed
:
{
items
()
{
return
[
{
title
:
'我的钱包'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的质保金'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的合同'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的证件'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的收货地址'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的仓库'
,
value
:
''
,
icon
:
''
},
{
title
:
'联系客服'
,
value
:
'6666666'
,
icon
:
''
}]
}
},
onLoad
()
{
},
methods
:
{
take
()
{
uni
.
hideTabBar
()
this
.
takeStatus
=
true
},
closeTake
(
img
)
{
console
.
log
(
img
)
this
.
takeStatus
=
false
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
src/pages/
order/index
.vue
→
src/pages/
index/order
.vue
View file @
831c6968
File moved
src/pages/login/index.vue
View file @
831c6968
...
...
@@ -160,13 +160,19 @@ export default {
if
(
pages
.
length
)
{
let
index
=
pages
.
length
-
1
;
if
(
index
)
{
let
prevPage
=
pages
[
pages
.
length
-
1
];
//上一个页面
if
(
prevPage
&&
prevPage
.
$vm
)
{
prevPage
.
$vm
.
isRefresh
=
true
;
let
prevPage
=
pages
[
index
];
//上一个页面
if
(
prevPage
.
route
==
"pages/login/index"
)
{
uni
.
navigateTo
({
url
:
'pages/index/index'
})
}
else
{
if
(
prevPage
&&
prevPage
.
$vm
)
{
prevPage
.
$vm
.
isRefresh
=
true
;
}
uni
.
navigateBack
({
delta
:
1
})
}
uni
.
navigateBack
({
delta
:
1
})
}
else
{
uni
.
navigateTo
({
url
:
'pages/index/index'
...
...
@@ -174,7 +180,7 @@ export default {
}
}
else
{
uni
.
navigateTo
({
url
:
"pages/
mine/index
"
url
:
"pages/
index/mine
"
})
}
...
...
src/pages/order/complete.vue
View file @
831c6968
...
...
@@ -161,8 +161,7 @@
completeCheckResult
:
[],
waitHandlerPanelIndex
:
0
,
waitHandlerGroupIndex
:
0
,
waitHandlerEleIndex
:
0
,
pass
:
false
waitHandlerEleIndex
:
0
,
}
},
components
:
{
...
...
@@ -311,9 +310,9 @@
self
.
completeCheckResult
=
checkResult
return
pass
},
confirm
(){
// 检查结果窗口 确认回调
uni
.
switchTab
({
url
:
'
/pages/order/index
'
confirm
(){
// 检查结果窗口 确认回调
uni
.
navigateTo
({
url
:
'
pages/index/order
'
})
},
closeCheckResult
(){
// 检查结果窗口取消回调
...
...
@@ -338,8 +337,7 @@
if
(
!
pass
){
self
.
completeCheckStatus
=
true
}
else
{
console
.
log
(
"完工"
);
this
.
pass
=
pass
console
.
log
(
"完工"
);
if
(
self
.
inGuaranteePeriod
===
'Y'
){
self
.
$u
.
api
.
inOrderFinish
(
self
.
orderId
).
then
((
res
)
=>
{
console
.
log
(
res
)
...
...
@@ -382,66 +380,63 @@
nextStep
()
{
if
(
this
.
tabIndex
<
this
.
list
.
length
-
1
)
{
this
.
tabIndex
++
this
.
arr
=
[]
this
.
scrollRightTop
=
0
this
.
leftMenuStatus
(
0
)
this
.
arr
=
[]
this
.
$nextTick
(
function
()
{
this
.
getMenuItemTop
()
})
}
},
typeToComponentType
(
type
)
{
let
formType
=
''
if
(
type
)
{
// 将fieldType类型统一转换为公共组件判定类型
type
=
type
.
toLocaleLowerCase
()
switch
(
type
)
{
case
'text'
:
case
'password'
:
case
'textarea'
:
case
'number'
:
case
'decimal'
:
case
'double'
:
case
'integer'
:
formType
=
'input'
break
case
'multiinput'
:
formType
=
'multiinput'
break
;
case
'select'
:
case
'specifications'
:
formType
=
'select'
break
case
'radio'
:
formType
=
'radio'
break
case
'checkbox'
:
formType
=
'checkbox'
break
case
'file'
:
case
'photos'
:
formType
=
'file'
break
case
'location'
:
formType
=
'location'
break
case
'scan'
:
formType
=
'scan'
break
case
'picker'
:
case
'mutipicker'
:
formType
=
'picker'
break
case
'service_measures'
:
formType
=
'servicemeasure'
break
case
'time'
:
case
'date'
:
formType
=
'time'
break
}
}
typeToComponentType
(
type
)
{
// 将fieldType类型统一转换为公共组件判定类型
let
formType
=
''
type
=
type
.
toLocaleLowerCase
()
switch
(
type
)
{
case
'text'
:
formType
=
'input'
break
case
'password'
:
case
'textarea'
:
case
'number'
:
case
'decimal'
:
case
'double'
:
case
'integer'
:
formType
=
'input'
break
case
'multiinput'
:
formType
=
'multiinput'
break
;
case
'select'
:
case
'specifications'
:
formType
=
'select'
break
case
'radio'
:
formType
=
'radio'
break
case
'checkbox'
:
formType
=
'checkbox'
break
case
'file'
:
case
'photos'
:
formType
=
'file'
break
case
'location'
:
formType
=
'location'
break
case
'scan'
:
formType
=
'scan'
break
case
'picker'
:
case
'mutipicker'
:
formType
=
'picker'
break
case
'service_measures'
:
formType
=
'servicemeasure'
break
case
'time'
:
case
'date'
:
formType
=
'time'
break
}
return
formType
},
// ------------------------- 以下方法为展示滚动切换 -------------------------
...
...
src/pages/order/detail.vue
View file @
831c6968
...
...
@@ -156,7 +156,7 @@
import
appointTime
from
'@/components/appoint/appoint-time.vue'
import
takePhoto
from
'@/components/take/index.vue'
import
PopView
from
"@/components/popView/index.vue"
let
now
=
Date
.
now
()
let
now
=
new
Date
(
new
Date
().
toLocaleDateString
()).
getTime
();
let
r
=
require
(
"../../libs/bmap-wx.min.js"
);
let
h
=
new
r
.
BMapWX
({
// ak: "rpVq5d3yxaRCoKzVwmFMo0o4iC524CAG",
...
...
@@ -458,6 +458,7 @@
console
.
log
(
data
,
'dateChange'
)
let
self
=
this
self
.
appointmentDatetime
=
data
.
item
.
day
self
.
appointmentDatetimeRange
=
null
self
.
timeList
.
map
((
item
,
index
)
=>
{
if
(
data
.
item
.
timeRange
.
indexOf
(
item
.
pkey
)
>
-
1
)
{
item
.
disabled
=
true
...
...
@@ -546,15 +547,15 @@
data
.
orderId
=
this
.
order
.
orderId
}
else
if
(
this
.
submitType
===
'workerAppointment'
){
// 预约
data
.
appointmentDatetime
=
this
.
appointmentDatetime
data
.
appointmentDatetimeRange
=
this
.
appointmentDatetimeRange
.
pkey
if
(
!
data
.
appointmentDatetime
){
this
.
commonToast
(
'请选择预约日期'
,
'waring'
)
return
}
if
(
!
data
.
appointmentDatetimeRange
){
if
(
!
this
.
appointmentDatetimeRange
||
!
this
.
appointmentDatetimeRange
.
pkey
){
this
.
commonToast
(
'请选择预约时间段'
,
'waring'
)
return
}
data
.
appointmentDatetimeRange
=
this
.
appointmentDatetimeRange
.
pkey
}
else
if
(
this
.
submitType
===
'maintainWorkerCheckin'
)
{
// 签到
// 检查见到距离是否符合
if
(
!
this
.
isErrorSign
){
...
...
@@ -708,7 +709,7 @@
this
.
visibale
=
false
// 交互规范
uni
.
switchTab
({
url
:
'pages/
learn/index
'
url
:
'pages/
index/learn
'
})
},
threeDays
()
{
...
...
src/pages/order/feedback.vue
View file @
831c6968
...
...
@@ -121,11 +121,10 @@ export default {
reasonType
:
'报备'
,
// 反馈类型
reasonRelegation
:
'客户'
,
// 反馈归属
reason
:
''
,
// 反馈原因
appointmentDatetime
:
null
,
// 预约时间
appointmentDatetimeRange
:
''
,
// 预约时间段类型
nextTraceDatetime
:
''
,
// 下次跟踪时间
remark
:
''
// 备注
},
traceDate
:
null
,
// 反馈时间
timeRange
:
null
,
// 反馈时间段
dateItem
:
null
,
timeItem
:
null
,
showRemark
:
false
,
...
...
@@ -139,23 +138,15 @@ export default {
appointTime
},
watch
:
{
vuex_token
(
val
)
{
this
.
initPageData
();
}
//
vuex_token(val) {
//
this.initPageData();
//
}
},
computed
:
{
disabledSubmit
()
{
let
self
=
this
;
if
(
self
.
trace
.
reasonRelegation
&&
self
.
trace
.
reason
)
{
if
(
self
.
trace
.
reasonType
==
'改约'
)
{
if
(
self
.
trace
.
appointmentDatetime
&&
self
.
trace
.
appointmentDatetimeRange
)
{
return
false
;
}
}
else
{
if
(
self
.
trace
.
nextTraceDatetime
&&
self
.
trace
.
appointmentDatetimeRange
)
{
return
false
;
}
}
if
(
self
.
trace
.
reasonRelegation
&&
self
.
trace
.
reason
&&
self
.
traceDate
&&
self
.
timeRange
)
{
return
false
;
}
return
true
;
...
...
@@ -222,9 +213,8 @@ export default {
self
.
trace
.
reason
=
tabList
[
'owns'
][
self
.
curOwn
][
'types'
][
0
];
self
.
appointTitle
=
self
.
appoint
[
self
.
curTab
]
self
.
trace
.
remark
=
''
;
self
.
trace
.
appointmentDatetime
=
null
;
self
.
trace
.
appointmentDatetimeRange
=
null
;
self
.
trace
.
nextTraceDatetime
=
null
;
self
.
traceDate
=
null
;
self
.
timeRange
=
null
;
if
(
self
.
trace
.
reasonType
==
'改约'
)
{
self
.
showRemark
=
true
;
if
(
self
.
dateList
&&
self
.
timeList
)
{
...
...
@@ -300,12 +290,9 @@ export default {
},
dateChange
(
data
)
{
// 点击日期选择
console
.
log
(
data
,
'week-data'
);
let
self
=
this
;
self
.
dateItem
=
data
.
item
if
(
self
.
trace
.
reasonType
==
'改约'
)
{
self
.
trace
.
appointmentDatetime
=
data
.
item
.
day
;
self
.
trace
.
nextTraceDatetime
=
null
;
self
.
timeList
.
map
((
item
,
index
)
=>
{
if
(
data
.
item
.
timeRange
.
indexOf
(
item
.
pkey
)
>
-
1
)
{
item
.
disabled
=
true
;
...
...
@@ -314,18 +301,17 @@ export default {
}
});
}
else
{
self
.
trace
.
appointmentDatetime
=
null
;
self
.
trace
.
nextTraceDatetime
=
data
.
item
.
day
;
self
.
timeList
.
map
((
item
,
index
)
=>
{
item
.
disabled
=
false
;
});
}
self
.
trace
.
appointmentDatetimeRange
=
''
;
self
.
traceDate
=
data
.
item
.
day
;
self
.
timeRange
=
null
;
},
timeChange
(
data
)
{
// 时间段选择变化
console
.
log
(
data
,
'week-data'
);
this
.
t
race
.
appointmentDatet
imeRange
=
data
.
item
.
pkey
;
this
.
timeRange
=
data
.
item
.
pkey
;
this
.
timeItem
=
data
.
item
},
async
submitForm
()
{
...
...
@@ -341,15 +327,16 @@ export default {
self
.
submiting
=
true
;
let
params
=
this
.
$u
.
deepClone
(
self
.
trace
);
if
(
self
.
trace
.
reasonType
!=
'改约'
)
{
params
.
appointmentDatetimeRange
=
null
params
.
appointmentDatetime
=
null
if
(
self
.
timeItem
&&
self
.
timeItem
.
pkey
&&
params
.
nextTraceDatetime
){
let
traceDate
=
self
.
moment
(
params
.
nextTraceDatetime
);
if
(
self
.
timeItem
&&
self
.
timeItem
.
pkey
&&
self
.
traceDate
){
let
traceDate
=
self
.
moment
(
self
.
traceDate
);
let
timeArr
=
self
.
timeItem
.
pkey
.
split
(
"_"
)
let
hours
=
timeArr
&&
timeArr
.
length
&&
timeArr
.
pop
()
let
traceDateTime
=
traceDate
.
clone
().
add
(
Number
(
hours
),
'hours'
);
params
.
nextTraceDatetime
=
traceDateTime
.
unix
()
*
1000
}
}
else
{
params
.
appointmentDatetime
=
self
.
traceDate
params
.
appointmentDatetimeRange
=
self
.
timeRange
}
let
res
=
await
self
.
$u
.
api
.
traceAndAppointment
(
params
,
self
.
orderId
);
self
.
submiting
=
false
;
...
...
src/pages/order/material.vue
0 → 100644
View file @
831c6968
<
template
>
<view
class=
"mtr-content"
>
<view
class=
"content-view"
>
<!-- 材料列表 -->
<view
class=
"mtr-tab"
>
<u-table
align=
"center"
border-color=
"#FFFFFF"
color=
"#333333"
font-size=
"rpx"
:th-style=
"thStyle"
padding=
"0"
>
<u-tr
class=
"u-tr"
>
<u-th
class=
"u-th content-tab-th"
v-for=
"(value, key) in titles"
:key=
"key"
width=
"auto"
>
<text
:class=
"['tab-th-txt',
{'left': key == firstKey}]">
{{
value
}}
</text>
</u-th>
</u-tr>
<view
class=
"line-view"
></view>
<u-tr
class=
"u-tr"
v-for=
"(item, index) in list"
:key=
"index"
>
<u-td
class=
"u-td"
v-for=
"(value, key) in titles"
:key=
"key"
>
<text
:class=
"['tab-th-txt',
{'left': key == firstKey}]">
{{
item
[
key
]
}}
</text>
</u-td>
</u-tr>
</u-table>
</view>
<!-- 其他 -->
<view
class=
"mtr-other"
>
<view
class=
"line-view"
></view>
<view
class=
"other-space"
>
<text>
其他
</text>
<image
class=
"image-view"
:src=
"addImage"
@
click=
"handleAdd"
></image>
</view>
<view
v-if=
"other.length > 0"
class=
"other-content"
>
<view
class=
"other-space"
v-for=
"(item, index) in other"
:key=
"index"
>
<view
class=
"input-view"
>
<view
class=
"other-space"
>
<text
class=
"input-title"
>
说明:
</text>
<view
class=
"input-content"
>
<u-input
v-model=
"item.title"
:clearable=
"false"
placeholder-style=
"color:#999999;font-size:26rpx"
/>
</view>
</view>
<view
class=
"other-space"
>
<text
class=
"input-title"
>
金额:
</text>
<view
class=
"input-content"
>
<u-input
v-model=
"item.value"
type=
"number"
:clearable=
"false"
placeholder-style=
"color:#999999;font-size:26rpx"
/>
</view>
</view>
</view>
<image
class=
"image-view"
:src=
"subtractImage"
@
click=
"handleSubtract"
></image>
</view>
</view>
<view
class=
"other-space"
>
<text>
超出金额
</text>
<text>
{{
money
}}
元
</text>
</view>
</view>
</view>
<!-- 底部确定按钮 -->
<view
class=
"bottom-view"
>
<u-button
class=
"sure-button"
type=
"primary"
shape=
"circle"
@
click=
"handleSure"
:custom-style=
"buttonStyle"
>
确定
</u-button>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
list
:
[],
// 材料列表
other
:
[],
// 其他列表
};
},
computed
:
{
buttonStyle
()
{
return
{
width
:
"600rpx"
,
height
:
"104rpx"
,
"font-size"
:
"32rpx"
,
"font-weight"
:
"bold"
,
};
},
titles
()
{
return
{
name
:
'材料名称'
,
unit
:
'单位'
,
freeAmount
:
'免费量'
,
price
:
'单价/元'
,
consumption
:
'预计用量'
}
},
thStyle
()
{
return
{
'font-weight'
:
'bold'
}
},
firstKey
()
{
return
Object
.
keys
(
this
.
titles
)[
0
]
},
subtractImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'qxiao.png'
},
addImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'tianjia.png'
},
money
()
{
// 总额
var
amount
=
0
for
(
var
item
of
this
.
list
)
{
if
(
Number
(
item
.
consumption
)
&&
Number
(
item
.
freeAmount
)
&&
Number
(
item
.
price
))
{
amount
+=
Math
.
max
(
Number
(
item
.
consumption
)
-
Number
(
item
.
freeAmount
),
0
)
*
Number
(
item
.
price
)
}
}
for
(
var
item
of
this
.
other
)
{
if
(
item
.
value
&&
Number
(
item
.
value
))
{
amount
+=
Number
(
item
.
value
)
}
}
return
amount
}
},
created
()
{
// 测试数据
console
.
log
(
'0000'
)
for
(
var
i
=
0
;
i
<
20
;
i
++
)
{
this
.
list
.
push
({
name
:
'开关发大法师放大范德萨发大水'
,
unit
:
'个'
,
freeAmount
:
'1'
,
price
:
'45.0'
,
consumption
:
'4'
,
})
}
},
methods
:
{
/* 其他添加新的 */
handleAdd
()
{
this
.
other
.
push
({
title
:
''
,
value
:
''
})
},
/* 其他删除某个 */
handleSubtract
(
index
)
{
this
.
other
.
splice
(
index
,
1
)
},
handleSure
()
{
// 返回总额money
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.mtr-content
{
display
:
flex
;
flex-direction
:
column
;
background-color
:
#F4F5F7
;
height
:
100vh
;
.content-view
{
padding
:
30rpx
30rpx
60rpx
30rpx
;
margin
:
20rpx
30rpx
;
border-radius
:
12rpx
;
background-color
:
#FFFFFF
;
height
:
100%
;
overflow
:
auto
;
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
margin
:
20rpx
0
;
}
.mtr-tab
{
.tab-th-txt
{
background-color
:
#FFFFFF
;
padding
:
10rpx
0
;
&
.left
{
text-align
:
left
;
}
}
}
.mtr-other
{
.other-space
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.other-content
{
margin-bottom
:
30rpx
;
}
.input-view
{
padding
:
10rpx
30rpx
;
width
:
100%
;
border-radius
:
12rpx
;
border
:
1px
#F4F5F7
solid
;
margin-bottom
:
30rpx
;
.input-title
{
width
:
80rpx
;
flex-shrink
:
0
;
color
:
#333333
;
font-size
:
26rpx
;
}
.input-content
{
width
:
100%
;
}
}
.image-view
{
width
:
52rpx
;
height
:
52rpx
;
flex-shrink
:
0
;
margin
:
30rpx
0
30rpx
30rpx
;
}
}
}
.bottom-view
{
margin-bottom
:
44rpx
;
margin-top
:
10rpx
;
height
:
104rpx
;
}
}
</
style
>
src/pages/study/index.vue
deleted
100644 → 0
View file @
e07aeb57
<
template
>
</
template
>
<
script
>
</
script
>
<
style
>
</
style
>
src/uview-ui/components/u-button/u-button.vue
View file @
831c6968
...
...
@@ -26,7 +26,6 @@
:send-message-img="sendMessageImg"
:show-message-card="showMessageCard"
@getphonenumber="getphonenumber"
@getuserinfo="getuserinfo"
@error="error"
@opensetting="opensetting"
@launchapp="launchapp"
...
...
@@ -325,9 +324,9 @@ export default {
getphonenumber
(
res
)
{
this
.
$emit
(
'getphonenumber'
,
res
);
},
getuserinfo
(
res
)
{
this
.
$emit
(
'getuserinfo'
,
res
);
},
//
getuserinfo(res) {
//
this.$emit('getuserinfo', res);
//
},
error
(
res
)
{
this
.
$emit
(
'error'
,
res
);
},
...
...
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