Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wandouchengzhang_coach
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
石盼盼
wandouchengzhang_coach
Commits
fb858ca5
Commit
fb858ca5
authored
Nov 15, 2020
by
石盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
所有徽章接口对接,所有徽章页面
parent
148f8a64
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
162 additions
and
0 deletions
+162
-0
app.json
app.json
+1
-0
add.png
images/add.png
+0
-0
badgelist.js
pages/index/badgelist/badgelist.js
+61
-0
badgelist.json
pages/index/badgelist/badgelist.json
+4
-0
badgelist.wxml
pages/index/badgelist/badgelist.wxml
+16
-0
badgelist.wxss
pages/index/badgelist/badgelist.wxss
+70
-0
evaluation.js
pages/index/evaluation/evaluation.js
+5
-0
evaluation.wxml
pages/index/evaluation/evaluation.wxml
+1
-0
evaluation.wxss
pages/index/evaluation/evaluation.wxss
+4
-0
No files found.
app.json
View file @
fb858ca5
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
"pages/index/classDetail/classDetail"
,
"pages/index/classDetail/classDetail"
,
"pages/index/performance/performance"
,
"pages/index/performance/performance"
,
"pages/index/evaluation/evaluation"
,
"pages/index/evaluation/evaluation"
,
"pages/index/badgelist/badgelist"
,
"pages/team/teamDetail/teamDetail"
"pages/team/teamDetail/teamDetail"
],
],
"tabBar"
:{
"tabBar"
:{
...
...
images/add.png
0 → 100644
View file @
fb858ca5
3.94 KB
pages/index/badgelist/badgelist.js
0 → 100644
View file @
fb858ca5
const
app
=
getApp
()
import
{
Base
}
from
'
../../../utils/base.js
'
;
const
base
=
new
Base
()
Page
({
data
:
{
list
:
[],
selectlist
:[]
},
onLoad
:
function
(
options
)
{
this
.
getList
()
},
getList
()
{
wx
.
showLoading
({
title
:
'
加载中...
'
,
})
let
params
=
{
url
:
'
badges/all
'
,
callback
:
(
data
)
=>
{
console
.
log
(
data
)
wx
.
hideLoading
()
this
.
setData
({
list
:
data
})
// for (let i = 0; i < this.data.list.length; i++) {
// console.log(this.data.list)
// }
}
}
base
.
newRequest
(
params
)
},
chooseOne
:
function
(
e
){
let
index
=
e
.
currentTarget
.
dataset
.
index
console
.
log
(
index
)
if
(
this
.
data
.
selectlist
.
length
<=
2
){
// if(this.data.selectlist.length>1){
// // for( var i=0 ;i<this.data.selectlist.length;i++){
// // if(index == this.data.selectlist[i]){
// // console.log(11111,index)
// // }
// // else{
// // this.data.selectlist.push(index)
// // console.log(this.data.selectlist,22222)
// // }
// // }
// }else{
// this.data.selectlist.push(index)
// }
this
.
data
.
selectlist
.
push
(
index
);
this
.
setData
({
selectlist
:
this
.
data
.
selectlist
})
}
console
.
log
(
this
.
data
.
selectlist
)
}
})
\ No newline at end of file
pages/index/badgelist/badgelist.json
0 → 100644
View file @
fb858ca5
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"我的徽章"
}
\ No newline at end of file
pages/index/badgelist/badgelist.wxml
0 → 100644
View file @
fb858ca5
<view>
<view class="tip">提示:最多选择三个徽章</view>
<view class="top">
<view class="title">运动大满贯</view>
<view class="imgbox flex-h flex-vc flex-hw">
<view wx:for="{{list}}" wx:key='index' wx:for-item='item_a' data-index="{{index}}" bindtap="chooseOne" >
<!-- <view wx:for="{{selectlist}}" wx:key='index' wx:for-item='selectlistOne'></view> -->
<image wx:if="{{selectlist==item_a.id}}" class="bigimg" src="{{item_a.icon.active}}" ></image>
<image wx:else class="bigimg" src="{{item_a.icon}}"></image>
</view>
</view>
</view>
</view>
<view class="button">
<view class="apply" bindtap="goapplyResult">保存</view>
</view>
\ No newline at end of file
pages/index/badgelist/badgelist.wxss
0 → 100644
View file @
fb858ca5
page{
background: #F7F8FA;
}
.tip{
width: 750rpx;
height: 53rpx;
background: #FFF2DD;
padding-left: 30rpx;
color: #7F5C37;
font-size: 24rpx;
line-height: 53rpx;
}
.title {
padding-left: 52rpx;
height: 100rpx;
line-height: 100rpx;
position: relative;
font-size: 30rpx;
font-weight: bold;
color: #1A1A1A;
}
.title::before {
position: absolute;
left: 30rpx;
top: 35rpx;
content: '';
width: 8rpx;
height: 30rpx;
background: #FFC600;
border-radius: 4rpx;
}
.imgbox {
width: 690rpx;
margin: 0 auto;
padding: 60rpx 0 10rpx 0;
background: #fff;
border-radius: 15rpx;
}
.imgbox view{
margin-left:26rpx;
}
.bigimg {
width: 150rpx;
height: 150rpx;
border-radius: 50%;
margin: 0 28rpx 50rpx 28rpx;
}
.bigimg:nth-child(3n-1) {
margin: 0 64rpx 50rpx 64rpx;
}
/* 按钮样式 */
.button{
width: 750rpx;
height: 118rpx;
padding: 18rpx 68rpx 20rpx;
position: fixed;
bottom: 0;
}
.button .apply{
width: 620rpx;
height: 80rpx;
border:none;
background: linear-gradient(-70deg, #FFC600 0%, #FFD400 100%);
border-radius: 40rpx;
color: #000000;
font-size: 30rpx;
text-align: center;
line-height: 80rpx;
}
\ No newline at end of file
pages/index/evaluation/evaluation.js
View file @
fb858ca5
...
@@ -41,5 +41,10 @@ Page({
...
@@ -41,5 +41,10 @@ Page({
currentValue
:
event
.
detail
.
value
,
currentValue
:
event
.
detail
.
value
,
});
});
},
},
gobadgelist
:
function
(){
wx
.
navigateTo
({
url
:
'
../../index/badgelist/badgelist
'
,
})
}
})
})
\ No newline at end of file
pages/index/evaluation/evaluation.wxml
View file @
fb858ca5
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
</view>
</view>
<view class="badge">
<view class="badge">
<view class="title">颁发徽章</view>
<view class="title">颁发徽章</view>
<image src="/images/add.png" bindtap="gobadgelist"></image>
</view>
</view>
</view>
</view>
<view class="button">
<view class="button">
...
...
pages/index/evaluation/evaluation.wxss
View file @
fb858ca5
...
@@ -62,6 +62,10 @@ page {
...
@@ -62,6 +62,10 @@ page {
padding: 50rpx 30rpx;
padding: 50rpx 30rpx;
margin-bottom: 50rpx;
margin-bottom: 50rpx;
}
}
.badge image{
width: 130rpx;
height: 130rpx;
}
.txt{
.txt{
color: #1A1A1A;
color: #1A1A1A;
...
...
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