Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
More beautiful ui
Browse files Browse the repository at this point in the history
  • Loading branch information
hqy2000 committed Jun 21, 2018
1 parent d9e2859 commit 6411f74
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 26 deletions.
11 changes: 6 additions & 5 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"pages":[
"pages": [
"pages/index/index",
"pages/index/login",
"pages/index/user",
"pages/blackboard/index"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#f8f8f8",
"backgroundColor": "#f8f8f8",
"navigationBarTitleText": "南外人黑板",
"navigationBarTextStyle":"black"
"navigationBarTextStyle": "black"
}
}
2 changes: 1 addition & 1 deletion pages/blackboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const moment = require('../../lib/moment-with-locales.min');
Page({
data: {
classes: [],
clazIndex: 0,
clazIndex: 1,
clazInfo: [],
datail: [],
teacher: []
Expand Down
37 changes: 19 additions & 18 deletions pages/blackboard/index.wxml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<import src="../../lib/wxParse/wxParse.wxml"/>
<view>
<view style="background-color: #f8f8f8">
<view class="page__bd">
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell weui-cell_select">
Expand All @@ -19,31 +19,32 @@
<template is="wxParse" data="{{wxParseData:teacher.nodes}}"/>
</view>
</view>
<view class="weui-cells__title">公告</view>
<view class="weui-cells weui-cells_after-title">
<view class="weui-cells__title" >公告</view>
<view class="weui-cells weui-cells_after-title" style="margin-bottom: 30px;">
<view class="markdown">
<template is="wxParse" data="{{wxParseData:announcement.nodes}}"/>
</view>
</view>

<view class="weui-panel" wx:for="{{detail.notices}}">
<view class="weui-panel__bd">
<view class="weui-media-box weui-media-box_text">
<!--<view class="weui-media-box__title weui-media-box__title_in-text">标题一</view>-->
<view class="weui-media-box__desc">{{item.content}}</view>
<view class="weui-media-box__info" wx:if="{{item.deadline}}">
<view class="weui-media-box__info__meta">截止日期:{{item.deadline}}</view>
</view>
<view class="weui-media-box__info">
<view class="weui-media-box__info__meta">发布日期:{{item.time}}</view>
<view class="page__bd" wx:for="{{detail.notices}}">
<view class="weui-cells__title">{{item.time}}</view>
<view class="weui-form-preview">
<view style="margin-left: 15px; margin-right: 15px; margin-top: 10px;">
{{item.content}}
</view>
<view class="weui-form-preview__bd" wx:if="{{item.deadline}}">
<view class="weui-form-preview__item">
<view class="weui-form-preview__label">截止日期</view>
<view class="weui-form-preview__value">{{item.deadline}}</view>
</view>
<view class="weui-cells__title" wx:if="{{item.attachment.length > 0}}">附件</view>
<view class="weui-cells weui-cells_after-title" wx:if="{{item.attachment.length > 0}}" wx:for="{{item.attachment}}" wx:for-item="attachment">
<view class="weui-cell">
<view class="weui-cell__bd"><button size="mini" bindtap="preview" data-name="{{attachment.href}}">{{attachment.name}}</button></view>
</view>
</view>
<view class="weui-cells__title" wx:if="{{item.attachment.length > 0}}">附件</view>
<view style="margin-right: 15px; margin-left: 15px;">
<view wx:if="{{item.attachment.length > 0}}" wx:for="{{item.attachment}}" wx:for-item="attachment" style="">
<button size="mini" bindtap="preview" data-name="{{attachment.href}}">{{attachment.name}}</button>
</view>
</view>
<view style="margin:5px;"></view>
</view>
</view>
</view>
Expand Down
5 changes: 4 additions & 1 deletion pages/blackboard/index.wxss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.markdown {
margin: 5px;
margin: 10px;
}
.weui-form-preview{
margin-bottom: 25px;
}
2 changes: 1 addition & 1 deletion project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"ignore": []
},
"setting": {
"urlCheck": false,
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
Expand Down

0 comments on commit 6411f74

Please sign in to comment.