bobo 3 vuotta sitten
vanhempi
commit
5bff64728f

+ 1 - 1
components/topbar.js

@@ -1,6 +1,6 @@
 // components/topbar.js
 Component({
-    externalClasses: ['topbar-class'],
+    externalClasses: ['topbar-class', 'topbar-title-class'],
     /**
      * 组件的属性列表
      */

+ 1 - 1
components/topbar.wxml

@@ -4,6 +4,6 @@
       <image src="/images/back.png" />
    </view>
 
-   <view class="title">{{title}}</view>
+   <view class="title topbar-title-class">{{title}}</view>
 
 </view>

+ 1 - 1
pages/signIn/activity/activity.wxml

@@ -1,6 +1,6 @@
 <!--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">

+ 1 - 1
pages/signIn/activity/activity.wxss

@@ -3,7 +3,7 @@ page {
     background: #EDEDED;
 }
 
-.color-topbar .title {
+.title-color {
     color: #fff;
 }