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

Commit

Permalink
【优化】背景卡片
Browse files Browse the repository at this point in the history
  • Loading branch information
mohuishou committed Jan 28, 2018
1 parent 4a62051 commit 0329294
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Binary file removed src/img/card@kb.png
Binary file not shown.
Empty file removed src/img/img.css
Empty file.
Empty file removed src/img/index.css
Empty file.
1 change: 0 additions & 1 deletion src/img/index.less

This file was deleted.

8 changes: 5 additions & 3 deletions src/pages/index.wpy
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<style lang="less">
@import "./src/icon/iconfont.less";
@import "./src/img/index.less";
/* 函数变量 */
.icon(@size, @font-size, @background) {
display: flex;
Expand All @@ -20,7 +19,7 @@
}
.card {
background: #fff;
background-image: data-uri(@card-kb);
background-image: url("https://scuplus.oss-cn-shenzhen.aliyuncs.com/card-kb.png");
background-position: center;
background-size: cover;
margin-top: 0.5rem;
Expand All @@ -29,6 +28,9 @@
border-bottom: @border;
padding: 0.3rem;
padding-bottom: 0;
&.card-library{
background-image: url("https://scuplus.oss-cn-shenzhen.aliyuncs.com/card-library.png");
}
.only {
text-align: center;
color: #999;
Expand Down Expand Up @@ -185,7 +187,7 @@
</view>
<!-- 课程表卡片 end -->
<!-- 我的借阅卡片 -->
<view class="card">
<view class="card card-library">
<view class="card-title">
<view style="background: {{funcs[1][0].bg}}" class="iconfont icon-{{funcs[1][0].icon}}"></view>
<text>我的借阅</text>
Expand Down

0 comments on commit 0329294

Please sign in to comment.