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
b97e6cba
Commit
b97e6cba
authored
Apr 25, 2021
by
zhengzy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
f4c2b692
97161d77
Changes
48
Show whitespace changes
Inline
Side-by-side
Showing
48 changed files
with
2194 additions
and
967 deletions
+2194
-967
.env.dev.js
.env.dev.js
+2
-1
.env.js
.env.js
+1
-1
.env.prod.js
.env.prod.js
+2
-1
.env.test.js
.env.test.js
+2
-1
launch.json
.hbuilderx/launch.json
+10
-5
App.vue
src/App.vue
+239
-202
index.js
src/common/api/index.js
+5
-2
order.js
src/common/api/order.js
+11
-0
settled.js
src/common/api/settled.js
+6
-2
classify.data.js
src/common/classify.data.js
+47
-3
global.js
src/common/global.js
+0
-2
http.interceptor.js
src/common/http.interceptor.js
+1
-1
XhCheckbox.vue
src/components/createCom/XhCheckbox.vue
+1
-0
XhFiles.vue
src/components/createCom/XhFiles.vue
+3
-2
XhInput.vue
src/components/createCom/XhInput.vue
+1
-0
XhLocation.vue
src/components/createCom/XhLocation.vue
+2
-1
XhMultiInput.vue
src/components/createCom/XhMultiInput.vue
+47
-0
XhPicker.vue
src/components/createCom/XhPicker.vue
+82
-0
XhRadio.vue
src/components/createCom/XhRadio.vue
+1
-0
XhScan.vue
src/components/createCom/XhScan.vue
+66
-0
XhSelect.vue
src/components/createCom/XhSelect.vue
+1
-0
XhTime.vue
src/components/createCom/XhTime.vue
+65
-0
index.vue
src/components/settle/index.vue
+2
-2
services.vue
src/components/settle/services.vue
+0
-94
main.js
src/main.js
+0
-1
pages.json
src/pages.json
+10
-13
index.vue
src/pages/exam/index.vue
+20
-17
index.vue
src/pages/index/index.vue
+312
-97
assessment.vue
src/pages/learn/assessment.vue
+1
-0
course-detail.vue
src/pages/learn/course-detail.vue
+236
-197
exam.vue
src/pages/learn/exam.vue
+36
-17
index.vue
src/pages/learn/index.vue
+30
-22
result.vue
src/pages/learn/result.vue
+60
-59
index.vue
src/pages/login/index.vue
+14
-4
complete.vue
src/pages/order/complete.vue
+96
-29
index.vue
src/pages/order/index.vue
+513
-0
base.vue
src/pages/settle/base.vue
+38
-29
file-upload.vue
src/pages/settle/file-upload.vue
+1
-1
file.vue
src/pages/settle/file.vue
+44
-37
index.vue
src/pages/settle/index.vue
+68
-72
pay-ensure.vue
src/pages/settle/pay-ensure.vue
+10
-9
prompt.vue
src/pages/settle/prompt.vue
+65
-28
sign-contract.vue
src/pages/settle/sign-contract.vue
+26
-9
qiniuUploader.js
src/plugins/uploader/request/upload/qiniuUploader.js
+1
-1
utils.js
src/plugins/uploader/request/upload/utils.js
+1
-0
$u.mixin.js
src/store/$u.mixin.js
+1
-1
login.js
src/utils/login.js
+6
-2
u-subsection.vue
src/uview-ui/components/u-subsection/u-subsection.vue
+8
-2
No files found.
.env.dev.js
View file @
b97e6cba
...
@@ -6,6 +6,7 @@ const UNI_APP = {
...
@@ -6,6 +6,7 @@ const UNI_APP = {
},
},
systemUrl
:
{
systemUrl
:
{
apiUrl
:
'http://192.168.1.22'
,
//java端域名请求头
apiUrl
:
'http://192.168.1.22'
,
//java端域名请求头
}
},
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
}
}
module
.
exports
=
UNI_APP
;
module
.
exports
=
UNI_APP
;
.env.js
View file @
b97e6cba
;
;
(
function
()
{
(
function
()
{
let
NODE_ENV
=
'
dev
'
;
// dev:开发环境 | test:测试环境
let
NODE_ENV
=
'
test
'
;
// dev:开发环境 | test:测试环境
let
ENV_VAR
=
null
;
let
ENV_VAR
=
null
;
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
NODE_ENV
===
'dev'
)
{
if
(
NODE_ENV
===
'dev'
)
{
...
...
.env.prod.js
View file @
b97e6cba
...
@@ -6,7 +6,8 @@ const UNI_APP = {
...
@@ -6,7 +6,8 @@ const UNI_APP = {
},
},
systemUrl
:
{
systemUrl
:
{
apiUrl
:
'https://system.banshouhui.com'
,
//java端域名请求头
apiUrl
:
'https://system.banshouhui.com'
,
//java端域名请求头
}
},
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
}
}
module
.
exports
=
UNI_APP
;
module
.
exports
=
UNI_APP
;
.env.test.js
View file @
b97e6cba
...
@@ -6,6 +6,7 @@ const UNI_APP = {
...
@@ -6,6 +6,7 @@ const UNI_APP = {
},
},
systemUrl
:
{
systemUrl
:
{
apiUrl
:
'https://system.dev.banshouhui.com'
,
//java端域名请求头
apiUrl
:
'https://system.dev.banshouhui.com'
,
//java端域名请求头
}
},
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
}
}
module
.
exports
=
UNI_APP
;
module
.
exports
=
UNI_APP
;
.hbuilderx/launch.json
View file @
b97e6cba
...
@@ -2,10 +2,15 @@
...
@@ -2,10 +2,15 @@
//
launchtype项可配置值为local或remote
,
local代表前端连本地云函数,remote代表前端连云端云函数
//
launchtype项可配置值为local或remote
,
local代表前端连本地云函数,remote代表前端连云端云函数
"version"
:
"0.0"
,
"version"
:
"0.0"
,
"configurations"
:
[{
"configurations"
:
[{
"type"
:
"uniCloud"
,
"default"
:
"default"
:
{
{
"launchtype"
:
"remote"
"launchtype"
:
"remote"
}
},
"mp-weixin"
:
{
"launchtype"
:
"remote"
},
"type"
:
"uniCloud"
}
}
]
]
}
}
src/App.vue
View file @
b97e6cba
<
script
>
<
script
>
import
'./../.env.js'
import
"./../.env.js"
;
import
{
import
{
AnalysysAgent
}
from
"@/utils/analysys_paas.js"
;
AnalysysAgent
import
util
from
"@/utils/util.js"
;
}
from
'@/utils/analysys_paas.js'
export
default
{
import
util
from
'@/utils/util.js'
globalData
:
{
export
default
{
globalData
:{
// 开发环境
// 开发环境
uniEnv
:
process
.
uniEnv
,
uniEnv
:
process
.
uniEnv
,
// 登录凭证
// 登录凭证
token
:
''
,
token
:
""
,
// 微信小程序平台编号,空--家维广场,1--自营平台
wxAppNo
:
1
,
//授权提示 图标
//授权提示 图标
icon_auth_notice
:
'https://qn-static.banshouhui.com/auth_notice.png'
,
icon_auth_notice
:
"https://qn-static.banshouhui.com/auth_notice.png"
,
//授权提示新 图标
//授权提示新 图标
icon_auth_notice_new
:
'https://qn-static.banshouhui.com/auth_notice_new.png'
,
icon_auth_notice_new
:
"https://qn-static.banshouhui.com/auth_notice_new.png"
,
// 服务规范教程视频
// 服务规范教程视频
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"
:
{
},
url
:
"https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4"
,
course2
:
{
title
:
"第二节 完工服务标准"
,
url
:
"https://qn-static.banshouhui.com/self-support/videoen.mp4"
,
desc
:
"2.结算价格为包工包料价,安装材料根据车企品牌规格自行采购(电缆、空开、漏保);"
,
title
:
"第二节 安装材料及工具"
,
},
desc
:
"Course3"
:
{
"接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。"
,
url
:
"https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4"
,
},
title
:
"第二节 结算服务标准"
,
course3
:
{
desc
:
"3.需具备一定的作业工具:如液压压线钳、冲击钻、电锤、登高安全带、电锤、绝缘电阻仪(摇表)、交流充电模拟器等;"
,
url
:
"https://qn-static.banshouhui.com/self-support/videoen.mp4"
,
title
:
"第三节 安装施工规范"
,
desc
:
"接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。"
,
},
course4
:
{
url
:
"https://qn-static.banshouhui.com/self-support/videoen.mp4"
,
title
:
"第四节 录单上传要求"
,
desc
:
"接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。"
,
},
},
},
},
// 授权用户信息
// 授权用户信息
authUserInfo
:
''
,
authUserInfo
:
""
,
// 用户入驻信息
// 用户入驻信息
settledInfo
:
{},
settledInfo
:
{},
},
},
onLaunch
:
function
()
{
onLaunch
:
function
()
{
// 应用初始化(全局只触发一次)
// 应用初始化(全局只触发一次)
let
that
=
this
that
.
globalData
.
token
=
util
.
getToken
()
AnalysysAgent
.
registerSuperProperty
(
"platform"
,
"self-support"
);
AnalysysAgent
.
registerSuperProperty
(
"platform"
,
"self-support"
);
// 版本更新
this
.
updateApp
();
},
},
onShow
:
function
()
{
onShow
:
function
()
{
// 应用启动,或从后台进入前台显示
// 应用启动,或从后台进入前台显示
this
.
autoLogin
()
this
.
autoLogin
();
},
},
onHide
:
function
()
{
onHide
:
function
()
{
// 应用从前台进入后台
// 应用从前台进入后台
},
},
methods
:
{
methods
:
{
async
getBaseInfo
(
vm
,
callBack
)
{
async
getBaseInfo
(
vm
,
callBack
)
{
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中……'
title
:
"加载中……"
,
})
});
const
res
=
await
vm
.
$u
.
api
.
getSettleBaseInfo
()
const
res
=
await
vm
.
$u
.
api
.
getSettleBaseInfo
();
console
.
log
(
res
,
'res'
)
console
.
log
(
res
,
"res"
);
if
(
res
.
code
!==
200
)
{
if
(
res
.
code
!==
200
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
&&
res
.
message
||
'获取基本信息错误'
,
title
:
(
res
&&
res
.
message
)
||
"获取基本信息错误"
,
icon
:
'none'
icon
:
"none"
,
});
});
return
false
;
return
false
;
}
}
this
.
globalData
.
settledInfo
=
res
.
data
this
.
globalData
.
settledInfo
=
res
.
data
;
if
(
!
res
.
data
)
{
if
(
!
res
.
data
)
{
return
return
;
}
}
callBack
(
vm
,
res
.
data
)
if
(
typeof
callBack
==
"function"
)
{
uni
.
hideLoading
()
callBack
(
vm
,
res
.
data
);
return
res
.
data
}
uni
.
hideLoading
();
return
res
.
data
;
},
},
/**
/**
* 用户自动登录
* 用户自动登录
*/
*/
autoLogin
()
{
autoLogin
()
{
let
that
=
this
let
that
=
this
;
uni
.
login
({
uni
.
login
({
async
success
(
res
)
{
async
success
(
res
)
{
if
(
res
.
code
)
{
if
(
res
.
code
)
{
let
params
=
{
let
params
=
{
code
:
res
.
code
,
code
:
res
.
code
,
wxAppNo
:
1
,
// 自营平台小程序
wxAppNo
:
that
.
globalData
.
wxAppNo
,
// 自营平台小程序
}
};
let
result
=
await
that
.
$u
.
api
.
loginWechatAuth
(
params
)
let
result
=
await
that
.
$u
.
api
.
loginWechatAuth
(
params
);
if
(
result
)
{
if
(
result
)
{
if
(
result
.
code
==
200
&&
result
.
data
)
{
if
(
result
.
code
==
200
&&
result
.
data
)
{
that
.
setUserData
(
result
.
data
)
that
.
setUserData
(
result
.
data
);
}
}
}
else
{
}
else
{
uni
.
showModal
({
uni
.
showModal
({
title
:
'请求失败'
,
title
:
"请求失败"
,
content
:
result
.
message
,
content
:
result
.
message
,
showCancel
:
false
showCancel
:
false
,
});
});
}
}
uni
.
hideLoading
()
uni
.
hideLoading
();
}
else
{
}
else
{
uni
.
showModal
({
uni
.
showModal
({
title
:
'登录失败'
,
title
:
"登录失败"
,
content
:
'未获取到code'
,
content
:
"未获取到code"
,
});
});
}
}
},
},
fail
()
{
fail
()
{},
}
});
});
},
},
setUserData
(
userInfo
)
{
setUserData
(
userInfo
)
{
if
(
userInfo
&&
userInfo
.
token
)
{
if
(
userInfo
&&
userInfo
.
token
)
{
// 如果已经登录则直接获取相关信息
// 如果已经登录则直接获取相关信息
util
.
setOpenid
(
userInfo
.
wxopenid
)
util
.
setOpenid
(
userInfo
.
wxopenid
);
util
.
setToken
(
userInfo
.
token
)
this
.
$u
.
vuex
(
'vuex_token'
,
userInfo
.
token
);
uni
.
setStorageSync
(
'user-info'
,
userInfo
);
uni
.
setStorageSync
(
"user-info"
,
userInfo
);
}
else
{
}
else
{
util
.
setToken
(
''
)
this
.
$u
.
vuex
(
'vuex_token'
,
''
);
}
}
},
},
/* 版本更新 */
updateApp
()
{
// 版本更新
const
updateManager
=
uni
.
getUpdateManager
();
updateManager
.
onCheckForUpdate
(
function
(
res
)
{
// 请求完新版本信息的回调
console
.
log
(
res
.
hasUpdate
);
});
updateManager
.
onUpdateReady
(
function
(
res
)
{
uni
.
showModal
({
title
:
"更新提示"
,
content
:
"新版本已经准备好,是否重启应用?"
,
success
(
res
)
{
if
(
res
.
confirm
)
{
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
updateManager
.
applyUpdate
();
}
},
});
});
updateManager
.
onUpdateFailed
(
function
(
res
)
{
// 新的版本下载失败
});
},
/* ------------------------- 数据埋点begin ------------------------------ */
/* ------------------------- 数据埋点begin ------------------------------ */
track
(
event
,
properties
)
{
track
(
event
,
properties
)
{
if
(
AnalysysAgent
)
{
if
(
AnalysysAgent
)
{
...
@@ -139,39 +176,39 @@
...
@@ -139,39 +176,39 @@
// 设备身份表示
// 设备身份表示
if
(
AnalysysAgent
)
{
if
(
AnalysysAgent
)
{
let
setProfile
=
{
let
setProfile
=
{
'openid'
:
openid
,
openid
:
openid
,
'unionid'
:
unionid
,
unionid
:
unionid
,
}
};
setProfile
=
Object
.
assign
(
setProfile
,
userInfo
)
setProfile
=
Object
.
assign
(
setProfile
,
userInfo
);
AnalysysAgent
.
profileSet
(
setProfile
);
AnalysysAgent
.
profileSet
(
setProfile
);
}
}
},
},
setUserId
(
userId
)
{
setUserId
(
userId
)
{
// 用户id设置
// 用户id设置
if
(
AnalysysAgent
)
{
if
(
AnalysysAgent
)
{
AnalysysAgent
.
alias
(
userId
+
''
)
AnalysysAgent
.
alias
(
userId
+
""
);
}
}
},
},
setUser
(
user
)
{
setUser
(
user
)
{
// 用户附加属性
// 用户附加属性
if
(
AnalysysAgent
)
{
if
(
AnalysysAgent
)
{
let
userInfo
=
{
let
userInfo
=
{
'mobile'
:
user
.
mobile
,
mobile
:
user
.
mobile
,
'userfrom_id'
:
user
.
uid
,
userfrom_id
:
user
.
uid
,
'userfrom'
:
'家维广场'
,
userfrom
:
"家维广场"
,
'avatar'
:
user
.
avatar
,
avatar
:
user
.
avatar
,
'nickname'
:
user
.
nickname
,
nickname
:
user
.
nickname
,
'username'
:
user
.
username
,
username
:
user
.
username
,
'wxhuid'
:
user
.
wxhuid
,
wxhuid
:
user
.
wxhuid
,
'id'
:
user
.
id
,
id
:
user
.
id
,
'money'
:
user
.
money
,
money
:
user
.
money
,
'score'
:
user
.
score
score
:
user
.
score
,
};
};
Object
.
keys
(
userInfo
).
map
(
key
=>
{
Object
.
keys
(
userInfo
).
map
((
key
)
=>
{
if
(
key
&&
userInfo
[
key
])
{
if
(
key
&&
userInfo
[
key
])
{
AnalysysAgent
.
profileAppend
(
key
,
userInfo
[
key
])
AnalysysAgent
.
profileAppend
(
key
,
userInfo
[
key
]);
}
}
})
});
}
}
},
},
share
(
toShareProperties
,
trackProperties
)
{
share
(
toShareProperties
,
trackProperties
)
{
...
@@ -185,26 +222,26 @@
...
@@ -185,26 +222,26 @@
}
}
},
},
initShare
(
option
)
{
initShare
(
option
)
{
console
.
log
(
option
,
'option-initShare'
)
console
.
log
(
option
,
"option-initShare"
);
option
=
option
||
{}
option
=
option
||
{};
if
(
AnalysysAgent
&&
option
.
user_id
)
{
if
(
AnalysysAgent
&&
option
.
user_id
)
{
let
shareUserInfo
=
{
let
shareUserInfo
=
{
'share_from_id'
:
option
.
user_id
||
''
,
share_from_id
:
option
.
user_id
||
""
,
'share_from_nickname'
:
option
.
user_name
||
''
,
share_from_nickname
:
option
.
user_name
||
""
,
}
};
AnalysysAgent
.
registerSuperProperties
(
shareUserInfo
);
AnalysysAgent
.
registerSuperProperties
(
shareUserInfo
);
}
}
},
},
/* ------------------------- 数据埋点end ------------------------------ */
/* ------------------------- 数据埋点end ------------------------------ */
}
},
}
};
</
script
>
</
script
>
<
style
>
<
style
>
/*每个页面公共css */
/*每个页面公共css */
</
style
>
</
style
>
<
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'
;
@import
"@/common/index.scss"
;
</
style
>
</
style
>
\ No newline at end of file
src/common/api/index.js
View file @
b97e6cba
...
@@ -7,17 +7,20 @@ import {
...
@@ -7,17 +7,20 @@ import {
import
{
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 @
b97e6cba
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 @
b97e6cba
...
@@ -19,7 +19,7 @@ let settledApiFun = function(vm){
...
@@ -19,7 +19,7 @@ let settledApiFun = function(vm){
let
submitSettleFileInfo
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
ucenterApiUrl
+
'/v1/settled/submit-info'
,
params
);
let
submitSettleFileInfo
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
ucenterApiUrl
+
'/v1/settled/submit-info'
,
params
);
/* 缴纳保证金 */
/* 缴纳保证金 */
let
paySettleDeposit
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
ucenterApiUrl
+
'/v
1
/settled/pay-deposit'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
let
paySettleDeposit
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
ucenterApiUrl
+
'/v
2
/settled/pay-deposit'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
let
getSettleDepositResult
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
ucenterApiUrl
+
'/v1/settled/check-oid'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
let
getSettleDepositResult
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
ucenterApiUrl
+
'/v1/settled/check-oid'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
...
@@ -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/common/classify.data.js
View file @
b97e6cba
export
default
[{
export
default
[{
"groupName"
:
"女装"
,
"groupName"
:
"女装"
,
"item"
:
[{
"item"
:
[{
"required"
:
true
,
"fieldsTitle"
:
"A字裙多个"
,
"fieldsName"
:
"name"
,
"fieldsType"
:
"multiInput"
,
"fieldsValue"
:
""
,
"inputOptions"
:[{
"fieldsTitle"
:
"A字裙"
,
"fieldsName"
:
"name1"
,
"fieldsType"
:
"text"
,
},{
"fieldsTitle"
:
"A字裙"
,
"fieldsName"
:
"name2"
,
"fieldsType"
:
"text"
,
},{
"fieldsTitle"
:
"A字裙"
,
"fieldsName"
:
"name3"
,
"fieldsType"
:
"text"
,
},{
"fieldsTitle"
:
"A字裙"
,
"fieldsName"
:
"name3"
,
"fieldsType"
:
"text"
,
},{
"fieldsTitle"
:
"A字裙"
,
"fieldsName"
:
"name4"
,
"fieldsType"
:
"text"
,
},{
"fieldsTitle"
:
"A字裙"
,
"fieldsName"
:
"name5"
,
"fieldsType"
:
"text"
,
},],
"key"
:
"A字裙"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/1.jpg"
,
"cat"
:
10
},{
"required"
:
true
,
"required"
:
true
,
"fieldsTitle"
:
"A字裙"
,
"fieldsTitle"
:
"A字裙"
,
"fieldsName"
:
"name"
,
"fieldsName"
:
"name"
,
"fieldsType"
:
"input"
,
"fieldsType"
:
"input"
,
"fieldsValue"
:
""
,
"fieldsValue"
:
""
,
"span"
:
8
,
"key"
:
"A字裙"
,
"key"
:
"A字裙"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/1.jpg"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/1.jpg"
,
"cat"
:
10
"cat"
:
10
...
@@ -55,19 +90,28 @@ export default [{
...
@@ -55,19 +90,28 @@ export default [{
"cat"
:
10
"cat"
:
10
},
},
{
{
"fieldsTitle"
:
"连衣裙"
,
"fieldsTitle"
:
"充电桩编码"
,
"fieldsName"
:
"scan"
,
"fieldsType"
:
"scan"
,
"required"
:
true
,
"key"
:
"连衣裙"
,
"key"
:
"连衣裙"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/7.jpg"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/7.jpg"
,
"cat"
:
10
"cat"
:
10
},
},
{
{
"fieldsTitle"
:
"妈妈装"
,
"fieldsTitle"
:
"多级选择"
,
"fieldsName"
:
"mutiPicker"
,
"fieldsType"
:
"mutipicker"
,
"required"
:
true
,
"key"
:
"妈妈装"
,
"key"
:
"妈妈装"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/8.jpg"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/8.jpg"
,
"cat"
:
10
"cat"
:
10
},
},
{
{
"fieldsTitle"
:
"牛仔裤"
,
"fieldsTitle"
:
"时间选择"
,
"fieldsName"
:
"time"
,
"fieldsType"
:
"time"
,
"required"
:
true
,
"key"
:
"牛仔裤"
,
"key"
:
"牛仔裤"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/9.jpg"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/9.jpg"
,
"cat"
:
10
"cat"
:
10
...
...
src/common/global.js
deleted
100644 → 0
View file @
f4c2b692
qn_base_url
=
'https://qn-static.banshouhui.com/self-support/'
\ No newline at end of file
src/common/http.interceptor.js
View file @
b97e6cba
...
@@ -35,7 +35,7 @@ const install = (Vue, vm) => {
...
@@ -35,7 +35,7 @@ const install = (Vue, vm) => {
// 请求拦截,配置Token等参数
// 请求拦截,配置Token等参数
Vue
.
prototype
.
$u
.
http
.
interceptor
.
request
=
(
config
)
=>
{
Vue
.
prototype
.
$u
.
http
.
interceptor
.
request
=
(
config
)
=>
{
const
reg
=
/
\?\w
+/
;
const
reg
=
/
\?\w
+/
;
let
token
=
util
.
getToken
()
let
token
=
vm
.
vuex_token
// if(!token && noLoginUrl.indexOf(config.url)<0){
// if(!token && noLoginUrl.indexOf(config.url)<0){
// toLoginPage()
// toLoginPage()
// return false
// return false
...
...
src/components/createCom/XhCheckbox.vue
View file @
b97e6cba
<!-- ******************* 多选框 ******************* -->
<
template
>
<
template
>
<view
class=
"list"
>
<view
class=
"list"
>
<view
v-for=
"(item,index) in settings"
:key=
"index"
<view
v-for=
"(item,index) in settings"
:key=
"index"
...
...
src/components/createCom/XhFiles.vue
View file @
b97e6cba
<!-- ******************* 文件上传 ******************* -->
<
template
>
<
template
>
<view
class=
"file-box"
>
<view
class=
"file-box"
>
<view
class=
"u-flex"
@
click=
"selectUpload"
>
<view
class=
"u-flex"
@
click=
"selectUpload"
>
...
@@ -5,7 +6,7 @@
...
@@ -5,7 +6,7 @@
<u-icon
name=
"arrow-right"
color=
"#666"
size=
"28"
></u-icon>
<u-icon
name=
"arrow-right"
color=
"#666"
size=
"28"
></u-icon>
</view>
</view>
<view
class=
"pics u-flex u-flex-wrap"
>
<view
class=
"pics u-flex u-flex-wrap"
>
<u-image
class=
"pic"
v-for=
"(item,index) in imgList"
width=
"170rpx"
height=
"170"
:src=
"item.path"
></u-image>
<u-image
class=
"pic"
v-for=
"(item,index) in imgList"
width=
"170rpx"
height=
"170"
:src=
"item.path"
:key=
"index"
></u-image>
<!--
<u-image
class=
"pic"
v-for=
"item in 6"
width=
"170rpx"
height=
"170"
src=
"'https://cdn.uviewui.com/uview/example/fade.jpg"
></u-image>
-->
<!--
<u-image
class=
"pic"
v-for=
"item in 6"
width=
"170rpx"
height=
"170"
src=
"'https://cdn.uviewui.com/uview/example/fade.jpg"
></u-image>
-->
</view>
</view>
<u-popup
v-model=
"maskShow"
mode=
"center"
width=
"500"
>
<u-popup
v-model=
"maskShow"
mode=
"center"
width=
"500"
>
...
@@ -58,7 +59,7 @@
...
@@ -58,7 +59,7 @@
// 直接打开相册
// 直接打开相册
let
config
=
{
let
config
=
{
options
:{
options
:{
con
sourceType
:[
'album'
],
//['album', 'camera']
sourceType
:[
'album'
],
//['album', 'camera']
}
}
}
}
await
this
.
chooseImage
(
'qiniu'
,
config
)
await
this
.
chooseImage
(
'qiniu'
,
config
)
...
...
src/components/createCom/XhInput.vue
View file @
b97e6cba
<!-- ******************* 输入框 ******************* -->
<
template
>
<
template
>
<view>
<view>
<u-input
v-model=
"dataValue"
@
input=
"valueChange"
:type=
"type"
/>
<u-input
v-model=
"dataValue"
@
input=
"valueChange"
:type=
"type"
/>
...
...
src/components/createCom/XhLocation.vue
View file @
b97e6cba
<!-- ******************* 定位 ******************* -->
<
template
>
<
template
>
<view
class=
"list u-flex u-row-between"
>
<view
class=
"list u-flex u-row-between"
>
<text
class=
"required"
v-if=
"item.required"
>
*
</text>
<text
class=
"required"
v-if=
"item.required"
>
*
</text>
...
@@ -10,7 +11,7 @@
...
@@ -10,7 +11,7 @@
<
script
>
<
script
>
import
objMixin
from
'./objMixin'
import
objMixin
from
'./objMixin'
export
default
{
export
default
{
name
:
'Xh
Radio
'
,
name
:
'Xh
Location
'
,
components
:
{},
components
:
{},
mixins
:
[
objMixin
],
mixins
:
[
objMixin
],
props
:
{},
props
:
{},
...
...
src/components/createCom/XhMultiInput.vue
0 → 100644
View file @
b97e6cba
<!-- ******************* 多个输入框 ******************* -->
<
template
>
<view
class=
"u-flex u-flex-wrap"
>
<u-input
class=
"input-item"
v-for=
"(item,index) in inputOptions"
v-model=
"item.value"
@
input=
"val=>
{getValue(item)}" type="text" :key="index"/>
</view>
</
template
>
<
script
>
import
objMixin
from
'./objMixin'
export
default
{
name
:
'XhMultiInput'
,
components
:
{},
mixins
:
[
objMixin
],
props
:
{},
data
()
{
return
{}
},
computed
:
{
inputOptions
()
{
let
options
=
this
.
item
.
inputOptions
||
[]
let
result
=
options
.
map
(
item
=>
{
return
{
...
item
,
value
:
''
}
})
return
result
}
},
watch
:
{},
mounted
()
{},
methods
:
{
getValue
(
item
){
let
currentValue
=
{}
currentValue
[
item
.
fieldsName
]
=
item
.
value
// 以key,value的对象形式传递
this
.
valueChange
(
currentValue
)
}
}
}
</
script
>
<
style
>
.input-item
{
width
:
33.3%
;
}
</
style
>
src/components/createCom/XhPicker.vue
0 → 100644
View file @
b97e6cba
<!-- ******************* 单级/多级 选择 ******************* -->
<
template
>
<view
class=
"picker-box"
>
<view
class=
"u-flex u-row-between"
@
click=
"openPicker"
>
<view
class=
"txt u-flex-1"
>
{{
item
.
fieldsTitle
}}
</view>
<u-icon
name=
"arrow-right"
color=
"#666"
size=
"28"
></u-icon>
</view>
<u-picker
v-model=
"showPicker"
:rangeKey=
"rangeKey"
@
columnchange=
"columnchange"
mode=
"multiSelector"
@
confirm=
"pickerConfirm"
:default-selector=
'[0, 1]'
:range=
"settings"
></u-picker>
</view>
</
template
>
<
script
>
import
objMixin
from
'./objMixin'
export
default
{
name
:
'XhPicker'
,
components
:
{},
mixins
:
[
objMixin
],
props
:
{
// 当mode=selector或者mode=multiSelector时,提供的默认选中的下标
defaultSelector
:
{
type
:
Array
,
default
()
{
return
[
0
];
}
},
// 当 range 是一个 Array<Object> 时,通过 range-key 来指定 Object 中 key 的值作为选择器显示内容
rangeKey
:
{
type
:
String
,
default
:
''
},
},
filters
:{},
data
()
{
return
{
showPicker
:
false
,
settings
:[
[
1
,
2
,
3
],
[
4
,
5
,
6
]
]
}
},
computed
:
{
// settings() {
// let setting = [
// [1, 2, 3],
// [4, 5, 6]
// ]
// return setting
// // return this.item.settings || []
// }
},
watch
:
{},
mounted
()
{},
methods
:
{
openPicker
(){
this
.
showPicker
=
true
},
pickerConfirm
(
data
){
let
result
=
[]
data
&&
data
.
map
((
item
,
index
)
=>
{
let
val
=
this
.
settings
[
index
][
item
]
result
.
push
(
val
)
})
this
.
dataValue
=
result
this
.
valueChange
(
result
)
console
.
log
(
result
,
'result'
)
},
columnchange
(
data
){
console
.
log
(
data
,
'data'
)
// 树列改变时进行联动操作
const
{
column
,
index
}
=
data
let
arr
=
[
9
,
10
,
50
]
this
.
settings
.
splice
(
column
+
1
,
1
,
arr
)
console
.
log
(
this
.
settings
,
'this.settings'
)
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
src/components/createCom/XhRadio.vue
View file @
b97e6cba
<!-- ******************* 单选框 ******************* -->
<
template
>
<
template
>
<view
class=
"list"
>
<view
class=
"list"
>
<view
v-for=
"(item,index) in settings"
:key=
"index"
:class=
"
{'txt':true,'active':item===dataValue}"
<view
v-for=
"(item,index) in settings"
:key=
"index"
:class=
"
{'txt':true,'active':item===dataValue}"
...
...
src/components/createCom/XhScan.vue
0 → 100644
View file @
b97e6cba
<!-- ******************* 扫码 ******************* -->
<
template
>
<view
class=
""
>
<view
class=
"u-flex"
>
请输入:
<u-input
class=
"u-flex-1"
v-model=
"dataValue"
@
input=
"valueChange"
type=
"text"
/>
</view>
<view
class=
"u-flex"
@
click=
"scanCode"
>
<view
class=
"txt u-flex-1"
>
扫描二维码(仅挚达充电桩可扫描)
</view>
<u-icon
name=
"arrow-right"
color=
"#666"
size=
"28"
></u-icon>
</view>
</view>
</
template
>
<
script
>
import
stringMixin
from
'./stringMixin'
export
default
{
name
:
'XhScan'
,
components
:
{},
mixins
:
[
stringMixin
],
props
:
{},
filters
:{},
data
()
{
return
{}
},
computed
:
{
valueTxt
()
{
let
str
=
''
const
dataValue
=
this
.
dataValue
if
(
dataValue
&&
dataValue
.
length
>
1
){
str
=
'经度:'
+
dataValue
[
0
]
+
','
+
'维度:'
+
dataValue
[
1
]
}
return
str
}
},
watch
:
{},
mounted
()
{},
methods
:
{
scanCode
(
type
){
const
self
=
this
// qrCode 二维码;barCode 条形码
let
scanType
=
type
&&
[
type
]
||
[
'qrCode'
]
uni
.
scanCode
({
// scanType: scanType,
success
:
function
(
res
)
{
self
.
dataValue
=
res
.
result
self
.
valueChange
(
res
.
result
)
// console.log('条码类型:' + res.scanType);
// console.log('条码内容:' + res.result);
}
});
},
// setValue(txt) {
// this.valueChange(this.dataValue)
// }
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.required
{
padding-right
:
10rpx
;
font-size
:
28rpx
;
line-height
:
40rpx
;
color
:
#fa3534
;
}
</
style
>
src/components/createCom/XhSelect.vue
View file @
b97e6cba
<!-- ******************* 单个下拉选择 ******************* -->
<
template
>
<
template
>
<view>
<view>
<u-input
v-model=
"dataValue"
readOnly
@
click=
"show=true"
type=
"select"
/>
<u-input
v-model=
"dataValue"
readOnly
@
click=
"show=true"
type=
"select"
/>
...
...
src/components/createCom/XhTime.vue
0 → 100644
View file @
b97e6cba
<!-- ******************* 输入框 ******************* -->
<
template
>
<view
class=
"picker-box"
>
<view
class=
"u-flex u-row-between"
@
click=
"openPicker"
>
<view
class=
"txt"
>
{{
item
.
fieldsTitle
}}
</view>
<view
class=
"txt u-flex-1"
>
{{
dataValue
}}
</view>
<u-icon
name=
"arrow-right"
color=
"#666"
size=
"28"
></u-icon>
</view>
<u-picker
:params=
"params"
v-model=
"showPicker"
mode=
"time"
@
confirm=
"pickerConfirm"
></u-picker>
<!--
<u-picker
v-model=
"showPicker"
:rangeKey=
"rangeKey"
@
columnchange=
"columnchange"
mode=
"multiSelector"
@
confirm=
"pickerConfirm"
:default-selector=
'[0, 1]'
:range=
"settings"
></u-picker>
-->
</view>
</
template
>
<
script
>
import
stringMixin
from
'./stringMixin'
export
default
{
name
:
'XhInput'
,
// 新建 input
components
:
{},
mixins
:
[
stringMixin
],
props
:
{},
data
()
{
return
{
showPicker
:
false
,
params
:
{
year
:
true
,
month
:
true
,
day
:
true
,
hour
:
true
,
minute
:
true
,
second
:
true
,
// 选择时间的时间戳
timestamp
:
true
,
}
}
},
computed
:
{
type
()
{
if
(
this
.
item
&&
this
.
item
.
fieldsType
==
'password'
)
{
return
this
.
item
.
fieldsType
}
else
{
return
'text'
}
}
},
watch
:
{},
mounted
()
{},
methods
:
{
openPicker
()
{
this
.
showPicker
=
true
},
pickerConfirm
(
data
)
{
console
.
log
(
data
,
'DATA'
)
let
result
=
[]
let
dataValue
=
data
.
year
+
'-'
+
data
.
month
+
'-'
+
data
.
day
+
' '
+
data
.
hour
+
':'
+
data
.
minute
+
':'
+
data
.
second
console
.
log
(
dataValue
,
'dataValue'
)
this
.
dataValue
=
dataValue
this
.
valueChange
(
dataValue
)
},
}
}
</
script
>
<
style
>
</
style
>
src/components/settle/index.vue
View file @
b97e6cba
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
},
},
computed
:
{
computed
:
{
url
()
{
url
()
{
return
qn_base_url
+
'top
'
+
this
.
index
+
'.png'
return
process
.
uniEnv
.
qn_base_url
+
'topl
'
+
this
.
index
+
'.png'
}
}
}
}
}
}
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
border-radius
:
12rpx
;
border-radius
:
12rpx
;
overflow
:
auto
;
overflow
:
auto
;
position
:
fixed
;
position
:
fixed
;
top
:
3
2
0rpx
;
top
:
3
7
0rpx
;
bottom
:
0rpx
;
bottom
:
0rpx
;
left
:
30rpx
;
left
:
30rpx
;
right
:
30rpx
;
right
:
30rpx
;
...
...
src/components/settle/services.vue
deleted
100644 → 0
View file @
f4c2b692
<
template
>
<view
class=
"content-view"
>
<view
class=
"headimage-view"
>
<image
class=
"headimage-view-image"
:src=
"kefuImage"
></image>
<text
class=
"name-text"
>
朱曼婷
</text>
</view>
<view
class=
"content-info"
>
<view>
<view
class=
"content-info-title"
>
深圳唯修汇科技有限公司
</view>
<view
class=
"content-info-tip"
>
长按二维码添加官方客服微信及时了解审核进度
</view>
</view>
<view
class=
"QRcode-view"
>
<image
class=
"content-info-QRcode"
:src=
"erweimaImage"
></image>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
},
data
()
{
return
{}
},
computed
:
{
erweimaImage
()
{
return
qn_base_url
+
'erweima.png'
},
kefuImage
()
{
return
qn_base_url
+
'kefu.png'
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.content-view
{
background-color
:
#FFFFFF
;
width
:
440rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
.headimage-view
{
position
:
relative
;
.headimage-view-image
{
width
:
440rpx
;
height
:
400rpx
;
}
.name-text
{
position
:
absolute
;
bottom
:
20rpx
;
left
:
20rpx
;
color
:
#FFFFFF
;
font-size
:
28rpx
;
}
}
.content-info
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
width
:
100%
;
padding
:
0rpx
12rpx
20rpx
12rpx
;
.content-info-title
{
font-size
:
24rpx
;
color
:
#333333
;
margin-bottom
:
10rpx
;
}
.content-info-tip
{
font-size
:
20rpx
;
color
:
#666666
;
}
.QRcode-view
{
margin-left
:
30rpx
;
}
.content-info-QRcode
{
padding-top
:
12rpx
;
width
:
104rpx
;
height
:
104rpx
;
}
}
}
</
style
>
src/main.js
View file @
b97e6cba
...
@@ -4,7 +4,6 @@ import uView from "uview-ui";
...
@@ -4,7 +4,6 @@ import uView from "uview-ui";
import
vuexStore
from
"@/store/$u.mixin.js"
;
import
vuexStore
from
"@/store/$u.mixin.js"
;
import
store
from
'@/store/index'
import
store
from
'@/store/index'
import
{
router
,
RouterMount
}
from
'@/router/index.js'
//路径换成自己的
import
{
router
,
RouterMount
}
from
'@/router/index.js'
//路径换成自己的
import
'./common/global.js'
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
Vue
.
mixin
(
vuexStore
)
Vue
.
mixin
(
vuexStore
)
...
...
src/pages.json
View file @
b97e6cba
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
{
{
"path"
:
"pages/index/index"
,
"path"
:
"pages/index/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"首页"
"navigationBarTitleText"
:
"首页"
,
"navigationStyle"
:
"custom"
}
}
},
},
{
{
...
@@ -52,7 +53,8 @@
...
@@ -52,7 +53,8 @@
{
{
"path"
:
"pages/learn/index"
,
"path"
:
"pages/learn/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"学习"
"navigationBarTitleText"
:
"学习"
,
"navigationStyle"
:
"custom"
//隐藏系统导航栏
}
}
},
},
{
{
...
@@ -68,9 +70,9 @@
...
@@ -68,9 +70,9 @@
}
}
},
},
{
{
"path"
:
"pages/learn/result"
,
"path"
:
"pages/learn/result"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"考试结果页"
"navigationBarTitleText"
:
"考试答题"
}
}
},
},
{
{
...
@@ -259,11 +261,6 @@
...
@@ -259,11 +261,6 @@
"path"
:
"pages/settle/sign-contract"
,
//启动页面,必选
"path"
:
"pages/settle/sign-contract"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
},
{
"name"
:
"缴纳保证金"
,
//模式名称
"path"
:
"pages/settle/pay-ensure"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
{
"name"
:
"订单 - 完工配置"
,
//模式名称
"name"
:
"订单 - 完工配置"
,
//模式名称
"path"
:
"pages/order/complete"
,
//启动页面,必选
"path"
:
"pages/order/complete"
,
//启动页面,必选
...
...
src/pages/exam/index.vue
View file @
b97e6cba
<
template
>
<
template
>
<view
class=
"backView"
>
<view
class=
"backView"
>
<Settle
:index=
"
2
"
>
<Settle
:index=
"
3
"
>
<!--
<template
v-if=
"isStart==false"
>
<!--
<template
v-if=
"isStart==false"
>
<view
class=
"noticeView"
>
<view
class=
"noticeView"
>
<text
class=
"noticeText"
>
规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。
<text
class=
"noticeText"
>
规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
<!-- <template v-if="isStart==true && currentItem"> -->
<!-- <template v-if="isStart==true && currentItem"> -->
<view
class=
"bottom-padding"
v-if=
"currentItem"
>
<view
class=
"bottom-padding"
v-if=
"currentItem"
>
<view
class=
"title-view"
>
<view
class=
"title-view"
>
<view
class=
"title-text
"
>
<view
:class=
"['title-text', {'radio': currentItem.question ? currentItem.question.answerType == 1 : true}]
"
>
<text>
{{ titleText[Math.max(0, currentItem.question
.answerType - 1
)] }}
</text>
<text>
{{ titleText[Math.max(0, currentItem.question
? currentItem.question.answerType - 1 : 0
)] }}
</text>
</view>
</view>
<view
class=
"title-right-view"
>
<view
class=
"title-right-view"
>
<image
class=
"timeIcon"
:src=
"time1Image"
mode=
""
></image>
<image
class=
"timeIcon"
:src=
"time1Image"
mode=
""
></image>
...
@@ -107,13 +107,13 @@
...
@@ -107,13 +107,13 @@
return
[
'单选'
,
'多选'
,
'问答'
]
return
[
'单选'
,
'多选'
,
'问答'
]
},
},
time1Image
()
{
time1Image
()
{
return
qn_base_url
+
'time1.png'
return
process
.
uniEnv
.
qn_base_url
+
'time1.png'
},
},
chenggongImage
()
{
chenggongImage
()
{
return
qn_base_url
+
'chenggong.png'
return
process
.
uniEnv
.
qn_base_url
+
'chenggong.png'
},
},
timuImage
()
{
timuImage
()
{
return
qn_base_url
+
'timu.png'
return
process
.
uniEnv
.
qn_base_url
+
'timu.png'
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
url
:
systemApiUrl
+
url
:
systemApiUrl
+
'/wxh-worker-rest/rest/exam'
+
'/wxh-worker-rest/rest/exam'
+
'/serviceRule/userExamInfo/'
+
'/serviceRule/userExamInfo/'
+
getApp
().
globalData
.
token
+
that
.
vuex_
token
+
'?examId='
+
this
.
examId
,
'?examId='
+
this
.
examId
,
method
:
'POST'
,
method
:
'POST'
,
data
:
{
data
:
{
...
@@ -231,7 +231,7 @@
...
@@ -231,7 +231,7 @@
url
:
systemApiUrl
+
url
:
systemApiUrl
+
'/wxh-worker-rest/rest/exam'
+
'/wxh-worker-rest/rest/exam'
+
'/serviceRule/'
+
'/serviceRule/'
+
getApp
().
globalData
.
token
+
that
.
vuex_
token
+
'?examId='
+
this
.
examId
,
'?examId='
+
this
.
examId
,
method
:
'POST'
,
method
:
'POST'
,
data
:
{
data
:
{
...
@@ -297,7 +297,7 @@
...
@@ -297,7 +297,7 @@
url
:
systemApiUrl
+
url
:
systemApiUrl
+
'/wxh-worker-rest/rest/exam'
+
'/wxh-worker-rest/rest/exam'
+
'/serviceRule/next/'
+
'/serviceRule/next/'
+
getApp
().
globalData
.
token
+
that
.
vuex_
token
+
'?userExamId='
+
this
.
userExamId
+
'?userExamId='
+
this
.
userExamId
+
'&questionId='
+
questionId
+
'&questionId='
+
questionId
+
'&userAnswerIds='
+
this
.
userAnswerIds
,
'&userAnswerIds='
+
this
.
userAnswerIds
,
...
@@ -468,7 +468,7 @@
...
@@ -468,7 +468,7 @@
let
that
=
this
let
that
=
this
uni
.
request
({
uni
.
request
({
url
:
ucenterApiUrl
+
'/v1/settled/update-settled-exam-score'
+
url
:
ucenterApiUrl
+
'/v1/settled/update-settled-exam-score'
+
'?access-token='
+
getApp
().
globalData
.
token
,
'?access-token='
+
that
.
vuex_
token
,
method
:
'POST'
,
method
:
'POST'
,
data
:
{
data
:
{
score
:
this
.
examScore
||
0
,
score
:
this
.
examScore
||
0
,
...
@@ -738,6 +738,9 @@
...
@@ -738,6 +738,9 @@
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
&
.radio
{
background-color
:
#2272FF
;
}
}
}
.title-right-view
{
.title-right-view
{
...
@@ -757,7 +760,7 @@
...
@@ -757,7 +760,7 @@
}
}
.time-count-down
{
.time-count-down
{
width
:
8
0rpx
;
width
:
5
0rpx
;
text-align
:
right
;
text-align
:
right
;
}
}
}
}
...
...
src/pages/index/index.vue
View file @
b97e6cba
<
template
>
<
template
>
<view
class=
"content"
>
<view
class=
"content"
>
<
scroll-view
<
!--
<scroll-view
class=
"scroll-view"
scroll-y
style=
"height: 100%; width: 100%"
@
scrolltolower=
"reachBottom"
scroll-y
@
scroll=
"handleScroll"
refresher-enabled
:refresher-triggered=
"triggered"
@
refresherrefresh=
"onRefresh"
style=
"height: 100%; width: 100%
"
scroll-anchoring
@
refresherrestore=
"onRestore"
@
refresherpulling=
"triggered = true"
:show-scrollbar=
"false
"
@
scrolltolower=
"reachBottom"
enable-back-to-top
>
-->
@
scroll=
"handleScroll"
<view
style=
"width: 700rpx; height: 800rpx"
>
refresher-enabled
<!--
<view
class=
"title-view"
>
充电桩自营平台
</view>
-->
:refresher-triggered=
"triggered"
<u-navbar
@
refresherrefresh=
"onRefresh
"
:is-back=
"false
"
scroll-anchoring
background=
"
{background: transparent}"
@
refresherrestore=
"onRestor
e"
:border-bottom="fals
e"
@
refresherpulling=
"triggered = tru
e"
:is-fixed="fals
e"
>
>
<u-swiper
<text
class=
"title-view"
>
充电桩自营平台
</text>
:height=
"250"
</u-navbar>
<!--
<u-swiper
:height=
"240"
:list=
"list"
:list=
"list"
:indicator-pos=
"indicatorPos"
:indicator-pos=
"indicatorPos"
:mode=
"mode"
:mode=
"mode"
:interval=
"3000"
:interval=
"3000"
@
click=
"clickSwiper"
@
click=
"clickSwiper"
>
>
</u-swiper>
</u-swiper>
-->
<view>
<image
class=
"banner-image"
:src=
"bannerImage"
></image>
<text
class=
"title"
>
最新消息
</text>
<view
v-for=
"(item, index) in messageList"
:key=
"index"
>
<view
class=
"msg-view"
>
<text
class=
"title"
>
{{
item
.
body
}}
</text>
<view
class=
"msg-title"
>
最新消息
</view>
<view
class=
"msg-list-view"
>
<view
class=
"msg-content"
v-for=
"(item, index) in messageList"
:key=
"index"
>
<view
class=
"msg-content-view"
>
<view
class=
"left-view"
>
<image
class=
"msg-icon"
:src=
"msgStyleImage[item.content_type]"
></image>
<text>
{{
item
.
title
}}
</text>
</view>
<image
class=
"right-icon"
:src=
"shouyeyouImage"
></image>
</view>
<view
class=
"line-view"
v-if=
"index != 2"
></view>
</view>
</view>
</view>
</view>
<view
class=
"order-view"
>
<!-- 订单推荐吸顶 -->
<!-- 订单推荐吸顶 -->
<u-sticky>
<u-sticky>
<view
class=
"sticky"
>
<view
class=
"sticky"
>
<text>
订单推荐
</text>
<text>
订单推荐
</text>
</view>
</view>
</u-sticky>
</u-sticky>
<view
class=
"order-view"
>
<!-- 入驻成功之后显示推荐订单列表 -->
<!-- 入驻成功之后显示推荐订单列表 -->
<view
v-if=
"status == 7 && orderList.length > 0"
>
<view
class=
"order-list-view"
>
<!-- 入驻前-->
<view
v-if=
"needSettled"
class=
"tip-view"
>
<view
class=
"tip-title"
>
当前订单(笔)
</view>
<view
class=
"tip-count"
>
{{
count
}}
</view>
<view
class=
"tip-other"
>
入驻通过后平台将向您推荐订单
</view>
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
:custom-style=
"buttonStyle"
>
立即入驻
</u-button>
</view>
<view
v-else-if=
"!needSettled && orderList.length > 0"
class=
"order-item-view"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<OrderCell
:orderData=
"item"
>
</OrderCell>
<OrderCell
:orderData=
"item"
>
</OrderCell>
</view>
</view>
...
@@ -44,27 +84,16 @@
...
@@ -44,27 +84,16 @@
></u-loadmore>
></u-loadmore>
</view>
</view>
<!-- 入驻成功之后无推荐订单 -->
<!-- 入驻成功之后无推荐订单 -->
<view
v-else-if=
"status == 7 && orderList.length
<
=
0
"
>
<view
v-else-if=
"!needSettled && orderList.length
<
=
0
"
class=
"no-order-view"
>
暂无订单
暂无订单
</view>
</view>
<!-- 入驻前-->
<view
v-else-if=
"loaded"
>
<text
class=
"title"
>
当前订单
{{
count
}}
笔\n入驻通过后,平台将向您推荐订单
</text
>
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
:custom-style=
"buttonStyle"
>
立即入驻
</u-button>
</view>
</view>
</view>
</view>
</view>
</view>
<
/scroll-view
>
<
!--
</scroll-view>
--
>
</view>
</view>
</
template
>
</
template
>
...
@@ -82,61 +111,64 @@ export default {
...
@@ -82,61 +111,64 @@ export default {
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
,
needSettled
:
true
,
count
:
0
,
// 推荐订单数量
count
:
0
,
// 推荐订单数量
messageList
:
[
messageList
:
[],
{
id
:
1234
,
type
:
""
,
level
:
""
,
title
:
""
,
url
:
""
,
body
:
"好消息"
,
},
{
id
:
1234
,
type
:
""
,
level
:
""
,
title
:
""
,
url
:
""
,
body
:
"好消息"
,
},
{
id
:
1234
,
type
:
""
,
level
:
""
,
title
:
""
,
url
:
""
,
body
:
"好消息"
,
},
],
loadStatus
:
[
"more"
,
"loading"
,
"noMore"
],
loadStatus
:
[
"more"
,
"loading"
,
"noMore"
],
currentLoadStatus
:
"loading"
,
currentLoadStatus
:
"loading"
,
orderList
:
[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}],
orderList
:
[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}],
search
:
{
token
:
""
,
pageNumber
:
0
,
pageSize
:
10
,
},
bottomLoading
:
false
,
bottomLoading
:
false
,
};
};
},
},
watch
:
{
vuex_token
(
val
){
// 监听token变化,如果更新则重新加载页面数据
val
&&
this
.
initSettleInfo
()
}
},
computed
:
{
computed
:
{
buttonStyle
()
{
buttonStyle
()
{
return
{
return
{
width
:
"300rpx"
,
width
:
"400rpx"
,
height
:
"104rpx"
,
"font-size"
:
"32rpx"
,
"font-weight"
:
"bold"
,
};
};
},
},
msgStyleImage
()
{
return
{
'1'
:
process
.
uniEnv
.
qn_base_url
+
"zhiding.png"
,
// 置顶
'2'
:
process
.
uniEnv
.
qn_base_url
+
"tongzhi.png"
,
// 通知
'3'
:
process
.
uniEnv
.
qn_base_url
+
"xiaoxi.png"
,
// 消息
}
},
bannerImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'banner.png'
},
shouyeyouImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'shouyeyou.png'
}
},
},
onLoad
()
{
onLoad
()
{
this
.
_freshing
=
false
;
this
.
_freshing
=
false
;
...
@@ -144,23 +176,59 @@ export default {
...
@@ -144,23 +176,59 @@ export default {
},
},
onShow
()
{
onShow
()
{
// 每次进入页面都刷新入驻状态
// 每次进入页面都刷新入驻状态
if
(
app
.
globalData
.
token
)
{
if
(
this
.
vuex_token
)
{
// 获取是否显示入驻按钮
this
.
initSettleInfo
();
this
.
initSettleInfo
();
}
else
{
// 初始化订单数据
this
.
loadOrderList
();
}
}
},
},
methods
:
{
methods
:
{
async
initSettleInfo
()
{
async
initSettleInfo
()
{
if
(
this
.
status
==
7
)
return
;
let
self
=
this
;
if
(
self
.
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
=
Number
(
result
.
record
.
status
);
vm
.
needSettled
=
result
.
needSettled
;
// vm.status = 1
vm
.
status
=
Number
(
result
.
record
.
status
||
'0'
);
// vm.status = 8
}
}
};
};
await
app
.
getBaseInfo
(
this
,
callBack
);
await
app
.
getBaseInfo
(
self
,
callBack
);
// 加载消息列表
self
.
loadMessageList
();
self
.
loadOrderList
();
},
loadMessageList
()
{
let
self
=
this
;
self
.
$u
.
api
.
listByNotice
().
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
&&
res
.
data
.
length
>
3
)
{
self
.
messageList
=
res
.
data
.
slice
(
0
,
3
);
}
else
{
self
.
messageList
=
res
.
data
||
[];
}
}
else
{
console
.
log
(
res
.
message
,
"初始化消息列表异常"
);
}
});
},
loadOrderList
()
{
let
self
=
this
;
// 加载订单列表
self
.
search
.
token
=
self
.
vuex_token
;
self
.
$u
.
api
.
listByRecommendOrder
(
self
.
search
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
&&
res
.
data
.
length
>
0
)
{
self
.
orderList
.
push
().
apply
(
res
.
data
);
}
}
else
{
console
.
log
(
res
.
message
,
"初始化订单列表异常"
);
}
});
},
},
onRefresh
()
{
onRefresh
()
{
if
(
this
.
_freshing
)
return
;
if
(
this
.
_freshing
)
return
;
...
@@ -203,14 +271,41 @@ export default {
...
@@ -203,14 +271,41 @@ export default {
});
});
},
1000
);
},
1000
);
},
},
clickSwiper
(
index
)
{},
//
clickSwiper(index) {},
handleScroll
()
{
handleScroll
()
{
console
.
log
(
"-----scroll-------"
);
console
.
log
(
"-----scroll-------"
);
},
},
immediatelyIn
()
{
immediatelyIn
()
{
if
(
util
.
getToken
())
{
if
(
this
.
vuex_token
)
{
// 0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
var
pageIndex
=
1
;
switch
(
this
.
status
)
{
case
1
:
case
2
:
case
3
:
case
4
:
pageIndex
=
2
;
break
;
case
8
:
pageIndex
=
3
;
break
;
case
5
:
case
6
:
pageIndex
=
4
;
break
;
case
7
:
pageIndex
=
5
;
break
;
default
:
pageIndex
=
1
;
break
;
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
this
.
status
>
0
?
"/pages/settle/prompt"
:
"/pages/settle/index"
,
url
:
this
.
status
>
0
?
"/pages/settle/prompt?pageIndex="
+
pageIndex
:
"/pages/settle/index"
,
});
});
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
...
@@ -225,6 +320,77 @@ export default {
...
@@ -225,6 +320,77 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.content
{
.content
{
height
:
100vh
;
height
:
100vh
;
background-color
:
#f4f5f7
;
padding
:
0rpx
30rpx
0
30rpx
;
.scroll-view
{
::-webkit-scrollbar
{
/*隐藏滚轮*/
display
:
none
;
}
}
.title-view
{
color
:
#333333
;
font-weight
:
bold
;
font-size
:
40rpx
;
}
.banner-image
{
width
:
730rpx
;
height
:
280rpx
;
margin-left
:
-14rpx
;
}
.msg-view
{
.msg-title
{
color
:
#333333
;
font-size
:
32rpx
;
font-weight
:
bold
;
padding
:
1rpx
0rpx
30rpx
0rpx
;
}
.msg-list-view
{
border-radius
:
12rpx
;
background-color
:
#ffffff
;
padding
:
12rpx
30rpx
;
height
:
252rpx
;
}
.msg-content
{
color
:
#333333
;
font-size
:
26rpx
;
.msg-content-view
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
20rpx
;
margin-bottom
:
20rpx
;
.left-view
{
display
:
flex
;
align-items
:
center
;
.msg-icon
{
width
:
80rpx
;
height
:
36rpx
;
margin-right
:
20rpx
;
}
}
.right-icon
{
width
:
14rpx
;
height
:
24rpx
;
}
}
.line-view
{
height
:
2rpx
;
background-color
:
#f4f5f7
;
}
}
}
}
}
.logo
{
.logo
{
...
@@ -243,15 +409,64 @@ export default {
...
@@ -243,15 +409,64 @@ export default {
color
:
#8f8f94
;
color
:
#8f8f94
;
}
}
// .sticky-view {
// position: sticky;
// position: -webkit-sticky;
// top: 0rpx;
// width: 100%;
// height: 200rpx;
// background-color: black;
// }
.sticky
{
.sticky
{
height
:
120
rpx
;
background-color
:
#f4f5f7
;
background-color
:
#2979ff
;
color
:
#fff
;
color
:
#fff
;
padding
:
24
rpx
;
padding
:
24
rpx
;
text-align
:
left
;
text-align
:
left
;
font-size
:
32rpx
;
font-weight
:
bold
;
color
:
#333333
;
padding
:
46rpx
0
28rpx
0
;
}
}
.order-view
{
.order-view
{
text-align
:
center
;
text-align
:
center
;
.order-list-view
{
background-color
:
#ffffff
;
border-radius
:
12rpx
;
min-height
:
460rpx
;
padding
:
30rpx
;
margin-bottom
:
30rpx
;
.order-item-view
{
}
.no-order-view
{
}
.tip-view
{
.tip-title
{
font-size
:
32rpx
;
font-weight
:
bold
;
color
:
#333333
;
margin-top
:
30rpx
;
}
.tip-count
{
color
:
#2272ff
;
font-size
:
70rpx
;
font-weight
:
bold
;
margin-top
:
50rpx
;
margin-bottom
:
20rpx
;
}
.tip-other
{
font-size
:
28rpx
;
color
:
#333333
;
margin-bottom
:
56rpx
;
}
}
}
}
}
</
style
>
</
style
>
src/pages/learn/assessment.vue
View file @
b97e6cba
...
@@ -116,6 +116,7 @@
...
@@ -116,6 +116,7 @@
})
})
},
},
}
}
}
}
</
script
>
</
script
>
...
...
src/pages/learn/course-detail.vue
View file @
b97e6cba
<
template
>
<
template
>
<view
class=
"learn-vedio"
>
<view
class=
"learn-vedio"
>
<view
class=
"uni-padding-wrap uni-common-mt"
>
<view
class=
"uni-padding-wrap uni-common-mt"
>
<view><video
object-fit=
"cover"
class=
"course-video"
id=
"courseVideo"
:src=
"courseSrc"
<view
@
error=
"videoErrorCallback"
controls
></video></view>
><video
object-fit=
"cover"
class=
"course-video"
id=
"courseVideo"
:src=
"courseSrc"
@
play=
"playCourse"
@
error=
"videoErrorCallback"
controls
></video
></view>
<view
class=
"title-content"
>
<view
class=
"title-content"
>
<view
class=
"item-content"
>
<view
class=
"item-content"
>
<view
class=
"item-st"
>
<view
class=
"item-st"
>
<text
class=
"item-st-text"
>
{{
courseTitle
.
split
(
' '
)
?
courseTitle
.
split
(
' '
)[
0
]
:
''
}}
</text>
<image
style=
"width: 80rpx; height: 36rpx"
:src=
"kcImage"
></image>
<text
class=
"item-st-text"
>
{{
courseTitle
.
split
(
" "
)
?
courseTitle
.
split
(
" "
)[
0
]
:
""
}}
</text>
</view>
</view>
<view
class=
"item-title"
>
{{
courseTitle
.
split
(
' '
)
?
courseTitle
.
split
(
' '
)[
1
]
:
''
}}
</view>
<view
class=
"item-title"
>
{{
courseTitle
.
split
(
" "
)
?
courseTitle
.
split
(
" "
)[
1
]
:
""
}}
</view>
</view>
</view>
<view>
接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。
</view>
<view
>
接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。
</view
>
</view>
</view>
<view
class=
"learn-view"
>
<view
class=
"learn-view"
v-if=
"courseId >= 0"
>
<view
class=
"learn-view-title"
>
内容大纲
</view>
<view
class=
"learn-view-title"
>
视频内容介绍
</view>
<view
class=
"learn-list"
v-for=
"(item, key) in courseOutline"
:key=
"key"
>
<view
<view
class=
"learn-list-item"
>
{{
item
}}
</view>
class=
"learn-list"
<view
class=
"line-view"
></view>
v-for=
"(item, key) in courseOutlines[courseId]"
:key=
"key"
>
<view
class=
"learn-list-item"
>
{{
item
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -24,18 +43,48 @@
...
@@ -24,18 +43,48 @@
</
template
>
</
template
>
<
script
>
<
script
>
let
app
=
getApp
();
let
app
=
getApp
();
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
courseId
:
''
,
courseId
:
""
,
courseStatus
:
0
,
courseStatus
:
0
,
courseSrc
:
''
,
courseSrc
:
""
,
courseTitle
:
''
,
courseTitle
:
""
,
courseDesc
:
''
,
courseDesc
:
""
,
courseOutline
:
[
'1 aaa'
,
'2 bbb'
]
// 视频大纲
currentIndex
:
-
1
,
// 第几个视频
};
};
},
},
computed
:
{
courseOutlines
()
{
// 视频内容介绍
return
{
1
:
[
"1、考核规则:接单及时率"
,
"2、考核规则:上门及时率"
,
"3、考核规则:安装完工率"
,
"4、考核规则:资料提交及时率"
,
"5、考核规则:安装完工率"
,
"6、考核规则:客户满意度"
,
],
2
:
[
"1、必备材料4大类"
,
"2、施工工具准备"
],
3
:
[
"1、接线安装工艺标准"
,
"2、PVC、镀锌管电缆管明敷"
,
"3、电缆敷设的防火要求"
,
"4、电源点标识"
,
"5、配电箱接线及安装"
,
"6、管线敷设接头处理"
,
"7、充电桩内部接线"
,
"8、配电箱安装"
,
],
4
:
[
"1、勘测环节录单要求"
,
"2、安装环节录单要求"
],
};
},
kcImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
"kc.png"
;
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
if
(
e
)
{
if
(
e
)
{
if
(
e
.
courseId
)
{
if
(
e
.
courseId
)
{
...
@@ -46,7 +95,6 @@
...
@@ -46,7 +95,6 @@
this
.
courseSrc
=
app
.
globalData
.
service_standard
[
e
.
id
].
url
;
this
.
courseSrc
=
app
.
globalData
.
service_standard
[
e
.
id
].
url
;
this
.
courseTitle
=
app
.
globalData
.
service_standard
[
e
.
id
].
title
;
this
.
courseTitle
=
app
.
globalData
.
service_standard
[
e
.
id
].
title
;
this
.
courseDesc
=
app
.
globalData
.
service_standard
[
e
.
id
].
desc
;
this
.
courseDesc
=
app
.
globalData
.
service_standard
[
e
.
id
].
desc
;
this
.
changeCourseStatus
();
}
}
if
(
e
.
status
)
{
if
(
e
.
status
)
{
...
@@ -54,60 +102,61 @@
...
@@ -54,60 +102,61 @@
}
}
}
}
},
},
onReady
:
function
(
res
)
{
onReady
:
function
(
res
)
{
// #ifndef MP-ALIPAY
// #ifndef MP-ALIPAY
this
.
videoContext
=
uni
.
createVideoContext
(
'courseVideo'
);
this
.
videoContext
=
uni
.
createVideoContext
(
"courseVideo"
);
// #endif
// #endif
},
},
methods
:
{
methods
:
{
videoErrorCallback
:
function
(
e
)
{
videoErrorCallback
:
function
(
e
)
{
uni
.
showModal
({
uni
.
showModal
({
content
:
e
.
target
.
errMsg
,
content
:
e
.
target
.
errMsg
,
showCancel
:
false
showCancel
:
false
,
});
});
},
},
getRandomColor
:
function
()
{
getRandomColor
:
function
()
{
const
rgb
=
[];
const
rgb
=
[];
for
(
let
i
=
0
;
i
<
3
;
++
i
)
{
for
(
let
i
=
0
;
i
<
3
;
++
i
)
{
let
color
=
Math
.
floor
(
Math
.
random
()
*
256
).
toString
(
16
);
let
color
=
Math
.
floor
(
Math
.
random
()
*
256
).
toString
(
16
);
color
=
color
.
length
==
1
?
'0'
+
color
:
color
;
color
=
color
.
length
==
1
?
"0"
+
color
:
color
;
rgb
.
push
(
color
);
rgb
.
push
(
color
);
}
}
return
'#'
+
rgb
.
join
(
''
);
return
"#"
+
rgb
.
join
(
""
);
},
playCourse
:
function
(
e
)
{
if
(
this
.
courseStatus
&&
(
this
.
courseStatus
==
"1"
||
this
.
courseStatus
==
1
))
{
return
}
this
.
changeCourseStatus
();
},
},
changeCourseStatus
()
{
changeCourseStatus
()
{
let
that
=
this
let
that
=
this
;
if
(
that
.
courseId
)
{
if
(
that
.
courseId
)
{
that
.
$u
.
api
.
saveCourseRate
({
that
.
$u
.
api
courseId
:
that
.
courseId
.
saveCourseRate
({
}).
then
(
res
=>
{
courseId
:
that
.
courseId
,
if
(
res
.
code
==
200
)
{
// uni.navigateBack({delta: 1})
uni
.
navigateTo
({
url
:
"/pages/learn/exam"
})
})
}
else
{
.
then
((
res
)
=>
{
if
(
res
.
code
!==
200
)
{
uni
.
showToast
({
uni
.
showToast
({
icon
:
"none"
,
icon
:
"none"
,
title
:
"更新课程状态失败"
title
:
"更新课程状态失败"
,
})
});
}
}
}).
catch
(
e
=>
{
});
})
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
"课程ID为空,请重新选择课程"
title
:
"课程ID为空,请重新选择课程"
,
})
});
}
}
},
},
}
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.learn-vedio
{
.learn-vedio
{
background-color
:
#F4F5F
7
;
background-color
:
#f4f5f
7
;
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
...
@@ -115,105 +164,95 @@
...
@@ -115,105 +164,95 @@
height
:
100%
;
height
:
100%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
}
}
.course-video
{
.course-video
{
width
:
100%
;
width
:
100%
;
}
}
.course-title
{
.course-title
{
font-size
:
36rpx
;
font-size
:
36rpx
;
font-weight
:
700
;
font-weight
:
700
;
padding
:
80rpx
60rpx
40rpx
60rpx
;
padding
:
80rpx
60rpx
40rpx
60rpx
;
}
}
.course-desc
{
.course-desc
{
margin-left
:
60rpx
;
margin-left
:
60rpx
;
}
}
.title-content
{
.title-content
{
padding
:
40rpx
30rpx
;
padding
:
40rpx
30rpx
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
background-color
:
#FFFFFF
;
background-color
:
#ffffff
;
color
:
#999999
;
color
:
#999999
;
font-size
:
24rpx
;
font-size
:
24rpx
;
.item-content
{
.item-content
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
}
}
.item-st
{
.item-st
{
width
:
80rpx
;
width
:
80rpx
;
height
:
36rpx
;
height
:
36rpx
;
background-image
:
linear-gradient
(
to
right
,
#FF930D
,
#FFC174
);
font-size
:
16rpx
;
border-radius
:
6rpx
36rpx
36rpx
6rpx
;
padding-top
:
8rpx
;
padding-right
:
2rpx
;
padding-right
:
2rpx
;
text-align
:
center
;
text-align
:
center
;
margin-right
:
20rpx
;
margin-right
:
20rpx
;
line-height
:
24rpx
;
position
:
relative
;
.item-st-text
{
.item-st-text
{
color
:
#FFFFFF
;
color
:
#ffffff
;
position
:
absolute
;
font-size
:
16rpx
;
left
:
20rpx
;
top
:
8rpx
;
line-height
:
28rpx
;
}
}
}
}
.item-title
{
.item-title
{
color
:
#333333
;
color
:
#333333
;
font-size
:
28rpx
;
font-size
:
44rpx
;
}
font-weight
:
bold
;
}
}
}
.item-content
{
.item-content
{
display
:
flex
;
display
:
flex
;
padding-bottom
:
30rpx
;
padding-bottom
:
30rpx
;
}
}
.item-st
{
width
:
80rpx
;
height
:
36rpx
;
background-image
:
linear-gradient
(
to
right
,
#FF930D
,
#FFC174
);
font-size
:
16rpx
;
border-radius
:
6rpx
36rpx
36rpx
6rpx
;
padding-top
:
8rpx
;
padding-right
:
2rpx
;
text-align
:
center
;
margin-right
:
20rpx
;
}
.item-title
{
.item-title
{
color
:
#333333
;
color
:
#333333
;
font-size
:
28rpx
;
font-size
:
28rpx
;
}
}
.learn-view
{
.learn-view
{
background-color
:
#FFFFFF
;
background-color
:
#ffffff
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
padding
:
38rpx
30rpx
30rpx
30rpx
;
padding
:
38rpx
30rpx
30rpx
30rpx
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
font-size
:
32rpx
;
font-size
:
32rpx
;
color
:
#333333
;
color
:
#333333
;
.learn-view-title
{
.learn-view-title
{
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
margin-bottom
:
10rpx
;
margin-bottom
:
10rpx
;
}
}
.learn-list
{
.learn-list
{
.learn-list-item
{
.learn-list-item
{
font
:
24
rpx
;
font-size
:
28
rpx
;
margin-top
:
30rpx
;
margin-top
:
30rpx
;
margin-bottom
:
30rpx
;
margin-bottom
:
30rpx
;
color
:
#333333
;
}
}
.line-view
{
.line-view
{
background-color
:
#F4F5F
7
;
background-color
:
#f4f5f
7
;
height
:
2rpx
;
height
:
2rpx
;
width
:
100%
;
width
:
100%
;
}
}
}
}
}
}
</
style
>
</
style
>
src/pages/learn/exam.vue
View file @
b97e6cba
...
@@ -10,8 +10,9 @@
...
@@ -10,8 +10,9 @@
<view
class=
"learn-list"
v-for=
"(item, key) in tutorials"
:key=
"key"
>
<view
class=
"learn-list"
v-for=
"(item, key) in tutorials"
:key=
"key"
>
<view
class=
"learn-list-item"
>
<view
class=
"learn-list-item"
>
<view
class=
"item-content"
>
<view
class=
"item-content"
>
<view
class=
"item-st"
><text
<view
class=
"item-st"
>
class=
"item-st-text"
>
{{
item
.
title
.
split
(
' '
)
?
item
.
title
.
split
(
' '
)[
0
]
:
''
}}
</text>
<image
style=
"width: 80rpx;height: 36rpx;"
:src=
"kcImage"
></image>
<text
class=
"item-st-text"
>
{{
item
.
title
.
split
(
' '
)
?
item
.
title
.
split
(
' '
)[
0
]
:
''
}}
</text>
</view>
</view>
<view
class=
"item-title"
>
{{
item
.
title
.
split
(
' '
)
?
item
.
title
.
split
(
' '
)[
1
]
:
''
}}
</view>
<view
class=
"item-title"
>
{{
item
.
title
.
split
(
' '
)
?
item
.
title
.
split
(
' '
)[
1
]
:
''
}}
</view>
</view>
</view>
...
@@ -78,16 +79,16 @@
...
@@ -78,16 +79,16 @@
tipsTitle
:
'提示:'
,
tipsTitle
:
'提示:'
,
// 简单使用固定培训视频
// 简单使用固定培训视频
tutorials
:
[{
tutorials
:
[{
id
:
'
C
ourse1'
,
id
:
'
c
ourse1'
,
courseId
:
1
,
courseId
:
1
,
title
:
''
,
title
:
''
,
value
:
'
已
学习'
,
value
:
'
去
学习'
,
courseActive
:
{},
courseActive
:
{},
status
:
1
,
status
:
0
,
url
:
''
url
:
''
},
},
{
{
id
:
'
C
ourse2'
,
id
:
'
c
ourse2'
,
courseId
:
2
,
courseId
:
2
,
title
:
''
,
title
:
''
,
value
:
'去学习'
,
value
:
'去学习'
,
...
@@ -96,13 +97,22 @@
...
@@ -96,13 +97,22 @@
url
:
''
url
:
''
},
},
{
{
id
:
'
C
ourse3'
,
id
:
'
c
ourse3'
,
courseId
:
3
,
courseId
:
3
,
title
:
''
,
title
:
''
,
value
:
'去学习'
,
value
:
'去学习'
,
courseActive
:
{},
courseActive
:
{},
status
:
0
,
status
:
0
,
url
:
''
url
:
''
},
{
id
:
'course4'
,
courseId
:
4
,
title
:
''
,
value
:
'去学习'
,
courseActive
:
{},
status
:
0
,
url
:
''
}
}
],
],
tipsDescription
:
'接单考核可让您快速了解如何使用小程序,建议先查看学习教程'
tipsDescription
:
'接单考核可让您快速了解如何使用小程序,建议先查看学习教程'
...
@@ -138,7 +148,10 @@
...
@@ -138,7 +148,10 @@
}
}
},
},
tips1Image
()
{
tips1Image
()
{
return
qn_base_url
+
'tips1@3x.png'
return
process
.
uniEnv
.
qn_base_url
+
'tips1.png'
},
kcImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'kc.png'
}
}
},
},
onLoad
()
{
onLoad
()
{
...
@@ -148,6 +161,8 @@
...
@@ -148,6 +161,8 @@
item
[
'value'
]
=
item
[
'status'
]
?
'已学习'
:
'去学习'
item
[
'value'
]
=
item
[
'status'
]
?
'已学习'
:
'去学习'
item
[
'courseActive'
]
=
item
[
'status'
]
?
this
.
learnStyle
:
this
.
learnedStyle
item
[
'courseActive'
]
=
item
[
'status'
]
?
this
.
learnStyle
:
this
.
learnedStyle
})
})
},
onShow
()
{
this
.
loadLearnData
();
this
.
loadLearnData
();
},
},
methods
:
{
methods
:
{
...
@@ -157,7 +172,7 @@
...
@@ -157,7 +172,7 @@
.
listOrderingTutorials
()
.
listOrderingTutorials
()
.
then
(
res
=>
{
.
then
(
res
=>
{
const
results
=
res
.
data
;
const
results
=
res
.
data
;
if
(
res
.
status
==
200
&&
results
&&
results
.
length
>
0
)
{
if
(
res
.
code
==
200
&&
results
)
{
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
];
...
@@ -173,7 +188,6 @@
...
@@ -173,7 +188,6 @@
}
}
})
})
.
catch
(
e
=>
{
.
catch
(
e
=>
{
debugger
;
console
.
log
(
e
,
'loadLearnData'
);
console
.
log
(
e
,
'loadLearnData'
);
});
});
},
},
...
@@ -238,7 +252,9 @@
...
@@ -238,7 +252,9 @@
}
}
.tip-image
{
.tip-image
{
width
:
28rpx
;
width
:
26rpx
;
height
:
32rpx
;
flex-shrink
:
0
;
margin-right
:
10rpx
;
margin-right
:
10rpx
;
margin-top
:
2rpx
;
margin-top
:
2rpx
;
}
}
...
@@ -289,15 +305,18 @@
...
@@ -289,15 +305,18 @@
.item-st
{
.item-st
{
width
:
80rpx
;
width
:
80rpx
;
height
:
36rpx
;
height
:
36rpx
;
background-image
:
linear-gradient
(
to
right
,
#FF930D
,
#FFC174
);
font-size
:
16rpx
;
border-radius
:
6rpx
36rpx
36rpx
6rpx
;
padding-top
:
8rpx
;
padding-right
:
2rpx
;
padding-right
:
2rpx
;
text-align
:
center
;
text-align
:
center
;
margin-right
:
20rpx
;
margin-right
:
20rpx
;
line-height
:
24rpx
;
position
:
relative
;
.item-st-text
{
.item-st-text
{
color
:
#FFFFFF
;
color
:
#FFFFFF
;
position
:
absolute
;
font-size
:
16rpx
;
left
:
20rpx
;
top
:
8rpx
;
line-height
:
28rpx
;
}
}
}
}
...
...
src/pages/learn/index.vue
View file @
b97e6cba
<
template
>
<
template
>
<view
class=
"study"
>
<view
class=
"study"
>
<view
class=
"banner"
>
<u-navbar
<u-swiper
:list=
"banner"
></u-swiper>
:is-back=
"false"
</view>
background=
"
{background: transparent}"
:border-bottom="false"
:is-fixed="false"
>
<text
class=
"title-view"
>
学习
</text>
</u-navbar>
<image
:src=
"bannerImage"
mode=
""
class=
"banner"
></image>
<!--
<u-tabs
:list=
"tabs"
:is-scroll=
"false"
:current=
"current"
@
change=
"change"
></u-tabs>
-->
<!--
<u-tabs
:list=
"tabs"
:is-scroll=
"false"
:current=
"current"
@
change=
"change"
></u-tabs>
-->
<view>
<view>
<u-tabs-swiper
ref=
"uTabs"
:list=
"tabs"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
swiperWidth=
"750"
></u-tabs-swiper>
<u-tabs-swiper
bg-color=
"#F4F5F7"
inactive-color=
"#999999"
font-size=
"28"
ref=
"uTabs"
:list=
"tabs"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
swiperWidth=
"750"
></u-tabs-swiper>
</view>
</view>
<swiper
:current=
"swiperCurrent"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
style=
"height: 755rpx;"
>
<swiper
:current=
"swiperCurrent"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
style=
"height: 755rpx;"
>
<swiper-item
class=
"swiper-item"
>
<swiper-item
class=
"swiper-item"
>
...
@@ -160,19 +166,6 @@
...
@@ -160,19 +166,6 @@
data
()
{
data
()
{
return
{
return
{
msg
:
"赣南吴彦祖"
,
msg
:
"赣南吴彦祖"
,
banner
:
[{
image
:
"https://cdn.uviewui.com/uview/swiper/1.jpg"
,
title
:
"昨夜星辰昨夜风,画楼西畔桂堂东"
,
},
{
image
:
"https://cdn.uviewui.com/uview/swiper/2.jpg"
,
title
:
"身无彩凤双飞翼,心有灵犀一点通"
,
},
{
image
:
"https://cdn.uviewui.com/uview/swiper/3.jpg"
,
title
:
"谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳"
,
},
],
tabs
:
[{
tabs
:
[{
name
:
"交付规范"
,
name
:
"交付规范"
,
},
},
...
@@ -203,6 +196,9 @@
...
@@ -203,6 +196,9 @@
this
.
getCourseList
();
this
.
getCourseList
();
},
},
computed
:{
computed
:{
bannerImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'banner-xx.png'
},
},
},
methods
:
{
methods
:
{
getList
()
{
getList
()
{
...
@@ -367,13 +363,20 @@
...
@@ -367,13 +363,20 @@
<
style
>
<
style
>
.study
{
.study
{
background
:
#f9f9f9
;
height
:
100vh
;
padding
:
15
rpx
;
background-color
:
#f4f5f7
;
height
:
100%
;
padding
:
0
rpx
30
rpx
0
30
rpx
;
}
.title-view
{
color
:
#333333
;
font-weight
:
bold
;
font-size
:
40
rpx
;
}
}
.banner
{
.banner
{
padding
:
2
rpx
;
width
:
690
rpx
;
height
:
240
rpx
;
/* margin-left: -15rpx; */
}
}
//
交付规范
//
交付规范
...
@@ -408,8 +411,13 @@
...
@@ -408,8 +411,13 @@
background
:
#ffffff
;
background
:
#ffffff
;
padding
:
18
rpx
;
padding
:
18
rpx
;
margin-bottom
:
11px
;
margin-bottom
:
11px
;
border-radius
:
12
rpx
;
}
.title
{
font-size
:
32
rpx
;
font-weight
:
bold
;
font-family
:
PingFang-SC-Bold
,
PingFang-SC
;
}
}
.class1
{
.class1
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
...
src/pages/learn/result.vue
View file @
b97e6cba
<
template
>
<
template
>
<view
class=
"content"
>
<view
class=
"test-result"
>
<view
class=
"title"
>
<text
class=
"title"
>
考试结果
</text>
考试结果
</view>
<view
class=
"result"
>
<view
class=
"result"
>
未通过
未通过
</view>
</view>
<view
class=
"details"
>
<view
class=
"test-explain"
>
<view
class=
""
>
<view
class=
"hang"
>
<text
class=
"first"
>
合格条件:
</text><text>
答对20题
</text>
<text
class=
"text1"
>
合格条件:
</text><text
class=
"text2"
>
答对20题
</text>
</view>
<view
class=
"hang"
>
<text
class=
"text1"
>
考试结果:
</text><text
class=
"text2"
>
答对10题
</text>
</view>
</view>
<view
class=
""
>
<view
class=
"
hang
"
>
<text
class=
"
first"
>
考试结果:
</text><text>
答对10题
</text>
<text
class=
"
text1"
>
考试用时:
</text><text
class=
"text2"
>
16分29秒
</text>
</view>
</view>
<view
class=
""
>
<text
class=
"first"
>
考试用时
</text><text>
16分29秒
</text>
</view>
</view>
<view
class=
"btn"
>
<view
class=
"btn"
>
<button
class=
"btn1"
>
再答一次
</button>
<button
class=
"btn1"
>
再答一次
</button>
<button
class=
"btn2"
>
退出重考
</button>
<button
class=
"btn2"
>
退出重考
</button>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -32,56 +29,60 @@
...
@@ -32,56 +29,60 @@
}
}
},
},
methods
:{
methods
:
{
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.content
{
.test-result
{
width
:
100%
;
width
:
610rpx
;
height
:
950rpx
;
height
:
965rpx
;
background
:
#DCDFE6
;
margin
:
70rpx
auto
0
;
padding
:
53rpx
;
}
.title
{
.title
{
font-size
:
30rpx
;
margin
:
0
44rpx
0
;
}
}
.result
{
.result
{
color
:
red
;
color
:
red
;
font-size
:
73
rpx
;
font-size
:
66
rpx
;
text-align
:
center
;
text-align
:
center
;
margin
:
46rpx
0
;
border-bottom
:
1px
dashed
#000000
;
margin
:
74rpx
0
;
padding
:
66rpx
;
}
.test-explain
{
.hang
{
margin
:
26rpx
26rpx
;
.text1
{
color
:
#a69999
;
margin-right
:
22rpx
;
}
}
.details
{
.text2
{
border-top
:
2rpx
dashed
#808080
;
color
:
#333333
;
height
:
600rpx
;
padding-top
:
94rpx
;
view
{
margin
:
26rpx
0
0
;
.first
{
margin
:
0
20rpx
0
;
}
}
}
}
}
}
.btn
{
.btn
{
margin-top
:
236rpx
;
.btn1
{
.btn1
{
width
:
477rpx
;
width
:
478rpx
;
height
:
61rpx
;
height
:
60rpx
;
border-radius
:
27rpx
;
background
:
#0079fe
;
line-height
:
61rpx
;
color
:
#fff
;
font-size
:
29rpx
;
font-size
:
26rpx
;
background
:
#007AFF
;
line-height
:
60rpx
;
color
:
#FFFFFF
;
margin
:
20rpx
auto
;
margin
:
140rpx
auto
34rpx
;
}
}
.btn2
{
.btn2
{
width
:
477rpx
;
width
:
478rpx
;
height
:
61rpx
;
height
:
60rpx
;
border-radius
:
27rpx
;
background
:
#f2f2f2
;
line-height
:
61rpx
;
color
:
#333333
;
font-size
:
29rpx
;
font-size
:
26rpx
;
line-height
:
60rpx
;
margin
:
0
auto
;
}
}
}
}
}
...
...
src/pages/login/index.vue
View file @
b97e6cba
...
@@ -83,14 +83,14 @@ export default {
...
@@ -83,14 +83,14 @@ export default {
let
params
=
{
let
params
=
{
nickname
:
app
.
globalData
.
authUserInfo
.
nickName
,
nickname
:
app
.
globalData
.
authUserInfo
.
nickName
,
avatar
:
app
.
globalData
.
authUserInfo
.
avatarUrl
,
avatar
:
app
.
globalData
.
authUserInfo
.
avatarUrl
,
wxAppNo
:
1
,
}
}
login
.
appLogin
().
then
(
res
=>
{
login
.
appLogin
().
then
(
res
=>
{
params
.
code
=
res
.
code
params
.
code
=
res
.
code
return
login
.
authorization
(
params
);
return
login
.
authorization
(
params
);
}).
then
(
res
=>
{
}).
then
(
res
=>
{
uni
.
hideLoading
();
uni
.
hideLoading
();
if
(
res
&&
util
.
getToken
())
{
if
(
res
)
{
that
.
setUserData
(
res
.
data
)
that
.
goBackPage
()
that
.
goBackPage
()
}
else
{
}
else
{
this
.
setLoginStatus
()
this
.
setLoginStatus
()
...
@@ -118,14 +118,14 @@ export default {
...
@@ -118,14 +118,14 @@ export default {
avatar
:
app
.
globalData
.
authUserInfo
.
avatarUrl
,
avatar
:
app
.
globalData
.
authUserInfo
.
avatarUrl
,
encryptedData
:
e
.
detail
.
encryptedData
,
encryptedData
:
e
.
detail
.
encryptedData
,
iv
:
e
.
detail
.
iv
,
iv
:
e
.
detail
.
iv
,
wxAppNo
:
1
,
}
}
login
.
appLogin
().
then
(
res
=>
{
login
.
appLogin
().
then
(
res
=>
{
params
.
code
=
res
.
code
params
.
code
=
res
.
code
return
login
.
signup
(
params
);
return
login
.
signup
(
params
);
}).
then
(
res
=>
{
}).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
res
&&
util
.
getToken
())
{
if
(
res
)
{
that
.
setUserData
(
res
.
data
)
that
.
goBackPage
()
that
.
goBackPage
()
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -169,6 +169,16 @@ export default {
...
@@ -169,6 +169,16 @@ export default {
}
}
},
},
setUserData
(
userInfo
)
{
if
(
userInfo
&&
userInfo
.
token
)
{
// 如果已经登录则直接获取相关信息
util
.
setOpenid
(
userInfo
.
wxopenid
);
this
.
$u
.
vuex
(
'vuex_token'
,
userInfo
.
token
);
uni
.
setStorageSync
(
"user-info"
,
userInfo
);
}
else
{
this
.
$u
.
vuex
(
'vuex_token'
,
''
);
}
},
setLoginStatus
(
authed
=
true
)
{
setLoginStatus
(
authed
=
true
)
{
if
(
authed
)
{
if
(
authed
)
{
...
...
src/pages/order/complete.vue
View file @
b97e6cba
...
@@ -23,31 +23,51 @@
...
@@ -23,31 +23,51 @@
<view
class=
"title"
>
{{
groupItem
.
groupName
}}
</view>
<view
class=
"title"
>
{{
groupItem
.
groupName
}}
</view>
<view
class=
"class-bd"
>
<view
class=
"class-bd"
>
<u-form-item
v-for=
"(item,itemIndex) in groupItem.item"
:key=
"itemIndex"
<u-form-item
v-for=
"(item,itemIndex) in groupItem.item"
:key=
"itemIndex"
label-position=
"top"
label-position=
"top"
:prop=
"item.fieldsName"
>
:prop=
"item.fieldsName"
>
<view
class=
"label"
v-if=
"item.fieldsType!=='location'"
>
<view
class=
"label"
v-if=
"toLowerCase(item.fieldsType)!=='location'"
@
click=
"nextStep(item)"
>
<text
class=
"required"
v-if=
"item.required"
>
*
</text>
<text
class=
"required"
v-if=
"item.required"
>
*
</text>
{{
item
.
fieldsTitle
}}
{{
item
.
fieldsTitle
}}
</view>
</view>
<template
v-if=
"item.fieldsType"
>
<template
v-if=
"item.fieldsType"
>
<xh-input
v-if=
"t
oLowerCas
e(item.fieldsType)==='input'"
:groupIndex=
"groupIndex"
<xh-input
v-if=
"t
ypeToComponentTyp
e(item.fieldsType)==='input'"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
</xh-input>
</xh-input>
<xh-radio
v-else-if=
"toLowerCase(item.fieldsType)==='radio'"
:groupIndex=
"groupIndex"
<xh-multi-input
v-else-if=
"typeToComponentType(item.fieldsType)==='multiinput'"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
</xh-multi-input>
<xh-radio
v-else-if=
"typeToComponentType(item.fieldsType)==='radio'"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
</xh-radio>
</xh-radio>
<xh-checkbox
v-else-if=
"toLowerCase(item.fieldsType)==='checkbox'"
:groupIndex=
"groupIndex"
<xh-checkbox
v-else-if=
"typeToComponentType(item.fieldsType)==='checkbox'"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
</xh-checkbox>
</xh-checkbox>
<xh-select
v-else-if=
"toLowerCase(item.fieldsType)==='select'"
:groupIndex=
"groupIndex"
<xh-select
v-else-if=
"typeToComponentType(item.fieldsType)==='select'"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
</xh-select>
</xh-select>
<xh-files
v-else-if=
"toLowerCase(item.fieldsType)==='file'"
:groupIndex=
"groupIndex"
<xh-files
v-else-if=
"typeToComponentType(item.fieldsType)==='file'"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
</xh-files>
</xh-files>
<xh-location
v-else-if=
"toLowerCase(item.fieldsType)==='location'"
:groupIndex=
"groupIndex"
<xh-location
v-else-if=
"typeToComponentType(item.fieldsType)==='location'"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
</xh-location>
</xh-location>
<xh-scan
v-else-if=
"typeToComponentType(item.fieldsType)==='scan'"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
</xh-scan>
<xh-picker
v-else-if=
"typeToComponentType(item.fieldsType)==='picker'"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
</xh-picker>
<xh-time
v-else-if=
"typeToComponentType(item.fieldsType)==='time'"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:item=
"item"
@
value-change=
"fieldValueChange"
>
</xh-time>
</
template
>
</
template
>
</u-form-item>
</u-form-item>
</view>
</view>
...
@@ -62,11 +82,16 @@
...
@@ -62,11 +82,16 @@
<
script
>
<
script
>
import
classifyData
from
'@/common/classify.data.js'
;
import
classifyData
from
'@/common/classify.data.js'
;
import
XhInput
from
'@/components/createCom/XhInput.vue'
import
XhInput
from
'@/components/createCom/XhInput.vue'
import
XhMultiInput
from
'@/components/createCom/XhMultiInput.vue'
import
XhRadio
from
'@/components/createCom/XhRadio.vue'
import
XhRadio
from
'@/components/createCom/XhRadio.vue'
import
XhCheckbox
from
'@/components/createCom/XhCheckbox.vue'
import
XhCheckbox
from
'@/components/createCom/XhCheckbox.vue'
import
XhSelect
from
'@/components/createCom/XhSelect.vue'
import
XhSelect
from
'@/components/createCom/XhSelect.vue'
import
XhFiles
from
'@/components/createCom/XhFiles.vue'
import
XhFiles
from
'@/components/createCom/XhFiles.vue'
import
XhLocation
from
'@/components/createCom/XhLocation.vue'
import
XhLocation
from
'@/components/createCom/XhLocation.vue'
import
XhScan
from
'@/components/createCom/XhScan.vue'
import
XhPicker
from
'@/components/createCom/XhPicker.vue'
import
XhTime
from
'@/components/createCom/XhTime.vue'
// import XhRadio from '@/components/createCom/XhRadio.vue'
// import XhRadio from '@/components/createCom/XhRadio.vue'
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -116,12 +141,15 @@
...
@@ -116,12 +141,15 @@
},
},
components
:
{
components
:
{
XhInput
,
XhInput
,
XhMultiInput
,
XhRadio
,
XhRadio
,
XhCheckbox
,
XhCheckbox
,
XhSelect
,
XhSelect
,
XhFiles
,
XhFiles
,
XhLocation
XhLocation
,
// formCom
XhScan
,
XhPicker
,
XhTime
,
},
},
created
()
{
created
()
{
// console.log(allComponents,'allComponents')
// console.log(allComponents,'allComponents')
...
@@ -147,24 +175,63 @@
...
@@ -147,24 +175,63 @@
if
(
groupItem
.
item
)
{
if
(
groupItem
.
item
)
{
innerItem
=
groupItem
.
item
[
data
.
itemIndex
]
innerItem
=
groupItem
.
item
[
data
.
itemIndex
]
}
}
console
.
log
(
innerItem
,
'innerItem'
)
console
.
log
(
data
.
value
,
'data.value'
,
innerItem
,
'innerItem'
)
if
(
innerItem
.
fieldsType
===
'multiInput'
){
// 多个输入框的值触发
let
key
=
Object
.
keys
(
data
.
value
)[
0
]
this
.
form
[
key
]
=
data
.
value
[
key
]
}
else
{
this
.
form
[
innerItem
.
fieldsName
]
=
data
.
value
this
.
form
[
innerItem
.
fieldsName
]
=
data
.
value
}
console
.
log
(
this
.
form
,
'this.form'
)
console
.
log
(
this
.
form
,
'this.form'
)
},
},
nextStep
(
item
)
{
nextStep
(
item
)
{
// 下一步
// 下一步
console
.
log
(
item
,
'item'
)
console
.
log
(
item
,
'item'
)
},
},
fieldTypeStatus
(
type
){
typeToComponentType
(
type
)
{
let
typeArr
=
[
'input'
,
'radio'
,
'checkbox'
,
'select'
,
'file'
]
// 将fieldType类型统一转换为公共组件判定类型
let
fieldsType
=
type
.
toLocaleLowerCase
()
let
formType
=
''
let
flag
=
false
type
=
type
.
toLocaleLowerCase
()
flag
=
typeArr
.
indexOf
(
fieldsType
)
>=
0
console
.
log
(
type
,
'type'
)
return
flag
switch
(
type
)
{
},
case
'text'
:
toLowerCase
(
str
){
case
'password'
:
str
=
str
||
''
case
'textarea'
:
return
str
.
toLocaleLowerCase
()
case
'number'
:
formType
=
'input'
break
case
'multiinput'
:
formType
=
'multiinput'
break
;
case
'select'
:
formType
=
'select'
break
case
'checkbox'
:
formType
=
'checkbox'
break
case
'file'
:
formType
=
'file'
break
case
'location'
:
formType
=
'location'
break
case
'scan'
:
formType
=
'scan'
break
case
'picker'
:
case
'mutipicker'
:
formType
=
'picker'
break
case
'time'
:
formType
=
'time'
break
// case 'file':
// formType = 'XhFiles'
// break
}
console
.
log
(
formType
,
'formType'
)
return
formType
},
},
// ------------------------- 以下方法为展示滚动切换 -------------------------
// ------------------------- 以下方法为展示滚动切换 -------------------------
// 点击左边的栏目切换
// 点击左边的栏目切换
...
...
src/pages/order/index.vue
View file @
b97e6cba
<
template
>
<
template
>
<view>
<view
class=
"wrap"
>
<view
class=
"tools-box"
>
<view
class=
"search-sub"
>
<u-subsection
:current=
"0"
:list=
"['待受理', '待完工']"
active-color=
"white"
bg-color=
"white"
inactive-color=
"#666"
button-color=
"#2272FF"
border-radius=
"36"
></u-subsection>
</view>
<view
class=
"search-btn"
>
<u-icon
name=
"search"
color=
"#666"
size=
"32"
></u-icon>
<text
class=
"search-btn-text"
>
搜订单
</text>
</view>
</view>
<view
class=
"u-tabs-box"
>
<u-tabs-swiper
activeColor=
"#2272FF"
bg-color=
"none"
inactive-color=
"#999"
bar-height=
"4"
bar-width=
"44"
:offset=
"[-1,10]"
ref=
"tabs"
:list=
"list"
:current=
"current"
@
change=
"change"
:is-scroll=
"false"
swiperWidth=
"750"
></u-tabs-swiper>
</view>
<swiper
class=
"swiper-box"
:current=
"swiperCurrent"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
>
<swiper-item
class=
"swiper-item"
>
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
>
<view
class=
"page-box"
>
<view
class=
"order"
v-for=
"(res, index) in orderList[0]"
:key=
"res.id"
>
<view
class=
"top"
>
<view
class=
"left"
>
<view
class=
"tag"
>
安装
</view>
<view
class=
"store"
>
{{
res
.
store
}}
</view>
</view>
<view
class=
"right"
>
{{
res
.
deal
}}
</view>
</view>
<view
class=
"item"
v-for=
"(item, idx) in res.goodsList"
:key=
"idx"
>
<view
class=
"content"
>
<view
class=
"title u-line-2"
>
<text>
工单编号:
</text><text>
{{
"OR2021041809827"
}}
</text>
</view>
<view
class=
"title u-line-2"
>
<text>
客户信息:
</text><text>
{{
"王先生"
}}
</text>
</view>
<view
class=
"title u-line-2"
>
<text>
联系方式:
</text><text>
{{
'189xxxxxxxx'
}}
</text>
</view>
</view>
<view
class=
"address u-line-2"
>
<view
class=
"left"
>
<u-icon
name=
"map"
size=
"32"
></u-icon>
<text
style=
"margin-left: 8rpx;"
>
深圳市龙岗区南湾街道荔枝花园D座125号
</text>
</view>
<view
class=
"right"
>
10.01km
</view>
</view>
</view>
<u-divider
margin-top=
"16"
half-width=
"630"
border-color=
"#F4F5F7"
:use-slot=
"false"
>
</u-divider>
<view
class=
"bottom"
>
<view
class=
"left"
>
<view
class=
"tag"
>
剩
</view>
<u-count-down
:timestamp=
"timestamp"
font-size=
"44"
color=
"#FF930D"
></u-count-down>
</view>
<view
class=
"right-btn"
>
去预约
</view>
</view>
</view>
<u-loadmore
:status=
"loadStatus[0]"
bgColor=
"#f2f2f2"
></u-loadmore>
</view>
</scroll-view>
</swiper-item>
<swiper-item
class=
"swiper-item"
>
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
>
</scroll-view>
</swiper-item>
<swiper-item
class=
"swiper-item"
>
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
>
<view
class=
"page-box"
>
<view>
<view
class=
"centre"
>
<image
src=
"https://cdn.uviewui.com/uview/template/taobao-order.png"
mode=
""
></image>
<view
class=
"explain"
>
您还没有相关的订单
<view
class=
"tips"
>
可以去看看有那些想买的
</view>
</view>
<view
class=
"btn"
>
随便逛逛
</view>
</view>
</view>
</view>
</scroll-view>
</swiper-item>
<swiper-item
class=
"swiper-item"
>
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
>
</scroll-view>
</swiper-item>
</swiper>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
data
()
{
return
{
timestamp
:
6666
,
orderList
:
[[],
[],
[],
[]],
dataList
:
[
{
id
:
1
,
store
:
'夏日流星限定贩卖'
,
deal
:
'交易成功'
,
goodsList
:
[
{
goodsUrl
:
'//img13.360buyimg.com/n7/jfs/t1/103005/7/17719/314825/5e8c19faEb7eed50d/5b81ae4b2f7f3bb7.jpg'
,
title
:
'【冬日限定】现货 原创jk制服女2020冬装新款小清新宽松软糯毛衣外套女开衫短款百搭日系甜美风'
,
type
:
'灰色;M'
,
deliveryTime
:
'付款后30天内发货'
,
price
:
'348.58'
,
number
:
2
}
]
},
{
id
:
2
,
store
:
'江南皮革厂'
,
deal
:
'交易失败'
,
goodsList
:
[
{
goodsUrl
:
'//img14.360buyimg.com/n7/jfs/t1/60319/15/6105/406802/5d43f68aE9f00db8c/0affb7ac46c345e2.jpg'
,
title
:
'【冬日限定】现货 原创jk制服女2020冬装新款小清新宽松软糯毛衣外套女开衫短款百搭日系甜美风'
,
type
:
'粉色;M'
,
deliveryTime
:
'付款后7天内发货'
,
price
:
'128.05'
,
number
:
1
}
]
},
{
id
:
3
,
store
:
'三星旗舰店'
,
deal
:
'交易失败'
,
goodsList
:
[
{
goodsUrl
:
'//img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg'
,
title
:
'三星(SAMSUNG)京品家电 UA65RUF70AJXXZ 65英寸4K超高清 HDR 京东微联 智能语音 教育资源液晶电视机'
,
type
:
'4K,广色域'
,
deliveryTime
:
'保质5年'
,
price
:
'1998'
,
number
:
3
}
]
},
{
id
:
4
,
store
:
'三星旗舰店'
,
deal
:
'交易失败'
,
goodsList
:
[
{
goodsUrl
:
'//img10.360buyimg.com/n7/jfs/t22300/31/1505958241/171936/9e201a89/5b2b12ffNe6dbb594.jpg!q90.jpg'
,
title
:
'法国进口红酒 拉菲(LAFITE)传奇波尔多干红葡萄酒750ml*6整箱装'
,
type
:
'4K,广色域'
,
deliveryTime
:
'珍藏10年好酒'
,
price
:
'1543'
,
number
:
3
}
]
},
{
id
:
5
,
store
:
'三星旗舰店'
,
deal
:
'交易成功'
,
goodsList
:
[
{
goodsUrl
:
'//img12.360buyimg.com/n7/jfs/t1/52408/35/3554/78293/5d12e9cfEfd118ba1/ba5995e62cbd747f.jpg!q90.jpg'
,
title
:
'企业微信 中控人脸指纹识别考勤机刷脸机 无线签到异地多店打卡机WX108'
,
type
:
'识别效率高'
,
deliveryTime
:
'使用方便'
,
price
:
'451'
,
number
:
9
}
]
}
],
list
:
[
{
name
:
'待预约'
,
count
:
3
},
{
name
:
'待签到'
,
count
:
2
},
{
name
:
'待完工'
,
count
:
2
},
{
name
:
'待审核'
,
count
:
10
},
{
name
:
'异常单'
,
count
:
2
}
],
current
:
0
,
swiperCurrent
:
0
,
tabsHeight
:
0
,
dx
:
0
,
loadStatus
:
[
'loadmore'
,
'loadmore'
,
'loadmore'
,
'loadmore'
]
};
},
onLoad
()
{
this
.
getOrderList
(
0
);
this
.
getOrderList
(
1
);
this
.
getOrderList
(
3
);
},
computed
:
{
// 价格小数
priceDecimal
()
{
return
val
=>
{
if
(
val
!==
parseInt
(
val
))
return
val
.
slice
(
-
2
);
else
return
'00'
;
};
},
// 价格整数
priceInt
()
{
return
val
=>
{
if
(
val
!==
parseInt
(
val
))
return
val
.
split
(
'.'
)[
0
];
else
return
val
;
};
}
},
methods
:
{
reachBottom
()
{
// 此tab为空数据
if
(
this
.
current
!=
2
)
{
this
.
loadStatus
.
splice
(
this
.
current
,
1
,
'loading'
);
setTimeout
(()
=>
{
this
.
getOrderList
(
this
.
current
);
},
1200
);
}
},
// 页面数据
getOrderList
(
idx
)
{
for
(
let
i
=
0
;
i
<
5
;
i
++
)
{
let
index
=
this
.
$u
.
random
(
0
,
this
.
dataList
.
length
-
1
);
let
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dataList
[
index
]));
data
.
id
=
this
.
$u
.
guid
();
this
.
orderList
[
idx
].
push
(
data
);
}
this
.
loadStatus
.
splice
(
this
.
current
,
1
,
'loadmore'
);
},
// 总价
totalPrice
(
item
)
{
let
price
=
0
;
item
.
map
(
val
=>
{
price
+=
parseFloat
(
val
.
price
);
});
return
price
.
toFixed
(
2
);
},
// 总件数
totalNum
(
item
)
{
let
num
=
0
;
item
.
map
(
val
=>
{
num
+=
val
.
number
;
});
return
num
;
},
// tab栏切换
change
(
index
)
{
this
.
swiperCurrent
=
index
;
this
.
getOrderList
(
index
);
},
transition
({
detail
:
{
dx
}
})
{
this
.
$refs
.
tabs
.
setDx
(
dx
);
},
animationfinish
({
detail
:
{
current
}
})
{
this
.
$refs
.
tabs
.
setFinishCurrent
(
current
);
this
.
swiperCurrent
=
current
;
this
.
current
=
current
;
}
}
};
</
script
>
</
script
>
<
style
>
<
style
>
/* #ifndef H5 */
page
{
height
:
100%
;
background-color
:
#f2f2f2
;
}
/* #endif */
</
style
>
<
style
lang=
"scss"
scoped
>
.order
{
width
:
710rpx
;
background-color
:
#ffffff
;
margin
:
20rpx
auto
;
border-radius
:
20rpx
;
box-sizing
:
border-box
;
padding
:
20rpx
;
font-size
:
28rpx
;
.top
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.left
{
display
:
flex
;
align-items
:
center
;
.tag
{
text-align
:
center
;
width
:
84rpx
;
height
:
40rpx
;
background
:
linear-gradient
(
270deg
,
#47ABFF
0%
,
#2272FF
100%
);
border-radius
:
8rpx
;
font-size
:
22rpx
;
font-weight
:
500
;
color
:
#FFFFFF
;
line-height
:
40rpx
;
}
.store
{
margin
:
0
10rpx
;
font-size
:
36rpx
;
font-weight
:
bold
;
color
:
#333333
;
line-height
:
36px
;
}
}
.right
{
height
:
40rpx
;
background
:
#F4F5F7
;
border-radius
:
22rpx
;
padding
:
8rpx
16rpx
8rpx
16rpx
;
font-size
:
22rpx
;
line-height
:
24rpx
;
font-weight
:
400
;
color
:
#333333
;
}
}
.item
{
display
:
flex
;
flex-direction
:
column
;
margin
:
20rpx
0
0
;
.content
{
.title
{
font-size
:
26rpx
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
52rpx
;
}
}
.address
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
font-size
:
24rpx
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
52rpx
;
.left
{
}
.right
{
}
}
}
.total
{
margin-top
:
20rpx
;
text-align
:
right
;
font-size
:
24rpx
;
.total-price
{
font-size
:
32rpx
;
}
}
.bottom
{
display
:
flex
;
margin-top
:
30rpx
;
padding
:
0
10rpx
;
justify-content
:
space-between
;
align-items
:
center
;
.left
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
.tag
{
text-align
:
center
;
width
:
54rpx
;
height
:
54rpx
;
background
:
#FF930D
;
font-size
:
26rpx
;
font-weight
:
500
;
color
:
#FFFFFF
;
line-height
:
54rpx
;
border-radius
:
50%
;
margin-right
:
20rpx
;
}
}
.right-btn
{
text-align
:
center
;
width
:
200rpx
;
height
:
80rpx
;
background
:
#2272FF
;
border-radius
:
40rpx
;
font-size
:
32rpx
;
font-weight
:
600
;
color
:
#FFFFFF
;
line-height
:
80rpx
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
}
}
}
.centre
{
text-align
:
center
;
margin
:
200rpx
auto
;
font-size
:
32rpx
;
image
{
width
:
164rpx
;
height
:
164rpx
;
border-radius
:
50%
;
margin-bottom
:
20rpx
;
}
.tips
{
font-size
:
24rpx
;
color
:
#999999
;
margin-top
:
20rpx
;
}
.btn
{
margin
:
80rpx
auto
;
width
:
200rpx
;
border-radius
:
32rpx
;
line-height
:
64rpx
;
color
:
#ffffff
;
font-size
:
26rpx
;
background
:
linear-gradient
(
270deg
,
rgba
(
249
,
116
,
90
,
1
)
0%
,
rgba
(
255
,
158
,
1
,
1
)
100%
);
}
}
.wrap
{
display
:
flex
;
flex-direction
:
column
;
height
:
calc
(
100vh
-
var
(
--
window-top
));
width
:
100%
;
}
.swiper-box
{
flex
:
1
;
}
.swiper-item
{
height
:
100%
;
}
.tools-box
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
padding
:
20rpx
30rpx
18rpx
34rpx
;
.search-sub
{
height
:
72rpx
;
width
:
320rpx
;
}
.search-btn
{
height
:
72rpx
;
width
:
220rpx
;
background-color
:
#ffffff
;
border-radius
:
36rpx
;
color
:
#666666
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-around
;
align-items
:
center
;
.search-btn-text
{
line-height
:
36rpx
;
font-weight
:
400
;
font-size
:
26rpx
;
}
}
}
.order-taps
{
height
:
80rpx
;
padding
:
8rpx
30rpx
20rpx
30rpx
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
align-items
:
center
;
.order-taps-item
{
font-size
:
28rpx
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
20px
;
.taps-count
{
position
:
absolute
;
font-size
:
16rpx
;
font-weight
:
400
;
line-height
:
16rpx
;
width
:
36rpx
;
height
:
24rpx
;
background
:
#FFFFFF
;
border-radius
:
16rpx
;
border
:
2rpx
solid
#FA5A49
;
text-align
:
center
;
color
:
#FA5A49
;
}
}
}
</
style
>
</
style
>
src/pages/settle/base.vue
View file @
b97e6cba
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<text
class=
"label"
>
电工工龄(年)
</text>
<text
class=
"label"
>
电工工龄(年)
</text>
</view>
</view>
<p
:class=
"['u-flex-1 u-text-right area',
{before: !baseInfo.working_age}]">
<p
:class=
"['u-flex-1 u-text-right area',
{before: !baseInfo.working_age}]">
{{
baseInfo
.
working_age
?
workingAgeTxt
:
'去选择'
}}
{{
baseInfo
.
working_age
!==
''
?
workingAgeTxt
:
'去选择'
}}
</p>
</p>
<u-icon
name=
"arrow-right"
color=
"#2272FF"
size=
"28"
></u-icon>
<u-icon
name=
"arrow-right"
color=
"#2272FF"
size=
"28"
></u-icon>
</view>
</view>
...
@@ -66,9 +66,10 @@
...
@@ -66,9 +66,10 @@
<view
class=
"seat"
></view>
<view
class=
"seat"
></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=
"!submitStatus"
@
click=
"$u.debounce(submitBaseInfo, 500)"
>
<u-button
class=
"btn-submit"
@
click=
"$u.debounce(submitBaseInfo, 500)"
:custom-style=
"buttonStyle"
确定
type=
"primary"
shape=
"circle"
:hover-class=
"submitStatus ? '' : 'none'"
>
</button>
{{
submitStatus
?
'已确认信息,下一步'
:
'下一步'
}}
</u-button>
</view>
</view>
</
template
>
</
template
>
</Settle>
</Settle>
...
@@ -125,13 +126,30 @@
...
@@ -125,13 +126,30 @@
return
this
.
areaTxts
.
join
(
'、'
)
return
this
.
areaTxts
.
join
(
'、'
)
},
},
anquanImage
()
{
anquanImage
()
{
return
qn_base_url
+
'anquan.png'
return
process
.
uniEnv
.
qn_base_url
+
'anquan.png'
},
},
mixingImage
()
{
mixingImage
()
{
return
qn_base_url
+
'mixing.png'
return
process
.
uniEnv
.
qn_base_url
+
'mixing.png'
},
},
dizhiImage
()
{
dizhiImage
()
{
return
qn_base_url
+
'dizhi.png'
return
process
.
uniEnv
.
qn_base_url
+
'dizhi.png'
},
buttonStyle
()
{
return
this
.
submitStatus
?
{
'color'
:
'#FFFFFF'
,
'background-color'
:
'#2272FF;'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
}
:
{
'color'
:
'#FFFFFF'
,
'background-color'
:
'#D1D4D4;'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
}
}
}
},
},
components
:
{
components
:
{
...
@@ -572,20 +590,7 @@
...
@@ -572,20 +590,7 @@
.btn-wrap
{
.btn-wrap
{
width
:
100%
;
width
:
100%
;
.btn-submit
{
.btn-submit
{}
width
:
600rpx
;
height
:
104rpx
;
line-height
:
104rpx
;
border-radius
:
52rpx
;
background
:
#2272FF
;
font-size
:
32rpx
;
color
:
#fff
;
&
[
disabled
]
{
background-color
:
#D1D4D4
;
color
:
#FFFFFF
;
}
}
}
}
.itemView
{
.itemView
{
...
@@ -681,6 +686,8 @@
...
@@ -681,6 +686,8 @@
.address-textarea
{
.address-textarea
{
font-size
:
26rpx
;
font-size
:
26rpx
;
width
:
100%
;
height
:
100%
;
}
}
.tip-text
{
.tip-text
{
...
@@ -696,7 +703,9 @@
...
@@ -696,7 +703,9 @@
}
}
.tip-image
{
.tip-image
{
width
:
34rpx
;
width
:
30rpx
;
height
:
32rpx
;
flex-shrink
:
0
;
margin-right
:
8rpx
;
margin-right
:
8rpx
;
margin-top
:
2rpx
;
margin-top
:
2rpx
;
}
}
...
...
src/pages/settle/file-upload.vue
View file @
b97e6cba
<
template
>
<
template
>
<view
class=
"img-wrap rel"
>
<view
class=
"img-wrap rel"
>
<view
class=
"upload-box"
>
<view
class=
"upload-box"
>
<view
class=
"img-item pic"
v-for=
"(file,index) in imgList"
>
<view
class=
"img-item pic"
v-for=
"(file,index) in imgList"
:key=
"index"
>
<!--
<view
class=
"tip-sucess u-flex u-row-center"
v-if=
"file && (file.status == status.QUEUED || file.status == status.UPLOADING)"
>
<!--
<view
class=
"tip-sucess u-flex u-row-center"
v-if=
"file && (file.status == status.QUEUED || file.status == status.UPLOADING)"
>
<span>
正在上传中...
{{
file
.
percent
}}
%
</span>
<span>
正在上传中...
{{
file
.
percent
}}
%
</span>
</view>
-->
</view>
-->
...
...
src/pages/settle/file.vue
View file @
b97e6cba
...
@@ -30,8 +30,7 @@
...
@@ -30,8 +30,7 @@
<text
class=
"card-item-text"
>
{{
fileInfo
[
cardkey
]
}}
</text>
<text
class=
"card-item-text"
>
{{
fileInfo
[
cardkey
]
}}
</text>
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"line-view"
></view>
<view
class=
"card-item-error"
v-if=
"fileInfo[cardkey]
<view
class=
"card-item-error"
v-if=
"((cardkey == 'id_card_name' || cardkey == 'id_card_number') && frontErrorMsg)"
>
{{
frontErrorMsg
}}
</view>
&& ((cardkey == 'id_card_name' || cardkey == 'id_card_number') && frontErrorMsg)"
>
{{
frontErrorMsg
}}
</view>
<view
class=
"card-item-error"
v-if=
"(cardkey == 'id_card_date' && backErrorMsg)"
>
{{
backErrorMsg
}}
</view>
<view
class=
"card-item-error"
v-if=
"(cardkey == 'id_card_date' && backErrorMsg)"
>
{{
backErrorMsg
}}
</view>
</view>
</view>
</view>
</view>
...
@@ -44,9 +43,10 @@
...
@@ -44,9 +43,10 @@
<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)"
>
<u-button
class=
"btn-submit"
@
click=
"$u.debounce(submitFileInfo, 500)"
:custom-style=
"buttonStyle"
{{
!
submitBtnStatus
?
'完成必填项,可提交资料'
:
'提交'
}}
type=
"primary"
shape=
"circle"
:hover-class=
"submitStatus ? '' : 'none'"
>
</button>
{{
!
submitBtnStatus
?
'下一步'
:
'我已确认信息,下一步'
}}
</u-button>
</view>
</view>
</
template
>
</
template
>
...
@@ -144,7 +144,7 @@ export default {
...
@@ -144,7 +144,7 @@ export default {
label
:
"实名认证"
,
label
:
"实名认证"
,
tips
:
"上传二代身份证照片,图片大小不大于3M"
,
tips
:
"上传二代身份证照片,图片大小不大于3M"
,
imgs
:
[],
imgs
:
[],
placeholderImages
:
[
qn_base_url
+
'renxiang.png'
,
qn_base_url
+
'guohui.png'
]
placeholderImages
:
[
process
.
uniEnv
.
qn_base_url
+
'renxiang.png'
,
process
.
uniEnv
.
qn_base_url
+
'guohui.png'
]
},
},
// {
// {
// filedName: "id_card_back",
// filedName: "id_card_back",
...
@@ -161,7 +161,7 @@ export default {
...
@@ -161,7 +161,7 @@ export default {
maxImgs
:
1
,
maxImgs
:
1
,
tips
:
"上传电工证证照片,图片大小不大于3M"
,
tips
:
"上传电工证证照片,图片大小不大于3M"
,
imgs
:
[],
imgs
:
[],
placeholderImages
:
[
qn_base_url
+
'diangong.png'
]
placeholderImages
:
[
process
.
uniEnv
.
qn_base_url
+
'diangong.png'
]
},
},
{
{
filedName
:
"driver_license"
,
filedName
:
"driver_license"
,
...
@@ -169,7 +169,7 @@ export default {
...
@@ -169,7 +169,7 @@ export default {
imgs
:
[],
imgs
:
[],
maxImgs
:
999
,
maxImgs
:
999
,
tips
:
"两证单张照片需包含两页内容,每种证件只上传一张照片"
,
tips
:
"两证单张照片需包含两页内容,每种证件只上传一张照片"
,
placeholderImages
:
[
qn_base_url
+
'jiashi.png'
,
qn_base_url
+
'jiashi.png'
]
placeholderImages
:
[
process
.
uniEnv
.
qn_base_url
+
'jiashi.png'
,
process
.
uniEnv
.
qn_base_url
+
'jiashi.png'
]
},
},
{
{
filedName
:
"vehicle_front"
,
filedName
:
"vehicle_front"
,
...
@@ -177,8 +177,8 @@ export default {
...
@@ -177,8 +177,8 @@ export default {
maxImgs
:
1
,
maxImgs
:
1
,
tips
:
"上传车辆照片"
,
tips
:
"上传车辆照片"
,
imgs
:
[],
imgs
:
[],
placeholderImages
:
[
qn_base_url
+
'zhengmian.png'
,
placeholderImages
:
[
process
.
uniEnv
.
qn_base_url
+
'zhengmian.png'
,
qn_base_url
+
'cemian.png'
]
process
.
uniEnv
.
qn_base_url
+
'cemian.png'
]
},
},
],
],
...
@@ -225,13 +225,30 @@ export default {
...
@@ -225,13 +225,30 @@ export default {
}
}
},
},
anquanImage
()
{
anquanImage
()
{
return
qn_base_url
+
'anquan.png'
return
process
.
uniEnv
.
qn_base_url
+
'anquan.png'
},
},
mixingImage
()
{
mixingImage
()
{
return
qn_base_url
+
'mixing.png'
return
process
.
uniEnv
.
qn_base_url
+
'mixing.png'
},
},
tishiImage
()
{
tishiImage
()
{
return
qn_base_url
+
'tishi.png'
return
process
.
uniEnv
.
qn_base_url
+
'tishi.png'
},
buttonStyle
()
{
return
this
.
submitBtnStatus
?
{
'color'
:
'#FFFFFF'
,
'background-color'
:
'#2272FF;'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
}
:
{
'color'
:
'#FFFFFF'
,
'background-color'
:
'#D1D4D4;'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
}
}
}
},
},
components
:
{
components
:
{
...
@@ -448,7 +465,6 @@ export default {
...
@@ -448,7 +465,6 @@ export default {
return
;
return
;
}
}
let
fileInfo
=
this
.
fileInfo
;
let
fileInfo
=
this
.
fileInfo
;
debugger
fileInfo
.
other_photos
=
JSON
.
stringify
(
fileInfo
.
other_photos
)
fileInfo
.
other_photos
=
JSON
.
stringify
(
fileInfo
.
other_photos
)
let
submitInfoData
=
{
let
submitInfoData
=
{
...
fileInfo
,
...
fileInfo
,
...
@@ -656,9 +672,11 @@ export default {
...
@@ -656,9 +672,11 @@ export default {
}
}
.tip-image
{
.tip-image
{
width
:
34rpx
;
width
:
30rpx
;
height
:
32rpx
;
margin-right
:
8rpx
;
margin-right
:
8rpx
;
margin-top
:
2rpx
;
margin-top
:
2rpx
;
flex-shrink
:
0
;
}
}
.bottom-tip-view
{
.bottom-tip-view
{
...
@@ -686,18 +704,7 @@ export default {
...
@@ -686,18 +704,7 @@ export default {
width
:
100%
;
width
:
100%
;
.btn-submit
{
.btn-submit
{
width
:
600rpx
;
height
:
104rpx
;
line-height
:
104rpx
;
border-radius
:
52rpx
;
background
:
#2272FF
;
font-size
:
32rpx
;
color
:
#fff
;
&
[
disabled
]
{
background-color
:
#D1D4D4
;
color
:
#FFFFFF
;
}
}
}
}
}
.card-info-view
{
.card-info-view
{
...
...
src/pages/settle/index.vue
View file @
b97e6cba
...
@@ -2,65 +2,25 @@
...
@@ -2,65 +2,25 @@
<view
class=
"back_view"
>
<view
class=
"back_view"
>
<Settle
:index=
"1"
>
<Settle
:index=
"1"
>
<view
class=
"content-view"
>
<view
class=
"content-view"
>
<view
style=
"padding: 30rpx;"
>
<view
v-for=
"(item, index) in contentTexts"
:key=
"index"
:class=
"['item-list',
{last: contentTexts.length
<
=
index
+
1
}]"
>
<view
class=
"item"
>
<view
class=
"item"
>
<view
class=
"item-label"
>
<view
class=
"item-label"
>
<text>
招募要求
</text>
<text>
{{
item
.
title
}}
</text>
</view>
</view>
<view
class=
"item-content"
>
<view
class=
"item-content"
>
<text>
<text>
{{
item
.
content
}}
</text>
1.必须具备相关的从业证书——电工证;
2.有汽车:皮卡、小面包、小轿车等;
3.需具备一定的作业工具:如液压压线钳、冲击钻、电锤、登高安全带、电锤、绝缘电阻仪(摇表)、交流充电模拟器等;
4.有充电桩安装经验优先;
</text>
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"item"
>
<view
class=
"item-label"
>
<text>
结算价格
</text>
</view>
<view
class=
"item-content"
>
<text>
1.不同车企品牌结算价格不一,675元-1890元不等;
2.结算价格为包工包料价,安装材料根据车企品牌规格自行采购(电缆、空开、漏保);
3.结算账期:周结50%,剩余50%次月20号结算;
</text>
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"item"
>
<view
class=
"item-label"
>
<text>
入驻资料
</text>
</view>
<view
class=
"item-content"
>
<text>
1.身份证正反面照片
2.高/低压电工证正反面照片
3.车辆照片
</text>
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"item"
>
<view
class=
"item-label"
>
<text>
注意事项:
</text>
</view>
<view
class=
"item-content"
>
<text>
1.身份证,银行卡,签约人共有同一人,否则无法入驻。
2.充电桩材料按要求自行准备。
</text>
</view>
</view>
</view>
</view>
<view
class=
"line-view"
v-if=
"contentTexts.length > index + 1"
></view>
</view>
</view>
</view>
</view>
<template
v-slot:bottom
>
<template
v-slot:bottom
>
<button
:class=
"['bottom_btn',
{'active': isStop}]" @click="$u.debounce(applyClick, 500)">
<u-button
class=
"bottom_btn"
@
click=
"$u.debounce(applyClick, 500)"
:custom-style=
"buttonStyle"
type=
"primary"
shape=
"circle"
:hover-class=
"isStop ? '' : 'none'"
>
<text
class=
"bottom_title"
v-if=
"!isStop"
>
浏览
{{
count
}}
秒后可申请入驻
</text>
<text
class=
"bottom_title"
v-if=
"!isStop"
>
浏览
{{
count
}}
秒后可申请入驻
</text>
<text
class=
"bottom_title"
v-if=
"isStop"
>
申请入驻
</text>
<text
class=
"bottom_title"
v-if=
"isStop"
>
申请入驻
</text>
</button>
</
u-
button>
</
template
>
</
template
>
</Settle>
</Settle>
</view>
</view>
...
@@ -82,6 +42,44 @@
...
@@ -82,6 +42,44 @@
saving
:
true
saving
:
true
}
}
},
},
computed
:
{
contentTexts
()
{
return
[{
title
:
'招募要求'
,
content
:
'1.必须具备相关的从业证书——电工证;
\
n
\
2.有汽车:皮卡、小面包、小轿车等
\
n
\
3.需具备一定的作业工具:如液压压线钳、冲击钻、电锤、登高安全带、电锤、绝缘电阻仪(摇表)、交流充电模拟器等;
\
n
\
4.有充电桩安装经验优先;'
},
{
title
:
'结算价格'
,
content
:
'1.不同车企品牌结算价格不一,675元-1890元不等;
\
n
\
2.结算价格为包工包料价,安装材料根据车企品牌规格自行采购(电缆、空开、漏保);
\
n
\
3.结算账期:周结50%,剩余50%次月20号结算;'
},
{
title
:
'入驻资料'
,
content
:
'1.身份证正反面照片
\
n
\
2.高/低压电工证正反面照片
\
n
\
3.车辆照片'
},
{
title
:
'注意事项'
,
content
:
'1.身份证,银行卡,签约人共有同一人,否则无法入驻。
\
n
\
2.充电桩材料按要求自行准备。'
}]
},
buttonStyle
()
{
return
this
.
isStop
?
{
'color'
:
'#FFFFFF'
,
'background-color'
:
'#2272FF;'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
,
}
:
{
'color'
:
'#FFFFFF'
,
'background-color'
:
'#D1D4D4;'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
}
}
},
onLoad
(
e
)
{
onLoad
(
e
)
{
this
.
initpageData
(
e
)
this
.
initpageData
(
e
)
this
.
startCounting
()
this
.
startCounting
()
...
@@ -204,9 +202,15 @@
...
@@ -204,9 +202,15 @@
background-color
:
#F4F5F7
;
background-color
:
#F4F5F7
;
height
:
2rpx
;
height
:
2rpx
;
width
:
100%
;
width
:
100%
;
margin-bottom
:
30rpx
;
margin-top
:
30rpx
;
margin-top
:
30rpx
;
}
.item-list
{
padding
:
30rpx
30rpx
0rpx
30rpx
;
&
.last
{
padding-bottom
:
30rpx
;
}
}
}
.item-label
{
.item-label
{
...
@@ -220,29 +224,21 @@
...
@@ -220,29 +224,21 @@
color
:
#333333
;
color
:
#333333
;
font-size
:
26rpx
;
font-size
:
26rpx
;
line-height
:
50rpx
;
line-height
:
50rpx
;
margin-top
:
3
0rpx
;
margin-top
:
2
0rpx
;
}
}
.bottom_btn
{
// .bottom_btn {
width
:
600rpx
;
// width: 600rpx;
height
:
104rpx
;
// height: 104rpx;
line-height
:
96rpx
;
// line-height: 96rpx;
border-radius
:
54rpx
;
// display: flex;
// border: 4rpx solid #FFFFFF;
// align-items: center;
display
:
flex
;
// justify-content: center;
align-items
:
center
;
justify-content
:
center
;
background-color
:
#D1D4D4
;
&
.active
{
// .bottom_title {
background-color
:
#2272FF
;
// color: #fff;
// }
}
// }
.bottom_title
{
color
:
#fff
;
}
}
.bottom_title
{
.bottom_title
{
font-weight
:
bold
;
font-weight
:
bold
;
...
...
src/pages/settle/pay-ensure.vue
View file @
b97e6cba
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
<view
class=
"content"
>
<view
class=
"content"
>
<Settle
:index=
"5"
>
<Settle
:index=
"5"
>
<view
class=
"base-list"
>
<view
class=
"base-list"
>
<view
class=
"title"
>
充电桩安装需缴纳
设备
押金
</view>
<view
class=
"title"
>
充电桩安装需缴纳
配件
押金
</view>
<view
class=
"price"
><text>
¥
</text>
{{
settledInfo
.
record
.
deposit
}}
</view>
<view
class=
"price"
><text>
¥
</text>
{{
settledInfo
.
record
.
deposit
}}
</view>
<view
class=
"list"
>
<view
class=
"list"
>
<view
class=
"item u-flex u-row-between"
>
<view
class=
"item u-flex u-row-between"
>
<view
class=
"txt"
>
您
已缴纳金额
</view>
<view
class=
"txt"
>
已缴纳金额
</view>
<view
class=
"txt-value"
>
¥ 0.00
</view>
<view
class=
"txt-value"
>
¥ 0.00
</view>
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"line-view"
></view>
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
},
},
computed
:
{
computed
:
{
weixinImage
()
{
weixinImage
()
{
return
qn_base_url
+
'weixin.png'
return
process
.
uniEnv
.
qn_base_url
+
'weixin.png'
}
}
},
},
watch
:
{
watch
:
{
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
...
this
.
payResult
...
this
.
payResult
}
}
const
res
=
await
this
.
$u
.
api
.
getSettleDepositResult
(
params
);
const
res
=
await
this
.
$u
.
api
.
getSettleDepositResult
(
params
);
if
(
res
.
status
!==
true
)
{
if
(
res
.
data
!==
true
)
{
this
.
saving
=
false
this
.
saving
=
false
return
return
}
}
...
@@ -157,7 +157,8 @@
...
@@ -157,7 +157,8 @@
// appid:'wxd1d6eede324b0465'
// appid:'wxd1d6eede324b0465'
}
}
const
response
=
await
this
.
$u
.
api
.
paySettleDeposit
(
params
)
const
response
=
await
this
.
$u
.
api
.
paySettleDeposit
(
params
)
if
(
response
.
status
!==
true
)
{
console
.
log
(
response
)
if
(
response
.
code
!==
200
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
response
.
message
,
title
:
response
.
message
,
icon
:
'none'
icon
:
'none'
...
...
src/pages/settle/prompt.vue
View file @
b97e6cba
...
@@ -2,38 +2,40 @@
...
@@ -2,38 +2,40 @@
<view
class=
"container u-row-between"
v-if=
"info"
>
<view
class=
"container u-row-between"
v-if=
"info"
>
<Settle
:index=
"pageIndex"
>
<Settle
:index=
"pageIndex"
>
<view
class=
"content-view"
>
<view
class=
"content-view"
>
<view
style=
"min-height: 120rpx;"
v-if=
"status == 8"
></view>
<view
class=
"u-flex u-row-center"
>
<view
class=
"u-flex u-row-center"
>
<image
:class=
"['icon',
{active: status != 1}]"
<image
:class=
"['icon',
{active: status != 1}]"
:src="imageUrl">
:src="imageUrl">
</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"
>
<Services/>
<view
v-if=
"status != 8"
>
<image
class=
"service-info-image"
:src=
"erweimaImage"
></image>
<view
class=
"content-info-tip"
>
长按二维码添加官方客服微信
</view>
<view
class=
"content-info-tip"
>
及时了解审核进度
</view>
</view>
</view>
</view>
</view>
<template
v-slot:bottom
>
<button
class=
"btn-submit"
@
click=
"$u.debounce(goPage, 500)"
>
{{
info
.
btnTxt
}}
</button>
<button
class=
"btn-submit"
@
click=
"$u.debounce(goPage, 500)"
>
{{
info
.
btnTxt
}}
</button>
</
template
>
</
view
>
</Settle>
</Settle>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
Settle
from
'@/components/settle/index.vue'
import
Settle
from
'@/components/settle/index.vue'
import
Services
from
'@/components/settle/services.vue'
//
import Services from '@/components/settle/services.vue'
export
default
{
export
default
{
components
:
{
components
:
{
Settle
,
Settle
,
Services
//
Services
},
},
data
()
{
data
()
{
...
@@ -95,9 +97,11 @@
...
@@ -95,9 +97,11 @@
},
},
computed
:
{
computed
:
{
imageUrl
()
{
imageUrl
()
{
return
this
.
status
==
1
?
qn_base_url
+
'chenggong.png'
:
qn_base_url
+
'icon-prompt.png'
return
this
.
status
==
1
?
process
.
uniEnv
.
qn_base_url
+
'chenggong.png'
:
process
.
uniEnv
.
qn_base_url
+
'icon-prompt.png'
},
erweimaImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'erweima-bg.png'
},
},
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
if
(
e
)
{
if
(
e
)
{
...
@@ -128,6 +132,27 @@
...
@@ -128,6 +132,27 @@
let
settledInfo
=
await
app
.
getBaseInfo
(
this
,
callBack
)
let
settledInfo
=
await
app
.
getBaseInfo
(
this
,
callBack
)
this
.
settledInfo
=
settledInfo
this
.
settledInfo
=
settledInfo
this
.
status
=
settledInfo
.
record
.
status
this
.
status
=
settledInfo
.
record
.
status
switch
(
this
.
status
)
{
case
1
:
case
2
:
case
3
:
case
4
:
this
.
pageIndex
=
2
;
break
;
case
8
:
this
.
pageIndex
=
3
;
break
;
case
5
:
case
6
:
this
.
pageIndex
=
4
;
break
;
case
7
:
this
.
pageIndex
=
5
;
break
;
default
:
this
.
pageIndex
=
1
;
break
;
}
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
initInfo
(
settledInfo
.
record
)
this
.
initInfo
(
settledInfo
.
record
)
},
},
...
@@ -161,7 +186,7 @@
...
@@ -161,7 +186,7 @@
},
},
goPage
()
{
goPage
()
{
const
url
=
this
.
info
.
url
const
url
=
this
.
info
.
url
if
(
this
.
status
==
1
||
this
.
status
==
3
||
this
.
status
==
3
)
{
if
(
this
.
status
==
1
||
this
.
status
==
3
||
this
.
status
==
7
)
{
uni
.
reLaunch
({
uni
.
reLaunch
({
url
,
url
,
});
});
...
@@ -188,19 +213,20 @@
...
@@ -188,19 +213,20 @@
position
:
absolute
;
position
:
absolute
;
.icon
{
.icon
{
margin-top
:
68rpx
;
margin-top
:
20rpx
;
width
:
334rpx
;
height
:
320rpx
;
&
.active
{
width
:
224rpx
;
width
:
224rpx
;
height
:
224rpx
;
height
:
224rpx
;
&
.active
{
margin-top
:
38rpx
;
width
:
234rpx
;
height
:
222rpx
;
}
}
}
}
.content-view
{
.content-view
{
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
margin-bottom
:
188
rpx
;
margin-bottom
:
30
rpx
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
padding
:
30rpx
;
padding
:
30rpx
;
}
}
...
@@ -239,13 +265,15 @@
...
@@ -239,13 +265,15 @@
}
}
.btn-submit
{
.btn-submit
{
margin-top
:
112rpx
;
margin-top
:
50rpx
;
margin-bottom
:
30rpx
;
width
:
600rpx
;
width
:
600rpx
;
height
:
104rpx
;
height
:
104rpx
;
line-height
:
104rpx
;
line-height
:
104rpx
;
border-radius
:
52rpx
;
border-radius
:
52rpx
;
background
:
#2272ff
;
background
:
#2272ff
;
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
color
:
#fff
;
color
:
#fff
;
&
:disabled
{
&
:disabled
{
...
@@ -255,9 +283,18 @@
...
@@ -255,9 +283,18 @@
}
}
}
}
.services-view
{
.services-view
{
display
:
flex
;
justify-content
:
center
;
padding-top
:
50rpx
;
padding-top
:
50rpx
;
text-align
:
center
;
min-height
:
120rpx
;
.service-info-image
{
margin-bottom
:
30rpx
;
width
:
220rpx
;
height
:
220rpx
;
}
.content-info-tip
{
font-size
:
22rpx
;
color
:
#666666
;
}
}
}
}
}
</
style
>
</
style
>
src/pages/settle/sign-contract.vue
View file @
b97e6cba
...
@@ -56,9 +56,10 @@
...
@@ -56,9 +56,10 @@
</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=
"!submitStatus"
@
click=
"$u.debounce(submitBaseInfo, 500)"
>
<u-button
class=
"btn-submit"
@
click=
"$u.debounce(submitBaseInfo, 500)"
:custom-style=
"buttonStyle"
我已阅读协议,点击签约
{{
count
?
'('
+
count
+
')'
:
''
}}
type=
"primary"
shape=
"circle"
:hover-class=
"submitStatus ? '' : 'none'"
>
</button>
我已确认信息,点击签约
{{
count
?
'('
+
count
+
')'
:
''
}}
</u-button>
</view>
</view>
</
template
>
</
template
>
</Settle>
</Settle>
...
@@ -79,9 +80,8 @@
...
@@ -79,9 +80,8 @@
},
},
data
()
{
data
()
{
return
{
return
{
token
:
app
.
globalData
.
token
,
baseInfo
:
{
baseInfo
:
{
name
:
"
郭小清
"
,
name
:
""
,
id_card_no
:
"43072219800123456"
,
id_card_no
:
"43072219800123456"
,
id
:
""
,
id
:
""
,
bank_no
:
''
,
// 银行卡号
bank_no
:
''
,
// 银行卡号
...
@@ -132,7 +132,24 @@
...
@@ -132,7 +132,24 @@
return
'color:#999999;font-size:28rpx'
return
'color:#999999;font-size:28rpx'
},
},
tips3Image
()
{
tips3Image
()
{
return
qn_base_url
+
'tips3.png'
return
process
.
uniEnv
.
qn_base_url
+
'tips3.png'
},
buttonStyle
()
{
return
this
.
submitStatus
?
{
'color'
:
'#FFFFFF'
,
'background-color'
:
'#2272FF;'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
}
:
{
'color'
:
'#FFFFFF'
,
'background-color'
:
'#D1D4D4;'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
}
}
}
},
},
components
:
{
components
:
{
...
@@ -360,7 +377,7 @@
...
@@ -360,7 +377,7 @@
// }, 2000)
// }, 2000)
},
},
async
goSign
()
{
async
goSign
()
{
const
token
=
app
.
globalData
.
token
;
const
token
=
this
.
vuex_
token
;
const
settledInfo
=
this
.
settledInfo
const
settledInfo
=
this
.
settledInfo
const
baseInfo
=
this
.
baseInfo
const
baseInfo
=
this
.
baseInfo
const
params
=
{
const
params
=
{
...
...
src/plugins/uploader/request/upload/qiniuUploader.js
View file @
b97e6cba
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
try
{
try
{
var
dataObject
=
JSON
.
parse
(
dataString
);
var
dataObject
=
JSON
.
parse
(
dataString
);
//do something
//do something
var
imageUrl
=
config
.
qiniuImageURLPrefix
+
'/'
+
dataObject
.
key
;
var
imageUrl
=
config
.
qiniuImageURLPrefix
+
'/'
+
(
dataObject
.
key
||
dataObject
.
src
)
;
dataObject
.
imageURL
=
imageUrl
;
dataObject
.
imageURL
=
imageUrl
;
if
(
success
)
{
if
(
success
)
{
success
(
dataObject
);
success
(
dataObject
);
...
...
src/plugins/uploader/request/upload/utils.js
View file @
b97e6cba
...
@@ -16,6 +16,7 @@ export const randomChar = function(l, url = "") {
...
@@ -16,6 +16,7 @@ export const randomChar = function(l, url = "") {
}
}
//图片选择
//图片选择
export
const
chooseImage
=
function
(
data
)
{
export
const
chooseImage
=
function
(
data
)
{
console
.
log
(
data
,
'data-chooseImage'
)
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
chooseImage
({
uni
.
chooseImage
({
count
:
data
.
count
||
9
,
//默认9
count
:
data
.
count
||
9
,
//默认9
...
...
src/store/$u.mixin.js
View file @
b97e6cba
...
@@ -21,6 +21,6 @@ export default {
...
@@ -21,6 +21,6 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
...
mapState
(
[
'ddd'
]
)
...
mapState
(
$uStoreKey
)
}
}
}
}
src/utils/login.js
View file @
b97e6cba
...
@@ -29,10 +29,12 @@ function appLogin() {
...
@@ -29,10 +29,12 @@ function appLogin() {
// 小程序授权
// 小程序授权
function
authorization
(
data
)
{
function
authorization
(
data
)
{
return
new
Promise
(
async
function
(
resolve
,
reject
)
{
return
new
Promise
(
async
function
(
resolve
,
reject
)
{
data
.
wxAppNo
=
app
.
globalData
.
wxAppNo
const
res
=
await
app
.
$vm
.
$u
.
api
.
loginWechatAuth
(
data
)
const
res
=
await
app
.
$vm
.
$u
.
api
.
loginWechatAuth
(
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
);
...
@@ -49,10 +51,12 @@ function authorization(data) {
...
@@ -49,10 +51,12 @@ function authorization(data) {
// 小程序注册
// 小程序注册
function
signup
(
data
)
{
function
signup
(
data
)
{
return
new
Promise
(
async
function
(
resolve
,
reject
)
{
return
new
Promise
(
async
function
(
resolve
,
reject
)
{
data
.
wxAppNo
=
app
.
globalData
.
wxAppNo
const
res
=
await
app
.
$vm
.
$u
.
api
.
loginWechatAuth
(
data
)
const
res
=
await
app
.
$vm
.
$u
.
api
.
loginWechatAuth
(
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
({
...
...
src/uview-ui/components/u-subsection/u-subsection.vue
View file @
b97e6cba
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
* @property {Boolean} bold 激活选项的字体是否加粗(默认true)
* @property {Boolean} bold 激活选项的字体是否加粗(默认true)
* @property {String} bg-color 组件背景颜色,mode为button时有效(默认#eeeeef)
* @property {String} bg-color 组件背景颜色,mode为button时有效(默认#eeeeef)
* @property {String} button-color 按钮背景颜色,mode为button时有效(默认#ffffff)
* @property {String} button-color 按钮背景颜色,mode为button时有效(默认#ffffff)
* @property {String Number} border-radius 圆角值,单位rpx(默认5)
* @event {Function} change 分段器选项发生改变时触发
* @event {Function} change 分段器选项发生改变时触发
* @example <u-subsection active-color="#ff9900"></u-subsection>
* @example <u-subsection active-color="#ff9900"></u-subsection>
*/
*/
...
@@ -91,7 +92,12 @@
...
@@ -91,7 +92,12 @@
vibrateShort
:
{
vibrateShort
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
}
},
// 圆角值
borderRadius
:
{
type
:
[
Number
,
String
],
default
:
5
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -105,7 +111,7 @@
...
@@ -105,7 +111,7 @@
},
},
currentIndex
:
this
.
current
,
currentIndex
:
this
.
current
,
buttonPadding
:
3
,
// mode = button 时,组件的内边距
buttonPadding
:
3
,
// mode = button 时,组件的内边距
borderRadius
:
5
,
// 圆角值
//
borderRadius: 5, // 圆角值
firstTimeVibrateShort
:
true
// 组件初始化时,会触发current变化,此时不应震动
firstTimeVibrateShort
:
true
// 组件初始化时,会触发current变化,此时不应震动
};
};
},
},
...
...
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