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
a029c047
Commit
a029c047
authored
Apr 16, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
85794c00
5d47a90d
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
924 additions
and
369 deletions
+924
-369
.gitignore
.gitignore
+1
-0
App.vue
src/App.vue
+104
-4
settled.js
src/common/api/settled.js
+9
-1
index.scss
src/common/index.scss
+16
-3
index.js
src/config/index.js
+16
-0
pages.json
src/pages.json
+85
-69
index.vue
src/pages/index/index.vue
+239
-211
course-detail.vue
src/pages/learn/course-detail.vue
+105
-0
exam.vue
src/pages/learn/exam.vue
+130
-0
index.vue
src/pages/login/index.vue
+24
-11
base.vue
src/pages/settle/base.vue
+24
-24
file.vue
src/pages/settle/file.vue
+161
-36
prompt.vue
src/pages/settle/prompt.vue
+9
-9
tishi@3x.png
src/static/settle/tishi@3x.png
+0
-0
analysys_paas.js
src/utils/analysys_paas.js
+1
-1
No files found.
.gitignore
View file @
a029c047
...
@@ -21,3 +21,4 @@ yarn-error.log*
...
@@ -21,3 +21,4 @@ yarn-error.log*
*.njsproj
*.njsproj
*.sln
*.sln
*.sw*
*.sw*
.history/
src/App.vue
View file @
a029c047
<
script
>
<
script
>
import
'./../.env.js'
import
'./../.env.js'
import
{
AnalysysAgent
}
from
'@/utils/analysys_paas.js'
import
util
from
'@/utils/util.js'
import
util
from
'@/utils/util.js'
export
default
{
export
default
{
globalData
:{
globalData
:{
// 开发环境
uniEnv
:
process
.
uniEnv
,
uniEnv
:
process
.
uniEnv
,
// 登录凭证
token
:
''
,
token
:
''
,
//lyf的token:RTOKENf7d46ea33a7923515abfa779e04eccba77f98604
//RTOKEN45f41a3053238cb72b3b72fe14df8d7040c9f502
//授权提示 图标
icon_auth_notice
:
'https://qn-static.banshouhui.com/auth_notice.png'
,
//授权提示新 图标
icon_auth_notice_new
:
'https://qn-static.banshouhui.com/auth_notice_new.png'
,
// 服务规范教程视频
service_standard
:
{
"Course1"
:
{
url
:
"https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4"
,
title
:
"第一节 接单服务标准"
,
desc
:
"1.不同车企品牌结算价格不一,675元-1890元不等;"
,
},
"Course2"
:
{
url
:
"https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4"
,
title
:
"第二节 完工服务标准"
,
desc
:
"2.结算价格为包工包料价,安装材料根据车企品牌规格自行采购(电缆、空开、漏保);"
,
},
"Course3"
:
{
url
:
"https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4"
,
title
:
"第二节 结算服务标准"
,
desc
:
"3.需具备一定的作业工具:如液压压线钳、冲击钻、电锤、登高安全带、电锤、绝缘电阻仪(摇表)、交流充电模拟器等;"
,
},
},
// 授权用户信息
// 授权用户信息
authUserInfo
:
''
,
authUserInfo
:
''
,
},
},
...
@@ -14,6 +41,8 @@
...
@@ -14,6 +41,8 @@
// 应用初始化(全局只触发一次)
// 应用初始化(全局只触发一次)
let
that
=
this
let
that
=
this
that
.
globalData
.
token
=
util
.
getToken
()
that
.
globalData
.
token
=
util
.
getToken
()
AnalysysAgent
.
registerSuperProperty
(
"platform"
,
"self-support"
);
},
},
onShow
:
function
()
{
onShow
:
function
()
{
// 应用启动,或从后台进入前台显示
// 应用启动,或从后台进入前台显示
...
@@ -96,6 +125,76 @@
...
@@ -96,6 +125,76 @@
util
.
setToken
(
''
)
util
.
setToken
(
''
)
}
}
},
},
/* ------------------------- 数据埋点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 ------------------------------ */
}
}
}
}
</
script
>
</
script
>
...
@@ -106,4 +205,5 @@
...
@@ -106,4 +205,5 @@
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
@import
"uview-ui/index.scss"
;
@import
"uview-ui/index.scss"
;
@import
'@/common/index.scss'
;
</
style
>
</
style
>
\ No newline at end of file
src/common/api/settled.js
View file @
a029c047
...
@@ -32,6 +32,12 @@ let settledApiFun = function(vm){
...
@@ -32,6 +32,12 @@ let settledApiFun = function(vm){
/* 提交认证资料 */
/* 提交认证资料 */
let
checkSettleSignInfo
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
ucenterApiUrl
+
'/v1/settled/check-sign-info'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
let
checkSettleSignInfo
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
ucenterApiUrl
+
'/v1/settled/check-sign-info'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
/* 获取接单教程列表 */
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
);
const
settledApi
=
{
const
settledApi
=
{
getSettleBaseInfo
,
getSettleBaseInfo
,
getSettleArea
,
getSettleArea
,
...
@@ -43,7 +49,9 @@ let settledApiFun = function(vm){
...
@@ -43,7 +49,9 @@ let settledApiFun = function(vm){
getSettleDepositResult
,
getSettleDepositResult
,
// checkSettleBank,
// checkSettleBank,
// checkSettleAlipay,
// checkSettleAlipay,
checkSettleSignInfo
checkSettleSignInfo
,
listOrderingTutorials
,
saveCourseRate
,
}
}
return
settledApi
return
settledApi
}
}
...
...
src/common/index.scss
View file @
a029c047
page
{
page
{
background-color
:
#
FAFAFA
;
background-color
:
#
fafafa
;
}
}
.btn-share
{
.btn-share
{
background-color
:
transparent
;
background-color
:
transparent
;
...
@@ -14,3 +14,16 @@ page{
...
@@ -14,3 +14,16 @@ page{
height
:
39rpx
;
height
:
39rpx
;
}
}
}
}
.bottom-fix-btn
{
position
:
fixed
;
z-index
:
2
;
bottom
:
0rpx
;
padding-bottom
:
40rpx
;
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
.btn-block
{
width
:
460rpx
;
}
}
src/config/index.js
0 → 100644
View file @
a029c047
//易观方舟
let
argo
=
{
appkey
:
"5f2ac5996f36c714"
,
open
:
true
,
/*
0 关闭调试模式(默认)。类型:Number。
1 开启调试模式,数据不入库。类型:Number。
2 开启调试模式,数据入库。类型:Number。
*/
debugMode
:
0
,
autoTrack
:
true
,
uploadURL
:
'https://argo.banshouhui.com/'
}
export
{
argo
,
}
\ No newline at end of file
src/pages.json
View file @
a029c047
...
@@ -14,16 +14,11 @@
...
@@ -14,16 +14,11 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"订单"
"navigationBarTitleText"
:
"订单"
}
}
},{
"path"
:
"pages/order/complete"
,
"style"
:
{
"navigationBarTitleText"
:
"订单-完工配置"
}
},
},
{
{
"path"
:
"pages/
study/index
"
,
"path"
:
"pages/
order/complete
"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
学习
"
"navigationBarTitleText"
:
"
订单-完工配置
"
}
}
},
},
{
{
...
@@ -35,7 +30,7 @@
...
@@ -35,7 +30,7 @@
{
{
"path"
:
"pages/login/index"
,
"path"
:
"pages/login/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
我的
"
"navigationBarTitleText"
:
"
授权登录
"
}
}
},
},
{
{
...
@@ -57,60 +52,57 @@
...
@@ -57,60 +52,57 @@
{
{
"path"
:
"pages/learn/index"
,
"path"
:
"pages/learn/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
uni-xue
"
"navigationBarTitleText"
:
"
学习
"
}
}
},
},
{
{
"path"
:
"pages/learn/assessment"
,
"path"
:
"pages/learn/assessment"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"认证介绍"
"navigationBarTitleText"
:
"认证介绍"
}
}
},
},
{
{
"path"
:
"pages/learn/answer"
,
"path"
:
"pages/learn/answer"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"考试答题"
"navigationBarTitleText"
:
"考试答题"
}
}
},
},
{
{
"path"
:
"pages/learn/result"
,
"path"
:
"pages/learn/result"
,
"style"
:{
"style"
:
{
"navigationBarTitleText"
:
"考试结果页"
"navigationBarTitleText"
:
"考试结果页"
}
}
},
},
{
{
"path"
:
"pages/learn/news-details"
,
"path"
:
"pages/learn/news-details"
,
"style"
:{
"style"
:
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
{
{
"path"
:
"pages/learn/curriculum"
,
"path"
:
"pages/learn/curriculum"
,
"style"
:{
"style"
:
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
{
{
"path"
:
"pages/settle/select"
,
"path"
:
"pages/settle/select"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"选择可服务的城市"
,
"navigationBarTitleText"
:
"选择可服务的城市"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
"navigationBarBackgroundColor"
:
"#FFFFFF"
}
}
},
},
{
{
"path"
:
"pages/settle/file-upload"
,
"path"
:
"pages/settle/file-upload"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"图片上传"
"navigationBarTitleText"
:
"图片上传"
}
}
},
},
{
{
"path"
:
"pages/settle/pay-ensure"
,
"path"
:
"pages/settle/pay-ensure"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"缴纳设备押金"
"navigationBarTitleText"
:
"缴纳设备押金"
}
}
},
},
{
{
"path"
:
"pages/settle/prompt"
,
"path"
:
"pages/settle/prompt"
,
...
@@ -119,20 +111,18 @@
...
@@ -119,20 +111,18 @@
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
"disableScroll"
:
true
}
}
},
},
{
{
"path"
:
"pages/settle/web"
,
"path"
:
"pages/settle/web"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"签约页面"
"navigationBarTitleText"
:
"签约页面"
}
}
},
},
{
{
"path"
:
"pages/settle/sign-contract"
,
"path"
:
"pages/settle/sign-contract"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"签约页面"
"navigationBarTitleText"
:
"签约页面"
}
}
},
},
{
{
"path"
:
"pages/settle/file"
,
"path"
:
"pages/settle/file"
,
...
@@ -141,18 +131,34 @@
...
@@ -141,18 +131,34 @@
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
"disableScroll"
:
true
}
}
},{
},
{
"path"
:
"pages/exam/start"
,
"path"
:
"pages/exam/start"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"考试"
"navigationBarTitleText"
:
"考试"
}
}
},
},
{
{
"path"
:
"pages/exam/index"
,
"path"
:
"pages/exam/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"入驻考试"
"navigationBarTitleText"
:
"入驻考试"
}
}
},
{
"path"
:
"pages/learn/exam"
,
"style"
:
{
"navigationBarTitleText"
:
"在线考试"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
}
},
{
"path"
:
"pages/learn/course-detail"
,
"style"
:
{
"navigationBarTitleText"
:
"培训视频"
,
"enablePullDownRefresh"
:
false
}
}
}
],
],
"globalStyle"
:
{
"globalStyle"
:
{
...
@@ -166,7 +172,8 @@
...
@@ -166,7 +172,8 @@
"selectedColor"
:
"#007AFF"
,
"selectedColor"
:
"#007AFF"
,
"borderStyle"
:
"black"
,
"borderStyle"
:
"black"
,
"backgroundColor"
:
"#F8F8F8"
,
"backgroundColor"
:
"#F8F8F8"
,
"list"
:
[{
"list"
:
[
{
"pagePath"
:
"pages/index/index"
,
"pagePath"
:
"pages/index/index"
,
"iconPath"
:
"static/logo.png"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
...
@@ -177,12 +184,14 @@
...
@@ -177,12 +184,14 @@
"iconPath"
:
"static/logo.png"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"text"
:
"订单"
"text"
:
"订单"
},
{
},
{
"pagePath"
:
"pages/learn/index"
,
"pagePath"
:
"pages/learn/index"
,
"iconPath"
:
"static/logo.png"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"text"
:
"学习"
"text"
:
"学习"
},
{
},
{
"pagePath"
:
"pages/mine/index"
,
"pagePath"
:
"pages/mine/index"
,
"iconPath"
:
"static/logo.png"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
...
@@ -192,35 +201,42 @@
...
@@ -192,35 +201,42 @@
},
},
"condition"
:
{
//模式配置,仅开发期间生效
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[{
"list"
:
[
{
"name"
:
"自营平台"
,
//模式名称
"name"
:
"自营平台"
,
//模式名称
"path"
:
"pages/index/index"
,
//启动页面,必选
"path"
:
"pages/index/index"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},
{
"name"
:
"入驻首页"
,
"name"
:
"入驻首页"
,
"path"
:
"pages/settle/index"
,
"path"
:
"pages/settle/index"
,
"query"
:
""
"query"
:
""
},{
},
{
"name"
:
"基本信息"
,
//模式名称
"name"
:
"基本信息"
,
//模式名称
"path"
:
"pages/settle/base"
,
//启动页面,必选
"path"
:
"pages/settle/base"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},
{
"name"
:
"入驻提示"
,
//模式名称
"name"
:
"入驻提示"
,
//模式名称
"path"
:
"pages/settle/prompt"
,
//启动页面,必选
"path"
:
"pages/settle/prompt"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},
{
"name"
:
"资料信息"
,
//模式名称
"name"
:
"资料信息"
,
//模式名称
"path"
:
"pages/settle/file"
,
//启动页面,必选
"path"
:
"pages/settle/file"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},
{
"name"
:
"缴纳保证金"
,
//模式名称
"name"
:
"缴纳保证金"
,
//模式名称
"path"
:
"pages/settle/pay-ensure"
,
//启动页面,必选
"path"
:
"pages/settle/pay-ensure"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},
{
"name"
:
"订单 - 完工配置"
,
//模式名称
"name"
:
"订单 - 完工配置"
,
//模式名称
"path"
:
"pages/order/complete"
,
//启动页面,必选
"path"
:
"pages/order/complete"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}]
}
}
]
}
}
}
\ No newline at end of file
src/pages/index/index.vue
View file @
a029c047
<
template
>
<
template
>
<view
class=
"content"
>
<view
class=
"content"
>
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
@
scroll=
"handleScroll"
<scroll-view
refresher-enabled
:refresher-triggered=
"triggered"
@
refresherrefresh=
"onRefresh"
scroll-anchoring
scroll-y
@
refresherrestore=
"onRestore"
@
refresherpulling=
"triggered = true"
>
style=
"height: 100%; width: 100%"
@
scrolltolower=
"reachBottom"
<u-swiper
:height=
"250"
:list=
"list"
:indicator-pos=
"indicatorPos"
:mode=
"mode"
:interval=
"3000"
@
scroll=
"handleScroll"
@
click=
"clickSwiper"
>
refresher-enabled
:refresher-triggered=
"triggered"
@
refresherrefresh=
"onRefresh"
scroll-anchoring
@
refresherrestore=
"onRestore"
@
refresherpulling=
"triggered = true"
>
<u-swiper
:height=
"250"
:list=
"list"
:indicator-pos=
"indicatorPos"
:mode=
"mode"
:interval=
"3000"
@
click=
"clickSwiper"
>
</u-swiper>
</u-swiper>
<view>
<view>
<text
class=
"title"
>
最新消息
</text>
<text
class=
"title"
>
最新消息
</text>
...
@@ -22,10 +36,12 @@
...
@@ -22,10 +36,12 @@
<!-- 入驻成功之后显示推荐订单列表 -->
<!-- 入驻成功之后显示推荐订单列表 -->
<view
v-if=
"status == 7 && orderList.length > 0"
>
<view
v-if=
"status == 7 && orderList.length > 0"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<OrderCell
:orderData=
"item"
>
<OrderCell
:orderData=
"item"
>
</OrderCell>
</OrderCell>
</view>
</view>
<u-loadmore
:status=
"currentLoadStatus"
bgColor=
"#f2f2f2"
></u-loadmore>
<u-loadmore
:status=
"currentLoadStatus"
bgColor=
"#f2f2f2"
></u-loadmore>
</view>
</view>
<!-- 入驻成功之后无推荐订单 -->
<!-- 入驻成功之后无推荐订单 -->
<view
v-else-if=
"status == 7 && orderList.length
<
=
0
"
>
<view
v-else-if=
"status == 7 && orderList.length
<
=
0
"
>
...
@@ -33,9 +49,16 @@
...
@@ -33,9 +49,16 @@
</view>
</view>
<!-- 入驻前-->
<!-- 入驻前-->
<view
v-else-if=
"loaded"
>
<view
v-else-if=
"loaded"
>
<text
class=
"title"
>
当前订单
{{
count
}}
笔\n入驻通过后,平台将向您推荐订单
</text>
<text
class=
"title"
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
>
当前订单
{{
count
}}
笔\n入驻通过后,平台将向您推荐订单
</text
:custom-style=
"buttonStyle"
>
>
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
:custom-style=
"buttonStyle"
>
立即入驻
立即入驻
</u-button>
</u-button>
</view>
</view>
...
@@ -46,69 +69,74 @@
...
@@ -46,69 +69,74 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
util
from
'@/utils/util.js'
;
import
util
from
"@/utils/util.js"
;
const
app
=
getApp
();
const
app
=
getApp
();
import
OrderCell
from
'@/components/order/index.vue'
import
OrderCell
from
"@/components/order/index.vue"
;
export
default
{
export
default
{
components
:
{
components
:
{
OrderCell
OrderCell
,
},
},
data
()
{
data
()
{
return
{
return
{
status
:
0
,
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
status
:
0
,
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
triggered
:
false
,
triggered
:
false
,
list
:
[{
list
:
[
image
:
'https://cdn.uviewui.com/uview/swiper/1.jpg'
,
{
image
:
"https://cdn.uviewui.com/uview/swiper/1.jpg"
,
},
},
{
{
image
:
'https://cdn.uviewui.com/uview/swiper/2.jpg'
,
image
:
"https://cdn.uviewui.com/uview/swiper/2.jpg"
,
},
},
{
{
image
:
'https://cdn.uviewui.com/uview/swiper/3.jpg'
,
image
:
"https://cdn.uviewui.com/uview/swiper/3.jpg"
,
}
},
],
],
title
:
false
,
title
:
false
,
mode
:
'round'
,
mode
:
"round"
,
indicatorPos
:
'bottomCenter'
,
indicatorPos
:
"bottomCenter"
,
title
:
'Hello'
,
title
:
"Hello"
,
loaded
:
false
,
loaded
:
false
,
count
:
0
,
// 推荐订单数量
count
:
0
,
// 推荐订单数量
messageList
:
[{
messageList
:
[
{
id
:
1234
,
id
:
1234
,
type
:
''
,
type
:
""
,
level
:
''
,
level
:
""
,
title
:
''
,
title
:
""
,
url
:
''
,
url
:
""
,
body
:
'好消息'
,
body
:
"好消息"
,
},
{
},
{
id
:
1234
,
id
:
1234
,
type
:
''
,
type
:
""
,
level
:
''
,
level
:
""
,
title
:
''
,
title
:
""
,
url
:
''
,
url
:
""
,
body
:
'好消息'
,
body
:
"好消息"
,
},
{
},
{
id
:
1234
,
id
:
1234
,
type
:
''
,
type
:
""
,
level
:
''
,
level
:
""
,
title
:
''
,
title
:
""
,
url
:
''
,
url
:
""
,
body
:
'好消息'
,
body
:
"好消息"
,
}],
},
loadStatus
:
[
'more'
,
'loading'
,
'noMore'
],
],
currentLoadStatus
:
'loading'
,
loadStatus
:
[
"more"
,
"loading"
,
"noMore"
],
currentLoadStatus
:
"loading"
,
orderList
:
[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}],
orderList
:
[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}],
bottomLoading
:
false
bottomLoading
:
false
,
}
};
},
},
computed
:
{
computed
:
{
buttonStyle
()
{
buttonStyle
()
{
return
{
return
{
'width'
:
'300rpx'
,
width
:
"300rpx"
,
}
};
}
},
},
},
onLoad
()
{
onLoad
()
{
this
.
_freshing
=
false
;
this
.
_freshing
=
false
;
...
@@ -118,28 +146,28 @@
...
@@ -118,28 +146,28 @@
// 每次进入页面都刷新入驻状态
// 每次进入页面都刷新入驻状态
if
(
app
.
globalData
.
token
)
{
if
(
app
.
globalData
.
token
)
{
// 获取是否显示入驻按钮
// 获取是否显示入驻按钮
this
.
initSettleInfo
()
this
.
initSettleInfo
();
}
}
},
},
methods
:
{
methods
:
{
async
initSettleInfo
()
{
async
initSettleInfo
()
{
if
(
this
.
status
==
7
)
return
if
(
this
.
status
==
7
)
return
;
const
callBack
=
(
vm
,
result
)
=>
{
const
callBack
=
(
vm
,
result
)
=>
{
// 后台自动判断入驻流程是否完成,前台通过status确定状态
// 后台自动判断入驻流程是否完成,前台通过status确定状态
if
(
result
&&
result
.
record
)
{
if
(
result
&&
result
.
record
)
{
vm
.
loaded
=
true
vm
.
loaded
=
true
;
vm
.
status
=
result
.
record
.
status
vm
.
status
=
result
.
record
.
status
;
// vm.status = 1
// vm.status = 1
}
}
}
};
await
app
.
getBaseInfo
(
this
,
callBack
)
await
app
.
getBaseInfo
(
this
,
callBack
);
},
},
onRefresh
()
{
onRefresh
()
{
if
(
this
.
_freshing
)
return
;
if
(
this
.
_freshing
)
return
;
this
.
_freshing
=
true
;
this
.
_freshing
=
true
;
// 获取入驻状态
// 获取入驻状态
this
.
initSettleInfo
()
this
.
initSettleInfo
();
// 获取推荐订单及数量
// 获取推荐订单及数量
// ....
// ....
...
@@ -147,83 +175,83 @@
...
@@ -147,83 +175,83 @@
// 数据加载完成更新入驻状态和推荐列表
// 数据加载完成更新入驻状态和推荐列表
this
.
triggered
=
false
;
this
.
triggered
=
false
;
this
.
_freshing
=
false
;
this
.
_freshing
=
false
;
},
1000
)
},
1000
);
},
},
onRestore
()
{
onRestore
()
{
this
.
triggered
=
'restore'
;
this
.
triggered
=
"restore"
;
},
},
reachBottom
()
{
reachBottom
()
{
console
.
log
(
'-----bottom will-----'
)
console
.
log
(
"-----bottom will-----"
);
if
(
this
.
bottomLoading
||
this
.
currentLoadStatus
==
this
.
loadStatus
[
2
])
{
if
(
this
.
bottomLoading
||
this
.
currentLoadStatus
==
this
.
loadStatus
[
2
])
{
return
return
;
}
}
console
.
log
(
'-----bottom did-----'
)
console
.
log
(
"-----bottom did-----"
);
this
.
bottomLoading
=
true
this
.
bottomLoading
=
true
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// 加载更多数据
// 加载更多数据
// ...
// ...
this
.
orderList
.
push
(...[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}])
this
.
orderList
.
push
(...[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}]);
// 加载完成
// 加载完成
this
.
currentLoadStatus
=
false
/*是否还有*/
?
this
.
loadStatus
[
1
]
:
this
.
loadStatus
[
2
]
this
.
currentLoadStatus
=
false
/*是否还有*/
this
.
$nextTick
(
function
()
{
?
this
.
loadStatus
[
1
]
this
.
bottomLoading
=
false
:
this
.
loadStatus
[
2
];
})
this
.
$nextTick
(
function
()
{
this
.
bottomLoading
=
false
;
});
},
1000
);
},
1000
);
},
},
clickSwiper
(
index
)
{
clickSwiper
(
index
)
{},
},
handleScroll
()
{
handleScroll
()
{
console
.
log
(
'-----scroll-------'
)
console
.
log
(
"-----scroll-------"
);
},
},
immediatelyIn
()
{
immediatelyIn
()
{
if
(
util
.
getToken
())
{
if
(
util
.
getToken
())
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
this
.
status
>
0
?
'/pages/settle/prompt'
:
'/pages/settle/index'
url
:
this
.
status
>
0
?
"/pages/settle/prompt"
:
"/pages/settle/index"
,
})
});
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'pages/login/index'
url
:
"pages/login/index"
,
});
});
}
}
}
},
}
},
}
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.content
{
.content
{
height
:
100vh
;
height
:
100vh
;
}
}
.logo
{
.logo
{
height
:
200
rpx
;
height
:
200
rpx
;
width
:
100%
;
width
:
100%
;
margin
:
0
rpx
auto
50
rpx
auto
;
margin
:
0
rpx
auto
50
rpx
auto
;
}
}
.text-area
{
.text-area
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.title
{
.title
{
font-size
:
36
rpx
;
font-size
:
36
rpx
;
color
:
#8f8f94
;
color
:
#8f8f94
;
}
}
.sticky
{
.sticky
{
height
:
120
rpx
;
height
:
120
rpx
;
background-color
:
#2979ff
;
background-color
:
#2979ff
;
color
:
#fff
;
color
:
#fff
;
padding
:
24
rpx
;
padding
:
24
rpx
;
text-align
:
left
;
text-align
:
left
;
}
}
.order-view
{
.order-view
{
text-align
:
center
;
text-align
:
center
;
}
}
</
style
>
</
style
>
src/pages/learn/course-detail.vue
0 → 100644
View file @
a029c047
<
template
>
<view>
<view
class=
"uni-padding-wrap uni-common-mt"
>
<view><video
object-fit=
"cover"
class=
"course-video"
id=
"courseVideo"
:src=
"courseSrc"
@
error=
"videoErrorCallback"
controls
></video></view>
<uni-group>
<view
class=
"course-title"
>
{{
courseTitle
}}
</view>
<view
class=
"course-desc"
>
{{
courseDesc
}}
</view>
</uni-group>
</view>
</view>
</
template
>
<
script
>
let
app
=
getApp
();
export
default
{
data
()
{
return
{
courseId
:
''
,
courseStatus
:
0
,
courseSrc
:
''
,
courseTitle
:
''
,
courseDesc
:
''
,
};
},
onLoad
(
e
)
{
if
(
e
)
{
if
(
e
.
courseId
)
{
this
.
courseId
=
e
.
courseId
;
}
if
(
e
.
id
)
{
this
.
courseId
=
e
.
courseId
;
this
.
courseSrc
=
app
.
globalData
.
service_standard
[
e
.
id
].
url
;
this
.
courseTitle
=
app
.
globalData
.
service_standard
[
e
.
id
].
title
;
this
.
courseDesc
=
app
.
globalData
.
service_standard
[
e
.
id
].
desc
;
this
.
changeCourseStatus
();
}
if
(
e
.
status
)
{
this
.
courseStatus
=
e
.
status
;
}
}
},
onReady
:
function
(
res
)
{
// #ifndef MP-ALIPAY
this
.
videoContext
=
uni
.
createVideoContext
(
'courseVideo'
);
// #endif
},
methods
:
{
videoErrorCallback
:
function
(
e
)
{
uni
.
showModal
({
content
:
e
.
target
.
errMsg
,
showCancel
:
false
});
},
getRandomColor
:
function
()
{
const
rgb
=
[];
for
(
let
i
=
0
;
i
<
3
;
++
i
)
{
let
color
=
Math
.
floor
(
Math
.
random
()
*
256
).
toString
(
16
);
color
=
color
.
length
==
1
?
'0'
+
color
:
color
;
rgb
.
push
(
color
);
}
return
'#'
+
rgb
.
join
(
''
);
},
changeCourseStatus
()
{
let
that
=
this
if
(
that
.
courseId
)
{
that
.
$u
.
api
.
saveCourseRate
({
courseId
:
that
.
courseId
}).
then
(
res
=>
{
debugger
if
(
res
.
code
==
200
)
{
// uni.navigateBack({delta: 1})
uni
.
navigateTo
({
url
:
"/pages/learn/exam"
})
}
else
{
uni
.
showToast
({
icon
:
"none"
,
title
:
"更新课程状态失败"
})
}
}).
catch
(
e
=>
{
})
}
else
{
uni
.
showToast
({
title
:
"课程ID为空,请重新选择课程"
})
}
},
}
};
</
script
>
<
style
lang=
"scss"
>
.course-video
{
width
:
750rpx
;
}
.course-title
{
font-size
:
36rpx
;
font-weight
:
700
;
padding
:
80rpx
60rpx
40rpx
60rpx
;
}
.course-desc
{
margin-left
:
60rpx
;
}
</
style
>
src/pages/learn/exam.vue
0 → 100644
View file @
a029c047
<
template
>
<view
class=
"exam-wrap"
>
<Settle
:index=
"3"
>
<view
class=
"exam-tips"
><u-alert-tips
:show-icon=
"true"
class=
"exam-tips"
type=
"warning"
:title=
"tipsTitle"
:description=
"tipsDescription"
></u-alert-tips></view>
<view
class=
"exam-course"
>
<u-card
margin=
"20rpx 0rpx 30rpx 0rpx"
:border=
"false"
:border-radius=
"cardRadius"
>
<view
class=
"exam-head"
slot=
"head"
>
师傅接单教程
</view>
<view
class=
"exam-body"
slot=
"body"
>
<u-cell-group
:border=
"false"
>
<u-cell-item
v-for=
"(item, key) in tutorials"
:key=
"key"
icon=
"play-circle"
:border-bottom=
"false"
:title=
"item.title"
:value=
"item.value"
:value-style=
"item.courseActive"
@
click=
"viewCourse(item)"
></u-cell-item>
</u-cell-group>
</view>
</u-card>
</view>
<view
class=
"exam-course"
>
<u-card
margin=
"0rpx"
:border=
"false"
:border-radius=
"cardRadius"
>
<view
class=
"exam-head"
slot=
"head"
>
师傅接单考试
</view>
<uni-group
slot=
"body"
>
<view>
总共20题,每题5分,答题时间不超过40分钟
</view>
<view>
请认真对待,预祝顺利通过考试!
</view>
</uni-group>
</u-card>
</view>
<view
class=
"content-gap"
></view>
</Settle>
<view
class=
"bottom-fix-btn"
>
<view
class=
"btn-block"
><u-button
type=
"primary"
shape=
"circle"
>
去考试
</u-button></view>
</view>
</view>
</
template
>
<
script
>
import
Settle
from
'@/components/settle/index.vue'
;
let
app
=
getApp
()
export
default
{
components
:
{
Settle
},
data
()
{
return
{
cardRadius
:
12
,
tipsTitle
:
'提示:'
,
// 简单使用固定培训视频
tutorials
:
[
{
id
:
'Course1'
,
courseId
:
1
,
title
:
''
,
value
:
'已查看'
,
courseActive
:
{},
status
:
1
,
url
:
''
},
{
id
:
'Course2'
,
courseId
:
2
,
title
:
''
,
value
:
'未查看'
,
courseActive
:
{},
status
:
0
,
url
:
''
},
{
id
:
'Course3'
,
courseId
:
3
,
title
:
''
,
value
:
'未查看'
,
courseActive
:
{},
status
:
0
,
url
:
''
}
],
tipsDescription
:
'接单考核可让您快速了解如何使用小程序,建议先查看学习教程'
};
},
computed
:
{
},
onLoad
()
{
this
.
tutorials
.
map
((
item
,
key
)
=>
{
item
[
'url'
]
=
app
.
globalData
.
service_standard
[
item
.
id
].
url
item
[
'title'
]
=
app
.
globalData
.
service_standard
[
item
.
id
].
title
item
[
'value'
]
=
item
[
'status'
]
?
'已查看'
:
'未查看'
;
item
[
'courseActive'
]
=
item
[
'status'
]
?
{
"color"
:
"#2979ff"
}
:
{
"color"
:
"#ff0000"
}
})
this
.
loadLearnData
();
},
methods
:
{
loadLearnData
()
{
let
that
=
this
;
that
.
$u
.
api
.
listOrderingTutorials
()
.
then
(
res
=>
{
const
results
=
res
.
data
;
if
(
res
.
status
==
200
&&
results
&&
results
.
length
>
0
)
{
that
.
tutorials
.
forEach
((
data
,
i
)
=>
{
if
(
results
.
hasOwnProperty
(
data
.
id
))
{
data
.
status
=
results
[
data
.
id
];
data
.
value
=
data
.
status
?
'已查看'
:
'未查看'
;
data
.
courseActive
=
data
.
status
?
{
"color"
:
"#2979ff"
}
:
{
"color"
:
"red"
}
that
.
tutorials
[
i
]
=
data
;
}
});
}
})
.
catch
(
e
=>
{
debugger
;
console
.
log
(
e
,
'loadLearnData'
);
});
},
viewCourse
(
e
)
{
let
that
=
this
;
let
params
=
`id=
${
e
.
id
}
&courseId=
${
e
.
courseId
}
&status=
${
e
.
status
}
`
uni
.
navigateTo
({
url
:
`/pages/learn/course-detail?
${
params
}
`
})
},
}
};
</
script
>
<
style
lang=
"scss"
>
.exam-tips
.u-alert-tips
{
border-radius
:
12rpx
!
important
;
border
:
none
!
important
;
.u-alert-title
{
font-size
:
28rpx
!
important
;
font-weight
:
bold
;
}
}
.exam-wrap
{
background
:
#f4f5f7
;
}
.exam-head
{
font-size
:
36rpx
;
font-weight
:
bold
;
}
.content-gap
{
height
:
1rpx
;
margin-bottom
:
200rpx
;
}
</
style
>
src/pages/login/index.vue
View file @
a029c047
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
<image
class=
"noticeImage"
:src=
"icon_auth_notice_new"
mode=
""
></image>
<image
class=
"noticeImage"
:src=
"icon_auth_notice_new"
mode=
""
></image>
</view>
</view>
<view
class=
"noticeTitleView"
>
<view
class=
"noticeTitleView"
>
<text
class=
"noticeTitle"
>
{{
noticeTitle
}}
</text>
<text
class=
"noticeTitle"
v-if=
"needAuth"
>
{{
authNoticeTitle
}}
</text>
<text
class=
"noticeTitle"
v-else
>
{{
suginNoticeTitle
}}
</text>
</view>
</view>
<button
class=
"loginBtn"
v-if=
"needAuth"
lang=
"zh_CN"
@
tap=
"getUserProfile"
>
<button
class=
"loginBtn"
v-if=
"needAuth"
lang=
"zh_CN"
@
tap=
"getUserProfile"
>
<text
class=
"u-font-32 white"
>
立即登录
</text>
<text
class=
"u-font-32 white"
>
立即登录
</text>
...
@@ -35,13 +36,14 @@ export default {
...
@@ -35,13 +36,14 @@ export default {
icon_notice
:
''
,
icon_notice
:
''
,
TimeID
:
-
1
,
TimeID
:
-
1
,
icon_auth_notice_new
:
''
,
icon_auth_notice_new
:
''
,
noticeTitle
:
'申请获得您的公开信息(昵称,头像等)以便于为您提供更好的服务'
,
authNoticeTitle
:
'申请获得您的公开信息(昵称,头像等)以便于为您提供更好的服务'
,
suginNoticeTitle
:
'申请获得您的公开信息(昵称,头像等)以便于为您提供更好的服务'
,
}
}
},
},
onLoad
()
{
onLoad
()
{
// getApp()
.trackPage('授权登录页')
app
.
trackPage
(
'授权登录页'
)
// this.icon_notice = getApp()
.globalData.icon_auth_notice
this
.
icon_notice
=
app
.
globalData
.
icon_auth_notice
// this.icon_auth_notice_new = getApp()
.globalData.icon_auth_notice_new
this
.
icon_auth_notice_new
=
app
.
globalData
.
icon_auth_notice_new
},
},
onShow
()
{
onShow
()
{
app
.
globalData
.
jumpLoginStatus
=
true
app
.
globalData
.
jumpLoginStatus
=
true
...
@@ -101,6 +103,10 @@ export default {
...
@@ -101,6 +103,10 @@ export default {
signupLogin
(
e
)
{
signupLogin
(
e
)
{
var
that
=
this
var
that
=
this
debugger
console
.
log
(
e
.
detail
.
errMsg
)
console
.
log
(
e
.
detail
.
iv
)
console
.
log
(
e
.
detail
.
encryptedData
)
if
(
!
e
||
!
e
.
detail
||
e
.
detail
.
errMsg
.
indexOf
(
'user deny'
)
>
-
1
)
{
if
(
!
e
||
!
e
.
detail
||
e
.
detail
.
errMsg
.
indexOf
(
'user deny'
)
>
-
1
)
{
wx
.
showModal
({
wx
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
...
@@ -143,6 +149,8 @@ export default {
...
@@ -143,6 +149,8 @@ export default {
goBackPage
()
{
goBackPage
()
{
let
pages
=
getCurrentPages
();
let
pages
=
getCurrentPages
();
if
(
pages
.
length
)
{
if
(
pages
.
length
)
{
let
index
=
pages
.
length
-
1
;
if
(
index
)
{
let
prevPage
=
pages
[
pages
.
length
-
1
];
//上一个页面
let
prevPage
=
pages
[
pages
.
length
-
1
];
//上一个页面
if
(
prevPage
&&
prevPage
.
$vm
)
{
if
(
prevPage
&&
prevPage
.
$vm
)
{
prevPage
.
$vm
.
isRefresh
=
true
;
prevPage
.
$vm
.
isRefresh
=
true
;
...
@@ -150,6 +158,11 @@ export default {
...
@@ -150,6 +158,11 @@ export default {
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
})
})
}
else
{
uni
.
navigateTo
({
url
:
'pages/index/index'
})
}
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"pages/mine/index"
url
:
"pages/mine/index"
...
...
src/pages/settle/base.vue
View file @
a029c047
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<text
class=
"itemTitle"
>
详细地址
</text>
<text
class=
"itemTitle"
>
详细地址
</text>
</view>
</view>
<view
class=
"flex-center"
>
<view
class=
"flex-center"
>
<image
class=
"item-image"
src=
"../../static/settle/dizhi@3x.png"
></image>
<image
class=
"item-image
-l
"
src=
"../../static/settle/dizhi@3x.png"
></image>
<text
class=
"right-label blueColor"
>
自动定位
</text>
<text
class=
"right-label blueColor"
>
自动定位
</text>
</view>
</view>
</view>
</view>
...
@@ -426,7 +426,7 @@
...
@@ -426,7 +426,7 @@
margin-right
:
10rpx
;
margin-right
:
10rpx
;
}
}
.item-image
{
.item-image
-l
{
width
:
26rpx
;
width
:
26rpx
;
height
:
30rpx
;
height
:
30rpx
;
margin-right
:
6rpx
;
margin-right
:
6rpx
;
...
...
src/pages/settle/file.vue
View file @
a029c047
...
@@ -5,19 +5,47 @@
...
@@ -5,19 +5,47 @@
<image
class=
"tip-image"
mode=
"widthFix"
src=
"../../static/settle/anquan@3x.png"
></image>
<image
class=
"tip-image"
mode=
"widthFix"
src=
"../../static/settle/anquan@3x.png"
></image>
<text>
身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。
</text>
<text>
身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。
</text>
</view>
</view>
<view
class=
"info-view"
>
<view
v-for=
"(fileItem, index) in formShowList"
class=
"title-view"
:key=
"index"
>
<view>
<image
class=
"title-image"
src=
"../../static/settle/mixing@3x.png"
></image>
<text>
{{
fileItem
.
label
}}
</text>
</view>
<view
class=
"info-tip-text"
>
{{
fileItem
.
tips
}}
</view>
<view
class=
"image-view"
>
<image
class=
"info-image"
mode=
"aspectFill"
v-for=
"(src, key) in fileItem.placeholderImages"
:src=
"fileItem.imgs.length > key ? fileItem.imgs[key] : src"
:key=
"src + key"
@
click=
"handleClick(fileItem, index, key)"
></image>
</view>
<view
v-if=
"index == 0"
class=
"bottom-tip-view"
>
<image
class=
"bottom-tip-image"
mode=
"widthFix"
src=
"../../static/settle/tishi@3x.png"
></image>
<text>
所上传的身份证信息必须与银行卡开户绑定身份证信息一致,否则将导致订单报酬无法交付
</text>
</view>
<view
class=
"card-info-view"
v-if=
"index == 0 && (fileInfo.id_card_name || fileInfo.id_card_number || fileInfo.id_card_date)"
>
<view
class=
"card-list-view"
v-for=
"(value, cardkey) in cardTitle"
:key=
"cardkey"
>
<view
class=
"card-list-item"
>
<text>
{{
value
}}
</text>
<text
class=
"card-item-text"
>
{{
fileInfo
[
cardkey
]
}}
</text>
</view>
<view
class=
"line-view"
></view>
<view
class=
"card-item-error"
v-if=
"fileInfo[cardkey] && (cardkey == 'id_card_date' ? fileInfo.id_card_back : fileInfo.id_card_front)"
>
识别失败,请重新上传
</view>
</view>
</view>
</view>
</view>
<template
v-slot:bottom
>
<template
v-slot:bottom
>
<view
class=
"btn-wrap flex-xc"
>
<view
class=
"btn-wrap flex-xc"
>
<button
class=
"btn-submit"
:disabled=
"!submitBtnStatus"
@
click=
"$u.debounce(submitFileInfo, 500)"
>
<button
class=
"btn-submit"
:disabled=
"!submitBtnStatus"
@
click=
"$u.debounce(submitFileInfo, 500)"
>
{{
{{
!
submitBtnStatus
?
"完成必填项,可提交资料"
:
"提交"
}}
!
submitBtnStatus
?
"完成必填项,可提交资料"
:
"提交"
}}
</button>
</button>
</view>
</view>
</
template
>
</
template
>
<view
class=
"base-list"
>
<view
class=
"base-list"
>
<
template
v-for=
"(fileItem, index) in formShowList"
>
<
template
v-for=
"(fileItem, index) in formShowList"
>
<view
class=
"item item-select flex flex-yc"
:key=
"index"
@
click=
"toUploadImg(fileItem, index)"
>
<view
class=
"item item-select flex flex-yc"
:key=
"index"
@
click=
"toUploadImg(fileItem, index)"
>
...
@@ -75,6 +103,7 @@
...
@@ -75,6 +103,7 @@
id
:
""
,
id
:
""
,
id_card_name
:
""
,
id_card_name
:
""
,
id_card_number
:
""
,
id_card_number
:
""
,
id_card_date
:
''
,
id_card_front
:
""
,
id_card_front
:
""
,
id_card_back
:
""
,
id_card_back
:
""
,
electrician_certificate
:
""
,
electrician_certificate
:
""
,
...
@@ -92,41 +121,47 @@
...
@@ -92,41 +121,47 @@
formShowList
:
[{
formShowList
:
[{
filedName
:
"id_card_front"
,
filedName
:
"id_card_front"
,
required
:
true
,
required
:
true
,
maxImgs
:
1
,
maxImgs
:
2
,
label
:
"
身份证人像面
"
,
label
:
"
实名认证
"
,
tips
:
"
(必选项)拍身份证人像面,证件需清晰可见
"
,
tips
:
"
上传二代身份证照片,图片大小不大于3M
"
,
imgs
:
[],
imgs
:
[],
placeholderImages
:
[
'../../static/settle/renxiang@3x.png'
,
'../../static/settle/guohui@3x.png'
]
},
},
// {
// filedName: "id_card_back",
// required: true,
// label: "身份证国徽面",
// maxImgs: 1,
// tips: "上传二代身份证照片,图片大小不大于3M",
// imgs: [],
// },
{
{
filedName
:
"id_card_back"
,
filedName
:
"electrician_certificate"
,
label
:
"电工证照"
,
required
:
true
,
required
:
true
,
label
:
"身份证国徽面"
,
maxImgs
:
1
,
maxImgs
:
1
,
tips
:
"
(必选项)拍身份证国徽面,证件需清晰可见
"
,
tips
:
"
上传电工证证照片,图片大小不大于3M
"
,
imgs
:
[],
imgs
:
[],
placeholderImages
:
[
'../../static/settle/diangong@3x.png'
]
},
},
{
{
filedName
:
"electrician_certificate"
,
filedName
:
"other_certificates"
,
label
:
"电工证照"
,
label
:
"驾驶证/行驶证照片"
,
required
:
true
,
maxImgs
:
1
,
tips
:
"(必选项)拍电工证照,证件需清晰可见"
,
imgs
:
[],
imgs
:
[],
maxImgs
:
999
,
tips
:
"两证单张照片需包含两页内容,图片大小不大于3M"
,
placeholderImages
:
[
'../../static/settle/jiashi@3x.png'
,
'../../static/settle/jiashi@3x.png'
]
},
},
{
{
filedName
:
"vehicle_photos"
,
filedName
:
"vehicle_photos"
,
label
:
"车辆照"
,
label
:
"车辆照"
,
maxImgs
:
1
,
maxImgs
:
1
,
tips
:
"(可选项)45度拍摄车辆照片,车牌清晰可见"
,
tips
:
"两证单张照片需包含两页内容,图片大小不大于3M"
,
imgs
:
[],
},
{
filedName
:
"other_certificates"
,
label
:
"其他工作证件"
,
imgs
:
[],
imgs
:
[],
maxImgs
:
999
,
placeholderImages
:
[
'../../static/settle/zhengmian@3x.png'
,
tips
:
"(可选项)可拍多张"
,
'../../static/settle/cemian@3x.png'
]
},
},
],
],
submitSuccess
:
false
,
submitSuccess
:
false
,
saving
:
false
,
saving
:
false
,
...
@@ -160,11 +195,35 @@
...
@@ -160,11 +195,35 @@
const
flag
=
fileInfo
.
id_card_front
&&
fileInfo
.
id_card_back
&&
fileInfo
.
electrician_certificate
const
flag
=
fileInfo
.
id_card_front
&&
fileInfo
.
id_card_back
&&
fileInfo
.
electrician_certificate
return
flag
&&
!
this
.
saving
;
return
flag
&&
!
this
.
saving
;
},
},
cardTitle
()
{
return
{
'id_card_name'
:
'姓名'
,
'id_card_number'
:
'身份证号'
,
'id_card_date'
:
'有效期'
}
}
},
},
components
:
{
components
:
{
},
},
methods
:
{
methods
:
{
// item: formShowList的元素
// index、key: 选中的是formShowList的第index里面的第key个图片选择器
handleClick
(
item
,
index
,
key
)
{
switch
(
index
)
{
case
0
:
// 身份证
// 上传图片
// 成功之后更新 fileInfo、 item里的imgs
break
;
default
:
//其他
// 上传图片
// 成功之后更新 item里的imgs
break
;
}
},
updateImgs
()
{
updateImgs
()
{
const
uploadType
=
this
.
uploadType
const
uploadType
=
this
.
uploadType
const
uploadImgs
=
this
.
imgObj
[
uploadType
]
const
uploadImgs
=
this
.
imgObj
[
uploadType
]
...
@@ -494,6 +553,21 @@
...
@@ -494,6 +553,21 @@
margin-top
:
2rpx
;
margin-top
:
2rpx
;
}
}
.bottom-tip-view
{
color
:
#999999
;
font-size
:
20rpx
;
display
:
flex
;
align-items
:
flex-start
;
margin-top
:
30rpx
;
}
.bottom-tip-image
{
width
:
24rpx
;
height
:
24rpx
;
margin-right
:
8rpx
;
margin-top
:
4rpx
;
}
.seat
{
.seat
{
padding-bottom
:
144rpx
;
padding-bottom
:
144rpx
;
}
}
...
@@ -517,15 +591,66 @@
...
@@ -517,15 +591,66 @@
}
}
}
}
}
}
.card-info-view
{
margin-top
:
30rpx
;
.card-list-view
{
.card-list-item
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
28rpx
;
margin-top
:
20rpx
;
margin-bottom
:
20rpx
;
color
:
#333333
;
.card-item-text
{
color
:
#666666
;
width
:
60%
;
}
}
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
width
:
100%
;
}
.card-item-error
{
color
:
red
;
font-size
:
20rpx
;
}
}
}
/* .back_view{
.info-view
{
margin-bottom
:
188rpx
;
.title-view
{
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
position: absolute;
border-radius
:
12rpx
;
top: 0;
padding
:
38rpx
30rpx
30rpx
30rpx
;
left: 0;
margin-bottom
:
20rpx
;
width: 100%;
font-size
:
32rpx
;
color
:
#333333
;
.title-image
{
width
:
24rpx
;
height
:
24rpx
;
margin-right
:
10rpx
;
}
}
.info-tip-text
{
font-size
:
24rpx
;
color
:
#666666
;
margin-top
:
10rpx
;
}
.image-view
{
margin-top
:
30rpx
;
display
:
flex
;
display
:
flex
;
flex-direction: column;
justify-content
:
space-between
;
.info-image
{
width
:
300rpx
;
height
:
226rpx
;
}
}
}
}
*/
</
style
>
</
style
>
src/pages/settle/prompt.vue
View file @
a029c047
src/static/settle/tishi@3x.png
0 → 100644
View file @
a029c047
2.05 KB
src/utils/analysys_paas.js
View file @
a029c047
...
@@ -11,7 +11,7 @@ if (AnalysysAgent) {
...
@@ -11,7 +11,7 @@ if (AnalysysAgent) {
// AnalysysAgent.autoShare = true
// AnalysysAgent.autoShare = true
AnalysysAgent
.
allowTimeCheck
=
true
AnalysysAgent
.
allowTimeCheck
=
true
AnalysysAgent
.
autoTrack
=
true
AnalysysAgent
.
autoTrack
=
true
AnalysysAgent
.
registerSuperProperty
(
"platform"
,
"
take-order
"
);
AnalysysAgent
.
registerSuperProperty
(
"platform"
,
"
self-support
"
);
}
}
// #endif
// #endif
export
{
export
{
...
...
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