Browse Source

样式优化

xiaohaizhao 9 months ago
parent
commit
b2b13578a9

+ 3 - 0
components/Yl_VoiceInput/index.js

@@ -16,6 +16,9 @@ Component({
             type: Function
         }
     },
+    options: {
+        addGlobalClass: true
+    },
     data: {
         show: false,
         seconds: 60

+ 1 - 1
components/Yl_VoiceInput/index.scss

@@ -10,8 +10,8 @@
     font-weight: bold;
     background: #9CBAFB;
     color: #fff;
-
 }
+
 .begin{
     background: #E7EEFF;
     color: #3874F6;

+ 4 - 1
components/Yl_VoiceInput/index.wxml

@@ -1,2 +1,5 @@
-<view class="info {{show?'begin':''}}" bindtap="talking">{{show?seconds+'S':'语'}}</view>
+<view class="info {{show?'begin':''}}" bindtap="talking">
+	<text wx:if="{{show}}">{{seconds}}S</text>
+	<text wx:else class="iconfont icon-biaoqian" style="color:inherit !important;font-size: 24rpx;"></text>
+</view>
 <van-overlay show="{{ show }}" bind:click="onClose" root-portal />