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
6fe9ef63
Commit
6fe9ef63
authored
May 14, 2021
by
Morson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
# Conflicts: # src/pages/order/detail.vue
parents
c0e96cf8
7e136524
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
1283 additions
and
1035 deletions
+1283
-1035
XhFiles.vue
src/components/createCom/XhFiles.vue
+6
-8
customer.vue
src/components/mine/customer.vue
+244
-0
preview.vue
src/components/photo/preview.vue
+7
-2
setting.vue
src/components/photo/setting.vue
+1
-1
standard.vue
src/components/photo/standard.vue
+3
-1
index.vue
src/components/take/index.vue
+1
-1
index.js
src/components/upload/index.js
+1
-1
pages.json
src/pages.json
+0
-1
index.vue
src/pages/index/index.vue
+26
-6
learn.vue
src/pages/index/learn.vue
+837
-821
mine.vue
src/pages/index/mine.vue
+10
-9
answer.vue
src/pages/learn/answer.vue
+7
-4
exam-pass.vue
src/pages/learn/exam-pass.vue
+6
-4
result.vue
src/pages/learn/result.vue
+5
-3
section.vue
src/pages/learn/section.vue
+68
-62
index.vue
src/pages/mine/cert/index.vue
+1
-1
index.vue
src/pages/mine/customer/index.vue
+36
-75
index.vue
src/pages/mine/wallet/index.vue
+1
-1
settlement.vue
src/pages/mine/wallet/settlement.vue
+1
-1
statement.vue
src/pages/mine/wallet/statement.vue
+1
-1
withdraw.vue
src/pages/mine/wallet/withdraw.vue
+1
-1
complete.vue
src/pages/order/complete.vue
+1
-1
detail.vue
src/pages/order/detail.vue
+11
-25
feedback.vue
src/pages/order/feedback.vue
+1
-1
list.vue
src/pages/photo/list.vue
+1
-1
prompt.vue
src/pages/settle/prompt.vue
+1
-1
sign-contract.vue
src/pages/settle/sign-contract.vue
+5
-2
No files found.
src/components/createCom/XhFiles.vue
View file @
6fe9ef63
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</view>
-->
</view>
-->
<view
class=
"pics u-flex u-flex-wrap"
>
<view
class=
"pics u-flex u-flex-wrap"
>
<view
class=
"img-list"
v-for=
"(item,index) in imgList"
:key=
"index"
>
<view
class=
"img-list"
v-for=
"(item,index) in imgList"
:key=
"index"
>
<u-image
class=
"pic"
width=
"160"
height=
"160"
:src=
"item.path
"
:border-radius=
"10"
@
click
.
stop=
"prviewImage(item.path
,index)"
></u-image>
<u-image
class=
"pic"
width=
"160"
height=
"160"
:src=
"item.path
? item.path : item.src + '?imageView2/1/w/100/h/100/q/75'"
:border-radius=
"10"
@
click
.
stop=
"prviewImage(item
,index)"
></u-image>
<view
class=
"icon-del-box"
@
click
.
stop=
"delFile(index)"
>
<view
class=
"icon-del-box"
@
click
.
stop=
"delFile(index)"
>
<view
class=
"icon-del"
></view>
<view
class=
"icon-del"
></view>
<view
class=
"icon-del rotate"
></view>
<view
class=
"icon-del rotate"
></view>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
mounted
()
{
mounted
()
{
if
(
this
.
value
){
if
(
this
.
value
){
this
.
imgList
=
this
.
value
.
map
(
img
=>
{
this
.
imgList
=
this
.
value
.
map
(
img
=>
{
return
{
path
:
img
,
src
:
img
}
return
{
src
:
img
}
})
})
this
.
setValue
()
this
.
setValue
()
}
}
...
@@ -129,18 +129,16 @@
...
@@ -129,18 +129,16 @@
},
},
closeTake
(
val
)
{
closeTake
(
val
)
{
if
(
val
&&
val
.
length
>
0
){
if
(
val
&&
val
.
length
>
0
){
val
.
forEach
((
item
,
index
,
array
)
=>
{
val
.
forEach
(
item
=>
{
item
.
path
=
item
.
key
item
.
src
=
item
.
key
this
.
imgList
.
push
(
item
)
this
.
imgList
.
push
(
item
)
})
})
this
.
setValue
()
this
.
setValue
()
}
}
this
.
takeStatus
=
false
this
.
takeStatus
=
false
},
},
prviewImage
(
url
,
index
)
{
prviewImage
(
item
,
index
)
{
uni
.
previewImage
({
uni
.
previewImage
({
urls
:
[
url
],
urls
:
[
item
.
path
?
item
.
path
:
item
.
src
],
current
:
index
current
:
index
});
});
},
},
...
@@ -157,10 +155,10 @@
...
@@ -157,10 +155,10 @@
this
.
$u
.
api
.
orderStandardItem
(
param
).
then
((
res
)
=>
{
this
.
$u
.
api
.
orderStandardItem
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
&&
res
.
data
.
length
>
0
)
{
if
(
res
.
code
==
200
&&
res
.
data
.
length
>
0
)
{
self
.
currentItemDate
=
res
.
data
[
0
]
self
.
currentItemDate
=
res
.
data
[
0
]
self
.
takeStatus
=
true
}
else
{
}
else
{
console
.
log
(
"获取完工项的拍照标准异常"
,
res
.
data
.
message
)
console
.
log
(
"获取完工项的拍照标准异常"
,
res
.
data
.
message
)
}
}
self
.
takeStatus
=
true
})
})
},
},
getWatermark
(){
getWatermark
(){
...
...
src/components/mine/customer.vue
0 → 100644
View file @
6fe9ef63
<
template
>
<view
class=
"cus-wrap-component"
>
<image
class=
"top-image"
mode=
"widthFix"
:src=
"minekefutuImage"
></image>
<view
class=
"content-view"
>
<view
class=
"title-view"
v-if=
"!isPop"
>
<text
class=
"title-text"
>
客服微信
</text>
<text
v-if=
"isMine"
>
下载二维码添加官方客服微信
</text>
</view>
<u-image
:class=
"['qrcode',
{'is-pop': isPop}]" :src="cusQrcode" mode="widthFix" :fade="true"
duration="450">
<u-loading
slot=
"loading"
></u-loading>
<view
slot=
"error"
style=
"font-size: 24rpx;"
>
加载失败
</view>
</u-image>
<view
v-if=
"isPop"
class=
"pop-tip-view"
>
<text>
请务必添加该微信号,后续工单相关通知均以微信消息形式通知
</text>
</view>
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"download"
:custom-style=
"buttonStyle"
>
点击下载
</u-button>
<view
class=
"bottom-view"
v-if=
"isMine"
>
<view
class=
"line-view"
></view>
<view
class=
"phone-view"
>
<view
class=
"phone-left-view"
>
<text
class=
"phone-text"
>
客服电话
</text>
<text>
{{
phone
}}
</text>
</view>
<image
class=
"phone-image"
:src=
"phoneIcon"
@
click=
"phoneToCustomer"
>
</u-image>
</view>
</view>
<view
v-else-if=
"isExclusive"
class=
"tip-view"
>
<text>
请务必添加该微信号,后续工单相关通知均以微信消息形式通知
</text>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
type
:
{
// exclusive:专属; mine:我的页面客服; pop: 弹窗客服
type
:
String
,
default
:
'mine'
}
},
data
()
{
return
{
};
},
computed
:
{
cusQrcode
()
{
return
process
.
uniEnv
.
qn_base_url
+
'erweima-bg.png'
},
minekefutuImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
this
.
imageName
},
imageName
()
{
return
this
.
isMine
?
'kefufuwu-n.png'
:
'kefutuzs.png'
},
isMine
()
{
// exclusive:专属; mine:我的页面客服; pop: 弹窗客服
return
this
.
type
==
'mine'
},
isPop
()
{
return
this
.
type
==
'pop'
},
isExclusive
()
{
return
this
.
type
==
'exclusive'
},
phoneIcon
()
{
return
process
.
uniEnv
.
qn_base_url
+
'dianhua.png'
},
buttonStyle
()
{
return
{
width
:
"300rpx"
,
height
:
"80rpx"
,
"font-size"
:
"32rpx"
,
"font-weight"
:
"bold"
,
};
},
phone
()
{
return
'0755-81773817'
}
},
methods
:
{
phoneToCustomer
()
{
// 联系客户
uni
.
makePhoneCall
({
phoneNumber
:
this
.
phone
,
//仅为示例
complete
()
{}
});
},
download
()
{
let
self
=
this
uni
.
downloadFile
({
//获得二维码的临时地址
url
:
self
.
cusQrcode
,
success
:
(
result
)
=>
{
if
(
result
.
statusCode
==
200
)
{
uni
.
saveImageToPhotosAlbum
({
filePath
:
result
.
tempFilePath
,
//传入临时地址
success
(
e
)
{
self
.
$u
.
toast
(
'保存成功!'
);
self
.
$emit
(
'click'
)
},
fail
(
res
)
{
if
(
res
.
errMsg
.
indexOf
(
'auth'
)
!=
-
1
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'获取权限失败,请到设置页面开启权限'
,
confirmText
:
'好的'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
uni
.
openSetting
({
success
(
res
)
{
console
.
log
(
res
.
authSetting
)
}
});
}
}
})
}
else
if
(
res
.
errMsg
)
{
self
.
$u
.
toast
(
'保存失败!'
);
}
},
})
}
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
>
.cus-wrap-component
{
background
:
#FFFFFF
;
border-radius
:
12rpx
;
.top-image
{
width
:
100%
;
}
.content-view
{
padding
:
30rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
.title-view
{
font-size
:
24rpx
;
color
:
#666666
;
width
:
100%
;
margin-top
:
10rpx
;
display
:
flex
;
align-items
:
flex-end
;
.title-text
{
font-weight
:
bold
;
font-size
:
32rpx
;
color
:
#333333
;
margin-right
:
30rpx
;
}
}
.qrcode
{
margin-top
:
60rpx
;
margin-bottom
:
60rpx
;
width
:
400rpx
;
height
:
400rpx
;
&
.is-pop
{
width
:
248rpx
;
height
:
248rpx
;
padding
:
24rpx
;
border
:
6rpx
solid
#2272FF
;
border-radius
:
32rpx
;
margin-top
:
10rpx
;
margin-bottom
:
40rpx
;
}
}
.desc
{
margin-top
:
40rpx
;
font-size
:
24rpx
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
24rpx
;
}
.bottom-view
{
width
:
100%
;
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
width
:
100%
;
margin-top
:
46rpx
;
}
.phone-view
{
display
:
flex
;
align-items
:
center
;
width
:
100%
;
justify-content
:
space-between
;
padding
:
40rpx
0
30rpx
0
;
.phone-left-view
{
display
:
flex
;
align-items
:
center
;
color
:
#999999
;
font-size
:
26rpx
;
.phone-text
{
color
:
#333333
;
font-size
:
32rpx
;
font-weight
:
bold
;
margin-right
:
40rpx
;
}
}
.phone-image
{
width
:
84rpx
;
height
:
56rpx
;
}
}
}
.settle-button
{
margin-bottom
:
14rpx
;
}
.pop-tip-view
{
text-align
:
center
;
color
:
#333333
;
font-size
:
28rpx
;
margin
:
0rpx
60rpx
40rpx
60rpx
;
}
.tip-view
{
margin
:
46rpx
60rpx
50rpx
60rpx
;
text-align
:
center
;
color
:
#333333
;
font-size
:
28rpx
;
}
}
}
</
style
>
src/components/photo/preview.vue
View file @
6fe9ef63
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
return
return
}
}
let
path
=
''
let
path
=
''
if
(
photo
.
tempPath
.
origin
){
if
(
photo
.
tempPath
.
origin
&&
photo
.
waterSetting
.
hasOrigin
){
// 保存原图到本地
// 保存原图到本地
path
=
photo
.
tempPath
.
origin
path
=
photo
.
tempPath
.
origin
let
result
=
await
this
.
saveLocal
(
path
)
let
result
=
await
this
.
saveLocal
(
path
)
...
@@ -136,7 +136,12 @@
...
@@ -136,7 +136,12 @@
uni
.
hideLoading
()
uni
.
hideLoading
()
// 当前项的图片显示
// 当前项的图片显示
// 拍照项张数目增加 等于10张
// 拍照项张数目增加 等于10张
photo
.
allImages
.
unshift
(
this
.
fileMaps
[
0
])
photo
.
allImages
.
unshift
(
{
key
:
photo
.
tempPath
.
mixWater
,
src
:
this
.
fileMaps
[
0
].
key
}
)
if
(
photo
.
currentItemLength
<
10
){
if
(
photo
.
currentItemLength
<
10
){
this
.
$emit
(
'changeType'
,
1
)
this
.
$emit
(
'changeType'
,
1
)
}
else
{
}
else
{
...
...
src/components/photo/setting.vue
View file @
6fe9ef63
...
@@ -413,7 +413,7 @@
...
@@ -413,7 +413,7 @@
}
}
.popBtnView
{
.popBtnView
{
margin-top
:
110
rpx
;
margin-top
:
65
rpx
;
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
...
src/components/photo/standard.vue
View file @
6fe9ef63
...
@@ -52,7 +52,9 @@
...
@@ -52,7 +52,9 @@
dx
:
0
,
dx
:
0
,
};
};
},
},
onLoad
()
{},
onLoad
()
{
this
.
$refs
.
tabs
.
setFinishCurrent
(
current
);
},
computed
:
{
computed
:
{
swiperList
()
{
swiperList
()
{
let
list
=
this
.
currentItem
.
images
||
[]
let
list
=
this
.
currentItem
.
images
||
[]
...
...
src/components/take/index.vue
View file @
6fe9ef63
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
</cover-view>
</cover-view>
<canvas
canvas-id=
"canvas"
id=
"photoCanvas"
class=
"canvas"
<canvas
canvas-id=
"canvas"
id=
"photoCanvas"
class=
"canvas"
:style=
"
{'width':750 + 'rpx','height': cameraHeight + 'rpx'}">
</canvas>
:style=
"
{'width':750 + 'rpx','height': cameraHeight + 'rpx'}">
</canvas>
<view
v-
show
=
"standardShow"
class=
"page-mask"
:z-index=
"10000"
>
<view
v-
if
=
"standardShow"
class=
"page-mask"
:z-index=
"10000"
>
<photo-standard
:currentItem=
"currentItem"
/>
<photo-standard
:currentItem=
"currentItem"
/>
<view
class=
"btn-close"
>
<view
class=
"btn-close"
>
<image
@
click=
"closeShadow"
class=
"icon icon-close"
mode=
"aspectFit"
src=
"/static/photo/icon-close.png"
></image>
<image
@
click=
"closeShadow"
class=
"icon icon-close"
mode=
"aspectFit"
src=
"/static/photo/icon-close.png"
></image>
...
...
src/components/upload/index.js
View file @
6fe9ef63
...
@@ -11,7 +11,7 @@ export default {
...
@@ -11,7 +11,7 @@ export default {
};
};
},
},
created
()
{
created
()
{
console
.
log
(
uploader
,
'uploader'
)
//
console.log(uploader,'uploader')
// this.initQiniu()
// this.initQiniu()
},
},
methods
:
{
methods
:
{
...
...
src/pages.json
View file @
6fe9ef63
...
@@ -291,7 +291,6 @@
...
@@ -291,7 +291,6 @@
{
{
"navigationBarTitleText"
:
"订单详情"
,
"navigationBarTitleText"
:
"订单详情"
,
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
//
隐藏系统导航栏
"disableScroll"
:
true
"disableScroll"
:
true
}
}
...
...
src/pages/index/index.vue
View file @
6fe9ef63
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
refresher-background=
"#F4F5F7"
@
refresherpulling=
"triggered = true"
@
refresherrefresh=
"onRefresh"
refresher-background=
"#F4F5F7"
@
refresherpulling=
"triggered = true"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
enable-back-to-top
>
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
enable-back-to-top
>
<TabBarPage
title=
"充电桩自营平台"
>
<TabBarPage
title=
"充电桩自营平台"
>
<image
class=
"banner-image"
:src=
"bannerImage"
></image>
<image
class=
"banner-image"
:src=
"bannerImage"
@
click=
"handleClickBanner"
></image>
<view
class=
"msg-view"
>
<view
class=
"msg-view"
>
<view
class=
"msg-title"
>
最新消息
</view>
<view
class=
"msg-title"
>
最新消息
</view>
...
@@ -67,6 +67,12 @@
...
@@ -67,6 +67,12 @@
<view
class=
"bottom-line-view"
></view>
<view
class=
"bottom-line-view"
></view>
</view>
</view>
</TabBarPage>
</TabBarPage>
<u-popup
border-radius=
"12"
v-model=
"visible"
safe-area-inset-bottom
mode=
"center"
width=
"690rpx"
closeable
:mask-close-able=
"false"
close-icon-color=
"#FFFFFF"
>
<view
class=
"order-pop-view"
>
<Customer
type=
"pop"
@
click=
"handleDownload"
></Customer>
</view>
</u-popup>
</scroll-view>
</scroll-view>
</template>
</template>
...
@@ -76,12 +82,14 @@
...
@@ -76,12 +82,14 @@
import
NoOrder
from
"@/components/order/noOrder.vue"
import
NoOrder
from
"@/components/order/noOrder.vue"
const
app
=
getApp
();
const
app
=
getApp
();
import
OrderCell
from
"@/components/order/index.vue"
;
import
OrderCell
from
"@/components/order/index.vue"
;
import
Customer
from
"@/components/mine/customer.vue"
export
default
{
export
default
{
components
:
{
components
:
{
OrderCell
,
OrderCell
,
TabBarPage
,
TabBarPage
,
NoOrder
NoOrder
,
Customer
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -103,7 +111,8 @@
...
@@ -103,7 +111,8 @@
},
},
waitInit
:
false
,
// 当token为空时,等待自动登录结束
waitInit
:
false
,
// 当token为空时,等待自动登录结束
triggered
:
false
,
triggered
:
false
,
_freshing
:
false
,
_freshing
:
false
,
visible
:
false
,
};
};
},
},
watch
:
{
watch
:
{
...
@@ -138,12 +147,15 @@
...
@@ -138,12 +147,15 @@
return
process
.
uniEnv
.
qn_base_url
+
'weiruzhu.png'
return
process
.
uniEnv
.
qn_base_url
+
'weiruzhu.png'
},
},
},
},
onLoad
()
{
onLoad
(
e
)
{
this
.
_freshing
=
false
;
this
.
_freshing
=
false
;
if
(
this
.
vuex_token
)
{
if
(
this
.
vuex_token
)
{
this
.
getOrderCount
()
this
.
getOrderCount
()
}
else
{
}
else
{
this
.
waitInit
=
true
this
.
waitInit
=
true
}
if
(
e
&&
e
.
visible
)
{
this
.
visible
=
e
.
visible
}
}
},
},
onShow
()
{
onShow
()
{
...
@@ -152,7 +164,7 @@
...
@@ -152,7 +164,7 @@
if
(
this
.
vuex_token
)
{
if
(
this
.
vuex_token
)
{
this
.
initSettleInfo
();
this
.
initSettleInfo
();
}
}
this
.
getLocation
()
this
.
getLocation
()
},
},
// onPullDownRefresh() {
// onPullDownRefresh() {
// console.log('------下拉刷新------')
// console.log('------下拉刷新------')
...
@@ -384,7 +396,15 @@
...
@@ -384,7 +396,15 @@
res
.
eventChannel
.
emit
(
'acceptDataFromLearn'
,
item
)
res
.
eventChannel
.
emit
(
'acceptDataFromLearn'
,
item
)
}
}
});
});
}
},
handleClickBanner
()
{
uni
.
navigateTo
({
url
:
"/pages/mine/customer/index"
+
'?type=exclusive'
,
});
},
handleDownload
()
{
this
.
visible
=
false
}
},
},
};
};
</
script
>
</
script
>
...
...
src/pages/index/learn.vue
View file @
6fe9ef63
...
@@ -4,8 +4,7 @@
...
@@ -4,8 +4,7 @@
<text
class=
"title-view"
>
学习
</text>
<text
class=
"title-view"
>
学习
</text>
</u-navbar>
</u-navbar>
<image
:src=
"bannerImage"
mode=
""
class=
"banner"
></image>
<image
:src=
"bannerImage"
mode=
""
class=
"banner"
></image>
<u-tabs-swiper
bg-color=
"#F4F5F7"
inactive-color=
"#999999"
font-size=
"28"
ref=
"uTabs"
:list=
"tabs"
<u-tabs-swiper
bg-color=
"#F4F5F7"
inactive-color=
"#999999"
font-size=
"28"
ref=
"uTabs"
:list=
"tabs"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
:bar-width=
"52"
swiperWidth=
"750"
></u-tabs-swiper>
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
:bar-width=
"52"
swiperWidth=
"750"
></u-tabs-swiper>
<swiper
class=
"swiper_group"
:current=
"swiperCurrent"
@
animationfinish=
"animationfinish"
>
<swiper
class=
"swiper_group"
:current=
"swiperCurrent"
@
animationfinish=
"animationfinish"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
v-show=
"current == 0"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
v-show=
"current == 0"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
>
...
@@ -23,10 +22,7 @@
...
@@ -23,10 +22,7 @@
</scroll-view>
</scroll-view>
</swiper-item>
</swiper-item>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
v-show=
"current == 1"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
v-show=
"current == 1"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
@
scrolltolower=
"onReachBottom"
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
@
scrolltolower=
"onReachBottom"
scroll-y=
"true"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
refresherpulling=
"onPulling"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
>
scroll-y=
"true"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
refresherpulling=
"onPulling"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
>
<view
v-for=
"item in list"
:key=
"item.id"
class=
"notice"
@
click=
"bbb(item)"
>
<view
v-for=
"item in list"
:key=
"item.id"
class=
"notice"
@
click=
"bbb(item)"
>
<view
class=
"n-head"
>
<view
class=
"n-head"
>
{{
item
.
title
}}
{{
item
.
title
}}
...
@@ -61,11 +57,9 @@
...
@@ -61,11 +57,9 @@
</view>
</view>
</view>
</view>
<view
class=
"line-percent u-margin-top-35"
>
<view
class=
"line-percent u-margin-top-35"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[0].percent"
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[0].percent"
:show-percent=
"false"
>
:show-percent=
"false"
>
</u-line-progress>
</u-line-progress>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[0].percent}"
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[0].percent}" v-text="courselist[0].status">
</text>
v-text="courselist[0].status">
</text>
</view>
</view>
</view>
</view>
<view
class=
"learn-class1 u-margin-left-30"
@
click=
"goPlay(courselist[1])"
>
<view
class=
"learn-class1 u-margin-left-30"
@
click=
"goPlay(courselist[1])"
>
...
@@ -80,11 +74,9 @@
...
@@ -80,11 +74,9 @@
</view>
</view>
</view>
</view>
<view
class=
"line-percent u-margin-top-35"
>
<view
class=
"line-percent u-margin-top-35"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[1].percent"
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[1].percent"
:show-percent=
"false"
>
:show-percent=
"false"
>
</u-line-progress>
</u-line-progress>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[1].percent}"
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[1].percent}" v-text="courselist[1].status">
</text>
v-text="courselist[1].status">
</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -101,13 +93,10 @@
...
@@ -101,13 +93,10 @@
{{
courselist
[
2
].
desc
}}
{{
courselist
[
2
].
desc
}}
</view>
</view>
</view>
</view>
<view
class=
"line-percent u-margin-top-35"
<view
class=
"line-percent u-margin-top-35"
style=
"display:flex;justify-content: space-between;"
>
style=
"display:flex;justify-content: space-between;"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[2].percent"
:show-percent=
"false"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[2].percent"
:show-percent=
"false"
>
</u-line-progress>
</u-line-progress>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[2].percent}"
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[2].percent}" v-text="courselist[2].status">
</text>
v-text="courselist[2].status">
</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -128,8 +117,7 @@
...
@@ -128,8 +117,7 @@
</view>
</view>
<view
class=
"u-font-24"
style=
"display:flex;justify-content: space-between;"
>
<view
class=
"u-font-24"
style=
"display:flex;justify-content: space-between;"
>
<text
class=
"font-color-999999"
>
{{
examList
[
0
].
condition
}}
</text>
<text
class=
"font-color-999999"
>
{{
examList
[
0
].
condition
}}
</text>
<text
class=
"font-default-exam-color"
<text
class=
"font-default-exam-color"
:class=
"
{'font-active-color':examList[0].isComplete}">
:class=
"
{'font-active-color':examList[0].isComplete}">
{{
examList
[
0
].
status
}}
{{
examList
[
0
].
status
}}
</text>
</text>
</view>
</view>
...
@@ -146,8 +134,7 @@
...
@@ -146,8 +134,7 @@
</view>
</view>
<view
class=
"u-font-24"
style=
"display:flex;justify-content: space-between;"
>
<view
class=
"u-font-24"
style=
"display:flex;justify-content: space-between;"
>
<text
class=
"font-color-999999"
>
{{
examList
[
1
].
condition
}}
</text>
<text
class=
"font-color-999999"
>
{{
examList
[
1
].
condition
}}
</text>
<text
class=
"font-default-exam-color"
<text
class=
"font-default-exam-color"
:class=
"
{'font-active-color':examList[1].isComplete}">
:class=
"
{'font-active-color':examList[1].isComplete}">
{{
examList
[
1
].
status
}}
</text>
{{
examList
[
1
].
status
}}
</text>
</view>
</view>
</view>
</view>
...
@@ -160,340 +147,421 @@
...
@@ -160,340 +147,421 @@
</
template
>
</
template
>
<
script
>
<
script
>
var
json
=
{
var
json
=
{
"dev"
:
[{
dev
:
[
"title"
:
"服务规范"
,
{
"desc"
:
"为用户提供更好服务,自己赚更多钱"
,
title
:
"服务规范"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
desc
:
"为用户提供更好服务,自己赚更多钱"
,
"percent"
:
0
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
"status"
:
""
,
percent
:
0
,
"id"
:
173
,
status
:
""
,
"sectionId"
:
""
id
:
173
,
},
sectionId
:
""
,
{
},
"title"
:
"接单规范"
,
{
"desc"
:
"快速学习,使用APP 接单、抢单"
,
title
:
"接单规范"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
desc
:
"快速学习,使用APP 接单、抢单"
,
"percent"
:
0
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
"status"
:
""
,
percent
:
0
,
"id"
:
173
,
status
:
""
,
"sectionId"
:
""
id
:
173
,
},
sectionId
:
""
,
{
},
"title"
:
"从0-1学习充电桩安装服务"
,
{
"desc"
:
"让你全面了解充电桩市场及服务规范"
,
title
:
"从0-1学习充电桩安装服务"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
desc
:
"让你全面了解充电桩市场及服务规范"
,
"percent"
:
0
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
"status"
:
""
,
percent
:
0
,
"id"
:
173
,
status
:
""
,
"sectionId"
:
""
id
:
173
,
}
sectionId
:
""
,
],
},
"test"
:
[{
],
"title"
:
"服务规范"
,
test
:
[
"desc"
:
"为用户提供更好服务,自己赚更多钱"
,
{
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
title
:
"服务规范"
,
"percent"
:
0
,
desc
:
"为用户提供更好服务,自己赚更多钱"
,
"status"
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
"id"
:
150
,
percent
:
0
,
"sectionId"
:
""
status
:
""
,
},
id
:
150
,
{
sectionId
:
""
,
"title"
:
"接单规范"
,
},
"desc"
:
"快速学习,使用APP 接单、抢单"
,
{
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
title
:
"接单规范"
,
"percent"
:
0
,
desc
:
"快速学习,使用APP 接单、抢单"
,
"status"
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
"id"
:
149
,
percent
:
0
,
"sectionId"
:
""
status
:
""
,
},
id
:
149
,
{
sectionId
:
""
,
"title"
:
"从0-1学习充电桩安装服务"
,
},
"desc"
:
"让你全面了解充电桩市场及服务规范"
,
{
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
title
:
"从0-1学习充电桩安装服务"
,
"percent"
:
0
,
desc
:
"让你全面了解充电桩市场及服务规范"
,
"status"
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
"id"
:
151
,
percent
:
0
,
"sectionId"
:
""
status
:
""
,
}
id
:
151
,
],
sectionId
:
""
,
"prod"
:
[{
},
"title"
:
"服务规范"
,
],
"desc"
:
"为用户提供更好服务,自己赚更多钱"
,
prod
:
[
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
{
"percent"
:
0
,
title
:
"服务规范"
,
"status"
:
""
,
desc
:
"为用户提供更好服务,自己赚更多钱"
,
"sectionId"
:
""
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
},
percent
:
0
,
{
status
:
""
,
"title"
:
"接单规范"
,
sectionId
:
""
,
"desc"
:
"快速学习,使用APP 接单、抢单"
,
},
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
{
"percent"
:
0
,
title
:
"接单规范"
,
"status"
:
""
,
desc
:
"快速学习,使用APP 接单、抢单"
,
"sectionId"
:
""
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
},
percent
:
0
,
{
status
:
""
,
"title"
:
"从0-1学习充电桩安装服务"
,
sectionId
:
""
,
"desc"
:
"让你全面了解充电桩市场及服务规范"
,
},
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
{
"percent"
:
0
,
title
:
"从0-1学习充电桩安装服务"
,
"status"
:
""
,
desc
:
"让你全面了解充电桩市场及服务规范"
,
"sectionId"
:
""
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
}
percent
:
0
,
]
status
:
""
,
}
sectionId
:
""
,
},
var
examJson
=
{
],
"dev"
:
[{
};
title
:
'服务规范'
,
desc
:
'通过本认证,是接单的必要条件'
,
var
examJson
=
{
condition
:
'随机20题,及格20题'
,
dev
:
[
status
:
''
,
{
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
title
:
"服务规范"
,
id
:
2
,
desc
:
"通过本认证,是接单的必要条件"
,
examId
:
''
,
condition
:
"随机20题,及格20题"
,
examStatus
:
''
,
status
:
""
,
isComplete
:
false
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
},
id
:
2
,
{
examId
:
""
,
title
:
'接单操作'
,
examStatus
:
""
,
desc
:
'快速认证,是否具备接单操作能力'
,
isComplete
:
false
,
condition
:
'随机20题,及格16题'
,
},
status
:
''
,
{
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
title
:
"接单操作"
,
id
:
2
,
desc
:
"快速认证,是否具备接单操作能力"
,
examId
:
''
,
condition
:
"随机20题,及格16题"
,
examStatus
:
''
,
status
:
""
,
isComplete
:
false
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
}
id
:
2
,
],
examId
:
""
,
"test"
:
[{
examStatus
:
""
,
title
:
'服务规范'
,
isComplete
:
false
,
desc
:
'通过本认证,是接单的必要条件'
,
},
condition
:
'随机10题,及格10题'
,
],
status
:
''
,
test
:
[
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-e-3x.png"
,
{
id
:
3
,
title
:
"服务规范"
,
examId
:
''
,
desc
:
"通过本认证,是接单的必要条件"
,
examStatus
:
''
,
condition
:
"随机10题,及格10题"
,
isComplete
:
false
status
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-e-3x.png"
,
id
:
3
,
examId
:
""
,
examStatus
:
""
,
isComplete
:
false
,
},
{
title
:
"交付规范"
,
desc
:
"快速认证,是否具备接单操作能力"
,
condition
:
"随机5题,及格5题"
,
status
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
id
:
4
,
examId
:
""
,
examStatus
:
""
,
isComplete
:
false
,
},
],
prod
:
[
{
title
:
"服务规范"
,
desc
:
"通过本认证,是接单的必要条件"
,
condition
:
"随机20题,及格20题"
,
status
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-e-3x.png"
,
id
:
3
,
examId
:
""
,
examStatus
:
""
,
isComplete
:
false
,
},
{
title
:
"接单操作"
,
desc
:
"快速认证,是否具备接单操作能力"
,
condition
:
"随机20题,及格16题"
,
status
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
id
:
4
,
examId
:
""
,
examStatus
:
""
,
isComplete
:
false
,
},
],
};
let
env
=
process
.
uniEnv
.
node_env
;
let
courseListJson
=
json
[
env
];
let
examListJson
=
examJson
[
env
];
export
default
{
data
()
{
return
{
tabs
:
[
{
name
:
"交付规范"
,
},
{
name
:
"培训通知"
,
},
{
name
:
"在线学习"
,
},
{
name
:
"考核认证"
,
},
],
bofang
:
process
.
uniEnv
.
qn_base_url
+
"bofang@3x.png"
,
current
:
0
,
swiperCurrent
:
0
,
params
:
{
start
:
0
,
},
},
{
list
:
[],
title
:
'交付规范'
,
rule
:
{
desc
:
'快速认证,是否具备接单操作能力'
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"guifan@3x.png"
,
condition
:
'随机4题,及格4题'
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
id
:
4
,
examId
:
''
,
examStatus
:
''
,
isComplete
:
false
}
],
"prod"
:
[{
title
:
'服务规范'
,
desc
:
'通过本认证,是接单的必要条件'
,
condition
:
'随机20题,及格20题'
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-e-3x.png"
,
id
:
3
,
examId
:
''
,
examStatus
:
''
,
isComplete
:
false
},
},
{
courselist
:
[
title
:
'接单操作'
,
{
desc
:
'快速认证,是否具备接单操作能力'
,
title
:
courseListJson
[
0
].
title
,
condition
:
'随机20题,及格16题'
,
desc
:
courseListJson
[
0
].
desc
,
status
:
''
,
percent
:
courseListJson
[
0
].
percent
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
status
:
courseListJson
[
0
].
status
,
id
:
4
,
pic
:
courseListJson
[
0
].
pic
,
examId
:
''
,
id
:
courseListJson
[
0
].
id
,
examStatus
:
''
,
sectionId
:
courseListJson
[
0
].
sectionId
,
isComplete
:
false
}
]
}
let
env
=
process
.
uniEnv
.
node_env
;
let
courseListJson
=
json
.[
env
];
let
examListJson
=
examJson
[
env
];
export
default
{
data
()
{
return
{
tabs
:
[{
name
:
"交付规范"
,
},
{
name
:
"培训通知"
,
},
{
name
:
"在线学习"
,
},
{
name
:
"考核认证"
,
},
],
bofang
:
process
.
uniEnv
.
qn_base_url
+
"bofang@3x.png"
,
current
:
0
,
swiperCurrent
:
0
,
params
:
{
start
:
0
,
},
},
list
:
[],
{
rule
:
{
title
:
courseListJson
[
1
].
title
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"guifan@3x.png"
desc
:
courseListJson
[
1
].
desc
,
percent
:
courseListJson
[
1
].
percent
,
status
:
courseListJson
[
1
].
status
,
pic
:
courseListJson
[
1
].
pic
,
id
:
courseListJson
[
1
].
id
,
sectionId
:
courseListJson
[
1
].
sectionId
,
},
},
courselist
:
[{
{
title
:
courseListJson
[
0
].
title
,
title
:
courseListJson
[
2
].
title
,
desc
:
courseListJson
[
0
].
desc
,
desc
:
courseListJson
[
2
].
desc
,
percent
:
courseListJson
[
0
].
percent
,
percent
:
courseListJson
[
2
].
percent
,
status
:
courseListJson
[
0
].
status
,
status
:
courseListJson
[
2
].
status
,
pic
:
courseListJson
[
0
].
pic
,
pic
:
courseListJson
[
2
].
pic
,
id
:
courseListJson
[
0
].
id
,
id
:
courseListJson
[
2
].
id
,
sectionId
:
courseListJson
[
0
].
sectionId
sectionId
:
courseListJson
[
2
].
sectionId
,
},
},
{
],
title
:
courseListJson
[
1
].
title
,
examList
:
[
desc
:
courseListJson
[
1
].
desc
,
{
percent
:
courseListJson
[
1
].
percent
,
title
:
examListJson
[
0
].
title
,
status
:
courseListJson
[
1
].
status
,
desc
:
examListJson
[
0
].
desc
,
pic
:
courseListJson
[
1
].
pic
,
condition
:
examListJson
[
0
].
condition
,
id
:
courseListJson
[
1
].
id
,
status
:
examListJson
[
0
].
status
,
sectionId
:
courseListJson
[
1
].
sectionId
pic
:
examListJson
[
0
].
pic
,
},
id
:
examListJson
[
0
].
id
,
{
examId
:
examListJson
[
0
].
examId
,
title
:
courseListJson
[
2
].
title
,
examStatus
:
examListJson
[
0
].
examStatus
,
desc
:
courseListJson
[
2
].
desc
,
isComplete
:
examListJson
[
0
].
isComplete
,
percent
:
courseListJson
[
2
].
percent
,
},
status
:
courseListJson
[
2
].
status
,
{
pic
:
courseListJson
[
2
].
pic
,
title
:
examListJson
[
1
].
title
,
id
:
courseListJson
[
2
].
id
,
desc
:
examListJson
[
1
].
desc
,
sectionId
:
courseListJson
[
2
].
sectionId
,
condition
:
examListJson
[
1
].
condition
,
}
status
:
examListJson
[
1
].
status
,
],
pic
:
examListJson
[
1
].
pic
,
examList
:
[{
id
:
examListJson
[
1
].
id
,
title
:
examListJson
[
0
].
title
,
examId
:
examListJson
[
1
].
examId
,
desc
:
examListJson
[
0
].
desc
,
examStatus
:
examListJson
[
1
].
examStatus
,
condition
:
examListJson
[
0
].
condition
,
isComplete
:
examListJson
[
1
].
isComplete
,
status
:
examListJson
[
0
].
status
,
},
pic
:
examListJson
[
0
].
pic
,
],
id
:
examListJson
[
0
].
id
,
loadStatus
:
"loading"
,
examId
:
examListJson
[
0
].
examId
,
isLoadMore
:
false
,
examStatus
:
examListJson
[
0
].
examStatus
,
exam
:
null
,
isComplete
:
examListJson
[
0
].
isComplete
jianBianImg
:
process
.
uniEnv
.
qn_base_url
+
"jianbian@3x_bak1.png"
,
},
isReflesh
:
true
,
{
triggered
:
false
,
title
:
examListJson
[
1
].
title
,
_freshing
:
false
,
desc
:
examListJson
[
1
].
desc
,
};
condition
:
examListJson
[
1
].
condition
,
},
status
:
examListJson
[
1
].
status
,
onLoad
(
param
)
{
pic
:
examListJson
[
1
].
pic
,
var
that
=
this
;
id
:
examListJson
[
1
].
id
,
try
{
examId
:
examListJson
[
1
].
examId
,
if
(
param
.
tabs
)
{
examStatus
:
examListJson
[
1
].
examStatus
,
this
.
current
=
param
.
tabs
;
isComplete
:
examListJson
[
1
].
isComplete
this
.
swiperCurrent
=
param
.
tabs
;
}
],
loadStatus
:
"loading"
,
isLoadMore
:
false
,
exam
:
null
,
jianBianImg
:
process
.
uniEnv
.
qn_base_url
+
"jianbian@3x_bak1.png"
,
isReflesh
:
true
,
triggered
:
false
,
_freshing
:
false
,
}
}
}
catch
(
e
)
{}
},
computed
:
{
bannerImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
"banner-xx@3x.png"
;
},
},
onLoad
(
param
)
{
},
var
that
=
this
;
onShow
:
function
(
param
)
{
try
{
if
(
this
.
current
==
2
||
this
.
current
==
3
)
{
if
(
param
.
tabs
)
{
this
.
tabsChange
(
this
.
current
);
this
.
current
=
param
.
tabs
;
}
this
.
swiperCurrent
=
param
.
tabs
;
},
}
methods
:
{
}
catch
(
e
)
{}
stopPull
()
{
let
that
=
this
;
setTimeout
(
function
()
{
that
.
triggered
=
false
;
that
.
_freshing
=
false
;
},
1000
);
},
},
computed
:
{
onPulling
(
e
)
{
bannerImage
()
{
return
true
;
return
process
.
uniEnv
.
qn_base_url
+
"banner-xx@3x.png"
;
console
.
log
(
"onpulling"
,
e
);
},
},
onRefresh
()
{
if
(
this
.
_freshing
)
return
;
this
.
triggered
=
true
;
this
.
_freshing
=
true
;
this
.
isLoadMore
=
false
;
this
.
loadStatus
=
"loading"
;
this
.
loadNews
();
},
onRestore
()
{
this
.
triggered
=
"restore"
;
// 需要重置
console
.
log
(
"onRestore"
);
},
},
onShow
:
function
(
param
)
{
onAbort
()
{
if
(
this
.
current
==
2
||
this
.
current
==
3
){
console
.
log
(
"onAbort"
);
this
.
tabsChange
(
this
.
current
);
},
//scroll-view到底部加载更多
onReachBottom
()
{
//上拉触底函数
if
(
!
this
.
isLoadMore
)
{
this
.
isLoadMore
=
true
;
this
.
params
.
start
+=
5
;
if
(
this
.
loadStatus
!==
"nomore"
)
{
this
.
getNoticeList
();
}
}
}
},
},
methods
:
{
stopTouchMove
()
{
stopPull
()
{
return
false
;
let
that
=
this
;
},
setTimeout
(
function
(){
getNoticeList
()
{
that
.
triggered
=
false
;
let
that
=
this
;
that
.
_freshing
=
false
;
this
.
$u
.
api
},
1000
)
.
getTrainingNoticeList
(
this
.
params
)
},
.
then
((
res
)
=>
{
onPulling
(
e
)
{
that
.
stopPull
();
return
true
if
(
res
.
code
!=
200
)
{
console
.
log
(
"onpulling"
,
e
);
uni
.
showToast
({
},
title
:
res
.
message
,
onRefresh
()
{
icon
:
"none"
,
if
(
this
.
_freshing
)
return
;
});
this
.
triggered
=
true
;
that
.
isLoadMore
=
false
;
this
.
_freshing
=
true
;
if
(
that
.
params
.
start
>
0
)
{
this
.
isLoadMore
=
false
;
that
.
page
-=
5
;
this
.
loadStatus
=
"loading"
;
}
this
.
loadNews
();
}
},
if
(
res
.
data
)
{
onRestore
()
{
let
length
=
res
.
data
.
length
;
this
.
triggered
=
'restore'
;
// 需要重置
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
console
.
log
(
"onRestore"
);
res
.
data
[
i
].
create_at
=
this
.
timeFormat
(
},
res
.
data
[
i
].
create_at
,
onAbort
()
{
"yyyy.MM.dd hh:mm"
console
.
log
(
"onAbort"
);
);
},
}
//scroll-view到底部加载更多
that
.
list
=
that
.
list
.
concat
(
res
.
data
);
onReachBottom
()
{
}
//上拉触底函数
if
(
res
.
data
.
length
>=
5
)
{
if
(
!
this
.
isLoadMore
)
{
that
.
isLoadMore
=
false
;
this
.
isLoadMore
=
true
;
}
else
{
this
.
params
.
start
+=
5
;
that
.
isLoadMore
=
true
;
if
(
this
.
loadStatus
!==
"nomore"
)
{
that
.
loadStatus
=
"nomore"
;
this
.
getNoticeList
();
}
})
.
catch
((
err
)
=>
{
uni
.
showToast
({
title
:
err
,
icon
:
"none"
,
});
that
.
isLoadMore
=
false
;
if
(
that
.
params
.
start
>
0
)
{
that
.
page
-=
5
;
}
}
});
},
timeFormat
(
time
,
format
,
fromMysql
=
true
)
{
let
rate
=
fromMysql
?
1000
:
1
;
let
dataFmt
=
format
||
"yyyy-MM-dd hh:mm:ss"
;
// 需要格式化的规则
time
=
typeof
time
==
"number"
?
time
:
new
Date
(
time
*
rate
);
// 处理传入的time
let
fmt
=
{
"y+"
:
time
.
getFullYear
(),
// 年份
"M+"
:
time
.
getMonth
()
+
1
,
// 月份
"d+"
:
time
.
getDate
(),
// 日
"h+"
:
time
.
getHours
(),
// 小时
"m+"
:
time
.
getMinutes
(),
// 分钟
"s+"
:
time
.
getSeconds
(),
// 秒
};
for
(
let
i
in
fmt
)
{
if
(
new
RegExp
(
"("
+
i
+
")"
).
test
(
dataFmt
))
{
dataFmt
=
dataFmt
.
replace
(
RegExp
.
$1
,
fmt
[
i
].
toString
().
length
<=
1
?
"0"
+
fmt
[
i
]
:
fmt
[
i
]
);
}
}
},
}
stopTouchMove
()
{
return
dataFmt
;
return
false
;
},
},
getTypeName
(
percent
)
{
getNoticeList
()
{
if
(
percent
==
0
)
{
let
that
=
this
;
return
"未开始"
;
}
else
if
(
percent
==
"100"
)
{
return
"已完成"
;
}
else
{
return
"继续"
;
}
},
//在线学习通用课程信息
getCourseList
()
{
let
courseLength
=
this
.
courselist
.
length
;
for
(
let
i
=
0
;
i
<
courseLength
;
i
++
)
{
let
param
=
{
course_id
:
this
.
courselist
[
i
].
id
,
};
this
.
$u
.
api
this
.
$u
.
api
.
getTrainingNoticeList
(
this
.
params
)
.
CourseList
(
param
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
that
.
stopPull
();
if
(
res
.
code
!=
200
)
{
if
(
res
.
code
!=
200
){
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
icon
:
"none"
,
icon
:
"none"
,
});
});
that
.
isLoadMore
=
false
;
if
(
that
.
params
.
start
>
0
)
{
that
.
page
-=
5
;
}
}
}
if
(
res
.
data
)
{
if
(
res
.
data
)
{
let
length
=
res
.
data
.
length
;
res
.
data
.
learnedInfo
.
learnPercent
*=
100
;
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
this
.
courselist
[
i
].
status
=
this
.
getTypeName
(
res
.
data
[
i
].
create_at
=
this
.
timeFormat
(
res
.
data
[
i
].
create_at
,
res
.
data
.
learnedInfo
.
learnPercent
'yyyy.MM.dd hh:mm'
);
);
}
this
.
courselist
[
i
].
percent
=
that
.
list
=
that
.
list
.
concat
(
res
.
data
);
res
.
data
.
learnedInfo
.
learnPercent
;
}
this
.
courselist
[
i
].
sectionId
=
if
(
res
.
data
.
length
>=
5
){
res
.
data
.
learnedInfo
.
nextLearnedSectionId
;
that
.
isLoadMore
=
false
;
}
else
{
that
.
isLoadMore
=
true
;
that
.
loadStatus
=
"nomore"
;
}
}
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
...
@@ -501,504 +569,452 @@
...
@@ -501,504 +569,452 @@
title
:
err
,
title
:
err
,
icon
:
"none"
,
icon
:
"none"
,
});
});
that
.
isLoadMore
=
false
;
if
(
that
.
params
.
start
>
0
)
{
that
.
page
-=
5
;
}
});
});
},
}
timeFormat
(
time
,
format
,
fromMysql
=
true
)
{
},
let
rate
=
fromMysql
?
1000
:
1
;
//tabs通知swiper切换
let
dataFmt
=
format
||
'yyyy-MM-dd hh:mm:ss'
// 需要格式化的规则
tabsChange
(
index
)
{
time
=
typeof
(
time
)
==
'number'
?
time
:
new
Date
(
time
*
rate
)
// 处理传入的time
this
.
swiperCurrent
=
index
;
let
fmt
=
{
switch
(
index
)
{
'y+'
:
time
.
getFullYear
(),
// 年份
case
1
:
'M+'
:
time
.
getMonth
()
+
1
,
// 月份
this
.
loadNews
();
'd+'
:
time
.
getDate
(),
// 日
break
;
'h+'
:
time
.
getHours
(),
// 小时
case
2
:
'm+'
:
time
.
getMinutes
(),
// 分钟
this
.
getCourseList
();
's+'
:
time
.
getSeconds
()
// 秒
break
;
}
case
3
:
this
.
getUserExamInfo
();
for
(
let
i
in
fmt
)
{
break
;
if
(
new
RegExp
(
'('
+
i
+
')'
).
test
(
dataFmt
))
{
}
dataFmt
=
dataFmt
.
replace
(
RegExp
.
$1
,
fmt
[
i
].
toString
().
length
<=
1
?
'0'
+
fmt
[
i
]
:
fmt
[
i
])
},
}
loadNews
()
{
}
this
.
params
.
start
=
0
;
return
dataFmt
;
this
.
list
=
[];
},
this
.
getNoticeList
();
getTypeName
(
percent
)
{
},
if
(
percent
==
0
)
{
animationfinish
(
e
)
{
return
'未开始'
;
let
current
=
e
.
detail
.
current
;
}
else
if
(
percent
==
'100'
)
{
this
.
$refs
.
uTabs
.
setFinishCurrent
(
current
);
return
'已完成'
;
this
.
swiperCurrent
=
current
;
}
else
{
this
.
current
=
current
;
return
'继续'
;
},
}
//跳转到拍照小程序首页
},
goToPrint
()
{
//在线学习通用课程信息
uni
.
navigateToMiniProgram
({
getCourseList
()
{
appId
:
"wxd1d6eede324b0465"
,
let
courseLength
=
this
.
courselist
.
length
;
path
:
"/pages/photo/index"
,
for
(
let
i
=
0
;
i
<
courseLength
;
i
++
)
{
success
(
res
)
{
let
param
=
{
//打开成功
course_id
:
this
.
courselist
[
i
].
id
console
.
log
(
"success"
,
res
);
};
},
this
.
$u
.
api
fail
(
err
)
{
.
CourseList
(
param
)
console
.
log
(
"err"
,
err
);
.
then
((
res
)
=>
{
},
if
(
res
.
code
!=
200
)
{
});
uni
.
showToast
({
},
title
:
res
.
message
,
//考核认证,通用认证,考试通过or未通过查询接口请求
icon
:
"none"
,
getUserExamInfo
()
{
});
uni
.
showLoading
({
}
title
:
"请稍候"
,
if
(
res
.
data
)
{
});
res
.
data
.
learnedInfo
.
learnPercent
*=
100
;
this
.
courselist
[
i
].
status
=
this
.
getTypeName
(
res
.
data
.
learnedInfo
.
learnPercent
);
let
that
=
this
;
this
.
courselist
[
i
].
percent
=
res
.
data
.
learnedInfo
.
learnPercent
;
let
token
=
that
.
vuex_token
;
this
.
courselist
[
i
].
sectionId
=
res
.
data
.
learnedInfo
.
nextLearnedSectionId
;
let
length
=
this
.
examList
.
length
;
}
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
})
let
examId
=
this
.
examList
[
i
].
id
;
.
catch
((
err
)
=>
{
this
.
$u
.
api
uni
.
showToast
({
.
getExamResult
(
examId
)
title
:
err
,
.
then
((
res
)
=>
{
icon
:
"none"
,
if
(
res
.
code
!=
200
)
{
});
console
.
log
(
"getUserExamInfo 200 err"
);
});
}
},
//tabs通知swiper切换
tabsChange
(
index
)
{
this
.
swiperCurrent
=
index
;
switch
(
index
)
{
case
1
:
this
.
loadNews
()
break
;
case
2
:
this
.
getCourseList
();
break
;
case
3
:
this
.
getUserExamInfo
();
break
;
}
},
loadNews
()
{
this
.
params
.
start
=
0
;
this
.
list
=
[];
this
.
getNoticeList
();
},
animationfinish
(
e
)
{
let
current
=
e
.
detail
.
current
;
this
.
$refs
.
uTabs
.
setFinishCurrent
(
current
);
this
.
swiperCurrent
=
current
;
this
.
current
=
current
;
},
//跳转到拍照小程序首页
goToPrint
()
{
uni
.
navigateToMiniProgram
({
appId
:
"wxd1d6eede324b0465"
,
path
:
"/pages/photo/index"
,
success
(
res
)
{
//打开成功
console
.
log
(
"success"
,
res
);
},
fail
(
err
)
{
console
.
log
(
"err"
,
err
);
},
});
},
//考核认证,通用认证,考试通过or未通过查询接口请求
getUserExamInfo
()
{
uni
.
showLoading
({
title
:
"请稍候"
,
});
let
that
=
this
;
let
token
=
that
.
vuex_token
;
let
length
=
this
.
examList
.
length
;
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
let
examId
=
this
.
examList
[
i
].
id
;
this
.
$u
.
api
.
getExamResult
(
examId
)
.
then
((
res
)
=>
{
if
(
res
.
code
!=
200
){
console
.
log
(
'getUserExamInfo 200 err'
);
uni
.
showToast
({
icon
:
"none"
,
title
:
'获取考试信息失败'
,
});
}
this
.
examList
[
i
].
examId
=
res
.
data
.
id
;
this
.
examList
[
i
].
examStatus
=
res
.
data
.
examStatus
;
//i;//
let
examResult
=
res
.
data
.
examLevelResult
;
this
.
examList
[
i
].
status
=
examResult
!=
''
?
examResult
:
'未通过'
;
// examStatus 用户考试状态 0考试中 1考试完成 2未参与
that
.
exam
=
res
.
data
;
console
.
log
(
that
.
exam
);
if
(
res
.
data
.
examStatus
==
2
)
{
console
.
log
(
"examStatus "
+
i
+
" 2"
);
return
;
}
if
(
res
.
data
.
examStatus
==
1
)
{
console
.
log
(
"examStatus "
+
i
+
" 1"
);
that
.
examList
[
i
].
isComplete
=
this
.
examList
[
i
].
status
==
'通过'
;
that
.
examScore
=
res
.
data
.
examScore
;
return
;
}
if
(
res
.
data
.
examStatus
==
0
)
{
console
.
log
(
"examStatus "
+
i
+
" 0"
);
that
.
userExamId
=
res
.
data
.
id
;
}
})
.
catch
((
err
)
=>
{
console
.
log
(
'getUserExamInfo err'
+
err
);
uni
.
hideLoading
();
uni
.
showToast
({
uni
.
showToast
({
icon
:
"none"
,
icon
:
"none"
,
title
:
"获取考试信息失败"
,
title
:
"获取考试信息失败"
,
});
});
}
this
.
examList
[
i
].
examId
=
res
.
data
.
id
;
this
.
examList
[
i
].
examStatus
=
res
.
data
.
examStatus
;
//i;//
let
examResult
=
res
.
data
.
examLevelResult
;
this
.
examList
[
i
].
status
=
examResult
!=
""
?
examResult
:
"未通过"
;
// examStatus 用户考试状态 0考试中 1考试完成 2未参与
that
.
exam
=
res
.
data
;
console
.
log
(
that
.
exam
);
if
(
res
.
data
.
examStatus
==
2
)
{
console
.
log
(
"examStatus "
+
i
+
" 2"
);
return
;
}
if
(
res
.
data
.
examStatus
==
1
)
{
console
.
log
(
"examStatus "
+
i
+
" 1"
);
that
.
examList
[
i
].
isComplete
=
this
.
examList
[
i
].
status
==
"通过"
;
that
.
examScore
=
res
.
data
.
examScore
;
return
;
}
if
(
res
.
data
.
examStatus
==
0
)
{
console
.
log
(
"examStatus "
+
i
+
" 0"
);
that
.
userExamId
=
res
.
data
.
id
;
}
})
.
catch
((
err
)
=>
{
console
.
log
(
"getUserExamInfo err"
+
err
);
uni
.
hideLoading
();
uni
.
showToast
({
icon
:
"none"
,
title
:
"获取考试信息失败"
,
});
});
}
});
},
}
//跳转到assessment页面
},
aaa
(
index
)
{
//跳转到assessment页面
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
aaa
(
index
)
{
//考试完成分成通过、未通过
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
var
examInfo
=
this
.
examList
[
index
];
//考试完成分成通过、未通过
if
(
examInfo
.
examStatus
==
0
)
{
var
examInfo
=
this
.
examList
[
index
];
console
.
log
(
"这是试卷id"
,
examInfo
.
id
);
if
(
examInfo
.
examStatus
==
0
)
{
console
.
log
(
"这是试卷id"
,
examInfo
.
id
);
wx
.
navigateTo
({
url
:
"/pages/learn/answer?examId="
+
examInfo
.
id
,
});
}
else
if
(
examInfo
.
examStatus
==
1
)
{
// examInfo.status = '通过';
if
(
examInfo
.
status
==
"已通过"
)
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
"/pages/learn/answer?examId="
+
examInfo
.
id
,
url
:
"/pages/learn/exam-pass?userExamId="
+
examInfo
.
examId
,
});
});
}
else
if
(
examInfo
.
examStatus
==
1
)
{
}
else
{
// examInfo.status = '通过';
if
(
examInfo
.
status
==
'通过'
)
{
wx
.
navigateTo
({
url
:
"/pages/learn/exam-pass?userExamId="
+
examInfo
.
examId
,
});
}
else
{
wx
.
navigateTo
({
url
:
"/pages/learn/result?userExamId="
+
examInfo
.
examId
+
"&examId="
+
examInfo
.
id
,
});
}
}
else
if
(
examInfo
.
examStatus
==
2
)
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
"/pages/learn/assessment?examId="
+
examInfo
.
id
,
url
:
"/pages/learn/result?userExamId="
+
examInfo
.
examId
+
"&examId="
+
examInfo
.
id
,
});
});
}
}
},
}
else
if
(
examInfo
.
examStatus
==
2
)
{
//跳转到播放
goPlay
(
info
)
{
uni
.
navigateTo
({
url
:
"/pages/learn/section?section_id="
+
info
.
sectionId
+
"&course_id="
+
info
.
id
,
});
},
//跳转到
bbb
(
e
)
{
var
news
=
{
body
:
e
.
body
,
title
:
e
.
title
};
let
that
=
this
;
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/pages/learn/news-details'
,
url
:
"/pages/learn/assessment?examId="
+
examInfo
.
id
,
success
:
function
(
res
)
{
res
.
eventChannel
.
emit
(
'acceptDataFromLearn'
,
news
)
}
});
});
},
}
},
//跳转到播放
goPlay
(
info
)
{
uni
.
navigateTo
({
url
:
"/pages/learn/section?section_id="
+
info
.
sectionId
+
"&course_id="
+
info
.
id
,
});
},
//跳转到
bbb
(
e
)
{
var
news
=
{
body
:
e
.
body
,
title
:
e
.
title
,
};
let
that
=
this
;
wx
.
navigateTo
({
url
:
"/pages/learn/news-details"
,
success
:
function
(
res
)
{
res
.
eventChannel
.
emit
(
"acceptDataFromLearn"
,
news
);
},
});
},
},
};
},
};
</
script
>
</
script
>
<
style
>
<
style
>
.study
{
.study
{
height
:
100vh
;
height
:
100vh
;
background-color
:
#f4f5f7
;
background-color
:
#f4f5f7
;
padding
:
0
rpx
30
rpx
0
30
rpx
;
padding
:
0
rpx
30
rpx
0
30
rpx
;
}
}
.title-view
{
.title-view
{
color
:
#333333
;
color
:
#333333
;
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
40
rpx
;
font-size
:
40
rpx
;
}
}
.banner
{
.banner
{
width
:
690
rpx
;
width
:
690
rpx
;
height
:
240
rpx
;
height
:
240
rpx
;
margin-top
:
10
rpx
;
margin-top
:
10
rpx
;
}
}
/* 交付规范 */
/* 交付规范 */
.standard
{
.standard
{
width
:
690
rpx
;
width
:
690
rpx
;
height
:
180
rpx
;
height
:
180
rpx
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
/* border-bottom: 1rpx solid #82848a; */
/* border-bottom: 1rpx solid #82848a; */
/* padding: 0 34rpx; */
/* padding: 0 34rpx; */
/* margin: 72rpx auto; */
/* margin: 72rpx auto; */
border-radius
:
12
rpx
;
border-radius
:
12
rpx
;
padding
:
30
rpx
;
padding
:
30
rpx
;
margin-top
:
30
rpx
;
margin-top
:
30
rpx
;
background-color
:
#FFFFFF
;
background-color
:
#ffffff
;
}
}
/* 培训通知 */
/* 培训通知 */
.notice
{
.notice
{
/* border: #808080 solid 2rpx; */
/* border: #808080 solid 2rpx; */
width
:
100%
;
width
:
100%
;
min-height
:
370
rpx
;
min-height
:
370
rpx
;
margin-top
:
36
rpx
;
margin-top
:
36
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
border-radius
:
12
rpx
;
border-radius
:
12
rpx
;
padding
:
30
rpx
;
padding
:
30
rpx
;
}
}
.n-head
{
.n-head
{
text-align
:
left
;
text-align
:
left
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#333333
;
color
:
#333333
;
}
}
.news
{
.news
{
height
:
168
rpx
;
height
:
168
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
margin-top
:
30
rpx
;
margin-top
:
30
rpx
;
font-size
:
24
rpx
;
font-size
:
24
rpx
;
color
:
#666666
;
color
:
#666666
;
line-height
:
34
rpx
;
line-height
:
34
rpx
;
margin-bottom
:
20
rpx
;
margin-bottom
:
20
rpx
;
}
}
/* 在线学习 */
/* 在线学习 */
.currency-class
{
.currency-class
{
width
:
100%
;
width
:
100%
;
background
:
#ffffff
;
background
:
#ffffff
;
padding
:
30
rpx
;
padding
:
30
rpx
;
border-radius
:
12
rpx
;
border-radius
:
12
rpx
;
}
}
.learn-currency-class
{
.learn-currency-class
{
width
:
100%
;
width
:
100%
;
border-radius
:
12
rpx
;
border-radius
:
12
rpx
;
display
:
flex
;
display
:
flex
;
}
}
.jf-currency-class
{
.jf-currency-class
{
width
:
100%
;
width
:
100%
;
height
:
180
rpx
;
height
:
180
rpx
;
position
:
absolute
;
position
:
absolute
;
border-radius
:
12
rpx
;
border-radius
:
12
rpx
;
margin-top
:
60
rpx
;
margin-top
:
60
rpx
;
}
}
.title
{
.title
{
font-size
:
32
rpx
;
font-size
:
32
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
font-family
:
PingFang-SC-Bold
,
PingFang-SC
;
font-family
:
PingFang-SC-Bold
,
PingFang-SC
;
}
}
.class1
{
.class1
{
display
:
-webkit-box
;
display
:
-webkit-box
;
display
:
-webkit-flex
;
display
:
-webkit-flex
;
display
:
flex
;
display
:
flex
;
-webkit-box-pack
:
justify
;
-webkit-box-pack
:
justify
;
-webkit-justify-content
:
space-between
;
-webkit-justify-content
:
space-between
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.learn-class1
{
.learn-class1
{
display
:
-webkit-box
;
display
:
-webkit-box
;
display
:
-webkit-flex
;
display
:
-webkit-flex
;
display
:
block
;
display
:
block
;
-webkit-box-pack
:
justify
;
-webkit-box-pack
:
justify
;
-webkit-justify-content
:
space-between
;
-webkit-justify-content
:
space-between
;
justify-content
:
space-between
;
justify-content
:
space-between
;
width
:
330
rpx
;
width
:
330
rpx
;
height
:
420
rpx
;
height
:
420
rpx
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
position
:
relative
;
position
:
relative
;
border-radius
:
12
rpx
;
border-radius
:
12
rpx
;
}
}
.img
{
.img
{
width
:
160
rpx
;
width
:
160
rpx
;
height
:
120
rpx
;
height
:
120
rpx
;
}
}
.learn-img
{
.learn-img
{
width
:
330
rpx
;
width
:
330
rpx
;
height
:
194
rpx
;
height
:
194
rpx
;
}
}
.jf-img
{
.jf-img
{
width
:
160
rpx
;
width
:
160
rpx
;
height
:
200
rpx
;
height
:
200
rpx
;
position
:
absolute
;
position
:
absolute
;
top
:
-45
rpx
;
top
:
-45
rpx
;
left
:
30
rpx
;
left
:
30
rpx
;
}
}
.right
{
.right
{
width
:
434
rpx
;
width
:
434
rpx
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.intro
{
.intro
{
color
:
#9999a6
;
color
:
#9999a6
;
}
}
.tab
{
.tab
{
background
:
#fff
;
background
:
#fff
;
height
:
82
rpx
;
height
:
82
rpx
;
margin
:
0
0
;
margin
:
0
0
;
}
}
.text
{
.text
{
margin
:
0
40
rpx
;
margin
:
0
40
rpx
;
line-height
:
82
rpx
;
line-height
:
82
rpx
;
color
:
#667eb5
;
color
:
#667eb5
;
}
}
.content
{
.content
{
margin
:
5px
0
;
margin
:
5px
0
;
height
:
485
rpx
;
height
:
485
rpx
;
background
:
#fff
;
background
:
#fff
;
}
}
swiper
{
swiper
{
height
:
70vh
;
height
:
70vh
;
}
}
.line-percent
{
.line-percent
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
font-size
:
24
rpx
;
font-size
:
24
rpx
;
color
:
#999999
;
color
:
#999999
;
margin
:
20
rpx
;
margin
:
20
rpx
;
margin-top
:
25
rpx
;
margin-top
:
25
rpx
;
}
}
.jf-line
{
.jf-line
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
width
:
120
rpx
;
width
:
120
rpx
;
height
:
52
rpx
;
height
:
52
rpx
;
border-radius
:
26
rpx
;
border-radius
:
26
rpx
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
color
:
#2272FF
;
color
:
#2272ff
;
text-align
:
center
;
text-align
:
center
;
padding-left
:
20
rpx
;
padding-left
:
20
rpx
;
padding-top
:
6
rpx
;
padding-top
:
6
rpx
;
margin-top
:
20
rpx
;
margin-top
:
20
rpx
;
}
}
.u-progress
{
.u-progress
{
width
:
160
rpx
!important
;
width
:
160
rpx
!important
;
height
:
12
rpx
!important
;
height
:
12
rpx
!important
;
background-color
:
#ececec
;
background-color
:
#ececec
;
}
}
.font-bold
{
.font-bold
{
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.font-default-color
{
.font-default-color
{
color
:
#999999
;
color
:
#999999
;
}
}
.font-default-exam-color
{
.font-default-exam-color
{
color
:
#FA5A49
;
color
:
#fa5a49
;
}
}
.font-active-color
{
.font-active-color
{
color
:
#2272FF
;
color
:
#2272ff
;
}
}
.font-color-999999
{
.font-color-999999
{
color
:
#999999
;
color
:
#999999
;
}
}
.standard-img
{
.standard-img
{
width
:
160
rpx
;
width
:
160
rpx
;
height
:
120
rpx
;
height
:
120
rpx
;
}
}
.standard-body
{
.standard-body
{
height
:
120
rpx
;
height
:
120
rpx
;
display
:
flex
;
display
:
flex
;
}
}
.standard-body-title
{
.standard-body-title
{
font-size
:
32
rpx
;
font-size
:
32
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.jf-right
{
.jf-right
{
padding-left
:
190
rpx
;
padding-left
:
190
rpx
;
width
:
460
rpx
;
width
:
460
rpx
;
color
:
#ffffff
;
color
:
#ffffff
;
}
}
.notice-bottom
{
.notice-bottom
{
margin-top
:
20
rpx
;
margin-top
:
20
rpx
;
display
:
block
;
display
:
block
;
position
:
relative
;
position
:
relative
;
}
}
.notice-bottom-left
{
.notice-bottom-left
{
font-size
:
24
rpx
;
font-size
:
24
rpx
;
color
:
#999999
;
color
:
#999999
;
float
:
left
;
float
:
left
;
}
}
.notice-bottom-right
{
.notice-bottom-right
{
font-size
:
24
rpx
;
font-size
:
24
rpx
;
color
:
#2272ff
;
color
:
#2272FF
;
float
:
right
;
float
:
right
;
}
}
.bofang
{
.bofang
{
width
:
60
rpx
;
width
:
60
rpx
;
height
:
60
rpx
;
height
:
60
rpx
;
position
:
absolute
;
position
:
absolute
;
left
:
130
rpx
;
left
:
130
rpx
;
top
:
70
rpx
;
top
:
70
rpx
;
}
}
.learn-desc
{
.learn-desc
{
height
:
138
rpx
;
height
:
138
rpx
;
margin-top
:
-10
rpx
;
margin-top
:
-10
rpx
;
padding-top
:
20
rpx
;
padding-top
:
20
rpx
;
padding-left
:
20
rpx
;
padding-left
:
20
rpx
;
padding-right
:
20
rpx
;
padding-right
:
20
rpx
;
}
}
.learn-intro
{
.learn-intro
{
color
:
#999999
;
color
:
#999999
;
margin-top
:
20
rpx
;
margin-top
:
20
rpx
;
font-size
:
20
rpx
;
font-size
:
20
rpx
;
}
}
.h48
{
.h48
{
height
:
48
rpx
;
height
:
48
rpx
;
}
}
.current-img
{
.current-img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
position
:
absolute
;
position
:
absolute
;
}
}
.load-more
{
.load-more
{
padding-top
:
50
rpx
;
padding-top
:
50
rpx
;
padding-bottom
:
200
rpx
;
padding-bottom
:
200
rpx
;
}
}
</
style
>
</
style
>
src/pages/index/mine.vue
View file @
6fe9ef63
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
</u-navbar>
</u-navbar>
<view
class=
"mine-content"
>
<view
class=
"mine-content"
>
<view
class=
"header-view"
>
<view
class=
"header-view"
>
<view
:class=
"['head-image',
{'has-image': avatar}]
">
<view
class=
"head-image
"
>
<
u-avatar
:src=
"headImageUrl"
:size=
"headSize"
mode=
"circle"
></u-avatar
>
<
image
:style=
"headImageStyle"
:src=
"headImageUrl"
></image
>
</view>
</view>
<view
class=
"header-content"
>
<view
class=
"header-content"
>
<view
class=
"name-view"
@
click=
"handleClickName"
>
{{
name
||
"点击登录"
}}
</view>
<view
class=
"name-view"
@
click=
"handleClickName"
>
{{
name
||
"点击登录"
}}
</view>
...
@@ -55,8 +55,8 @@
...
@@ -55,8 +55,8 @@
return
this
.
vuex_settled
&&
this
.
vuex_settled
.
avatar
||
''
return
this
.
vuex_settled
&&
this
.
vuex_settled
.
avatar
||
''
},
},
name
()
{
name
()
{
return
this
.
settled
&&
this
.
settled
.
id_card_name
return
this
.
settled
&&
(
this
.
settled
.
id_card_name
||
this
.
settled
.
nickname
||
this
.
settled
.
name
||
''
||
this
.
settled
.
nickname
||
this
.
settled
.
name
)
||
''
},
},
mobile
()
{
mobile
()
{
return
this
.
settled
&&
this
.
settled
.
mobile
||
''
return
this
.
settled
&&
this
.
settled
.
mobile
||
''
...
@@ -120,6 +120,9 @@
...
@@ -120,6 +120,9 @@
},
},
placeholderImage
()
{
placeholderImage
()
{
return
this
.
qnPath
+
'touxiang.png'
return
this
.
qnPath
+
'touxiang.png'
},
headImageStyle
()
{
return
this
.
avatar
?
'width:136rpx; height:136rpx;border-radius:68rpx'
:
'width:144rpx; height:144rpx;border-radius:72rpx'
},
},
headSize
()
{
headSize
()
{
return
this
.
avatar
?
136
:
144
return
this
.
avatar
?
136
:
144
...
@@ -192,11 +195,9 @@
...
@@ -192,11 +195,9 @@
height
:
144rpx
;
height
:
144rpx
;
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
border-radius
:
72rpx
;
border-radius
:
72rpx
;
display
:
flex
;
&
.has-image
{
align-items
:
center
;
// border: 4rpx solid #FFFFFF;
justify-content
:
center
;
padding
:
4rpx
;
}
}
}
.header-content
{
.header-content
{
...
...
src/pages/learn/answer.vue
View file @
6fe9ef63
...
@@ -136,7 +136,7 @@ export default {
...
@@ -136,7 +136,7 @@ export default {
//判断是否通过,通过去成功页,失败去失败页
//判断是否通过,通过去成功页,失败去失败页
let
examInfo
=
this
.
examInfo
;
let
examInfo
=
this
.
examInfo
;
let
examId
=
this
.
examId
;
let
examId
=
this
.
examId
;
let
status
=
examInfo
.
examLevelResult
==
"通过"
;
let
status
=
examInfo
.
examLevelResult
==
"
已
通过"
;
if
(
status
)
{
if
(
status
)
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
url
:
...
@@ -332,7 +332,8 @@ export default {
...
@@ -332,7 +332,8 @@ export default {
"&questionId="
+
"&questionId="
+
questionId
+
questionId
+
"&userAnswerIds="
+
"&userAnswerIds="
+
(
this
.
userAnswerIds
||
"9999"
),
// 9999超时自动下一题
(
this
.
userAnswerIds
||
"9999"
)
+
","
,
// 9999超时自动下一题
method
:
"POST"
,
method
:
"POST"
,
data
:
{
data
:
{
// userExamId:this.userExamId,
// userExamId:this.userExamId,
...
@@ -410,7 +411,8 @@ export default {
...
@@ -410,7 +411,8 @@ export default {
console
.
log
(
console
.
log
(
"endTime:"
+
this
.
endTime
,
"endTime:"
+
this
.
endTime
,
"everyTime:"
+
this
.
everyTime
,
"everyTime:"
+
this
.
everyTime
,
"currentTime:"
+
this
.
currentTime
"currentTime:"
+
this
.
currentTime
,
"答案:"
+
this
.
userAnswerIds
);
);
}
else
{
}
else
{
clearTimeout
(
this
.
timer
);
clearTimeout
(
this
.
timer
);
...
@@ -562,7 +564,8 @@ export default {
...
@@ -562,7 +564,8 @@ export default {
}
else
{
}
else
{
// if(this.userAnswerIds.length == 1)
// if(this.userAnswerIds.length == 1)
this
.
userAnswerIds
=
this
.
userAnswerIds
=
item
.
id
+
","
+
this
.
userAnswerIds
;
this
.
userAnswerIds
+
","
+
item
.
id
;
console
.
log
(
this
.
userAnswerIds
,
"答案答案"
);
}
}
//*/
//*/
}
else
{
}
else
{
...
...
src/pages/learn/exam-pass.vue
View file @
6fe9ef63
...
@@ -77,15 +77,17 @@ export default {
...
@@ -77,15 +77,17 @@ export default {
//再次考试
//再次考试
getAgain
:
function
()
{
getAgain
:
function
()
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
"
.
/assessment"
,
url
:
"
/pages/learn
/assessment"
,
});
});
},
},
//下次再考跳转到学习主界面页面
//下次再考跳转到学习主界面页面
toIndex
:
function
()
{
toIndex
:
function
()
{
wx
.
reLaunch
({
let
routes
=
getCurrentPages
();
// 获取当前打开过的页面路由数组
url
:
"/pages/index/learn?tabs=3"
,
let
length
=
routes
.
length
uni
.
navigateBack
({
delta
:
length
-
1
});
});
// wx.navigateBack({ delta: 1 })//返回上一级页面
},
},
},
},
};
};
...
...
src/pages/learn/result.vue
View file @
6fe9ef63
...
@@ -87,10 +87,12 @@ export default {
...
@@ -87,10 +87,12 @@ export default {
},
},
//下次再考跳转到学习主界面页面
//下次再考跳转到学习主界面页面
toIndex
:
function
()
{
toIndex
:
function
()
{
wx
.
reLaunch
({
let
routes
=
getCurrentPages
();
// 获取当前打开过的页面路由数组
url
:
"/pages/index/learn?tabs=3"
,
let
length
=
routes
.
length
uni
.
navigateBack
({
delta
:
length
-
1
});
});
// wx.navigateBack({ delta: 1 })//返回上一级页面
},
},
},
},
};
};
...
...
src/pages/learn/section.vue
View file @
6fe9ef63
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<view
class=
"scroll_box"
>
<view
class=
"scroll_box"
>
<scroll-view
scroll-x
@
scroll=
"scroll"
:scroll-left=
"scrollValue"
>
<scroll-view
scroll-x
@
scroll=
"scroll"
:scroll-left=
"scrollValue"
>
<view
class=
"item_list"
:class=
"
{'item_list_active': item.isActive}"
<view
class=
"item_list"
:class=
"
{'item_list_active': item.isActive}"
v-for="(item, index) in sectionList" :key="index" @click="goNext(item
, $event
)">
v-for="(item, index) in sectionList" :key="index" @click="goNext(item)">
<view
class=
""
style=
"font-size: 24rpx;"
>
{{
item
.
title
}}
</view>
<view
class=
""
style=
"font-size: 24rpx;"
>
{{
item
.
title
}}
</view>
<view
class=
""
style=
"font-size: 26rpx;margin-top: 16rpx;"
>
<view
class=
""
style=
"font-size: 26rpx;margin-top: 16rpx;"
>
{{
item
.
intro
}}
{{
item
.
intro
}}
...
@@ -93,13 +93,14 @@
...
@@ -93,13 +93,14 @@
},
},
gklog
:
''
,
gklog
:
''
,
videoTotalTime
:
0
,
videoTotalTime
:
0
,
howTimeToUpdateLearnedStatus
:
10
,
//设置几秒提交一次状态
howTimeToUpdateLearnedStatus
:
5
,
//设置几秒提交一次状态
status
:
1
,
//是否已学习默认1已学习
status
:
0
,
//是否已学习默认1已学习
isLearned
:
false
,
//默认设置观看1/2就是已学
isLearned
:
false
,
//默认设置观看1/2就是已学
old
:
{
old
:
{
scrollTop
:
null
scrollTop
:
null
},
},
scrollValue
:
0
scrollValue
:
0
,
nowTime
:
0
};
};
},
},
computed
:
{
computed
:
{
...
@@ -110,10 +111,10 @@
...
@@ -110,10 +111,10 @@
onLoad
(
e
)
{
onLoad
(
e
)
{
this
.
section_id
=
e
.
section_id
this
.
section_id
=
e
.
section_id
this
.
params
.
course_id
=
e
.
course_id
this
.
params
.
course_id
=
e
.
course_id
this
.
getCapterDetails
()
this
.
getSectionInfo
({
this
.
getSectionInfo
({
section_id
:
e
.
section_id
section_id
:
e
.
section_id
})
})
this
.
getCapterDetails
()
},
},
onReady
:
function
(
res
)
{
onReady
:
function
(
res
)
{
this
.
videoContext
=
uni
.
createVideoContext
(
"courseVideo"
);
this
.
videoContext
=
uni
.
createVideoContext
(
"courseVideo"
);
...
@@ -124,7 +125,10 @@
...
@@ -124,7 +125,10 @@
console
.
log
(
e
)
console
.
log
(
e
)
this
.
old
.
scrollTop
=
e
.
detail
.
scrollTop
this
.
old
.
scrollTop
=
e
.
detail
.
scrollTop
},
},
goNext
(
info
,
e
)
{
goNext
(
info
)
{
if
(
this
.
status
==
1
){
console
.
log
(
'已学'
);
}
//切换成下一个
//切换成下一个
this
.
getSectionInfo
({
this
.
getSectionInfo
({
section_id
:
info
.
id
section_id
:
info
.
id
...
@@ -170,6 +174,42 @@
...
@@ -170,6 +174,42 @@
playerReadied
(
player
)
{
playerReadied
(
player
)
{
player
.
currentTime
(
this
.
gklog
)
player
.
currentTime
(
this
.
gklog
)
},
},
//获取章节详情
getCapterDetails
()
{
let
that
=
this
this
.
$u
.
api
.
ChapterDetails
(
this
.
params
)
.
then
((
res
)
=>
{
if
(
res
.
code
!=
200
)
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
"none"
})
}
if
(
res
.
data
)
{
that
.
sectionList
=
res
.
data
[
0
].
section
that
.
courseTotal
=
that
.
sectionList
.
length
let
length
=
that
.
sectionList
.
length
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
that
.
sectionList
[
i
].
title
=
"第"
+
(
i
+
1
)
+
"节"
that
.
sectionList
[
i
].
intro
=
that
.
sectionList
[
i
].
name
that
.
sectionList
[
i
].
isActive
=
that
.
section_id
==
that
.
sectionList
[
i
].
id
?
true
:
false
}
this
.
changeActiveAction
()
}
})
.
catch
((
err
)
=>
{
uni
.
showToast
({
title
:
err
,
icon
:
"none"
})
that
.
isLoadMore
=
false
if
(
that
.
params
.
start
>
0
)
{
that
.
page
-=
5
}
})
},
getSectionInfo
(
param
)
{
getSectionInfo
(
param
)
{
this
.
$u
.
api
this
.
$u
.
api
.
CourseSection
(
param
)
.
CourseSection
(
param
)
...
@@ -184,6 +224,7 @@
...
@@ -184,6 +224,7 @@
this
.
sectionInfo
=
res
.
data
this
.
sectionInfo
=
res
.
data
console
.
log
(
"----节信息----"
)
console
.
log
(
"----节信息----"
)
console
.
log
(
this
.
sectionInfo
)
console
.
log
(
this
.
sectionInfo
)
this
.
nextSectionId
=
this
.
sectionInfo
.
nextSectionId
let
wareVal
=
this
.
sectionInfo
.
ware
let
wareVal
=
this
.
sectionInfo
.
ware
this
.
courseTitle
=
res
.
data
.
name
this
.
courseTitle
=
res
.
data
.
name
this
.
courseDesc
=
res
.
data
.
content
.
replace
(
/<p.*
?
>|<
\/
p>/ig
,
""
)
this
.
courseDesc
=
res
.
data
.
content
.
replace
(
/<p.*
?
>|<
\/
p>/ig
,
""
)
...
@@ -193,11 +234,10 @@
...
@@ -193,11 +234,10 @@
this
.
teacherImage
=
res
.
data
.
teachers
[
0
].
avatar
this
.
teacherImage
=
res
.
data
.
teachers
[
0
].
avatar
this
.
teacherIntro
=
res
.
data
.
teachers
[
0
].
intro
.
replace
(
/<.*
?
>|<
\/
.*
?
>/ig
,
""
)
this
.
teacherIntro
=
res
.
data
.
teachers
[
0
].
intro
.
replace
(
/<.*
?
>|<
\/
.*
?
>/ig
,
""
)
this
.
params
.
course_id
=
res
.
data
.
course_id
this
.
params
.
course_id
=
res
.
data
.
course_id
this
.
nextSectionId
=
this
.
sectionInfo
.
nextSectionId
if
(
wareVal
==
"0"
)
{
if
(
wareVal
==
"0"
)
{
let
coureWareList
=
res
.
data
.
courseware
let
coureWareList
=
res
.
data
.
courseware
this
.
courseSrc
=
coureWareList
[
0
].
src
this
.
courseSrc
=
coureWareList
[
0
].
src
this
.
videoTotalTime
=
parseInt
(
JSON
.
parse
(
coureWareList
[
0
].
info
).
time
)
this
.
videoTotalTime
=
parseInt
(
JSON
.
parse
(
coureWareList
[
0
].
info
).
time
)
-
1
;
console
.
log
(
'视频时长信息:'
+
this
.
videoTotalTime
)
console
.
log
(
'视频时长信息:'
+
this
.
videoTotalTime
)
}
}
}
}
...
@@ -210,61 +250,27 @@
...
@@ -210,61 +250,27 @@
})
})
},
},
updateLearnedStatus
(
nowTime
)
{
updateLearnedStatus
(
nowTime
)
{
if
(
this
.
gklog
!=
nowTime
&&
nowTime
%
this
.
howTimeToUpdateLearnedStatus
==
0
)
{
let
param
=
{
let
howLongIsLearned
=
parseInt
(
this
.
videoTotalTime
/
2
)
section_id
:
this
.
section_id
,
if
(
nowTime
<
howLongIsLearned
)
{
video_time
:
nowTime
,
this
.
status
=
0
status
:
this
.
status
}
else
if
(
this
.
isLearned
)
{
};
return
nowTime
=
parseInt
(
nowTime
);
}
else
{
if
(
nowTime
==
this
.
nowTime
){
this
.
status
=
1
return
}
let
param
=
{
section_id
:
this
.
section_id
,
video_time
:
nowTime
,
status
:
this
.
status
};
this
.
$u
.
api
.
updateLearnCourses
(
param
).
then
((
res
)
=>
{}).
catch
((
err
)
=>
{
console
.
log
(
err
)
});
}
}
},
this
.
nowTime
=
nowTime
;
//获取章节详情
if
(
this
.
status
==
1
||
nowTime
<
5
){
getCapterDetails
()
{
return
let
that
=
this
}
this
.
$u
.
api
if
(
nowTime
==
this
.
videoTotalTime
){
.
ChapterDetails
(
this
.
params
)
param
.
status
=
this
.
status
=
1
.
then
((
res
)
=>
{
}
else
if
(
nowTime
%
this
.
howTimeToUpdateLearnedStatus
!=
0
){
if
(
res
.
code
!=
200
)
{
return
uni
.
showToast
({
}
title
:
res
.
message
,
this
.
$u
.
api
.
updateLearnCourses
(
param
).
then
((
res
)
=>
{}).
catch
((
err
)
=>
{
icon
:
"none"
console
.
log
(
err
)
})
});
}
if
(
res
.
data
)
{
that
.
sectionList
=
res
.
data
[
0
].
section
that
.
courseTotal
=
that
.
sectionList
.
length
let
length
=
that
.
sectionList
.
length
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
that
.
sectionList
[
i
].
title
=
"第"
+
(
i
+
1
)
+
"节"
that
.
sectionList
[
i
].
intro
=
that
.
sectionList
[
i
].
name
that
.
sectionList
[
i
].
isActive
=
that
.
section_id
==
that
.
sectionList
[
i
].
id
?
true
:
false
}
this
.
changeActiveAction
()
}
})
.
catch
((
err
)
=>
{
uni
.
showToast
({
title
:
err
,
icon
:
"none"
})
that
.
isLoadMore
=
false
if
(
that
.
params
.
start
>
0
)
{
that
.
page
-=
5
}
})
},
},
},
},
}
}
...
...
src/pages/mine/cert/index.vue
View file @
6fe9ef63
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
},
},
toDetail
(
key
)
{
toDetail
(
key
)
{
let
data
=
this
.
list
[
key
].
data
;
let
data
=
this
.
list
[
key
].
data
;
if
(
!
data
.
isUpload
){
if
(
data
.
status
!=
1
){
return
;
return
;
}
}
wx
.
navigateTo
({
wx
.
navigateTo
({
...
...
src/pages/mine/customer/index.vue
View file @
6fe9ef63
<
template
>
<
template
>
<view
class=
"cus-wrap"
>
<view
class=
"cus-wrap"
>
<w-navbar
title=
"联系客服"
></w-navbar>
<w-navbar
title=
"联系客服"
></w-navbar>
<view
class=
"content"
>
<view
class=
"cus-wrap-content"
>
<u-image
class=
"qrcode"
:src=
"cusQrcode"
width=
"400"
height=
"400"
mode=
"widthFix"
:fade=
"true"
duration=
"450"
>
<Customer
:type=
"type"
></Customer>
<u-loading
slot=
"loading"
></u-loading>
</view>
<view
slot=
"error"
style=
"font-size: 24rpx;"
>
加载失败
</view>
</view>
</u-image>
</
template
>
<text
class=
"desc"
>
长按二维码保存图片添加官方客服微信
</text>
</view>
<
script
>
</view>
import
Customer
from
"@/components/mine/customer.vue"
</
template
>
export
default
{
components
:
{
<
script
>
Customer
export
default
{
},
data
()
{
data
()
{
return
{
return
{
type
:
'mine'
};
};
},
},
computed
:
{
onLoad
(
e
)
{
cusQrcode
()
{
if
(
e
&&
e
.
type
)
{
return
process
.
uniEnv
.
qn_base_url
+
'erweima-bg.png'
this
.
type
=
e
.
type
},
}
},
},
methods
:
{
}
// download() {
</
script
>
// let that = this;
// uni.downloadFile({ //获得二维码的临时地址
<
style
lang=
"scss"
>
// url: that.erweimaImage,
.cus-wrap
{
// success:(res)=>{
background-color
:
#F4F5F7
;
// if(res.statusCode == 200){
padding
:
20rpx
30rpx
;
// uni.saveImageToPhotosAlbum({
height
:
100vh
;
// filePath:res.tempFilePath,//传入临时地址
.cus-wrap-content
{
// success() {
overflow
:
auto
;
// that.$u.toast('保存成功!');
}
// },
}
// fail() {
// that.$u.toast('保存失败!');
// }
// })
// }
// }
// })
// }
}
}
</
script
>
<
style
lang=
"scss"
>
.cus-wrap
{
background-color
:
#F4F5F7
;
padding
:
30rpx
;
.content
{
width
:
690rpx
;
height
:
800rpx
;
background
:
#FFFFFF
;
border-radius
:
12rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
.qrcode
{
margin-top
:
160rpx
;
}
.desc
{
margin-top
:
40rpx
;
font-size
:
24rpx
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
24rpx
;
}
}
}
</
style
>
</
style
>
src/pages/mine/wallet/index.vue
View file @
6fe9ef63
<
template
>
<
template
>
<view
class=
"wallet-view"
>
<view
class=
"wallet-view"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"我的钱包"
titleColor=
"#333333"
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"我的钱包"
titleColor=
"#333333"
:border-bottom=
"false"
></u-navbar>
:border-bottom=
"false"
title-bold
></u-navbar>
<view
class=
"wallet-content-view"
>
<view
class=
"wallet-content-view"
>
<view
class=
"header-view"
>
<view
class=
"header-view"
>
<image
class=
"header-image"
mode=
"widthFix"
:src=
"qianbaobeijing"
></image>
<image
class=
"header-image"
mode=
"widthFix"
:src=
"qianbaobeijing"
></image>
...
...
src/pages/mine/wallet/settlement.vue
View file @
6fe9ef63
<
template
>
<
template
>
<view
class=
"settlement-view"
>
<view
class=
"settlement-view"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"结算账单"
titleColor=
"#333333"
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"结算账单"
titleColor=
"#333333"
:border-bottom=
"false"
></u-navbar>
:border-bottom=
"false"
title-bold
></u-navbar>
<view
class=
"settlement-conten"
>
<view
class=
"settlement-conten"
>
<view
class=
"settlement-content-view"
>
<view
class=
"settlement-content-view"
>
<view
class=
"head-view"
>
<view
class=
"head-view"
>
...
...
src/pages/mine/wallet/statement.vue
View file @
6fe9ef63
<
template
>
<
template
>
<view
class=
"statement-view"
>
<view
class=
"statement-view"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"收入流水"
titleColor=
"#333333"
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"收入流水"
titleColor=
"#333333"
:border-bottom=
"false"
></u-navbar>
:border-bottom=
"false"
title-bold
></u-navbar>
<view
class=
"statement-conten"
>
<view
class=
"statement-conten"
>
<view
class=
"statement-content-view"
>
<view
class=
"statement-content-view"
>
<view
class=
"head-view"
>
<view
class=
"head-view"
>
...
...
src/pages/mine/wallet/withdraw.vue
View file @
6fe9ef63
<
template
>
<
template
>
<view
class=
"withdraw-view"
>
<view
class=
"withdraw-view"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"提现"
titleColor=
"#333333"
:border-bottom=
"false"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#F4F5F7"
title=
"提现"
titleColor=
"#333333"
:border-bottom=
"false"
title-bold
>
</u-navbar>
</u-navbar>
<view
class=
"withdraw-content"
>
<view
class=
"withdraw-content"
>
<view
class=
"withdraw-content-main"
>
<view
class=
"withdraw-content-main"
>
...
...
src/pages/order/complete.vue
View file @
6fe9ef63
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view
class=
"com-content"
>
<view
class=
"com-content"
>
<complete-check
:show=
"completeCheckStatus"
:list-data=
"completeCheckResult"
:pass=
"pass"
@
close=
"closeCheckResult"
@
handle=
"handerProgrom"
@
change=
"confirm"
></complete-check>
<complete-check
:show=
"completeCheckStatus"
:list-data=
"completeCheckResult"
:pass=
"pass"
@
close=
"closeCheckResult"
@
handle=
"handerProgrom"
@
change=
"confirm"
></complete-check>
<view
class=
"u-wrap"
>
<view
class=
"u-wrap"
>
<u-navbar
:background=
"
{background: '#2272FF'}" back-icon-color="#fff" :title-size="32" title-color="#fff" :border-bottom="false" title="完工信息">
</u-navbar>
<u-navbar
:background=
"
{background: '#2272FF'}" back-icon-color="#fff" :title-size="32" title-color="#fff" :border-bottom="false" title="完工信息"
title-bold
>
</u-navbar>
<u-tabs
class=
"order-tabs"
ref=
"tabs"
:current=
"tabIndex"
name=
"panelName"
:list=
"list"
@
change=
"tabsChange"
:is-scroll=
"false"
bg-color=
"#2272FF"
inactive-color=
"#a6c6ff"
active-color=
"#fff"
height=
"80"
font-size=
"32"
></u-tabs>
<u-tabs
class=
"order-tabs"
ref=
"tabs"
:current=
"tabIndex"
name=
"panelName"
:list=
"list"
@
change=
"tabsChange"
:is-scroll=
"false"
bg-color=
"#2272FF"
inactive-color=
"#a6c6ff"
active-color=
"#fff"
height=
"80"
font-size=
"32"
></u-tabs>
<view
class=
"u-menu-wrap"
>
<view
class=
"u-menu-wrap"
>
<scroll-view
scroll-y
scroll-with-animation
class=
"u-tab-view menu-scroll-view"
:scroll-top=
"scrollTop"
:scroll-into-view=
"itemId"
v-if=
"list[tabIndex].items.length > 1"
>
<scroll-view
scroll-y
scroll-with-animation
class=
"u-tab-view menu-scroll-view"
:scroll-top=
"scrollTop"
:scroll-into-view=
"itemId"
v-if=
"list[tabIndex].items.length > 1"
>
...
...
src/pages/order/detail.vue
View file @
6fe9ef63
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<text>
客户信息:
</text>
<text>
客户信息:
</text>
<text>
{{
order
.
contactName
}}
</text>
<text>
{{
order
.
contactName
}}
</text>
</view>
</view>
<
u-image
width=
"84rpx"
height=
"56rpx"
:src=
"phoneIcon"
@
click=
"phoneToCustomer(order.contactPhone)"
></u-
image>
<
image
style=
"width: 84rpx;height: 56rpx;"
:src=
"phoneIcon"
@
click=
"phoneToCustomer(order.contactPhone)"
></
image>
</view>
</view>
<view
class=
"order-cell"
>
<view
class=
"order-cell"
>
<text>
联系方式:
</text>
<text>
联系方式:
</text>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<u-icon
name=
"map"
size=
"28"
></u-icon>
<u-icon
name=
"map"
size=
"28"
></u-icon>
<text
class=
"address-txt"
>
{{
formatAddress
}}
</text>
<text
class=
"address-txt"
>
{{
formatAddress
}}
</text>
</view>
</view>
<
u-image
width=
"84rpx"
height=
"56rpx"
:src=
"navigationIcon"
@
click=
"openLocation(order.contactAddress)"
></u-
image>
<
image
style=
"width: 84rpx;height: 56rpx;"
:src=
"navigationIcon"
@
click=
"openLocation(order.contactAddress)"
></
image>
</view>
</view>
<!--
<u-read-more
ref=
"uReadMore"
:show-height=
"40"
:shadowStyle=
"
{paddingTop: '0rpx',marginTop: '0rpx'}" close-text="查看更多" open-text="点击收起" toggle color="#2272FF" font-size="26"> -->
<!--
<u-read-more
ref=
"uReadMore"
:show-height=
"40"
:shadowStyle=
"
{paddingTop: '0rpx',marginTop: '0rpx'}" close-text="查看更多" open-text="点击收起" toggle color="#2272FF" font-size="26"> -->
<view
v-if=
"readMore"
@
click=
"readMore = false"
class=
"read-more-toggle"
>
<view
v-if=
"readMore"
@
click=
"readMore = false"
class=
"read-more-toggle"
>
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
scenePhoto
:
false
,
scenePhoto
:
false
,
isErrorSign
:
false
,
isErrorSign
:
false
,
errorSignUrl
:
''
,
errorSignUrl
:
''
,
isAllowDianhuaAndDaohang
:
fals
e
,
isAllowDianhuaAndDaohang
:
tru
e
,
appointmentDatetimeRange
:
''
,
appointmentDatetimeRange
:
''
,
appointmentDatetime
:
''
,
appointmentDatetime
:
''
,
signDistance
:
3000
,
signDistance
:
3000
,
...
@@ -676,28 +676,14 @@
...
@@ -676,28 +676,14 @@
})
})
},
},
filish
(){
filish
(){
let
self
=
this
// 去完工
var
data
=
{
uni
.
navigateTo
({
'orderId'
:
self
.
orderId
url
:
'pages/order/complete?orderId='
+
this
.
order
.
orderId
};
+
"&categoryId="
+
this
.
order
.
categoryId
self
.
$u
.
api
.
orderDetail
(
data
,
self
.
orderId
).
then
((
res
)
=>
{
+
"&orderServiceType="
+
this
.
order
.
orderServiceType
if
(
res
.
code
==
200
)
{
+
"&inGuaranteePeriod="
+
this
.
order
.
inGuaranteePeriod
if
(
res
.
data
.
orderStatus
>
31
&&
res
.
data
.
orderStatus
<
80
){
+
"&partnerCompanyId="
+
this
.
order
.
partnerCompanyId
// 去完工
})
uni
.
navigateTo
({
url
:
'pages/order/complete?orderId='
+
this
.
order
.
orderId
+
"&categoryId="
+
this
.
order
.
categoryId
+
"&orderServiceType="
+
this
.
order
.
orderServiceType
+
"&inGuaranteePeriod="
+
this
.
order
.
inGuaranteePeriod
+
"&partnerCompanyId="
+
this
.
order
.
partnerCompanyId
})
}
else
{
this
.
commonToast
(
'当前工单已被改派!'
,
'warning'
)
}
}
else
{
console
.
log
(
res
.
message
,
"获取订单详情失败!"
);
}
});
},
},
rejectOrder
()
{
// 拒单
rejectOrder
()
{
// 拒单
// 检查是否可以拒单
// 检查是否可以拒单
...
...
src/pages/order/feedback.vue
View file @
6fe9ef63
<!-- 过程反馈 -->
<!-- 过程反馈 -->
<
template
>
<
template
>
<view
class=
"feedback-box bg"
>
<view
class=
"feedback-box bg"
>
<u-navbar
back-icon-color=
"#FFFFFF"
:background=
"background"
title=
"过程反馈"
titleColor=
"#FFFFFF"
:border-bottom=
"false"
></u-navbar>
<u-navbar
back-icon-color=
"#FFFFFF"
:background=
"background"
title=
"过程反馈"
titleColor=
"#FFFFFF"
:border-bottom=
"false"
title-bold
></u-navbar>
<view
class=
"content u-p-l-30 u-p-r-30"
>
<view
class=
"content u-p-l-30 u-p-r-30"
>
<view
class=
"top-tab"
>
<view
class=
"top-tab"
>
<u-tabs
<u-tabs
...
...
src/pages/photo/list.vue
View file @
6fe9ef63
<
template
>
<
template
>
<view
class=
"backView"
>
<view
class=
"backView"
>
<u-navbar
:title-size=
"32"
title-color=
"#000"
:border-bottom=
"false"
:title=
"title"
></u-navbar>
<u-navbar
:title-size=
"32"
title-color=
"#000"
:border-bottom=
"false"
:title=
"title"
title-bold
></u-navbar>
<u-loading
style=
"position: fixed;top: 50%;"
:show=
"loading"
size=
"36"
mode=
"flower"
></u-loading>
<u-loading
style=
"position: fixed;top: 50%;"
:show=
"loading"
size=
"36"
mode=
"flower"
></u-loading>
<view
class=
"topView"
>
<view
class=
"topView"
>
<view
:class=
"['topItemView',
{'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)"
<view
:class=
"['topItemView',
{'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)"
...
...
src/pages/settle/prompt.vue
View file @
6fe9ef63
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
statusName
:
'已支付保证金'
,
statusName
:
'已支付保证金'
,
txtArr
:
[
'您已成功缴纳配件押金'
,
" 成功缴纳配件押金后即前往接单"
],
txtArr
:
[
'您已成功缴纳配件押金'
,
" 成功缴纳配件押金后即前往接单"
],
btnTxt
:
'去首页'
,
btnTxt
:
'去首页'
,
url
:
'/pages/index/index'
url
:
'/pages/index/index
?visible=1
'
}],
}],
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
status
:
''
,
status
:
''
,
...
...
src/pages/settle/sign-contract.vue
View file @
6fe9ef63
...
@@ -103,13 +103,16 @@
...
@@ -103,13 +103,16 @@
}
}
},
},
onLoad
(
e
)
{},
onLoad
(
e
)
{},
onShow
()
{
onShow
()
{
/** 测试提了bug:ID1001079【首页-入驻-在线签约】:输入好各个字段信息,切换到其他APP再切换回来,会把已填的信息自动清空
不知道这一段当初为什么加,就屏蔽了
const refs = this.$refs
const refs = this.$refs
this.$nextTick(() => {
this.$nextTick(() => {
if (refs['radio'] && refs['radio'].length > 0) {
if (refs['radio'] && refs['radio'].length > 0) {
refs['radio'][0].setRadioCheckedStatus()
refs['radio'][0].setRadioCheckedStatus()
}
}
})
})
*/
this
.
startCounting
()
this
.
startCounting
()
this
.
getBaseInfo
()
this
.
getBaseInfo
()
...
...
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