Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
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
向伟
educationStu
Commits
ca7b0e67
Commit
ca7b0e67
authored
Sep 14, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
424701f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
192 additions
and
1 deletion
+192
-1
pages.json
src/pages.json
+17
-1
activeList.vue
src/pages/active/activeList.vue
+175
-0
No files found.
src/pages.json
View file @
ca7b0e67
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
"path"
:
"pages/surplusTime/surplusTime"
//剩余时间
"path"
:
"pages/surplusTime/surplusTime"
//剩余时间
},
{
},
{
"path"
:
"pages/progress/progress"
//进度
"path"
:
"pages/progress/progress"
//进度
},
{
"path"
:
"pages/active/activeList"
//活动列表
}],
}],
"subPackages"
:
[{
"subPackages"
:
[{
"root"
:
"pages/course"
,
//课程分包
"root"
:
"pages/course"
,
//课程分包
...
@@ -64,6 +66,20 @@
...
@@ -64,6 +66,20 @@
}]
}]
}
}
],
],
"tabBar"
:
{
"color"
:
"#7A7E83"
,
"selectedColor"
:
"#3cc51f"
,
"borderStyle"
:
"black"
,
"backgroundColor"
:
"#ffffff"
,
"fontSize"
:
"24rpx"
,
"list"
:
[{
"pagePath"
:
"pages/index/index"
,
"text"
:
"首页"
},
{
"pagePath"
:
"pages/active/activeList"
,
"text"
:
"活动"
}]
},
"globalStyle"
:
{
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarBackgroundColor"
:
"#F8F8F8"
,
"navigationBarBackgroundColor"
:
"#F8F8F8"
,
...
@@ -117,7 +133,7 @@
...
@@ -117,7 +133,7 @@
"van-tab"
:
"/wxcomponents/vant/tab/index"
,
//
"van-tab"
:
"/wxcomponents/vant/tab/index"
,
//
"van-tabs"
:
"/wxcomponents/vant/tabs/index"
,
//
"van-tabs"
:
"/wxcomponents/vant/tabs/index"
,
//
"van-tree-select"
:
"/wxcomponents/vant/tree-select/index"
,
//
"van-tree-select"
:
"/wxcomponents/vant/tree-select/index"
,
//
"van-count-down"
:
"/wxcomponents/vant/count-down/index"
"van-count-down"
:
"/wxcomponents/vant/count-down/index"
}
}
}
}
}
}
\ No newline at end of file
src/pages/active/activeList.vue
0 → 100644
View file @
ca7b0e67
<
template
>
<view
class=
"course-box"
>
<van-toast
id=
"van-toast"
/>
<view
class=
"top-bar flex"
>
<view
class=
"top-left flex flex_between_center"
>
<view
class=
"top-title"
>
电子合同
</view>
<van-image
width=
"58rpx"
height=
"66rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/icon5.png"
/>
</view>
<view
class=
"top-right flex_grow"
>
<view
class=
"course-name one_line"
>
{{
CourseName
}}
</view>
<view
class=
"section-name one_line"
>
{{
data
.
length
}}
个合同
</view>
</view>
</view>
<van-empty
description=
"暂无数据"
v-if=
"data.length === 0"
/>
<view
v-for=
"(item, index) in data"
:key=
"index"
class=
"data-item"
v-if=
"data.length > 0"
>
<view
class=
"contract-name"
>
<van-image
width=
"22rpx"
height=
"24rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/contracticon.png"
style=
"margin-right: 10rpx"
/>
{{
item
.
ContractNo
}}
</view
>
<view
class=
"contract-con"
v-if=
"item.Type === 1"
>
订单合同
</view>
<view
class=
"contract-con"
v-if=
"item.Type === 2"
>
退课合同
</view>
<van-image
width=
"80rpx"
height=
"80rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/contract.png"
class=
"contract-icon"
v-if=
"item.IsCompanySeal === 1"
/>
</view>
</view>
</
template
>
<
script
>
import
{
ref
,
reactive
,
toRefs
,
toRef
,
getCurrentInstance
,
watch
,
computed
,
onMounted
,
}
from
"vue"
;
import
{
getContract
}
from
"../../api/index"
;
let
{
CourseName
}
=
uni
.
getStorageSync
(
"indexData"
);
export
default
{
setup
()
{
let
data
=
reactive
({
pageloading
:
false
,
CourseName
,
data
:
[],
});
let
methods
=
{
async
getdata
()
{
let
res
=
await
getContract
({});
if
(
res
)
{
if
(
res
.
Data
.
length
===
0
)
{
data
.
pageloading
=
true
;
}
else
{
data
.
pageloading
=
false
;
}
console
.
log
(
69
,
res
);
data
.
data
=
res
.
Data
;
}
},
};
onMounted
(()
=>
{
// that.getdata();
});
let
that
=
methods
;
return
{
...
toRefs
(
data
),
...
methods
,
};
},
onLoad
()
{
uni
.
setNavigationBarTitle
({
title
:
"活动列表"
,
});
},
};
</
script
>
<
style
scoped
>
.course-box
{
padding
:
30
rpx
;
}
.top-bar
{
height
:
120
rpx
;
margin-bottom
:
28
rpx
;
}
.top-left
{
width
:
220
rpx
;
height
:
120
rpx
;
background-color
:
#d9faf1
;
border-radius
:
20
rpx
;
margin-right
:
30
rpx
;
box-sizing
:
border-box
;
padding
:
0
20
rpx
;
}
.top-title
{
font-size
:
28
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#0f1b35
;
}
.top-right
{
height
:
100%
;
}
.course-name
{
box-sizing
:
border-box
;
font-size
:
30
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#111111
;
height
:
50%
;
line-height
:
70
rpx
;
}
.section-name
{
font-size
:
24
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
height
:
50%
;
line-height
:
50
rpx
;
}
.data-item
{
margin-top
:
30
rpx
;
box-sizing
:
border-box
;
padding
:
30
rpx
;
box-shadow
:
0
rpx
4
rpx
10
rpx
0
rpx
rgba
(
36
,
36
,
36
,
0.2
);
position
:
relative
;
}
.contract-icon
{
position
:
absolute
;
top
:
10
rpx
;
right
:
10
rpx
;
}
.contract-name
{
max-width
:
80%
;
font-size
:
28
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#111111
;
margin-bottom
:
20
rpx
;
}
.contract-con
{
max-width
:
80%
;
font-size
:
22
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
margin-left
:
30
rpx
;
}
/
deep
/
.van-skeleton
{
padding
:
0
;
}
</
style
>
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