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
65babb96
Commit
65babb96
authored
Apr 16, 2021
by
Facius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
46e9c300
9baa17ed
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
886 additions
and
325 deletions
+886
-325
.gitignore
.gitignore
+1
-0
App.vue
src/App.vue
+104
-4
settled.js
src/common/api/settled.js
+9
-1
index.scss
src/common/index.scss
+16
-3
XhInput.vue
src/components/createCom/XhInput.vue
+11
-4
XhSelect.vue
src/components/createCom/XhSelect.vue
+30
-0
index.js
src/config/index.js
+16
-0
pages.json
src/pages.json
+85
-69
index.vue
src/pages/index/index.vue
+239
-211
course-detail.vue
src/pages/learn/course-detail.vue
+105
-0
exam.vue
src/pages/learn/exam.vue
+130
-0
index.vue
src/pages/login/index.vue
+24
-11
complete.vue
src/pages/order/complete.vue
+25
-7
formCom.vue
src/pages/order/components/formCom.vue
+90
-14
analysys_paas.js
src/utils/analysys_paas.js
+1
-1
No files found.
.gitignore
View file @
65babb96
...
@@ -21,3 +21,4 @@ yarn-error.log*
...
@@ -21,3 +21,4 @@ yarn-error.log*
*.njsproj
*.njsproj
*.sln
*.sln
*.sw*
*.sw*
.history/
src/App.vue
View file @
65babb96
<
script
>
<
script
>
import
'./../.env.js'
import
'./../.env.js'
import
{
AnalysysAgent
}
from
'@/utils/analysys_paas.js'
import
util
from
'@/utils/util.js'
import
util
from
'@/utils/util.js'
export
default
{
export
default
{
globalData
:{
globalData
:{
// 开发环境
uniEnv
:
process
.
uniEnv
,
uniEnv
:
process
.
uniEnv
,
// 登录凭证
token
:
''
,
token
:
''
,
//lyf的token:RTOKENf7d46ea33a7923515abfa779e04eccba77f98604
//RTOKEN45f41a3053238cb72b3b72fe14df8d7040c9f502
//授权提示 图标
icon_auth_notice
:
'https://qn-static.banshouhui.com/auth_notice.png'
,
//授权提示新 图标
icon_auth_notice_new
:
'https://qn-static.banshouhui.com/auth_notice_new.png'
,
// 服务规范教程视频
service_standard
:
{
"Course1"
:
{
url
:
"https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4"
,
title
:
"第一节 接单服务标准"
,
desc
:
"1.不同车企品牌结算价格不一,675元-1890元不等;"
,
},
"Course2"
:
{
url
:
"https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4"
,
title
:
"第二节 完工服务标准"
,
desc
:
"2.结算价格为包工包料价,安装材料根据车企品牌规格自行采购(电缆、空开、漏保);"
,
},
"Course3"
:
{
url
:
"https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4"
,
title
:
"第二节 结算服务标准"
,
desc
:
"3.需具备一定的作业工具:如液压压线钳、冲击钻、电锤、登高安全带、电锤、绝缘电阻仪(摇表)、交流充电模拟器等;"
,
},
},
// 授权用户信息
// 授权用户信息
authUserInfo
:
''
,
authUserInfo
:
''
,
},
},
...
@@ -14,6 +41,8 @@
...
@@ -14,6 +41,8 @@
// 应用初始化(全局只触发一次)
// 应用初始化(全局只触发一次)
let
that
=
this
let
that
=
this
that
.
globalData
.
token
=
util
.
getToken
()
that
.
globalData
.
token
=
util
.
getToken
()
AnalysysAgent
.
registerSuperProperty
(
"platform"
,
"self-support"
);
},
},
onShow
:
function
()
{
onShow
:
function
()
{
// 应用启动,或从后台进入前台显示
// 应用启动,或从后台进入前台显示
...
@@ -96,6 +125,76 @@
...
@@ -96,6 +125,76 @@
util
.
setToken
(
''
)
util
.
setToken
(
''
)
}
}
},
},
/* ------------------------- 数据埋点begin ------------------------------ */
track
(
event
,
properties
)
{
if
(
AnalysysAgent
)
{
// 易观添加事件
let
AnalysysAgent
=
wx
.
AnalysysAgent
;
AnalysysAgent
.
track
(
"take_order_"
+
event
,
properties
);
}
},
identify
(
userInfo
,
openid
,
unionid
=
null
)
{
// 设备身份表示
if
(
AnalysysAgent
)
{
let
setProfile
=
{
'openid'
:
openid
,
'unionid'
:
unionid
,
}
setProfile
=
Object
.
assign
(
setProfile
,
userInfo
)
AnalysysAgent
.
profileSet
(
setProfile
);
}
},
setUserId
(
userId
)
{
// 用户id设置
if
(
AnalysysAgent
)
{
AnalysysAgent
.
alias
(
userId
+
''
)
}
},
setUser
(
user
)
{
// 用户附加属性
if
(
AnalysysAgent
)
{
let
userInfo
=
{
'mobile'
:
user
.
mobile
,
'userfrom_id'
:
user
.
uid
,
'userfrom'
:
'家维广场'
,
'avatar'
:
user
.
avatar
,
'nickname'
:
user
.
nickname
,
'username'
:
user
.
username
,
'wxhuid'
:
user
.
wxhuid
,
'id'
:
user
.
id
,
'money'
:
user
.
money
,
'score'
:
user
.
score
};
Object
.
keys
(
userInfo
).
map
(
key
=>
{
if
(
key
&&
userInfo
[
key
])
{
AnalysysAgent
.
profileAppend
(
key
,
userInfo
[
key
])
}
})
}
},
share
(
toShareProperties
,
trackProperties
)
{
if
(
AnalysysAgent
)
{
AnalysysAgent
.
share
(
toShareProperties
,
trackProperties
);
}
},
trackPage
(
pageName
,
properties
)
{
if
(
AnalysysAgent
)
{
AnalysysAgent
.
pageView
(
pageName
,
properties
);
}
},
initShare
(
option
)
{
console
.
log
(
option
,
'option-initShare'
)
option
=
option
||
{}
if
(
AnalysysAgent
&&
option
.
user_id
)
{
let
shareUserInfo
=
{
'share_from_id'
:
option
.
user_id
||
''
,
'share_from_nickname'
:
option
.
user_name
||
''
,
}
AnalysysAgent
.
registerSuperProperties
(
shareUserInfo
);
}
},
/* ------------------------- 数据埋点end ------------------------------ */
}
}
}
}
</
script
>
</
script
>
...
@@ -106,4 +205,5 @@
...
@@ -106,4 +205,5 @@
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
@import
"uview-ui/index.scss"
;
@import
"uview-ui/index.scss"
;
@import
'@/common/index.scss'
;
</
style
>
</
style
>
\ No newline at end of file
src/common/api/settled.js
View file @
65babb96
...
@@ -32,6 +32,12 @@ let settledApiFun = function(vm){
...
@@ -32,6 +32,12 @@ let settledApiFun = function(vm){
/* 提交认证资料 */
/* 提交认证资料 */
let
checkSettleSignInfo
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
ucenterApiUrl
+
'/v1/settled/check-sign-info'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
let
checkSettleSignInfo
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
ucenterApiUrl
+
'/v1/settled/check-sign-info'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
/* 获取接单教程列表 */
let
listOrderingTutorials
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
ucenterApiUrl
+
'/v1/settled/get-course-rate'
,
params
);
/* 更新接单教程状态 */
let
saveCourseRate
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
ucenterApiUrl
+
'/v1/settled/save-course-rate'
,
params
);
const
settledApi
=
{
const
settledApi
=
{
getSettleBaseInfo
,
getSettleBaseInfo
,
getSettleArea
,
getSettleArea
,
...
@@ -43,7 +49,9 @@ let settledApiFun = function(vm){
...
@@ -43,7 +49,9 @@ let settledApiFun = function(vm){
getSettleDepositResult
,
getSettleDepositResult
,
// checkSettleBank,
// checkSettleBank,
// checkSettleAlipay,
// checkSettleAlipay,
checkSettleSignInfo
checkSettleSignInfo
,
listOrderingTutorials
,
saveCourseRate
,
}
}
return
settledApi
return
settledApi
}
}
...
...
src/common/index.scss
View file @
65babb96
page
{
page
{
background-color
:
#
FAFAFA
;
background-color
:
#
fafafa
;
}
}
.btn-share
{
.btn-share
{
background-color
:
transparent
;
background-color
:
transparent
;
...
@@ -14,3 +14,16 @@ page{
...
@@ -14,3 +14,16 @@ page{
height
:
39rpx
;
height
:
39rpx
;
}
}
}
}
.bottom-fix-btn
{
position
:
fixed
;
z-index
:
2
;
bottom
:
0rpx
;
padding-bottom
:
40rpx
;
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
.btn-block
{
width
:
460rpx
;
}
}
src/components/createCom/XhInput.vue
View file @
65babb96
<
template
>
<
template
>
<view>
<view>
input-shuru
<u-input
v-model=
"item.fieldsValue"
/>
</view>
</view>
<!--
<u-form-item
label=
"姓名"
><u-input
v-model=
"value"
/></u-form-item>
-->
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'xhInput'
,
name
:
'xhInput'
,
props
:
{
item
:
{
type
:
Object
,
default
()
{
return
null
}
},
},
data
()
{
data
()
{
return
{
return
{
value
:
''
,
value
:
''
,
type
:
'text'
,
type
:
'text'
,
border
:
true
border
:
true
,
}
}
}
}
}
}
...
...
src/components/createCom/XhSelect.vue
0 → 100644
View file @
65babb96
<
template
>
<view>
<u-input
v-model=
"item.fieldsValue"
/>
</view>
</
template
>
<
script
>
export
default
{
name
:
'xhInput'
,
props
:
{
item
:
{
type
:
Object
,
default
()
{
return
[{}]
}
},
},
data
()
{
return
{
value
:
''
,
type
:
'text'
,
border
:
true
,
}
}
}
</
script
>
<
style
>
</
style
>
src/config/index.js
0 → 100644
View file @
65babb96
//易观方舟
let
argo
=
{
appkey
:
"5f2ac5996f36c714"
,
open
:
true
,
/*
0 关闭调试模式(默认)。类型:Number。
1 开启调试模式,数据不入库。类型:Number。
2 开启调试模式,数据入库。类型:Number。
*/
debugMode
:
0
,
autoTrack
:
true
,
uploadURL
:
'https://argo.banshouhui.com/'
}
export
{
argo
,
}
\ No newline at end of file
src/pages.json
View file @
65babb96
...
@@ -14,16 +14,11 @@
...
@@ -14,16 +14,11 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"订单"
"navigationBarTitleText"
:
"订单"
}
}
},{
"path"
:
"pages/order/complete"
,
"style"
:
{
"navigationBarTitleText"
:
"订单-完工配置"
}
},
},
{
{
"path"
:
"pages/
study/index
"
,
"path"
:
"pages/
order/complete
"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
学习
"
"navigationBarTitleText"
:
"
订单-完工配置
"
}
}
},
},
{
{
...
@@ -35,7 +30,7 @@
...
@@ -35,7 +30,7 @@
{
{
"path"
:
"pages/login/index"
,
"path"
:
"pages/login/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
我的
"
"navigationBarTitleText"
:
"
授权登录
"
}
}
},
},
{
{
...
@@ -57,60 +52,57 @@
...
@@ -57,60 +52,57 @@
{
{
"path"
:
"pages/learn/index"
,
"path"
:
"pages/learn/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
uni-xue
"
"navigationBarTitleText"
:
"
学习
"
}
}
},
},
{
{
"path"
:
"pages/learn/assessment"
,
"path"
:
"pages/learn/assessment"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"认证介绍"
"navigationBarTitleText"
:
"认证介绍"
}
}
},
},
{
{
"path"
:
"pages/learn/answer"
,
"path"
:
"pages/learn/answer"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"考试答题"
"navigationBarTitleText"
:
"考试答题"
}
}
},
},
{
{
"path"
:
"pages/learn/result"
,
"path"
:
"pages/learn/result"
,
"style"
:{
"style"
:
{
"navigationBarTitleText"
:
"考试结果页"
"navigationBarTitleText"
:
"考试结果页"
}
}
},
},
{
{
"path"
:
"pages/learn/news-details"
,
"path"
:
"pages/learn/news-details"
,
"style"
:{
"style"
:
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
{
{
"path"
:
"pages/learn/curriculum"
,
"path"
:
"pages/learn/curriculum"
,
"style"
:{
"style"
:
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
{
{
"path"
:
"pages/settle/select"
,
"path"
:
"pages/settle/select"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"选择可服务的城市"
,
"navigationBarTitleText"
:
"选择可服务的城市"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
"navigationBarBackgroundColor"
:
"#FFFFFF"
}
}
},
},
{
{
"path"
:
"pages/settle/file-upload"
,
"path"
:
"pages/settle/file-upload"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"图片上传"
"navigationBarTitleText"
:
"图片上传"
}
}
},
},
{
{
"path"
:
"pages/settle/pay-ensure"
,
"path"
:
"pages/settle/pay-ensure"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"缴纳设备押金"
"navigationBarTitleText"
:
"缴纳设备押金"
}
}
},
},
{
{
"path"
:
"pages/settle/prompt"
,
"path"
:
"pages/settle/prompt"
,
...
@@ -119,20 +111,18 @@
...
@@ -119,20 +111,18 @@
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
"disableScroll"
:
true
}
}
},
},
{
{
"path"
:
"pages/settle/web"
,
"path"
:
"pages/settle/web"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"签约页面"
"navigationBarTitleText"
:
"签约页面"
}
}
},
},
{
{
"path"
:
"pages/settle/sign-contract"
,
"path"
:
"pages/settle/sign-contract"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"签约页面"
"navigationBarTitleText"
:
"签约页面"
}
}
},
},
{
{
"path"
:
"pages/settle/file"
,
"path"
:
"pages/settle/file"
,
...
@@ -141,18 +131,34 @@
...
@@ -141,18 +131,34 @@
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
"disableScroll"
:
true
}
}
},{
},
{
"path"
:
"pages/exam/start"
,
"path"
:
"pages/exam/start"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"考试"
"navigationBarTitleText"
:
"考试"
}
}
},
},
{
{
"path"
:
"pages/exam/index"
,
"path"
:
"pages/exam/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"入驻考试"
"navigationBarTitleText"
:
"入驻考试"
}
}
},
{
"path"
:
"pages/learn/exam"
,
"style"
:
{
"navigationBarTitleText"
:
"在线考试"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
}
},
{
"path"
:
"pages/learn/course-detail"
,
"style"
:
{
"navigationBarTitleText"
:
"培训视频"
,
"enablePullDownRefresh"
:
false
}
}
}
],
],
"globalStyle"
:
{
"globalStyle"
:
{
...
@@ -166,7 +172,8 @@
...
@@ -166,7 +172,8 @@
"selectedColor"
:
"#007AFF"
,
"selectedColor"
:
"#007AFF"
,
"borderStyle"
:
"black"
,
"borderStyle"
:
"black"
,
"backgroundColor"
:
"#F8F8F8"
,
"backgroundColor"
:
"#F8F8F8"
,
"list"
:
[{
"list"
:
[
{
"pagePath"
:
"pages/index/index"
,
"pagePath"
:
"pages/index/index"
,
"iconPath"
:
"static/logo.png"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
...
@@ -177,12 +184,14 @@
...
@@ -177,12 +184,14 @@
"iconPath"
:
"static/logo.png"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"text"
:
"订单"
"text"
:
"订单"
},
{
},
{
"pagePath"
:
"pages/learn/index"
,
"pagePath"
:
"pages/learn/index"
,
"iconPath"
:
"static/logo.png"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"text"
:
"学习"
"text"
:
"学习"
},
{
},
{
"pagePath"
:
"pages/mine/index"
,
"pagePath"
:
"pages/mine/index"
,
"iconPath"
:
"static/logo.png"
,
"iconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
"selectedIconPath"
:
"static/logo.png"
,
...
@@ -192,35 +201,42 @@
...
@@ -192,35 +201,42 @@
},
},
"condition"
:
{
//模式配置,仅开发期间生效
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[{
"list"
:
[
{
"name"
:
"自营平台"
,
//模式名称
"name"
:
"自营平台"
,
//模式名称
"path"
:
"pages/index/index"
,
//启动页面,必选
"path"
:
"pages/index/index"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},
{
"name"
:
"入驻首页"
,
"name"
:
"入驻首页"
,
"path"
:
"pages/settle/index"
,
"path"
:
"pages/settle/index"
,
"query"
:
""
"query"
:
""
},{
},
{
"name"
:
"基本信息"
,
//模式名称
"name"
:
"基本信息"
,
//模式名称
"path"
:
"pages/settle/base"
,
//启动页面,必选
"path"
:
"pages/settle/base"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},
{
"name"
:
"入驻提示"
,
//模式名称
"name"
:
"入驻提示"
,
//模式名称
"path"
:
"pages/settle/prompt"
,
//启动页面,必选
"path"
:
"pages/settle/prompt"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},
{
"name"
:
"资料信息"
,
//模式名称
"name"
:
"资料信息"
,
//模式名称
"path"
:
"pages/settle/file"
,
//启动页面,必选
"path"
:
"pages/settle/file"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},
{
"name"
:
"缴纳保证金"
,
//模式名称
"name"
:
"缴纳保证金"
,
//模式名称
"path"
:
"pages/settle/pay-ensure"
,
//启动页面,必选
"path"
:
"pages/settle/pay-ensure"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},
{
"name"
:
"订单 - 完工配置"
,
//模式名称
"name"
:
"订单 - 完工配置"
,
//模式名称
"path"
:
"pages/order/complete"
,
//启动页面,必选
"path"
:
"pages/order/complete"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}]
}
}
]
}
}
}
\ No newline at end of file
src/pages/index/index.vue
View file @
65babb96
<
template
>
<
template
>
<view
class=
"content"
>
<view
class=
"content"
>
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
@
scroll=
"handleScroll"
<scroll-view
refresher-enabled
:refresher-triggered=
"triggered"
@
refresherrefresh=
"onRefresh"
scroll-anchoring
scroll-y
@
refresherrestore=
"onRestore"
@
refresherpulling=
"triggered = true"
>
style=
"height: 100%; width: 100%"
@
scrolltolower=
"reachBottom"
<u-swiper
:height=
"250"
:list=
"list"
:indicator-pos=
"indicatorPos"
:mode=
"mode"
:interval=
"3000"
@
scroll=
"handleScroll"
@
click=
"clickSwiper"
>
refresher-enabled
:refresher-triggered=
"triggered"
@
refresherrefresh=
"onRefresh"
scroll-anchoring
@
refresherrestore=
"onRestore"
@
refresherpulling=
"triggered = true"
>
<u-swiper
:height=
"250"
:list=
"list"
:indicator-pos=
"indicatorPos"
:mode=
"mode"
:interval=
"3000"
@
click=
"clickSwiper"
>
</u-swiper>
</u-swiper>
<view>
<view>
<text
class=
"title"
>
最新消息
</text>
<text
class=
"title"
>
最新消息
</text>
...
@@ -22,10 +36,12 @@
...
@@ -22,10 +36,12 @@
<!-- 入驻成功之后显示推荐订单列表 -->
<!-- 入驻成功之后显示推荐订单列表 -->
<view
v-if=
"status == 7 && orderList.length > 0"
>
<view
v-if=
"status == 7 && orderList.length > 0"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<OrderCell
:orderData=
"item"
>
<OrderCell
:orderData=
"item"
>
</OrderCell>
</OrderCell>
</view>
</view>
<u-loadmore
:status=
"currentLoadStatus"
bgColor=
"#f2f2f2"
></u-loadmore>
<u-loadmore
:status=
"currentLoadStatus"
bgColor=
"#f2f2f2"
></u-loadmore>
</view>
</view>
<!-- 入驻成功之后无推荐订单 -->
<!-- 入驻成功之后无推荐订单 -->
<view
v-else-if=
"status == 7 && orderList.length
<
=
0
"
>
<view
v-else-if=
"status == 7 && orderList.length
<
=
0
"
>
...
@@ -33,9 +49,16 @@
...
@@ -33,9 +49,16 @@
</view>
</view>
<!-- 入驻前-->
<!-- 入驻前-->
<view
v-else-if=
"loaded"
>
<view
v-else-if=
"loaded"
>
<text
class=
"title"
>
当前订单
{{
count
}}
笔\n入驻通过后,平台将向您推荐订单
</text>
<text
class=
"title"
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
>
当前订单
{{
count
}}
笔\n入驻通过后,平台将向您推荐订单
</text
:custom-style=
"buttonStyle"
>
>
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
:custom-style=
"buttonStyle"
>
立即入驻
立即入驻
</u-button>
</u-button>
</view>
</view>
...
@@ -46,69 +69,74 @@
...
@@ -46,69 +69,74 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
util
from
'@/utils/util.js'
;
import
util
from
"@/utils/util.js"
;
const
app
=
getApp
();
const
app
=
getApp
();
import
OrderCell
from
'@/components/order/index.vue'
import
OrderCell
from
"@/components/order/index.vue"
;
export
default
{
export
default
{
components
:
{
components
:
{
OrderCell
OrderCell
,
},
},
data
()
{
data
()
{
return
{
return
{
status
:
0
,
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
status
:
0
,
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
triggered
:
false
,
triggered
:
false
,
list
:
[{
list
:
[
image
:
'https://cdn.uviewui.com/uview/swiper/1.jpg'
,
{
image
:
"https://cdn.uviewui.com/uview/swiper/1.jpg"
,
},
},
{
{
image
:
'https://cdn.uviewui.com/uview/swiper/2.jpg'
,
image
:
"https://cdn.uviewui.com/uview/swiper/2.jpg"
,
},
},
{
{
image
:
'https://cdn.uviewui.com/uview/swiper/3.jpg'
,
image
:
"https://cdn.uviewui.com/uview/swiper/3.jpg"
,
}
},
],
],
title
:
false
,
title
:
false
,
mode
:
'round'
,
mode
:
"round"
,
indicatorPos
:
'bottomCenter'
,
indicatorPos
:
"bottomCenter"
,
title
:
'Hello'
,
title
:
"Hello"
,
loaded
:
false
,
loaded
:
false
,
count
:
0
,
// 推荐订单数量
count
:
0
,
// 推荐订单数量
messageList
:
[{
messageList
:
[
{
id
:
1234
,
id
:
1234
,
type
:
''
,
type
:
""
,
level
:
''
,
level
:
""
,
title
:
''
,
title
:
""
,
url
:
''
,
url
:
""
,
body
:
'好消息'
,
body
:
"好消息"
,
},
{
},
{
id
:
1234
,
id
:
1234
,
type
:
''
,
type
:
""
,
level
:
''
,
level
:
""
,
title
:
''
,
title
:
""
,
url
:
''
,
url
:
""
,
body
:
'好消息'
,
body
:
"好消息"
,
},
{
},
{
id
:
1234
,
id
:
1234
,
type
:
''
,
type
:
""
,
level
:
''
,
level
:
""
,
title
:
''
,
title
:
""
,
url
:
''
,
url
:
""
,
body
:
'好消息'
,
body
:
"好消息"
,
}],
},
loadStatus
:
[
'more'
,
'loading'
,
'noMore'
],
],
currentLoadStatus
:
'loading'
,
loadStatus
:
[
"more"
,
"loading"
,
"noMore"
],
currentLoadStatus
:
"loading"
,
orderList
:
[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}],
orderList
:
[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}],
bottomLoading
:
false
bottomLoading
:
false
,
}
};
},
},
computed
:
{
computed
:
{
buttonStyle
()
{
buttonStyle
()
{
return
{
return
{
'width'
:
'300rpx'
,
width
:
"300rpx"
,
}
};
}
},
},
},
onLoad
()
{
onLoad
()
{
this
.
_freshing
=
false
;
this
.
_freshing
=
false
;
...
@@ -118,28 +146,28 @@
...
@@ -118,28 +146,28 @@
// 每次进入页面都刷新入驻状态
// 每次进入页面都刷新入驻状态
if
(
app
.
globalData
.
token
)
{
if
(
app
.
globalData
.
token
)
{
// 获取是否显示入驻按钮
// 获取是否显示入驻按钮
this
.
initSettleInfo
()
this
.
initSettleInfo
();
}
}
},
},
methods
:
{
methods
:
{
async
initSettleInfo
()
{
async
initSettleInfo
()
{
if
(
this
.
status
==
7
)
return
if
(
this
.
status
==
7
)
return
;
const
callBack
=
(
vm
,
result
)
=>
{
const
callBack
=
(
vm
,
result
)
=>
{
// 后台自动判断入驻流程是否完成,前台通过status确定状态
// 后台自动判断入驻流程是否完成,前台通过status确定状态
if
(
result
&&
result
.
record
)
{
if
(
result
&&
result
.
record
)
{
vm
.
loaded
=
true
vm
.
loaded
=
true
;
vm
.
status
=
result
.
record
.
status
vm
.
status
=
result
.
record
.
status
;
// vm.status = 1
// vm.status = 1
}
}
}
};
await
app
.
getBaseInfo
(
this
,
callBack
)
await
app
.
getBaseInfo
(
this
,
callBack
);
},
},
onRefresh
()
{
onRefresh
()
{
if
(
this
.
_freshing
)
return
;
if
(
this
.
_freshing
)
return
;
this
.
_freshing
=
true
;
this
.
_freshing
=
true
;
// 获取入驻状态
// 获取入驻状态
this
.
initSettleInfo
()
this
.
initSettleInfo
();
// 获取推荐订单及数量
// 获取推荐订单及数量
// ....
// ....
...
@@ -147,83 +175,83 @@
...
@@ -147,83 +175,83 @@
// 数据加载完成更新入驻状态和推荐列表
// 数据加载完成更新入驻状态和推荐列表
this
.
triggered
=
false
;
this
.
triggered
=
false
;
this
.
_freshing
=
false
;
this
.
_freshing
=
false
;
},
1000
)
},
1000
);
},
},
onRestore
()
{
onRestore
()
{
this
.
triggered
=
'restore'
;
this
.
triggered
=
"restore"
;
},
},
reachBottom
()
{
reachBottom
()
{
console
.
log
(
'-----bottom will-----'
)
console
.
log
(
"-----bottom will-----"
);
if
(
this
.
bottomLoading
||
this
.
currentLoadStatus
==
this
.
loadStatus
[
2
])
{
if
(
this
.
bottomLoading
||
this
.
currentLoadStatus
==
this
.
loadStatus
[
2
])
{
return
return
;
}
}
console
.
log
(
'-----bottom did-----'
)
console
.
log
(
"-----bottom did-----"
);
this
.
bottomLoading
=
true
this
.
bottomLoading
=
true
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// 加载更多数据
// 加载更多数据
// ...
// ...
this
.
orderList
.
push
(...[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}])
this
.
orderList
.
push
(...[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}]);
// 加载完成
// 加载完成
this
.
currentLoadStatus
=
false
/*是否还有*/
?
this
.
loadStatus
[
1
]
:
this
.
loadStatus
[
2
]
this
.
currentLoadStatus
=
false
/*是否还有*/
this
.
$nextTick
(
function
()
{
?
this
.
loadStatus
[
1
]
this
.
bottomLoading
=
false
:
this
.
loadStatus
[
2
];
})
this
.
$nextTick
(
function
()
{
this
.
bottomLoading
=
false
;
});
},
1000
);
},
1000
);
},
},
clickSwiper
(
index
)
{
clickSwiper
(
index
)
{},
},
handleScroll
()
{
handleScroll
()
{
console
.
log
(
'-----scroll-------'
)
console
.
log
(
"-----scroll-------"
);
},
},
immediatelyIn
()
{
immediatelyIn
()
{
if
(
util
.
getToken
())
{
if
(
util
.
getToken
())
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
this
.
status
>
0
?
'/pages/settle/prompt'
:
'/pages/settle/index'
url
:
this
.
status
>
0
?
"/pages/settle/prompt"
:
"/pages/settle/index"
,
})
});
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'pages/login/index'
url
:
"pages/login/index"
,
});
});
}
}
}
},
}
},
}
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.content
{
.content
{
height
:
100vh
;
height
:
100vh
;
}
}
.logo
{
.logo
{
height
:
200
rpx
;
height
:
200
rpx
;
width
:
100%
;
width
:
100%
;
margin
:
0
rpx
auto
50
rpx
auto
;
margin
:
0
rpx
auto
50
rpx
auto
;
}
}
.text-area
{
.text-area
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.title
{
.title
{
font-size
:
36
rpx
;
font-size
:
36
rpx
;
color
:
#8f8f94
;
color
:
#8f8f94
;
}
}
.sticky
{
.sticky
{
height
:
120
rpx
;
height
:
120
rpx
;
background-color
:
#2979ff
;
background-color
:
#2979ff
;
color
:
#fff
;
color
:
#fff
;
padding
:
24
rpx
;
padding
:
24
rpx
;
text-align
:
left
;
text-align
:
left
;
}
}
.order-view
{
.order-view
{
text-align
:
center
;
text-align
:
center
;
}
}
</
style
>
</
style
>
src/pages/learn/course-detail.vue
0 → 100644
View file @
65babb96
<
template
>
<view>
<view
class=
"uni-padding-wrap uni-common-mt"
>
<view><video
object-fit=
"cover"
class=
"course-video"
id=
"courseVideo"
:src=
"courseSrc"
@
error=
"videoErrorCallback"
controls
></video></view>
<uni-group>
<view
class=
"course-title"
>
{{
courseTitle
}}
</view>
<view
class=
"course-desc"
>
{{
courseDesc
}}
</view>
</uni-group>
</view>
</view>
</
template
>
<
script
>
let
app
=
getApp
();
export
default
{
data
()
{
return
{
courseId
:
''
,
courseStatus
:
0
,
courseSrc
:
''
,
courseTitle
:
''
,
courseDesc
:
''
,
};
},
onLoad
(
e
)
{
if
(
e
)
{
if
(
e
.
courseId
)
{
this
.
courseId
=
e
.
courseId
;
}
if
(
e
.
id
)
{
this
.
courseId
=
e
.
courseId
;
this
.
courseSrc
=
app
.
globalData
.
service_standard
[
e
.
id
].
url
;
this
.
courseTitle
=
app
.
globalData
.
service_standard
[
e
.
id
].
title
;
this
.
courseDesc
=
app
.
globalData
.
service_standard
[
e
.
id
].
desc
;
this
.
changeCourseStatus
();
}
if
(
e
.
status
)
{
this
.
courseStatus
=
e
.
status
;
}
}
},
onReady
:
function
(
res
)
{
// #ifndef MP-ALIPAY
this
.
videoContext
=
uni
.
createVideoContext
(
'courseVideo'
);
// #endif
},
methods
:
{
videoErrorCallback
:
function
(
e
)
{
uni
.
showModal
({
content
:
e
.
target
.
errMsg
,
showCancel
:
false
});
},
getRandomColor
:
function
()
{
const
rgb
=
[];
for
(
let
i
=
0
;
i
<
3
;
++
i
)
{
let
color
=
Math
.
floor
(
Math
.
random
()
*
256
).
toString
(
16
);
color
=
color
.
length
==
1
?
'0'
+
color
:
color
;
rgb
.
push
(
color
);
}
return
'#'
+
rgb
.
join
(
''
);
},
changeCourseStatus
()
{
let
that
=
this
if
(
that
.
courseId
)
{
that
.
$u
.
api
.
saveCourseRate
({
courseId
:
that
.
courseId
}).
then
(
res
=>
{
debugger
if
(
res
.
code
==
200
)
{
// uni.navigateBack({delta: 1})
uni
.
navigateTo
({
url
:
"/pages/learn/exam"
})
}
else
{
uni
.
showToast
({
icon
:
"none"
,
title
:
"更新课程状态失败"
})
}
}).
catch
(
e
=>
{
})
}
else
{
uni
.
showToast
({
title
:
"课程ID为空,请重新选择课程"
})
}
},
}
};
</
script
>
<
style
lang=
"scss"
>
.course-video
{
width
:
750rpx
;
}
.course-title
{
font-size
:
36rpx
;
font-weight
:
700
;
padding
:
80rpx
60rpx
40rpx
60rpx
;
}
.course-desc
{
margin-left
:
60rpx
;
}
</
style
>
src/pages/learn/exam.vue
0 → 100644
View file @
65babb96
<
template
>
<view
class=
"exam-wrap"
>
<Settle
:index=
"3"
>
<view
class=
"exam-tips"
><u-alert-tips
:show-icon=
"true"
class=
"exam-tips"
type=
"warning"
:title=
"tipsTitle"
:description=
"tipsDescription"
></u-alert-tips></view>
<view
class=
"exam-course"
>
<u-card
margin=
"20rpx 0rpx 30rpx 0rpx"
:border=
"false"
:border-radius=
"cardRadius"
>
<view
class=
"exam-head"
slot=
"head"
>
师傅接单教程
</view>
<view
class=
"exam-body"
slot=
"body"
>
<u-cell-group
:border=
"false"
>
<u-cell-item
v-for=
"(item, key) in tutorials"
:key=
"key"
icon=
"play-circle"
:border-bottom=
"false"
:title=
"item.title"
:value=
"item.value"
:value-style=
"item.courseActive"
@
click=
"viewCourse(item)"
></u-cell-item>
</u-cell-group>
</view>
</u-card>
</view>
<view
class=
"exam-course"
>
<u-card
margin=
"0rpx"
:border=
"false"
:border-radius=
"cardRadius"
>
<view
class=
"exam-head"
slot=
"head"
>
师傅接单考试
</view>
<uni-group
slot=
"body"
>
<view>
总共20题,每题5分,答题时间不超过40分钟
</view>
<view>
请认真对待,预祝顺利通过考试!
</view>
</uni-group>
</u-card>
</view>
<view
class=
"content-gap"
></view>
</Settle>
<view
class=
"bottom-fix-btn"
>
<view
class=
"btn-block"
><u-button
type=
"primary"
shape=
"circle"
>
去考试
</u-button></view>
</view>
</view>
</
template
>
<
script
>
import
Settle
from
'@/components/settle/index.vue'
;
let
app
=
getApp
()
export
default
{
components
:
{
Settle
},
data
()
{
return
{
cardRadius
:
12
,
tipsTitle
:
'提示:'
,
// 简单使用固定培训视频
tutorials
:
[
{
id
:
'Course1'
,
courseId
:
1
,
title
:
''
,
value
:
'已查看'
,
courseActive
:
{},
status
:
1
,
url
:
''
},
{
id
:
'Course2'
,
courseId
:
2
,
title
:
''
,
value
:
'未查看'
,
courseActive
:
{},
status
:
0
,
url
:
''
},
{
id
:
'Course3'
,
courseId
:
3
,
title
:
''
,
value
:
'未查看'
,
courseActive
:
{},
status
:
0
,
url
:
''
}
],
tipsDescription
:
'接单考核可让您快速了解如何使用小程序,建议先查看学习教程'
};
},
computed
:
{
},
onLoad
()
{
this
.
tutorials
.
map
((
item
,
key
)
=>
{
item
[
'url'
]
=
app
.
globalData
.
service_standard
[
item
.
id
].
url
item
[
'title'
]
=
app
.
globalData
.
service_standard
[
item
.
id
].
title
item
[
'value'
]
=
item
[
'status'
]
?
'已查看'
:
'未查看'
;
item
[
'courseActive'
]
=
item
[
'status'
]
?
{
"color"
:
"#2979ff"
}
:
{
"color"
:
"#ff0000"
}
})
this
.
loadLearnData
();
},
methods
:
{
loadLearnData
()
{
let
that
=
this
;
that
.
$u
.
api
.
listOrderingTutorials
()
.
then
(
res
=>
{
const
results
=
res
.
data
;
if
(
res
.
status
==
200
&&
results
&&
results
.
length
>
0
)
{
that
.
tutorials
.
forEach
((
data
,
i
)
=>
{
if
(
results
.
hasOwnProperty
(
data
.
id
))
{
data
.
status
=
results
[
data
.
id
];
data
.
value
=
data
.
status
?
'已查看'
:
'未查看'
;
data
.
courseActive
=
data
.
status
?
{
"color"
:
"#2979ff"
}
:
{
"color"
:
"red"
}
that
.
tutorials
[
i
]
=
data
;
}
});
}
})
.
catch
(
e
=>
{
debugger
;
console
.
log
(
e
,
'loadLearnData'
);
});
},
viewCourse
(
e
)
{
let
that
=
this
;
let
params
=
`id=
${
e
.
id
}
&courseId=
${
e
.
courseId
}
&status=
${
e
.
status
}
`
uni
.
navigateTo
({
url
:
`/pages/learn/course-detail?
${
params
}
`
})
},
}
};
</
script
>
<
style
lang=
"scss"
>
.exam-tips
.u-alert-tips
{
border-radius
:
12rpx
!
important
;
border
:
none
!
important
;
.u-alert-title
{
font-size
:
28rpx
!
important
;
font-weight
:
bold
;
}
}
.exam-wrap
{
background
:
#f4f5f7
;
}
.exam-head
{
font-size
:
36rpx
;
font-weight
:
bold
;
}
.content-gap
{
height
:
1rpx
;
margin-bottom
:
200rpx
;
}
</
style
>
src/pages/login/index.vue
View file @
65babb96
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
<image
class=
"noticeImage"
:src=
"icon_auth_notice_new"
mode=
""
></image>
<image
class=
"noticeImage"
:src=
"icon_auth_notice_new"
mode=
""
></image>
</view>
</view>
<view
class=
"noticeTitleView"
>
<view
class=
"noticeTitleView"
>
<text
class=
"noticeTitle"
>
{{
noticeTitle
}}
</text>
<text
class=
"noticeTitle"
v-if=
"needAuth"
>
{{
authNoticeTitle
}}
</text>
<text
class=
"noticeTitle"
v-else
>
{{
suginNoticeTitle
}}
</text>
</view>
</view>
<button
class=
"loginBtn"
v-if=
"needAuth"
lang=
"zh_CN"
@
tap=
"getUserProfile"
>
<button
class=
"loginBtn"
v-if=
"needAuth"
lang=
"zh_CN"
@
tap=
"getUserProfile"
>
<text
class=
"u-font-32 white"
>
立即登录
</text>
<text
class=
"u-font-32 white"
>
立即登录
</text>
...
@@ -35,13 +36,14 @@ export default {
...
@@ -35,13 +36,14 @@ export default {
icon_notice
:
''
,
icon_notice
:
''
,
TimeID
:
-
1
,
TimeID
:
-
1
,
icon_auth_notice_new
:
''
,
icon_auth_notice_new
:
''
,
noticeTitle
:
'申请获得您的公开信息(昵称,头像等)以便于为您提供更好的服务'
,
authNoticeTitle
:
'申请获得您的公开信息(昵称,头像等)以便于为您提供更好的服务'
,
suginNoticeTitle
:
'申请获得您的公开信息(昵称,头像等)以便于为您提供更好的服务'
,
}
}
},
},
onLoad
()
{
onLoad
()
{
// getApp()
.trackPage('授权登录页')
app
.
trackPage
(
'授权登录页'
)
// this.icon_notice = getApp()
.globalData.icon_auth_notice
this
.
icon_notice
=
app
.
globalData
.
icon_auth_notice
// this.icon_auth_notice_new = getApp()
.globalData.icon_auth_notice_new
this
.
icon_auth_notice_new
=
app
.
globalData
.
icon_auth_notice_new
},
},
onShow
()
{
onShow
()
{
app
.
globalData
.
jumpLoginStatus
=
true
app
.
globalData
.
jumpLoginStatus
=
true
...
@@ -101,6 +103,10 @@ export default {
...
@@ -101,6 +103,10 @@ export default {
signupLogin
(
e
)
{
signupLogin
(
e
)
{
var
that
=
this
var
that
=
this
debugger
console
.
log
(
e
.
detail
.
errMsg
)
console
.
log
(
e
.
detail
.
iv
)
console
.
log
(
e
.
detail
.
encryptedData
)
if
(
!
e
||
!
e
.
detail
||
e
.
detail
.
errMsg
.
indexOf
(
'user deny'
)
>
-
1
)
{
if
(
!
e
||
!
e
.
detail
||
e
.
detail
.
errMsg
.
indexOf
(
'user deny'
)
>
-
1
)
{
wx
.
showModal
({
wx
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
...
@@ -143,6 +149,8 @@ export default {
...
@@ -143,6 +149,8 @@ export default {
goBackPage
()
{
goBackPage
()
{
let
pages
=
getCurrentPages
();
let
pages
=
getCurrentPages
();
if
(
pages
.
length
)
{
if
(
pages
.
length
)
{
let
index
=
pages
.
length
-
1
;
if
(
index
)
{
let
prevPage
=
pages
[
pages
.
length
-
1
];
//上一个页面
let
prevPage
=
pages
[
pages
.
length
-
1
];
//上一个页面
if
(
prevPage
&&
prevPage
.
$vm
)
{
if
(
prevPage
&&
prevPage
.
$vm
)
{
prevPage
.
$vm
.
isRefresh
=
true
;
prevPage
.
$vm
.
isRefresh
=
true
;
...
@@ -150,6 +158,11 @@ export default {
...
@@ -150,6 +158,11 @@ export default {
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
})
})
}
else
{
uni
.
navigateTo
({
url
:
'pages/index/index'
})
}
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"pages/mine/index"
url
:
"pages/mine/index"
...
...
src/pages/order/complete.vue
View file @
65babb96
...
@@ -15,9 +15,26 @@
...
@@ -15,9 +15,26 @@
</view>
</view>
</scroll-view>
</scroll-view>
<scroll-view
:scroll-top=
"scrollRightTop"
scroll-y
scroll-with-animation
class=
"right-box"
@
scroll=
"rightScroll"
>
<scroll-view
:scroll-top=
"scrollRightTop"
scroll-y
scroll-with-animation
class=
"right-box"
@
scroll=
"rightScroll"
>
<form-com></form-com>
<!--
<form-com
:item=
"tabbar"
></form-com>
-->
<u-form
:model=
"form"
ref=
"uForm"
>
<template
v-for=
"(groupItem,index) in tabbar"
>
<view
class=
"class-item"
:key=
"index"
>
<view
class=
"title"
>
{{
groupItem
.
name
}}
</view>
<view
class=
"class-bd"
>
<u-form-item
:label-width=
"0"
:required=
"groupItem.required"
v-for=
"(item,itemIndex) in groupItem.foods"
:key=
"itemIndex"
>
<!--
<view
:key=
"index"
>
-->
<view>
{{
item
.
name
}}
</view>
<xh-input></xh-input>
<!--
<xh-input
:item=
"item"
v-if=
"item.fieldsType==='input'"
></xh-input>
-->
<!--
</view>
-->
</u-form-item>
</view>
</view>
</
template
>
</u-form>
<!-- <xh-input></xh-input> -->
<!-- <xh-input></xh-input> -->
<view
class=
"page-view"
>
<!--
<view class="page-view">
<view class="class-item" :id="'item' + index" v-for="(item , index) in tabbar" :key="index">
<view class="class-item" :id="'item' + index" v-for="(item , index) in tabbar" :key="index">
<view class="item-title">
<view class="item-title">
<text>{{item.name}}</text>
<text>{{item.name}}</text>
...
@@ -29,7 +46,7 @@
...
@@ -29,7 +46,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
-->
</scroll-view>
</scroll-view>
</view>
</view>
</view>
</view>
...
@@ -38,7 +55,8 @@
...
@@ -38,7 +55,8 @@
import
classifyData
from
'@/common/classify.data.js'
;
import
classifyData
from
'@/common/classify.data.js'
;
// import allComponents from '@/components/createCom/index.js'
// import allComponents from '@/components/createCom/index.js'
// import XhInput from '@/components/createCom/XhInput.vue'
// import XhInput from '@/components/createCom/XhInput.vue'
import
formCom
from
'./components/formCom.vue'
// import formCom from './components/formCom.vue'
import
XhInput
from
'@/components/createCom/XhInput.vue'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -56,9 +74,8 @@
...
@@ -56,9 +74,8 @@
}
}
},
},
components
:{
components
:
{
// 'xh-input': allComponentsXhInput,
'xh-input'
:
XhInput
,
formCom
,
},
},
created
(){
created
(){
// console.log(allComponents,'allComponents')
// console.log(allComponents,'allComponents')
...
@@ -149,6 +166,7 @@
...
@@ -149,6 +166,7 @@
}).
exec
()
}).
exec
()
})
})
},
},
// 右边菜单滚动
// 右边菜单滚动
async
rightScroll
(
e
)
{
async
rightScroll
(
e
)
{
this
.
oldScrollTop
=
e
.
detail
.
scrollTop
;
this
.
oldScrollTop
=
e
.
detail
.
scrollTop
;
...
...
src/pages/order/components/formCom.vue
View file @
65babb96
<!-- 实现动态组件的绑定 -->
<!-- 实现动态组件的绑定 -->
<
template
>
<
template
>
<view>
<view
class=
"group-list"
>
书籍及
书籍及
<template
v-for=
"(item,index) in list"
>
<u-form
:model=
"form"
ref=
"uForm"
>
<view
:key=
"index"
>
<template
v-for=
"(groupItem,index) in group"
>
<view
class=
"group-item"
>
<!--
<xh-input></xh-input>
-->
<view
class=
"group-title"
:key=
"index"
>
{{
groupItem
.
name
}}
</view>
<!--
<xh-input
v-if=
"item.fieldsType==='input'"
></xh-input>
-->
<view
class=
"group-items"
:key=
"index"
>
<u-form-item
:label-width=
"0"
:required=
"item.required"
v-for=
"(item,itemIndex) in groupItem.foods"
:key=
"index"
>
<!--
<view
:key=
"index"
>
-->
<view>
{{
item
.
name
}}
</view>
<xh-input></xh-input>
<!--
<xh-input
:item=
"item"
v-if=
"item.fieldsType==='input'"
></xh-input>
-->
<!--
</view>
-->
</u-form-item>
</view>
</view>
</view>
<!--
<component
:key=
"contentIndex"
:item=
"contentItem"
:orderId=
"orderId"
:is=
"contentItem.inputType | typeToComponentName"
/>
-->
</
template
>
</
template
>
</u-form>
</view>
</view>
</template>
</template>
...
@@ -29,7 +36,21 @@
...
@@ -29,7 +36,21 @@
import
XhInput
from
'@/components/createCom/XhInput.vue'
import
XhInput
from
'@/components/createCom/XhInput.vue'
export
default
{
export
default
{
components
:
{
components
:
{
// 'xh-input': XhInput,
'xh-input'
:
XhInput
,
},
props
:
{
item
:
{
type
:
Array
,
default
()
{
return
[]
}
},
},
watch
:{
"item"
:
function
(
newVal
){
this
.
group
=
newVal
console
.
log
(
this
.
group
,
'this.group'
)
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -43,12 +64,27 @@
...
@@ -43,12 +64,27 @@
key
:
''
,
key
:
''
,
label
:
''
label
:
''
}]
}]
},],
// 完工信息的不同项
group
:
[{
groupName
:
'接入点信息'
,
item
:
[{
fieldsId
:
'基础信息'
,
fieldsType
:
'input'
,
fieldsName
:
'产品规格'
,
fieldsValue
:
''
,
required
:
true
,
fields_options
:
[{
key
:
''
,
label
:
''
}]
},]
}],
}],
configList
:
[{
configList
:
[{
panelName
:
''
,
panelName
:
''
,
panelType
:
''
,
panelType
:
''
,
group
:
[{
group
:
[{
groupName
:
''
,
groupName
:
'
接入点信息
'
,
item
:
[{
item
:
[{
fieldsId
:
'基础信息'
,
fieldsId
:
'基础信息'
,
fieldsType
:
'input'
,
fieldsType
:
'input'
,
...
@@ -62,13 +98,53 @@
...
@@ -62,13 +98,53 @@
}]
}]
}]
}]
}],
}],
form
:
{
name
:
''
,
intro
:
''
,
sex
:
''
},
checkboxList
:
[{
name
:
'苹果'
,
checked
:
false
,
disabled
:
false
},
{
name
:
'雪梨'
,
checked
:
false
,
disabled
:
false
},
{
name
:
'柠檬'
,
checked
:
false
,
disabled
:
false
}
],
radioList
:
[{
name
:
'鲜甜'
,
disabled
:
false
},
{
name
:
'麻辣'
,
disabled
:
false
}
],
radio
:
''
,
switchVal
:
false
}
}
},
},
created
()
{
created
()
{
this
.
group
=
this
.
item
console
.
log
(
this
.
group
,
'this.group'
)
console
.
log
(
XhInput
,
'XhInput'
)
console
.
log
(
XhInput
,
'XhInput'
)
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
lang=
"scss"
scoped
>
.group-list
{
.group-item
{
}
}
</
style
>
</
style
>
src/utils/analysys_paas.js
View file @
65babb96
...
@@ -11,7 +11,7 @@ if (AnalysysAgent) {
...
@@ -11,7 +11,7 @@ if (AnalysysAgent) {
// AnalysysAgent.autoShare = true
// AnalysysAgent.autoShare = true
AnalysysAgent
.
allowTimeCheck
=
true
AnalysysAgent
.
allowTimeCheck
=
true
AnalysysAgent
.
autoTrack
=
true
AnalysysAgent
.
autoTrack
=
true
AnalysysAgent
.
registerSuperProperty
(
"platform"
,
"
take-order
"
);
AnalysysAgent
.
registerSuperProperty
(
"platform"
,
"
self-support
"
);
}
}
// #endif
// #endif
export
{
export
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment