Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duibaLibrary-wxapp
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
邓沁
duibaLibrary-wxapp
Commits
a8c1c6f9
Commit
a8c1c6f9
authored
Aug 11, 2018
by
王宁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改个人信息
parent
cc7b84a8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
13 deletions
+58
-13
home.js
pages/home/home.js
+21
-2
home.wxml
pages/home/home.wxml
+16
-9
home.wxss
pages/home/home.wxss
+15
-1
project.config.json
project.config.json
+6
-1
No files found.
pages/home/home.js
View file @
a8c1c6f9
Page
({
Page
({
onShow
(){
data
:
{
console
.
log
(
111
)
inputShowed
:
false
,
inputVal
:
""
,
personInfo
:
{
name
:
'w.n'
,
department
:
'推啊前端活动组'
,
awater
:
'http://yun.dui88.com/h5-mami/wn/wn.jpg'
},
myWish
:{
num
:
2
},
myRecommend
:{
status
:
false
}
}
},
onLoad
:
function
()
{
this
.
setData
({
icon60
:
'../../images/avatar.png'
});
}
});
});
\ No newline at end of file
pages/home/home.wxml
View file @
a8c1c6f9
<view class="page">
<view class="page">
<view class="page__bd">
<view class="page__bd">
<view class="weui-cells weui-cells_after-title">
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell">
<view class="weui-cell
personCell
">
<view class="weui-cell__hd" style="position: relative;margin-right: 10px;">
<view class="weui-cell__hd" style="position: relative;margin-right: 10px;">
<image src="../images/pic_160.png" style="width: 50px; height: 50px; display: block"/>
<image src="{{personInfo.awater}}" style="width: 50px; height: 50px; display: block"/>
<view class="weui-badge" style="position: absolute;top: -.4em;right: -.4em;">8</view>
</view>
</view>
<view class="weui-cell__bd">
<view class="weui-cell__bd">
<view
>借阅人姓名
</view>
<view
class='personName'>{{personInfo.name}}
</view>
<view style="font-size: 13px;color: #888888;">
部门
</view>
<view style="font-size: 13px;color: #888888;">
{{personInfo.department}}
</view>
</view>
</view>
</view>
</view>
<view class="weui-cell weui-cell_access">
<view class="weui-cell weui-cell_access">
<view class="weui-cell__bd">
<view class="weui-cell__bd">
<navigator url='/pages/bookdetail/bookdetail' open-type='redirect' hover-class='other-navigator-hover'>
<view style="display: inline-block; vertical-align: middle">借阅信息</view>
<view style="display: inline-block; vertical-align: middle">借阅信息</view>
</navigator>
</view>
</view>
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
</view>
</view>
<view class="weui-cell weui-cell_access">
<view class="weui-cell weui-cell_access">
<view class="weui-cell__bd">
<view class="weui-cell__bd">
<navigator url='/pages/bookdetail/bookdetail' open-type='redirect' hover-class='other-navigator-hover'>
<view style="display: inline-block; vertical-align: middle">我的心愿单</view>
<view style="display: inline-block; vertical-align: middle">我的心愿单</view>
<view class="weui-badge" style="margin-left: 5px;">8</view>
<view class="weui-badge" style="margin-left: 5px;">{{myWish.num}}</view>
</navigator>
</view>
</view>
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
</view>
</view>
<view class="weui-cell weui-cell_access">
<view class="weui-cell weui-cell_access">
<view class="weui-cell__bd">
<view class="weui-cell__bd">
<navigator url='/pages/bookdetail/bookdetail' open-type='redirect' hover-class='other-navigator-hover'>
<view style="display: inline-block; vertical-align: middle">我的推荐</view>
<view style="display: inline-block; vertical-align: middle">我的推荐</view>
<view class="weui-badge" style="margin-left: 5px;">New</view>
<view class="{{myRecommend.status == true ?'weui-badge':'recommendTip'}}" style="margin-left: 5px;">New</view>
</navigator>
</view>
</view>
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
</view>
</view>
</view>
</view>
<view class='markInfor'>兑吧图书馆</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
pages/home/home.wxss
View file @
a8c1c6f9
/* example/badge/badge.wxss */
/* example/badge/badge.wxss */
.personName{
font-size: 18px;
}
.markInfor{
margin-top: 100px;
width: 100%;
text-align: center;
font-size: 24px;
font-style: italic;
color: #e0ddd8;
}
.recommendTip{
font-size: 0;
}
\ No newline at end of file
project.config.json
View file @
a8c1c6f9
...
@@ -33,13 +33,18 @@
...
@@ -33,13 +33,18 @@
"list"
:
[]
"list"
:
[]
},
},
"miniprogram"
:
{
"miniprogram"
:
{
"current"
:
0
,
"current"
:
1
,
"list"
:
[
"list"
:
[
{
{
"id"
:
0
,
"id"
:
0
,
"name"
:
"1"
,
"name"
:
"1"
,
"pathName"
:
"pages/borrowDetail/borrowDetail"
,
"pathName"
:
"pages/borrowDetail/borrowDetail"
,
"query"
:
""
"query"
:
""
},
{
"id"
:
-1
,
"name"
:
"wn"
,
"pathName"
:
"pages/home/home"
}
}
]
]
}
}
...
...
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