Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
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
游洁
thinkApp
Commits
2ffabe70
Commit
2ffabe70
authored
Jun 16, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
fddae8d0
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
106 additions
and
46 deletions
+106
-46
examList.vue
src/components/index/workSituation/examList.vue
+60
-28
signOut.vue
src/components/signOut.vue
+34
-8
pages.json
src/pages.json
+3
-0
index.vue
src/pages/index/index.vue
+1
-1
jobDetails.vue
src/pages/index/jobDetails.vue
+0
-7
workSituation.vue
src/pages/index/workSituation.vue
+1
-1
accountLogin.vue
src/pages/login/accountLogin.vue
+2
-0
request.js
src/utils/request.js
+5
-1
No files found.
src/components/index/workSituation/examList.vue
View file @
2ffabe70
...
...
@@ -5,10 +5,18 @@
<text>
导入考试信息
</text>
</view>
<block
v-if=
"dataList && dataList.length>0"
>
<view
class=
"examList activeOne"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view
class=
"examList-center-box"
@
click=
"examDetails(item)"
>
<view
style=
"border-radius: 50rpx;background: #ffffff;overflow: hidden;box-shadow: 0px 6px 29px 0px rgba(76, 76, 76, 0.09);margin-bottom: 40rpx;"
class=
"examList activeOne"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<van-swipe-cell
id=
"swipe-cell"
:right-width=
"116"
async-close
:key=
"index"
@
close=
"onClose"
>
<view
class=
"examList-center-box"
>
<view
class=
"examList-center-line"
></view>
<view
class=
"examList-center flex"
>
<view
class=
"examList-center flex"
@
click=
"examDetails(item)"
>
<view
class=
"examList-left"
>
<view
class=
"examList-name"
>
{{
item
.
ExamName
}}
</view>
<view
class=
"examList-state flex"
>
...
...
@@ -31,7 +39,7 @@
</view>
</view>
</view>
<view
class=
"examList-center-hint flex"
v-if=
"item.FailNum>0"
>
<view
class=
"examList-center-hint flex"
v-if=
"item.FailNum>0"
@
click=
"examDetails(item)"
>
<view
class=
"examList-hint-left flex"
>
<van-icon
name=
"warning"
/>
<view>
...
...
@@ -42,8 +50,12 @@
<view
@
click
.
stop=
"clickReimport(item)"
>
重新导入
</view>
</view>
</view>
<view
slot=
"right"
class=
"van-swipe-cell__right"
>
<van-button
square
type=
"danger"
@
click
.
stop=
"DelExamInfo(item)"
custom-style=
"height:100%;"
>
删除
</van-button>
</view>
</view>
</van-swipe-cell>
</view>
</block>
<view
class=
"noData"
v-else
>
...
...
@@ -140,6 +152,17 @@
}
)
let
methods
=
{
onClose
(
event
)
{
const
{
position
,
instance
}
=
event
.
detail
;
console
.
log
(
position
,
'55555'
+
instance
)
switch
(
position
)
{
case
'left'
:
case
'cell'
:
case
'right'
:
instance
.
close
();
break
;
}
},
// 跳web上传
goUrlWebview
(){
if
(
data
.
platform
==
'windows'
||
data
.
platform
==
'mac'
){
...
...
@@ -171,12 +194,29 @@
},
// 重新导入
clickReimport
(
item
){
this
.
goUrlWebview
()
},
// 删除接口
DelExamInfo
(
item
){
uni
.
showModal
({
title
:
'提示'
,
content
:
'
重新导入
将要清除此考试数据,是否继续'
,
content
:
'将要清除此考试数据,是否继续'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
that
.
DelExamInfo
(
item
)
let
Msg
=
{
ExamId
:
item
.
ExamId
}
proxy
.
$request
(
"/Exam/DelExamInfo"
,
Msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
uni
.
showToast
({
title
:
'删除成功'
,
icon
:
'none'
,
duration
:
500
})
proxy
.
$parent
.
getExamPageList
();
}
})
}
else
if
(
res
.
cancel
)
{
uni
.
showToast
({
title
:
'已取消'
,
...
...
@@ -186,23 +226,7 @@
}
}
});
},
// 删除接口
DelExamInfo
(
item
){
let
Msg
=
{
ExamId
:
item
.
ExamId
}
proxy
.
$request
(
"/Exam/DelExamInfo"
,
Msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
uni
.
showToast
({
title
:
'删除成功'
,
icon
:
'none'
,
duration
:
500
})
data
.
show
=
true
;
proxy
.
$parent
.
getExamPageList
();
}
})
},
ImportInformation
(){
data
.
show
=
true
...
...
@@ -330,6 +354,16 @@
};
</
script
>
<
style
scoped
>
.van-swipe-cell__left
,
.van-swipe-cell__right
{
position
:
absolute
;
top
:
0
;
height
:
100%
;
right
:
-96
rpx
;
width
:
232px
;
-webkit-transform
:
translate3d
(
100%
,
0
,
0
);
transform
:
translate3d
(
100%
,
0
,
0
);
}
.examList-box
.noData
{
text-align
:
center
;
flex
:
1
;
...
...
@@ -531,16 +565,14 @@
top
:
46
rpx
;
}
.examList.activeOne
.examList-center-box
{
background
:
#FFFFFF
;
/* background: #FFFFFF; */
}
.examList-center-box
{
flex-grow
:
1
;
position
:
relative
;
border-radius
:
30
rpx
;
padding
:
31
rpx
40
rpx
0
22
rpx
;
margin-bottom
:
50
rpx
;
box-shadow
:
0px
6px
29px
0px
rgba
(
76
,
76
,
76
,
0.09
);
border-radius
:
30px
;
/* margin-bottom: 50rpx; */
}
.examList
{
margin
:
0
50
rpx
;
...
...
src/components/signOut.vue
View file @
2ffabe70
<
template
>
<view
class=
"signOut-box"
@
click=
"signOut"
>
<view
class=
"signOut-box"
>
<view
class=
"index-header-signOut flex"
>
<van-image
width=
"72rpx"
height=
"72rpx"
fit=
"cover"
class=
"img"
<van-image
@
click=
"signOut"
width=
"72rpx"
height=
"72rpx"
fit=
"cover"
class=
"img"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1654580469000_635.png"
/>
<text>
退出登录
</text>
<text
@
click=
"signOut"
>
退出登录
</text>
<view
v-if=
"changePasswordShow"
class=
"changePassword flex"
@
click=
"goChangePassword"
>
<van-image
width=
"38rpx"
height=
"38rpx"
fit=
"cover"
class=
"img"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1655279741000_34.png"
/>
修改密码
</view>
</view>
</view>
</
template
>
...
...
@@ -11,15 +19,18 @@
import
{
reactive
,
toRefs
,
onMounted
}
from
"vue"
;
export
default
{
name
:
""
,
props
:
{
},
props
:
[
"AccountType"
],
components
:
{},
setup
(
props
)
{
let
data
=
reactive
({
changePasswordShow
:
false
});
let
methods
=
{
goChangePassword
(){
uni
.
navigateTo
({
url
:
'/pages/login/changePassword'
})
},
signOut
(){
uni
.
showModal
({
title
:
'提示'
,
...
...
@@ -40,7 +51,7 @@
};
onMounted
(()
=>
{
data
.
changePasswordShow
=
props
.
AccountType
});
return
{
...
toRefs
(
data
),
...
...
@@ -63,4 +74,19 @@
.signOut-box
{
padding
:
0
30
rpx
;
}
.changePassword
{
color
:
#282828
;
font-size
:
26
rpx
;
font-weight
:
bold
;
/* border-left: 1rpx solid #AFAFAF; */
margin-left
:
20
rpx
;
padding
:
10
rpx
10
rpx
10
rpx
35
rpx
;
letter-spacing
:
2
rpx
;
align-items
:
center
;
}
.changePassword
.img
{
margin-right
:
20
rpx
;
position
:
relative
;
top
:
4
rpx
;
}
</
style
>
\ No newline at end of file
src/pages.json
View file @
2ffabe70
...
...
@@ -38,6 +38,9 @@
}
},{
"path"
:
"pages/login/accountLogin"
,
"text"
:
"修改密码"
},{
"path"
:
"pages/login/changePassword"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
...
...
src/pages/index/index.vue
View file @
2ffabe70
...
...
@@ -13,7 +13,7 @@
<view
class=
"index-header-name"
>
{{
userData
.
AccountName
}}
</view>
</view>
</view>
-->
<signOut></signOut>
<signOut
:AccountType=
"0"
></signOut>
</navbar>
<view
style=
"margin: 40rpx 0 10rpx 0;"
>
<view
style=
"padding:0 50rpx;font-weight: 800;color: #282828;"
>
...
...
src/pages/index/jobDetails.vue
View file @
2ffabe70
...
...
@@ -163,13 +163,6 @@
z-index
:
0
;
}
.jobDetails-header-title
{
/* position: absolute;
left: 0;
right: 0;
top: 0;
padding: 37rpx 31rpx;
text-align: center;
letter-spacing: 1rpx; */
font-size
:
32
rpx
;
font-weight
:
500
;
color
:
#282828
;
...
...
src/pages/index/workSituation.vue
View file @
2ffabe70
...
...
@@ -14,7 +14,7 @@
<view
class=
"index-header-name"
>
{{
userData
.
AccountName
}}
</view>
</view>
</view>
-->
<signOut></signOut>
<signOut
:AccountType=
"1"
></signOut>
</navbar>
<view
style=
"margin: 40rpx 0 10rpx 0;"
class=
"workSituationAccountName flex"
>
<view
style=
"padding:0 50rpx;font-weight: 800;color: #282828;"
>
...
...
src/pages/login/accountLogin.vue
View file @
2ffabe70
...
...
@@ -158,6 +158,8 @@
data
.
loading
=
false
Toast
.
fail
(
"账号类型选择错误,请根据真实身份选择"
)
}
}
else
{
data
.
loading
=
false
}
}).
catch
(
e
=>
{
data
.
loading
=
false
...
...
src/utils/request.js
View file @
2ffabe70
...
...
@@ -3,6 +3,8 @@ let host = ''
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
//host = 'http://localhost:5004/api'
host
=
'https://jjswapi.oytour.com/api'
// host = 'http://192.168.10.46:8900/api'
// host = 'http://192.168.10.36:8082/api'
}
else
{
host
=
'https://jjswapi.oytour.com/api'
}
...
...
@@ -42,13 +44,15 @@ let request = (param) => {
duration
:
2000
,
icon
:
"none"
,
success
()
{
if
(
res
.
data
.
Code
===
0
&&
res
.
data
.
Data
.
Error
==-
1
){
//如果电话号码没有
if
(
res
.
data
.
Code
===
0
){
resolve
(
res
.
data
)
}
else
{
reject
()
}
}
});
}
}
...
...
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