Browse Source

使用全局样式

xiaohaizhao 1 năm trước cách đây
mục cha
commit
879ab5d490

+ 10 - 0
app.wxss

@@ -58,4 +58,14 @@ navigator {
 .multi-line {
     word-break: break-all;
     white-space: pre-wrap;
+}
+
+.global-total{
+    height: 64rpx;
+    line-height: 64rpx;
+    font-size: 24rpx;
+    font-family: PingFang SC-Regular, PingFang SC;
+    color: #666666;
+    background: #F4F5F7;
+    padding-left: 30rpx;
 }

+ 0 - 9
packageA/activity/index.scss

@@ -1,12 +1,3 @@
 @import "../../components/Yl_filtrate/groud.scss";
 @import "./index.skeleton.wxss";
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 1 - 1
packageA/activity/index.wxml

@@ -1,7 +1,7 @@
 <import src="index.skeleton.wxml" />
 <template is="skeleton" wx:if="{{loading}}" />
 <Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bindonSearch="onSearch" />
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 4 - 1
packageA/contacts/modules/list/index.js

@@ -1,5 +1,8 @@
 const _Http = getApp().globalData.http;
 Component({
+    options: {
+        addGlobalClass: true
+    },
     properties: {
         groupname: {
             type: String,
@@ -98,7 +101,7 @@ Component({
                     'navList[0].label': templetList[0].templetname
                 });
                 content.type = templetList[0].templetid;
-                this.selectComponent("#ListBox").setHeight(".head", this);
+                this.selectComponent("#ListBox").setHeight(".global-total", this);
             }
             return new Promise((resolve) => {
                 _Http.basic({

+ 0 - 9
packageA/contacts/modules/list/index.scss

@@ -70,12 +70,3 @@
 
 }
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 4 - 5
packageA/contacts/modules/list/index.wxml

@@ -1,10 +1,9 @@
 <Yl_nav search list='{{navList}}' bind:onClick='navClick' bind:onSearch='onSearch' />
-<view class="head" />
+<view class="global-total">
+    <text wx:if="{{language['总共']}}">{{language['总共']}}:{{total}}</text>
+    <text wx:else>共{{total}}个</text>
+</view>
 <Yl_ListBox id='ListBox' bind:getlist='getList'>
-    <view class="total">
-        <text wx:if="{{language['总共']}}">{{language['总共']}}:{{total}}</text>
-        <text wx:else>共{{total}}个</text>
-    </view>
     <navigator class="item-box" url="#" wx:for="{{list}}" wx:key="sys_phonebookid" data-item="{{item}}" bindtap="toDetail">
         <view class="item">
             <view class="head-portrait">

+ 1 - 9
packageA/contract/index.scss

@@ -3,15 +3,7 @@
 
 
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}
+
 
 .content{
     align-items: center;

+ 1 - 1
packageA/contract/index.wxml

@@ -4,7 +4,7 @@
 <Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bindonSearch="onSearch" />
 <!-- 显示类型 -->
 <van-action-sheet show="{{ classShow }}" actions="{{ classActions }}" cancel-text="{{language['取消']||'取消'}}" bind:cancel="classClose" bind:click-overlay='classClose' bind:select="classSelect" />
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 0 - 9
packageA/offers/index.scss

@@ -1,12 +1,3 @@
 @import "../../components/Yl_filtrate/groud.scss";
 @import "./index.skeleton.wxss";
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 1 - 1
packageA/offers/index.wxml

@@ -3,7 +3,7 @@
 <Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bindonSearch="onSearch" />
 <!-- 显示类型 -->
 <van-action-sheet show="{{ classShow }}" actions="{{ classActions }}" cancel-text="{{language['取消']||'取消'}}" bind:cancel="classClose" bind:click-overlay='classClose' bind:select="classSelect" />
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 0 - 9
packageA/opponent/index.scss

@@ -2,12 +2,3 @@
 
 
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 1 - 1
packageA/opponent/index.wxml

@@ -1,6 +1,6 @@
 <Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bindonSearch="onSearch" />
 <!-- 显示类型 -->
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 0 - 9
packageA/project/index.scss

@@ -1,12 +1,3 @@
 @import "../../components/Yl_filtrate/groud.scss";
 @import "./index.skeleton.wxss";
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 1 - 1
packageA/project/index.wxml

@@ -3,7 +3,7 @@
 <Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bindonSearch="onSearch" />
 <!-- 显示类型 -->
 <van-action-sheet show="{{ classShow }}" actions="{{ classActions }}"cancel-text="{{language['取消']||'取消'}}" bind:cancel="classClose" bind:cancel="classClose" bind:select="classSelect" />
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 0 - 9
packageA/publicClue/index.scss

@@ -1,9 +0,0 @@
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 1 - 1
packageA/publicClue/index.wxml

@@ -6,7 +6,7 @@
         </navigator>
     </van-search>
 </view>
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 0 - 9
packageA/publicCustomer/index.scss

@@ -2,12 +2,3 @@
 
 
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 1 - 1
packageA/publicCustomer/index.wxml

@@ -1,5 +1,5 @@
 <Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bindonSearch="onSearch" />
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 0 - 9
packageA/saleAdmin/index.scss

@@ -1,11 +1,2 @@
 
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 1 - 1
packageA/saleAdmin/index.wxml

@@ -1,7 +1,7 @@
 <Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bindonSearch="onSearch" />
 <!-- 显示类型 -->
 <van-action-sheet bind:click-overlay='classClose' show="{{ classShow }}" actions="{{ classActions }}"cancel-text="{{language['取消']||'取消'}}" bind:cancel="classClose" bind:select="classSelect" />
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 0 - 9
packageA/saleClue/index.scss

@@ -3,12 +3,3 @@
 
 
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 1 - 1
packageA/saleClue/index.wxml

@@ -3,7 +3,7 @@
 <Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bindonSearch="onSearch" />
 <!-- 显示类型 -->
 <van-action-sheet bind:click-overlay='classClose' show="{{ classShow }}" actions="{{ classActions }}"cancel-text="{{language['取消']||'取消'}}" bind:cancel="classClose" bind:select="classSelect" />
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 0 - 9
packageA/salesForecasting/index.scss

@@ -2,12 +2,3 @@
 
 
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 1 - 1
packageA/salesForecasting/index.wxml

@@ -1,5 +1,5 @@
 <Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bindonSearch="onSearch" />
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 0 - 9
packageA/setclient/index.scss

@@ -3,12 +3,3 @@
 
 
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 1 - 1
packageA/setclient/index.wxml

@@ -2,7 +2,7 @@
 <template is="skeleton" wx:if="{{loading}}" />
 
 <Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bind:onSearch='onSearch' />
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 0 - 9
packageA/work/index.scss

@@ -1,11 +1,2 @@
 
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}

+ 1 - 1
packageA/work/index.wxml

@@ -1,5 +1,5 @@
 <Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bind:onSearch='onSearch' bindonClick='navOnClick' />
-<view class="total">
+<view class="global-total">
     <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
     <text wx:else>共{{content.total}}个</text>
 </view>

+ 1 - 9
packageA/work/synchronization.scss

@@ -1,14 +1,6 @@
 
 
-.total {
-    height: 64rpx;
-    line-height: 64rpx;
-    font-size: 24rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #666666;
-    background: #F4F5F7;
-    padding-left: 30rpx;
-}
+
 
 .item {
     width: 100%;