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
c701448c
Commit
c701448c
authored
Apr 20, 2021
by
Facius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
2547ffbd
36601a7b
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
736 additions
and
641 deletions
+736
-641
App.vue
src/App.vue
+21
-11
index.js
src/common/api/index.js
+4
-1
order.js
src/common/api/order.js
+11
-0
settled.js
src/common/api/settled.js
+5
-1
pages.json
src/pages.json
+0
-5
index.vue
src/pages/index/index.vue
+443
-390
course-detail.vue
src/pages/learn/course-detail.vue
+236
-229
exam.vue
src/pages/learn/exam.vue
+12
-2
prompt.vue
src/pages/settle/prompt.vue
+2
-2
login.js
src/utils/login.js
+2
-0
No files found.
src/App.vue
View file @
c701448c
...
@@ -18,19 +18,24 @@
...
@@ -18,19 +18,24 @@
// 服务规范教程视频
// 服务规范教程视频
service_standard
:
{
service_standard
:
{
"Course1"
:
{
"Course1"
:
{
url
:
"https://
xy-hybrid.kakalili.com/web/vivaVideo/home/static/img
/videoen.mp4"
,
url
:
"https://
qn-static.banshouhui.com/self-support
/videoen.mp4"
,
title
:
"第一节
接单服务标准
"
,
title
:
"第一节
师傅考核规则
"
,
desc
:
"
1.不同车企品牌结算价格不一,675元-1890元不等;
"
,
desc
:
"
接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。
"
,
},
},
"Course2"
:
{
"Course2"
:
{
url
:
"https://
xy-hybrid.kakalili.com/web/vivaVideo/home/static/img
/videoen.mp4"
,
url
:
"https://
qn-static.banshouhui.com/self-support
/videoen.mp4"
,
title
:
"第二节
完工服务标准
"
,
title
:
"第二节
安装材料及工具
"
,
desc
:
"
2.结算价格为包工包料价,安装材料根据车企品牌规格自行采购(电缆、空开、漏保);
"
,
desc
:
"
接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。
"
,
},
},
"Course3"
:
{
"Course3"
:
{
url
:
"https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4"
,
url
:
"https://qn-static.banshouhui.com/self-support/videoen.mp4"
,
title
:
"第二节 结算服务标准"
,
title
:
"第二节 安装施工规范"
,
desc
:
"3.需具备一定的作业工具:如液压压线钳、冲击钻、电锤、登高安全带、电锤、绝缘电阻仪(摇表)、交流充电模拟器等;"
,
desc
:
"接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。"
,
},
"Course4"
:
{
url
:
"https://qn-static.banshouhui.com/self-support/videoen.mp4"
,
title
:
"第二节 录单上传要求"
,
desc
:
"接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。"
,
},
},
},
},
...
@@ -46,10 +51,12 @@
...
@@ -46,10 +51,12 @@
that
.
globalData
.
token
=
util
.
getToken
()
that
.
globalData
.
token
=
util
.
getToken
()
AnalysysAgent
.
registerSuperProperty
(
"platform"
,
"self-support"
);
AnalysysAgent
.
registerSuperProperty
(
"platform"
,
"self-support"
);
// 应用启动,或从后台进入前台显示
this
.
autoLogin
()
},
},
onShow
:
function
()
{
onShow
:
function
()
{
// 应用启动,或从后台进入前台显示
// 应用启动,或从后台进入前台显示
this
.
autoLogin
()
//
this.autoLogin()
},
},
onHide
:
function
()
{
onHide
:
function
()
{
// 应用从前台进入后台
// 应用从前台进入后台
...
@@ -73,7 +80,9 @@
...
@@ -73,7 +80,9 @@
if
(
!
res
.
data
)
{
if
(
!
res
.
data
)
{
return
return
}
}
callBack
(
vm
,
res
.
data
)
if
(
typeof
callBack
==
'function'
)
{
callBack
(
vm
,
res
.
data
)
}
uni
.
hideLoading
()
uni
.
hideLoading
()
return
res
.
data
return
res
.
data
...
@@ -95,6 +104,7 @@
...
@@ -95,6 +104,7 @@
if
(
result
)
{
if
(
result
)
{
if
(
result
.
code
==
200
&&
result
.
data
)
{
if
(
result
.
code
==
200
&&
result
.
data
)
{
that
.
setUserData
(
result
.
data
)
that
.
setUserData
(
result
.
data
)
that
.
getBaseInfo
(
that
)
}
}
}
else
{
}
else
{
uni
.
showModal
({
uni
.
showModal
({
...
...
src/common/api/index.js
View file @
c701448c
...
@@ -8,16 +8,19 @@ import {
...
@@ -8,16 +8,19 @@ import {
settledApiFun
settledApiFun
}
from
'@/common/api/settled.js'
;
}
from
'@/common/api/settled.js'
;
import
{
learnApiFun
}
from
"@/common/api/learn.js"
;
import
{
learnApiFun
}
from
"@/common/api/learn.js"
;
import
{
orderApiFun
}
from
"@/common/api/order.js"
;
let
apiFun
=
function
(
vm
)
{
let
apiFun
=
function
(
vm
)
{
let
commonApi
=
commonApiFun
(
vm
);
let
commonApi
=
commonApiFun
(
vm
);
let
settledApi
=
settledApiFun
(
vm
)
let
settledApi
=
settledApiFun
(
vm
)
let
cloudApi
=
cloudRulesApiFun
(
vm
)
let
cloudApi
=
cloudRulesApiFun
(
vm
)
let
learnApi
=
learnApiFun
(
vm
)
let
learnApi
=
learnApiFun
(
vm
)
let
orderApi
=
orderApiFun
(
vm
)
let
apiUrl
=
{
let
apiUrl
=
{
...
commonApi
,
...
commonApi
,
...
settledApi
,
...
settledApi
,
...
cloudApi
,
...
cloudApi
,
...
learnApi
...
learnApi
,
...
orderApi
,
}
}
return
apiUrl
return
apiUrl
}
}
...
...
src/common/api/order.js
0 → 100644
View file @
c701448c
let
orderApiFun
=
function
(
vm
){
let
listByRecommendOrder
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'/wxh-worker-rest/rest/recommend/order'
,
params
);
const
orderApi
=
{
listByRecommendOrder
,
}
return
orderApi
}
module
.
exports
=
{
orderApiFun
}
\ No newline at end of file
src/common/api/settled.js
View file @
c701448c
...
@@ -36,7 +36,10 @@ let settledApiFun = function(vm){
...
@@ -36,7 +36,10 @@ let settledApiFun = function(vm){
let
listOrderingTutorials
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
ucenterApiUrl
+
'/v1/settled/get-course-rate'
,
params
);
let
listOrderingTutorials
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
ucenterApiUrl
+
'/v1/settled/get-course-rate'
,
params
);
/* 更新接单教程状态 */
/* 更新接单教程状态 */
let
saveCourseRate
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
ucenterApiUrl
+
'/v1/settled/save-course-rate'
,
params
);
let
saveCourseRate
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
ucenterApiUrl
+
'/v1/settled/save-course-rate'
,
params
);
/* 获取消息内容列表 */
let
listByNotice
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
ucenterApiUrl
+
'/v1/notice/list'
,
params
);
const
settledApi
=
{
const
settledApi
=
{
getSettleBaseInfo
,
getSettleBaseInfo
,
...
@@ -52,6 +55,7 @@ let settledApiFun = function(vm){
...
@@ -52,6 +55,7 @@ let settledApiFun = function(vm){
checkSettleSignInfo
,
checkSettleSignInfo
,
listOrderingTutorials
,
listOrderingTutorials
,
saveCourseRate
,
saveCourseRate
,
listByNotice
,
}
}
return
settledApi
return
settledApi
}
}
...
...
src/pages.json
View file @
c701448c
...
@@ -254,11 +254,6 @@
...
@@ -254,11 +254,6 @@
"path"
:
"pages/settle/sign-contract"
,
//启动页面,必选
"path"
:
"pages/settle/sign-contract"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
},
{
"name"
:
"订单列表"
,
//模式名称
"path"
:
"pages/order/index"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
{
"name"
:
"订单 - 完工配置"
,
//模式名称
"name"
:
"订单 - 完工配置"
,
//模式名称
"path"
:
"pages/order/complete"
,
//启动页面,必选
"path"
:
"pages/order/complete"
,
//启动页面,必选
...
...
src/pages/index/index.vue
View file @
c701448c
This diff is collapsed.
Click to expand it.
src/pages/learn/course-detail.vue
View file @
c701448c
This diff is collapsed.
Click to expand it.
src/pages/learn/exam.vue
View file @
c701448c
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
id
:
'Course1'
,
id
:
'Course1'
,
courseId
:
1
,
courseId
:
1
,
title
:
''
,
title
:
''
,
value
:
'
已
学习'
,
value
:
'
去
学习'
,
courseActive
:
{},
courseActive
:
{},
status
:
1
,
status
:
1
,
url
:
''
url
:
''
...
@@ -104,6 +104,15 @@
...
@@ -104,6 +104,15 @@
courseActive
:
{},
courseActive
:
{},
status
:
0
,
status
:
0
,
url
:
''
url
:
''
},
{
id
:
'Course4'
,
courseId
:
4
,
title
:
''
,
value
:
'去学习'
,
courseActive
:
{},
status
:
0
,
url
:
''
}
}
],
],
tipsDescription
:
'接单考核可让您快速了解如何使用小程序,建议先查看学习教程'
tipsDescription
:
'接单考核可让您快速了解如何使用小程序,建议先查看学习教程'
...
@@ -160,8 +169,9 @@
...
@@ -160,8 +169,9 @@
that
.
$u
.
api
that
.
$u
.
api
.
listOrderingTutorials
()
.
listOrderingTutorials
()
.
then
(
res
=>
{
.
then
(
res
=>
{
debugger
const
results
=
res
.
data
;
const
results
=
res
.
data
;
if
(
res
.
status
==
200
&&
results
&&
results
.
length
>
0
)
{
if
(
res
.
code
==
200
&&
results
&&
results
.
length
>
0
)
{
that
.
tutorials
.
forEach
((
data
,
i
)
=>
{
that
.
tutorials
.
forEach
((
data
,
i
)
=>
{
if
(
results
.
hasOwnProperty
(
data
.
id
))
{
if
(
results
.
hasOwnProperty
(
data
.
id
))
{
data
.
status
=
results
[
data
.
id
];
data
.
status
=
results
[
data
.
id
];
...
...
src/pages/settle/prompt.vue
View file @
c701448c
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
</image>
</image>
</view>
</view>
<view
class=
"txt-box"
>
<view
class=
"txt-box"
>
<text
:class=
"['title',
{failed: status == 4} ,index ? 'active' : '']" v-for="(txt,index) in info.txtArr">
{{
txt
}}
</text>
<text
:class=
"['title',
{failed: status == 4} ,index ? 'active' : '']" v-for="(txt,index) in info.txtArr"
:key="index"
>
{{
txt
}}
</text>
</view>
</view>
<view
class=
"tips-box"
v-if=
"info.tipsArr"
>
<view
class=
"tips-box"
v-if=
"info.tipsArr"
>
<text
:class=
"['tips',info.tipsArr.length>1 && index===0 ? 'red' : '']"
<text
:class=
"['tips',info.tipsArr.length>1 && index===0 ? 'red' : '']"
v-for=
"(txt,index) in info.tipsArr"
>
{{
txt
}}
</text>
v-for=
"(txt,index) in info.tipsArr"
:key=
"index"
>
{{
txt
}}
</text>
</view>
</view>
<view
class=
"services-view"
>
<view
class=
"services-view"
>
<image
class=
"service-info-image"
:src=
"erweimaImage"
></image>
<image
class=
"service-info-image"
:src=
"erweimaImage"
></image>
...
...
src/utils/login.js
View file @
c701448c
...
@@ -33,6 +33,7 @@ function authorization(data) {
...
@@ -33,6 +33,7 @@ function authorization(data) {
if
(
res
)
{
if
(
res
)
{
if
(
res
.
code
==
200
&&
res
.
data
)
{
if
(
res
.
code
==
200
&&
res
.
data
)
{
app
.
setUserData
(
res
.
data
)
app
.
setUserData
(
res
.
data
)
app
.
getBaseInfo
(
app
.
$vm
)
resolve
(
res
);
resolve
(
res
);
}
else
{
}
else
{
reject
(
res
);
reject
(
res
);
...
@@ -53,6 +54,7 @@ function signup(data) {
...
@@ -53,6 +54,7 @@ function signup(data) {
if
(
res
)
{
if
(
res
)
{
if
(
res
.
code
==
200
&&
res
.
data
)
{
if
(
res
.
code
==
200
&&
res
.
data
)
{
app
.
setUserData
(
res
.
data
)
app
.
setUserData
(
res
.
data
)
app
.
getBaseInfo
(
app
.
$vm
)
resolve
(
res
);
resolve
(
res
);
}
else
{
}
else
{
uni
.
showModal
({
uni
.
showModal
({
...
...
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