Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
9411997e
Commit
9411997e
authored
Feb 05, 2021
by
和慭琛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-photo-tools'
parents
43d5f1df
ad702724
Changes
24
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
1102 additions
and
47 deletions
+1102
-47
App.vue
take-order/App.vue
+72
-2
pages.json
take-order/pages.json
+51
-30
index.vue
take-order/pages/exam/index.vue
+575
-0
index.vue
take-order/pages/index/index.vue
+19
-3
record.vue
take-order/pages/index/record.vue
+1
-1
success.vue
take-order/pages/index/success.vue
+1
-1
wxlogin.vue
take-order/pages/login/wxlogin.vue
+1
-0
brand.vue
take-order/pages/photo/brand.vue
+1
-1
detail.vue
take-order/pages/photo/detail.vue
+1
-0
list.vue
take-order/pages/photo/list.vue
+1
-1
preview.vue
take-order/pages/photo/preview.vue
+1
-0
product.vue
take-order/pages/photo/product.vue
+1
-0
take.vue
take-order/pages/photo/take.vue
+1
-0
try.vue
take-order/pages/photo/try.vue
+1
-0
base.vue
take-order/pages/settle/base.vue
+48
-0
index.vue
take-order/pages/settle/index.vue
+112
-0
index.vue
take-order/pages/sign/index.vue
+34
-0
detail.vue
take-order/pages/take/detail.vue
+17
-3
finish.vue
take-order/pages/take/finish.vue
+1
-1
index.vue
take-order/pages/take/index.vue
+1
-1
measure.vue
take-order/pages/take/measure.vue
+1
-1
rob.vue
take-order/pages/take/rob.vue
+5
-2
web.vue
take-order/pages/take/web.vue
+7
-0
index.vue
take-order/pages/video/index.vue
+149
-0
No files found.
take-order/App.vue
View file @
9411997e
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
//https://system.dev.banshouhui.com
//https://system.dev.banshouhui.com
//正式环境
//正式环境
domain_Name
:
'https://system.banshouhui.com'
,
//
domain_Name: 'https://system.banshouhui.com',
//测试环境
//测试环境
//
domain_Name: 'https://system.dev.banshouhui.com',
domain_Name
:
'https://system.dev.banshouhui.com'
,
//http://192.168.0.208:8192
//http://192.168.0.208:8192
//小青本地环境
//小青本地环境
...
@@ -191,6 +191,76 @@
...
@@ -191,6 +191,76 @@
this
.
protocolContent
this
.
protocolContent
},
},
/* ------------------------- 数据埋点begin ------------------------------ */
track
(
event
,
properties
)
{
if
(
AnalysysAgent
)
{
// 易观添加事件
let
AnalysysAgent
=
wx
.
AnalysysAgent
;
AnalysysAgent
.
track
(
"take_order_"
+
event
,
properties
);
}
},
identify
(
userInfo
,
openid
,
unionid
=
null
)
{
// 设备身份表示
if
(
AnalysysAgent
)
{
let
setProfile
=
{
'openid'
:
openid
,
'unionid'
:
unionid
,
}
setProfile
=
Object
.
assign
(
setProfile
,
userInfo
)
AnalysysAgent
.
profileSet
(
setProfile
);
}
},
setUserId
(
userId
)
{
// 用户id设置
if
(
AnalysysAgent
)
{
AnalysysAgent
.
alias
(
userId
+
''
)
}
},
setUser
(
user
)
{
// 用户附加属性
if
(
AnalysysAgent
)
{
let
userInfo
=
{
'mobile'
:
user
.
mobile
,
'userfrom_id'
:
user
.
uid
,
'userfrom'
:
'家维广场'
,
'avatar'
:
user
.
avatar
,
'nickname'
:
user
.
nickname
,
'username'
:
user
.
username
,
'wxhuid'
:
user
.
wxhuid
,
'id'
:
user
.
id
,
'money'
:
user
.
money
,
'score'
:
user
.
score
};
Object
.
keys
(
userInfo
).
map
(
key
=>
{
if
(
key
&&
userInfo
[
key
]){
AnalysysAgent
.
profileAppend
(
key
,
userInfo
[
key
])
}
})
}
},
share
(
toShareProperties
,
trackProperties
)
{
if
(
AnalysysAgent
)
{
AnalysysAgent
.
share
(
toShareProperties
,
trackProperties
);
}
},
trackPage
(
pageName
,
properties
){
if
(
AnalysysAgent
)
{
AnalysysAgent
.
pageView
(
pageName
,
properties
);
}
},
initShare
(
option
){
console
.
log
(
option
,
'option-initShare'
)
option
=
option
||
{}
if
(
AnalysysAgent
&&
option
.
user_id
)
{
let
shareUserInfo
=
{
'share_from_id'
:
option
.
user_id
||
''
,
'share_from_nickname'
:
option
.
user_name
||
''
,
}
AnalysysAgent
.
registerSuperProperties
(
shareUserInfo
);
}
},
/* ------------------------- 数据埋点end ------------------------------ */
},
},
...
...
take-order/pages.json
View file @
9411997e
...
@@ -7,6 +7,22 @@
...
@@ -7,6 +7,22 @@
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/settle/index"
,
"style"
:
{
"navigationBarTitleText"
:
"充电桩安装招募"
}
},
{
"path"
:
"pages/settle/base"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻信息"
}
},
{
{
"path"
:
"pages/index/index"
,
"path"
:
"pages/index/index"
,
"style"
:
{
"style"
:
{
...
@@ -15,6 +31,35 @@
...
@@ -15,6 +31,35 @@
},
},
{
"path"
:
"pages/sign/index"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻签约"
}
},
{
"path"
:
"pages/exam/index"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻考试"
}
},
{
"path"
:
"pages/video/index"
,
"style"
:
{
"navigationBarTitleText"
:
"培训&考试"
}
},
{
{
"path"
:
"pages/photo/product"
,
"path"
:
"pages/photo/product"
,
...
@@ -41,9 +86,7 @@
...
@@ -41,9 +86,7 @@
"navigationBarTitleText"
:
"拍照"
,
"navigationBarTitleText"
:
"拍照"
,
"navigationBarBackgroundColor"
:
"#333333"
,
"navigationBarBackgroundColor"
:
"#333333"
,
"navigationBarTextStyle"
:
"#FFFFFF"
,
"navigationBarTextStyle"
:
"#FFFFFF"
,
"app-plus"
:
{
//app平台
"disableScroll"
:
true
"bounce"
:
"none"
//禁止滚动
}
}
}
},
},
...
@@ -54,7 +97,8 @@
...
@@ -54,7 +97,8 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"图片展示"
,
"navigationBarTitleText"
:
"图片展示"
,
"navigationBarBackgroundColor"
:
"#333333"
,
"navigationBarBackgroundColor"
:
"#333333"
,
"navigationBarTextStyle"
:
"#FFFFFF"
"navigationBarTextStyle"
:
"#FFFFFF"
,
"disableScroll"
:
true
}
}
},
},
...
@@ -90,27 +134,14 @@
...
@@ -90,27 +134,14 @@
{
{
"path"
:
"pages/photo/take"
,
"path"
:
"pages/photo/take"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"拍照-ljd"
"navigationBarTitleText"
:
"拍照-ljd"
,
"disableScroll"
:
true
}
}
},
},
//
{
//
"path"
:
"pages/photo/index"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
"拍照"
//
}
//
},
{
{
"path"
:
"pages/index/success"
,
"path"
:
"pages/index/success"
,
"style"
:
{
"style"
:
{
...
@@ -120,16 +151,6 @@
...
@@ -120,16 +151,6 @@
//
{
//
"path"
:
"pages/take/try"
,
//
"style"
:
{
//
"navigationBarTitleText"
:
"接单"
,
//
"enablePullDownRefresh"
:
true
//
}
//
},
{
{
"path"
:
"pages/login/wxlogin"
,
"path"
:
"pages/login/wxlogin"
,
"style"
:
{
"style"
:
{
...
...
take-order/pages/exam/index.vue
0 → 100644
View file @
9411997e
<
template
>
<view
class=
"backView"
>
<template
v-if=
"isStart==false"
>
<view
class=
"noticeView"
>
<text
class=
"noticeText"
>
规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。
</text>
</view>
<view
class=
"bottomView"
>
<view
class=
"bottomBtn"
@
click=
"startClick()"
>
<text
class=
"bottomTitle"
>
开始考试答题
</text>
</view>
</view>
</
template
>
<
template
v-if=
"isStart==true"
>
<view
class=
"bottom-padding"
>
<view
class=
"numberView"
>
<text
class=
"numberText"
>
{{
progress
}}
</text>
</view>
<view
class=
"topicView"
>
<text
class=
"topicText"
>
{{
currentItem
.
topic
}}
</text>
</view>
<view
class=
"itemView"
v-for=
"(item,ikey) in currentItem.answerList"
:key=
"ikey"
>
<text
:class=
"item.isSelect ? 'itemText selectedColor' : 'itemText defaultColor' "
@
click=
"itemClick(item,ikey)"
>
{{
item
.
content
}}
</text>
</view>
<view
class=
"answerBottomView"
>
<image
class=
"timeIcon"
src=
""
mode=
""
></image>
<text
class=
"timeText"
>
{{
currentTime
}}
</text>
<view
:class=
"isSelect ? 'nextBtn selectedColor' : 'nextBtn defaultColor' "
@
click=
"nextClick()"
>
<text
class=
"bottomTitle"
>
{{
bottomTitle
}}
</text>
</view>
</view>
</view>
</
template
>
</view>
</template>
<
script
>
export
default
{
data
()
{
return
{
examId
:
1
,
userExamId
:
0
,
userAnswerIds
:
''
,
isStart
:
false
,
currentNumber
:
1
,
currentItem
:
null
,
isSelect
:
false
,
currentTime
:
30
,
progress
:
''
,
bottomTitle
:
'下一题'
,
isStop
:
false
,
}
},
onLoad
(
e
)
{
},
methods
:
{
//开始考试 点击
startClick
:
function
()
{
this
.
isStart
=
true
//this.getData()
//this.applyExam()
this
.
getUserExamInfo
()
},
//获取考试信息
getUserExamInfo
:
function
()
{
uni
.
showLoading
({
title
:
'请稍候'
})
let
that
=
this
uni
.
request
({
url
:
getApp
().
globalData
.
domain_Name
+
'/wxh-worker-rest/rest/exam'
+
'/serviceRule/userExamInfo/'
+
getApp
().
globalData
.
token
+
'?examId='
+
this
.
examId
,
method
:
'POST'
,
data
:
{
//examId:this.examId,
},
header
:{
'Content-Type'
:
'application/x-www-form-urlencoded'
},
success
:
(
res
)
=>
{
uni
.
hideLoading
()
console
.
log
(
'获取考试信息 成功'
)
console
.
log
(
res
)
if
(
res
.
statusCode
==
401
){
uni
.
navigateTo
({
url
:
'/pages/login/wxlogin'
})
return
}
if
(
res
.
data
.
code
==
200
){
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
if
(
res
.
data
.
data
.
examStatus
==
2
){
that
.
applyExam
()
}
if
(
res
.
data
.
data
.
examStatus
==
0
||
res
.
data
.
data
.
examStatus
==
1
){
that
.
userExamId
=
res
.
data
.
data
.
id
that
.
getNext
()
}
// console.log('code=200')
//this.handleList(res)
}
else
{
uni
.
showToast
({
icon
:
'none'
,
title
:
res
.
data
.
message
})
}
},
fail
:
(
e
)
=>
{
uni
.
hideLoading
()
uni
.
showToast
({
icon
:
'none'
,
title
:
'获取考试信息失败'
})
// console.log('获取下单列表 失败')
// console.log(e)
}
})
},
//申请考试
applyExam
:
function
()
{
uni
.
showLoading
({
title
:
'请稍候'
})
let
that
=
this
uni
.
request
({
url
:
getApp
().
globalData
.
domain_Name
+
'/wxh-worker-rest/rest/exam'
+
'/serviceRule/'
+
getApp
().
globalData
.
token
+
'?examId='
+
this
.
examId
,
method
:
'POST'
,
data
:
{
//examId:this.examId,
},
header
:{
'Content-Type'
:
'application/x-www-form-urlencoded'
},
success
:
(
res
)
=>
{
uni
.
hideLoading
()
console
.
log
(
'申请考试 成功'
)
console
.
log
(
res
)
if
(
res
.
statusCode
==
401
){
uni
.
navigateTo
({
url
:
'/pages/login/wxlogin'
})
return
}
if
(
res
.
data
.
code
==
200
){
if
(
res
.
data
.
data
.
userExamId
){
that
.
userExamId
=
res
.
data
.
data
.
userExamId
that
.
getNext
()
}
// console.log('code=200')
//this.handleList(res)
}
else
{
uni
.
showToast
({
icon
:
'none'
,
title
:
res
.
data
.
message
})
}
},
fail
:
(
e
)
=>
{
uni
.
hideLoading
()
uni
.
showToast
({
icon
:
'none'
,
title
:
'申请考试 失败'
})
// console.log('获取下单列表 失败')
// console.log(e)
}
})
},
//获取下一题
getNext
:
function
()
{
var
questionId
=
''
if
(
this
.
currentItem
&&
this
.
currentItem
.
question
&&
this
.
currentItem
.
question
.
id
){
questionId
=
this
.
currentItem
.
question
.
id
}
uni
.
showLoading
({
title
:
'请稍候'
})
let
that
=
this
uni
.
request
({
url
:
getApp
().
globalData
.
domain_Name
+
'/wxh-worker-rest/rest/exam'
+
'/serviceRule/next/'
+
getApp
().
globalData
.
token
+
'?userExamId='
+
this
.
userExamId
+
'&questionId='
+
questionId
+
'&userAnswerIds='
+
this
.
userAnswerIds
,
method
:
'POST'
,
data
:
{
// userExamId:this.userExamId,
// questionId:this.currentItem.question.id,
// userAnswerIds:this.userAnswerIds,
},
header
:{
'Content-Type'
:
'application/x-www-form-urlencoded'
},
success
:
(
res
)
=>
{
uni
.
hideLoading
()
console
.
log
(
'获取下一题 成功'
)
console
.
log
(
res
)
if
(
res
.
statusCode
==
401
){
uni
.
navigateTo
({
url
:
'/pages/login/wxlogin'
})
return
}
if
(
res
.
data
.
code
==
200
){
that
.
currentItem
=
res
.
data
.
data
that
.
progress
=
res
.
data
.
data
.
progress
if
(
res
.
data
.
data
.
answerList
){
that
.
handleData
()
that
.
currentTime
=
30
that
.
startCounting
()
}
else
{
that
.
isSelect
=
true
that
.
bottomTitle
=
'完成考试,现在签约'
}
// console.log('code=200')
//this.handleList(res)
}
else
{
uni
.
showToast
({
icon
:
'none'
,
title
:
res
.
data
.
message
})
}
},
fail
:
(
e
)
=>
{
uni
.
hideLoading
()
uni
.
showToast
({
icon
:
'none'
,
title
:
'获取下一题 失败'
})
// console.log('获取下单列表 失败')
// console.log(e)
}
})
},
handleData
:
function
()
{
this
.
currentItem
.
answerList
.
forEach
(
item
=>
{
item
.
isSelect
=
false
})
console
.
log
(
this
.
currentItem
)
},
startCounting
:
function
()
{
if
(
this
.
isStop
){
return
}
this
.
currentTime
=
this
.
currentTime
-
1
if
(
this
.
currentTime
>
0
){
setTimeout
(
this
.
startCounting
,
1000
);
}
else
{
this
.
currentTime
=
30
this
.
nextClick
()
}
},
itemClick
:
function
(
currentItem
,
ikey
)
{
this
.
isSelect
=
true
//answerType 题目类型,1单选,2多选,3简答,
for
(
let
i
=
0
;
i
<
this
.
currentItem
.
answerList
.
length
;
i
++
)
{
var
item
=
this
.
currentItem
.
answerList
[
i
]
if
(
this
.
currentItem
.
answerType
==
2
){
//多选
if
(
ikey
==
i
){
item
.
isSelect
=
!
item
.
isSelect
}
}
else
{
//单选/简答
if
(
ikey
==
i
){
item
.
isSelect
=
!
item
.
isSelect
}
else
{
item
.
isSelect
=
false
}
}
}
var
isSelect
=
false
this
.
currentItem
.
answerList
.
forEach
(
item
=>
{
if
(
item
.
isSelect
){
isSelect
=
true
}
})
//有选答案
this
.
isSelect
=
isSelect
},
//下一题
nextClick
:
function
()
{
console
.
log
(
this
.
bottomTitle
)
if
(
this
.
bottomTitle
==
'完成考试,现在签约'
){
uni
.
navigateTo
({
url
:
'/pages/sign/index'
})
return
}
this
.
currentNumber
=
this
.
currentNumber
+
1
//this.getData()
this
.
handleAnswer
()
//this.getNext()
},
//所选答案
handleAnswer
:
function
()
{
/*
userAnswerIds
本题回答。
多选题时id按从小到大排序,并英文逗号,分隔;
简答题时直接存问题答案。
如果是第一次答题,不需要传。
*/
// var idList = []
// idList.push(item.id)
this
.
currentItem
.
answerList
.
forEach
(
item
=>
{
// if(this.currentItem.answerType == 2){//多选}
if
(
item
.
isSelect
){
//this.userAnswerIds = item.id + ',' + this.userAnswerIds
///*
if
(
this
.
userAnswerIds
.
length
==
0
){
this
.
userAnswerIds
=
item
.
id
}
else
{
// if(this.userAnswerIds.length == 1)
this
.
userAnswerIds
=
item
.
id
+
','
+
this
.
userAnswerIds
}
//*/
}
})
console
.
log
(
'所选答案:'
)
console
.
log
(
this
.
userAnswerIds
)
this
.
getNext
()
},
}
}
</
script
>
<
style
>
.backView
{
background-color
:
#FFFFFF
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
.noticeView
{
margin-top
:
100
rpx
;
width
:
100%
;
display
:
flex
;
}
.noticeText
{
font-size
:
32
rpx
;
color
:
#555555
;
padding-left
:
40
rpx
;
padding-right
:
40
rpx
;
}
.numberView
{
margin-top
:
100
rpx
;
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.numberText
{
font-size
:
28
rpx
;
font-weight
:
bold
;
}
.topicView
{
margin-top
:
100
rpx
;
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.topicText
{
font-size
:
28
rpx
;
padding-left
:
40
rpx
;
padding-right
:
40
rpx
;
}
.itemView
{
margin-top
:
100
rpx
;
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.itemText
{
font-size
:
28
rpx
;
padding-top
:
40
rpx
;
padding-bottom
:
40
rpx
;
padding-left
:
40
rpx
;
padding-right
:
40
rpx
;
}
.bottomView
{
background-color
:
#FFFFFF
;
width
:
100%
;
height
:
140
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
position
:
fixed
;
bottom
:
0
;
}
.bottomBtn
{
background-color
:
#007AFF
;
width
:
60%
;
height
:
80
rpx
;
border-radius
:
40
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.bottomTitle
{
font-size
:
32
rpx
;
color
:
#FFFFFF
;
}
.answerBottomView
{
background-color
:
#FFFFFF
;
width
:
100%
;
height
:
140
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
position
:
fixed
;
bottom
:
0
;
}
.timeIcon
{
background-color
:
#999999
;
margin-left
:
80
rpx
;
width
:
80
rpx
;
height
:
80
rpx
;
border-radius
:
40
rpx
;
}
.timeText
{
margin-left
:
20
rpx
;
font-size
:
32
rpx
;
color
:
#999999
;
}
.nextBtn
{
width
:
400
rpx
;
height
:
80
rpx
;
border-radius
:
40
rpx
;
margin-left
:
40
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.defaultColor
{
background-color
:
#999999
;
}
.selectedColor
{
background-color
:
#007AFF
;
}
.bottom-padding
{
padding-bottom
:
180
rpx
;
}
</
style
>
take-order/pages/index/index.vue
View file @
9411997e
...
@@ -100,7 +100,6 @@
...
@@ -100,7 +100,6 @@
<text
class=
"agreeTitle"
@
click=
"agreeClick(isAgree)"
>
我已阅读并同意
</text>
<text
class=
"agreeTitle"
@
click=
"agreeClick(isAgree)"
>
我已阅读并同意
</text>
<text
class=
"agreeProtocol"
@
click=
"protocolClick()"
>
《服务协议》
</text>
<text
class=
"agreeProtocol"
@
click=
"protocolClick()"
>
《服务协议》
</text>
</view>
</view>
</view>
</view>
<view
class=
"bottomView"
>
<view
class=
"bottomView"
>
<view
class=
"bottomLeftView"
@
click=
"mineClick()"
>
<view
class=
"bottomLeftView"
@
click=
"mineClick()"
>
...
@@ -123,6 +122,7 @@
...
@@ -123,6 +122,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'下单页'
)
//+ '?orderId=' + this.orderId + '&toWhere=detail'
//+ '?orderId=' + this.orderId + '&toWhere=detail'
if
(
e
&&
e
.
toWhere
){
if
(
e
&&
e
.
toWhere
){
this
.
toWhere
(
e
)
this
.
toWhere
(
e
)
...
@@ -229,6 +229,12 @@
...
@@ -229,6 +229,12 @@
methods
:
{
methods
:
{
hideClick
:
function
(){
uni
.
navigateTo
({
url
:
'/pages/exam/index'
,
})
},
doNothing
:
function
(){},
doNothing
:
function
(){},
toWhere
:
function
(
e
){
toWhere
:
function
(
e
){
...
@@ -445,8 +451,10 @@
...
@@ -445,8 +451,10 @@
return
return
}
}
// yuan /pages/take/index
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/
take
/index'
url
:
'/pages/
exam
/index'
})
})
...
@@ -700,6 +708,8 @@
...
@@ -700,6 +708,8 @@
checkClean
:
function
(){
checkClean
:
function
(){
console
.
log
(
'checkClean:'
+
this
.
isClean
)
// uni.getStorage({
// uni.getStorage({
// key: 'token',
// key: 'token',
// success: function (res) {
// success: function (res) {
...
@@ -1247,4 +1257,10 @@
...
@@ -1247,4 +1257,10 @@
justify-content
:
center
;
justify-content
:
center
;
}
}
.hideBtn
{
background-color
:
#007AFF
;
width
:
100%
;
height
:
80
rpx
;
}
</
style
>
</
style
>
take-order/pages/index/record.vue
View file @
9411997e
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
}
}
},
},
onLoad
()
{
onLoad
()
{
getApp
().
trackPage
(
'下单列表页'
)
this
.
icon_noData
=
getApp
().
globalData
.
icon_noData
this
.
icon_noData
=
getApp
().
globalData
.
icon_noData
this
.
icon_i
=
getApp
().
globalData
.
icon_i
this
.
icon_i
=
getApp
().
globalData
.
icon_i
},
},
...
...
take-order/pages/index/success.vue
View file @
9411997e
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'下单成功页'
)
if
(
e
&&
e
.
activeService
&&
e
.
activeService
.
length
>
0
){
if
(
e
&&
e
.
activeService
&&
e
.
activeService
.
length
>
0
){
//console.log(e.activeService)
//console.log(e.activeService)
this
.
activeService
=
e
.
activeService
this
.
activeService
=
e
.
activeService
...
...
take-order/pages/login/wxlogin.vue
View file @
9411997e
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
}
}
},
},
onLoad
()
{
onLoad
()
{
getApp
().
trackPage
(
'授权登录页'
)
this
.
icon_notice
=
getApp
().
globalData
.
icon_auth_notice
this
.
icon_notice
=
getApp
().
globalData
.
icon_auth_notice
this
.
icon_auth_notice_new
=
getApp
().
globalData
.
icon_auth_notice_new
this
.
icon_auth_notice_new
=
getApp
().
globalData
.
icon_auth_notice_new
//this.domain_name = getApp().globalData.domain_Name
//this.domain_name = getApp().globalData.domain_Name
...
...
take-order/pages/photo/brand.vue
View file @
9411997e
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'选择品牌页'
)
if
(
e
&&
e
.
product_code
){
if
(
e
&&
e
.
product_code
){
this
.
product_code
=
e
.
product_code
this
.
product_code
=
e
.
product_code
}
}
...
...
take-order/pages/photo/detail.vue
View file @
9411997e
...
@@ -75,6 +75,7 @@
...
@@ -75,6 +75,7 @@
// }
// }
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'照片规范详情页'
)
this
.
initData
(
e
)
this
.
initData
(
e
)
},
},
...
...
take-order/pages/photo/list.vue
View file @
9411997e
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'照片规范列表页'
)
if
(
e
&&
e
.
product
){
if
(
e
&&
e
.
product
){
this
.
product
=
e
.
product
this
.
product
=
e
.
product
}
}
...
...
take-order/pages/photo/preview.vue
View file @
9411997e
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'照片预览页'
)
console
.
log
(
e
,
'e'
)
console
.
log
(
e
,
'e'
)
if
(
e
.
img
){
if
(
e
.
img
){
this
.
images
=
[
e
.
img
]
this
.
images
=
[
e
.
img
]
...
...
take-order/pages/photo/product.vue
View file @
9411997e
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'选择产品页'
)
this
.
getProductList
()
this
.
getProductList
()
},
},
...
...
take-order/pages/photo/take.vue
View file @
9411997e
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'拍照页'
)
this
.
ctx
=
uni
.
createCameraContext
();
this
.
ctx
=
uni
.
createCameraContext
();
this
.
date
=
'时间:'
+
this
.
getTime
()
this
.
date
=
'时间:'
+
this
.
getTime
()
this
.
getLocation
()
this
.
getLocation
()
...
...
take-order/pages/photo/try.vue
View file @
9411997e
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'拍照页'
)
this
.
ctx
=
uni
.
createCameraContext
();
this
.
ctx
=
uni
.
createCameraContext
();
this
.
date
=
this
.
getTime
()
this
.
date
=
this
.
getTime
()
this
.
getLocation
()
this
.
getLocation
()
...
...
take-order/pages/settle/base.vue
0 → 100644
View file @
9411997e
<
template
>
<view
class=
"back_view"
>
入驻基本信息
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
protocolContent
:
''
}
},
onLoad
(
e
)
{
if
(
e
&&
e
.
activeService
&&
e
.
activeService
.
length
>
0
){
//console.log(e.activeService)
this
.
activeService
=
e
.
activeService
}
},
methods
:
{
//拨打客服 点击
phoneCallClick
:
function
(
phone
)
{
uni
.
makePhoneCall
({
phoneNumber
:
phone
});
},
}
}
</
script
>
<
style
>
.back_view
{
background-color
:
#FFFFFF
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
</
style
>
take-order/pages/settle/index.vue
0 → 100644
View file @
9411997e
<
template
>
<view
class=
"back_view"
>
<image
class=
"theme_image"
:src=
"theme_url"
mode=
"aspectFill"
></image>
<view
class=
"bottom_view"
>
<view
:class=
"isStop ? 'bottom_btn apply_color' : 'bottom_btn default_color' "
@
click=
"applyClick()"
>
<text
class=
"bottom_title"
v-if=
"!isStop"
>
浏览
{{
count
}}
秒后可申请入驻
</text>
<text
class=
"bottom_title"
v-if=
"isStop"
>
申请入驻
</text>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
theme_url
:
'https://qn-static.banshouhui.com/settle_theme.png'
,
count
:
8
,
isStop
:
false
,
}
},
onLoad
(
e
)
{
this
.
startCounting
()
},
methods
:
{
startCounting
:
function
()
{
if
(
this
.
isStop
){
return
}
this
.
count
=
this
.
count
-
1
if
(
this
.
count
>
0
){
setTimeout
(
this
.
startCounting
,
1000
);
}
else
{
this
.
isStop
=
true
}
},
applyClick
:
function
()
{
if
(
!
this
.
isStop
){
return
}
uni
.
navigateTo
({
url
:
'/pages/settle/base'
})
},
}
}
</
script
>
<
style
>
.back_view
{
background-color
:
#FFFFFF
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
.theme_image
{
width
:
100%
;
height
:
3000
rpx
;
}
.bottom_view
{
background-color
:
#002CC0
;
width
:
100%
;
height
:
200
rpx
;
display
:
flex
;
align-content
:
center
;
justify-content
:
center
;
}
.bottom_btn
{
margin-top
:
30
rpx
;
width
:
600
rpx
;
height
:
100
rpx
;
border
:
4
rpx
solid
#FFFFFF
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.bottom_title
{
font-size
:
32
rpx
;
color
:
#FFFFFF
;
}
.default_color
{
background-color
:
#002CC0
;
}
.apply_color
{
background-color
:
#2272FF
;
}
</
style
>
take-order/pages/sign/index.vue
0 → 100644
View file @
9411997e
<
template
>
<view
class=
""
>
签约界面
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
protocolContent
:
''
}
},
onLoad
(
e
)
{
},
methods
:
{
//拨打客服 点击
phoneCallClick
:
function
(
phone
)
{
uni
.
makePhoneCall
({
phoneNumber
:
phone
});
},
}
}
</
script
>
<
style
>
</
style
>
take-order/pages/take/detail.vue
View file @
9411997e
...
@@ -172,7 +172,7 @@
...
@@ -172,7 +172,7 @@
TimeID
:
-
1
,
TimeID
:
-
1
,
userType
:
''
,
userType
:
''
,
isContentShow
:
true
,
isContentShow
:
true
,
fromWhere
:
''
,
//退单弹窗相关
//退单弹窗相关
isCancelShow
:
false
,
isCancelShow
:
false
,
result
:{
result
:{
...
@@ -196,6 +196,7 @@
...
@@ -196,6 +196,7 @@
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'工单详情页'
)
console
.
log
(
e
)
console
.
log
(
e
)
if
(
e
&&
e
.
orderId
){
if
(
e
&&
e
.
orderId
){
this
.
orderId
=
e
.
orderId
this
.
orderId
=
e
.
orderId
...
@@ -205,6 +206,11 @@
...
@@ -205,6 +206,11 @@
this
.
isBottomShow
=
e
.
isBottomShow
this
.
isBottomShow
=
e
.
isBottomShow
}
}
if
(
e
&&
e
.
fromWhere
){
this
.
fromWhere
=
e
.
fromWhere
}
this
.
datetime
=
this
.
getTime
()
this
.
datetime
=
this
.
getTime
()
//console.log('当前时间:'+this.datetime)
//console.log('当前时间:'+this.datetime)
...
@@ -570,7 +576,7 @@
...
@@ -570,7 +576,7 @@
},
},
//退单点击
cancelClick
:
function
()
{
cancelClick
:
function
()
{
clearTimeout
(
this
.
TimeID
);
clearTimeout
(
this
.
TimeID
);
...
@@ -606,6 +612,8 @@
...
@@ -606,6 +612,8 @@
//退单请求
//退单请求
cancelPost
:
function
(
rejectReason
)
{
cancelPost
:
function
(
rejectReason
)
{
let
that
=
this
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'请稍候'
title
:
'请稍候'
})
})
...
@@ -633,8 +641,14 @@
...
@@ -633,8 +641,14 @@
title
:
'退单成功'
,
title
:
'退单成功'
,
})
})
var
delta
=
1
if
(
that
.
fromWhere
==
'抢单页'
){
delta
=
2
}
setTimeout
(
function
()
{
setTimeout
(
function
()
{
uni
.
navigateBack
({})
uni
.
navigateBack
({
delta
:
delta
})
},
1000
);
},
1000
);
}
else
{
}
else
{
...
...
take-order/pages/take/finish.vue
View file @
9411997e
...
@@ -255,7 +255,7 @@
...
@@ -255,7 +255,7 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'工单完工页'
)
this
.
icon_close_new
=
getApp
().
globalData
.
icon_close_new
this
.
icon_close_new
=
getApp
().
globalData
.
icon_close_new
this
.
getTopInfo
(
e
)
this
.
getTopInfo
(
e
)
...
...
take-order/pages/take/index.vue
View file @
9411997e
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
},
},
onLoad
()
{
onLoad
()
{
getApp
().
trackPage
(
'抢单广场页'
)
this
.
icon_noData
=
getApp
().
globalData
.
icon_noData
this
.
icon_noData
=
getApp
().
globalData
.
icon_noData
this
.
icon_trangle_up
=
getApp
().
globalData
.
icon_trangle_up
this
.
icon_trangle_up
=
getApp
().
globalData
.
icon_trangle_up
this
.
icon_selected
=
getApp
().
globalData
.
icon_selected
this
.
icon_selected
=
getApp
().
globalData
.
icon_selected
...
...
take-order/pages/take/measure.vue
View file @
9411997e
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'服务措施页'
)
if
(
e
&&
e
.
orderId
){
if
(
e
&&
e
.
orderId
){
this
.
orderId
=
e
.
orderId
this
.
orderId
=
e
.
orderId
}
}
...
...
take-order/pages/take/rob.vue
View file @
9411997e
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<view
class=
"itemView u-m-t-30"
>
<view
class=
"itemView u-m-t-30"
>
<view
class=
"u-p-l-30 u-p-r-30"
>
<view
class=
"u-p-l-30 u-p-r-30"
>
<text
class=
"titleText"
>
产品:
</text>
<text
class=
"titleText"
>
产品:
</text>
<text
class=
"contentText u-m-l-10"
v-if=
"orderInfo.brandName"
>
{{
orderInfo
.
brandName
}}
-
{{
categoryName
}}
</text>
<text
class=
"contentText u-m-l-10"
v-if=
"orderInfo.brandName"
>
{{
orderInfo
.
brandName
}}
-
{{
orderInfo
.
categoryName
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"itemView u-m-t-30"
>
<view
class=
"itemView u-m-t-30"
>
...
@@ -97,6 +97,8 @@
...
@@ -97,6 +97,8 @@
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'抢单页'
)
if
(
e
&&
e
.
orderId
){
if
(
e
&&
e
.
orderId
){
this
.
orderId
=
e
.
orderId
this
.
orderId
=
e
.
orderId
}
}
...
@@ -521,7 +523,8 @@
...
@@ -521,7 +523,8 @@
setTimeout
(
function
()
{
setTimeout
(
function
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/take/detail'
url
:
'/pages/take/detail'
+
'?orderId='
+
that
.
orderId
,
+
'?orderId='
+
that
.
orderId
+
'&fromWhere=抢单页'
,
})
})
},
1000
);
},
1000
);
...
...
take-order/pages/take/web.vue
View file @
9411997e
...
@@ -13,7 +13,14 @@
...
@@ -13,7 +13,14 @@
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'内置网页'
)
if
(
e
&&
e
.
url
){
this
.
webUrl
=
e
.
url
return
}
//https://system.banshouhui.com/weixiuapp/site/index.html#/?pioneerId=40
//https://system.banshouhui.com/weixiuapp/site/index.html#/?pioneerId=40
getApp
().
trackPage
(
'师傅入驻页'
)
this
.
webUrl
=
getApp
().
globalData
.
domain_Name
this
.
webUrl
=
getApp
().
globalData
.
domain_Name
+
'/weixiuapp/site/index.html#/?pioneerId=40'
+
'/weixiuapp/site/index.html#/?pioneerId=40'
//console.log(this.webUrl)
//console.log(this.webUrl)
...
...
take-order/pages/video/index.vue
0 → 100644
View file @
9411997e
<
template
>
<view
class=
"backView"
>
<view
class=
"itemView"
v-for=
"(item,ikey) in dataList"
:key=
"ikey"
@
click=
"itemClick(item,ikey)"
>
<view
class=
"titleView"
>
<text
class=
"title"
>
{{
item
.
title
}}
</text>
<image
class=
"arrow"
:src=
"icon_arrow_right"
mode=
""
></image>
</view>
<text
class=
"notice"
>
时长:5分钟,已完成学习
</text>
</view>
<view
class=
"bottomView"
>
<view
class=
"bottomBtn"
@
click=
"examClick()"
>
<text
class=
"bottomTitle"
>
完成学习后,可参加考试
</text>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
icon_arrow_right
:
''
,
dataList
:[],
}
},
onLoad
(
e
)
{
this
.
icon_arrow_right
=
getApp
().
globalData
.
icon_arrow_right
this
.
getData
()
},
methods
:
{
//获取数据
getData
:
function
()
{
this
.
dataList
=
[
{
'title'
:
'第一章 希望的终结'
,
},
{
'title'
:
'第二章 困惑的浪漫'
,
},
{
'title'
:
'第三章 诸神的黄昏'
,
},
];
},
itemClick
:
function
(
item
,
ikey
)
{
uni
.
navigateTo
({
url
:
'/pages/take/web'
+
'?url='
+
'https://www.baidu.com'
,
})
},
//参加考试
examClick
:
function
()
{
uni
.
navigateTo
({
url
:
'/pages/exam/index'
})
}
}
}
</
script
>
<
style
>
.backView
{
background-color
:
#FFFFFF
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
.itemView
{
background-color
:
#FAFAFA
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
border-bottom
:
2
rpx
solid
#999999
;
}
.titleView
{
background-color
:
#FFFFFF
;
width
:
100%
;
height
:
80
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
border-bottom
:
2
rpx
solid
#999999
;
}
.title
{
font-size
:
28
rpx
;
margin-left
:
40
rpx
;
}
.arrow
{
width
:
16
rpx
;
height
:
28
rpx
;
margin-right
:
40
rpx
;
}
.notice
{
padding-left
:
40
rpx
;
padding-top
:
20
rpx
;
padding-bottom
:
20
rpx
;
font-size
:
28
rpx
;
color
:
#999999
;
}
.bottomView
{
background-color
:
#FFFFFF
;
width
:
100%
;
height
:
140
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
position
:
fixed
;
bottom
:
0
;
}
.bottomBtn
{
background-color
:
#007AFF
;
width
:
60%
;
height
:
80
rpx
;
border-radius
:
40
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.bottomTitle
{
font-size
:
32
rpx
;
color
:
#FFFFFF
;
}
</
style
>
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