@@ -1,6 +1,6 @@
// components/topbar.js
Component({
- externalClasses: ['topbar-class'],
+ externalClasses: ['topbar-class', 'topbar-title-class'],
/**
* 组件的属性列表
*/
@@ -4,6 +4,6 @@
<image src="/images/back.png" />
</view>
- <view class="title">{{title}}</view>
+ <view class="title topbar-title-class">{{title}}</view>
<!--pages/signIn/index.wxml-->
<view wx:if="{{showPage}}">
-<topbar title="签到中心" topbar-class="color-topbar" />
+<topbar title="签到中心" topbar-title-class="title-color" />
<!-- 页面主体 -->
<view class="sign-scroll-body" style="margin-top:{{navHeight}}px; height: {{bodyHeight}}px;">
<view class="sign-info-extra">
@@ -3,7 +3,7 @@ page {
background: #EDEDED;
}
-.color-topbar .title {
+.title-color {
color: #fff;