Commit f3c2ba8dbcb2308d4d01047212a22d4ecd8abb1e
1 parent
8a5ba5b9
会员中心
Showing
3 changed files
with
12 additions
and
5 deletions
components/diy_user_info/diy_user_info.js
1 | +var s = getApp().globalData.setting; | |
1 | 2 | Component({ |
2 | 3 | properties: { |
3 | 4 | object: { |
... | ... | @@ -8,7 +9,8 @@ Component({ |
8 | 9 | }, |
9 | 10 | data: { |
10 | 11 | // 这里是一些组件内部数据 |
11 | - someData: {} | |
12 | + iurl: s.imghost, | |
13 | + defaultAvatar: s.imghost + "/miniapp/images/no-head.jpg", | |
12 | 14 | }, |
13 | 15 | methods: { |
14 | 16 | // 这里是一个自定义方法 | ... | ... |
components/diy_user_info/diy_user_info.wxml
components/diy_user_info/diy_user_info.wxss
... | ... | @@ -38,8 +38,6 @@ |
38 | 38 | /*-- 头部 --*/ |
39 | 39 | .xc-user .xc-head { |
40 | 40 | height: 335rpx; |
41 | - padding: 0 10rpx 10rpx; | |
42 | - padding-top: 10rpx; | |
43 | 41 | } |
44 | 42 | |
45 | 43 | .xc-background { |
... | ... | @@ -116,4 +114,11 @@ |
116 | 114 | padding-right: 16rpx; |
117 | 115 | padding-bottom: 3rpx; |
118 | 116 | margin-right: 5rpx; |
119 | -} | |
120 | 117 | \ No newline at end of file |
118 | +} | |
119 | +.xc-assets { | |
120 | + width: 94%; | |
121 | + bottom: 32rpx; | |
122 | + color: #fff; | |
123 | + line-height: 46rpx; | |
124 | + margin-left: 10rpx; | |
125 | +} | ... | ... |