Skip to content

Commit

Permalink
样式调整
Browse files Browse the repository at this point in the history
  • Loading branch information
fozero committed Nov 20, 2016
1 parent 59174d2 commit 5e14a62
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 19 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ https://mp.weixin.qq.com/debug/wxadoc/dev/?t=20161107
- 项目预览体验


![zhihudaily-weapp.gif](http://upload-images.jianshu.io/upload_images/1410006-3d284988d34cb4fd.gif?imageMogr2/auto-orient/strip)



# 必须掌握的几个知识点

Expand Down
2 changes: 1 addition & 1 deletion components/comments/comments.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<view>
<view class="fl_left">{{author}}</view>
<view class="fl_right">
<image src="../../images/ico_like.png" style="width:22px;height:22px;"></image>
<image src="../../images/ic_answer_like_normal.png" style="width:22px;height:22px;"></image>
{{likes}}
</view>
<view class="clearfix"></view>
Expand Down
Binary file added images/ic_answer_like_normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ic_answer_like_pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ico_answer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/ico_like.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/index_normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/index_pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/section_normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/section_pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 6 additions & 7 deletions pages/detail/detail.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@
</view>

<!--额外信息-->
<view style="background-color:#4abdcc;position:fixed;bottom:0;width:100%;padding:5px;height:42px;">
<view id="{{newsid}}" class="fl_left" bindtap="showComments">
<view style="background-color:#4abdcc;position:fixed;bottom:0;width:100%;padding:5px;height:42px;color:#fff;display:flex;flex-direction:row-reverse;">
<view id="{{newsid}}" class="" style="" bindtap="doLike" style="margin-right: 20px;height:42px;line-height:42px;">
<image src="../../images/ico_like.png" style="width:22px;height:22px;"></image>
{{comments}}
<text>{{popularity}}</text>
</view>
<view id="{{newsid}}" class="fl_left" style="" bindtap="doLike">
<image src="../../images/ico_like_actived.png" style="width:22px;height:22px;"></image>
{{popularity}}
<view id="{{newsid}}" class="" bindtap="showComments" style="margin-right: 10px;height:42px;line-height:42px;">
<image src="../../images/ico_answer.png" style="width:22px;height:22px;"></image>
<text>{{comments}}</text>
</view>
<view class="clearfix"></view>
</view>

</view>
4 changes: 2 additions & 2 deletions pages/section/section.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Page({
description:"",
themeimage:"",
editors:"",
themesid:""
curNav:""
},
onLoad:function(){
this.getThemes();
Expand Down Expand Up @@ -68,7 +68,7 @@ Page({
description:res.data.description,
themeimage:res.data.image,
editors:res.data.editors,
themesid:themeid //更新当前选中专栏id 用于在前台页面进行比对
curNav:themeid //更新当前选中专栏id 用于在前台页面进行比对
})

//更新主题标题栏
Expand Down
8 changes: 1 addition & 7 deletions pages/section/section.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@
<!--专栏tab选项卡-->
<scroll-view scroll-x="true" class="section_tabs">
<block wx:for="{{themes}}" wx:for-index="index" wx:for-item="item">
<!--对比当前选中的主题id-->
<block wx:if="{{themesid == item.id}}">
<view id="{{item.id}}" bindtap="toGetThemesContent" class="section_tabs_item actived">{{item.name}}</view>
</block >
<block wx:else>
<view id="{{item.id}}" bindtap="toGetThemesContent" class="section_tabs_item">{{item.name}}</view>
</block >
<view id="{{item.id}}" bindtap="toGetThemesContent" class="section_tabs_item {{curNav == item.id ? 'actived' : ''}}">{{item.name}}</view>
</block>
</scroll-view>

Expand Down
4 changes: 2 additions & 2 deletions pages/section/section.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
}

.section_tabs .actived{
color: #42bd56;
border-bottom: #42bd56 solid 2px;
color: #4abdcc;
border-bottom: #4abdcc solid 2px;
}


0 comments on commit 5e14a62

Please sign in to comment.