shish 4 лет назад
Родитель
Сommit
fe52272dbd
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      hdPad/src/pages/home/components/selectPrice.vue

+ 5 - 3
hdPad/src/pages/home/components/selectPrice.vue

@@ -11,11 +11,13 @@
             </view>
             <input class="goods-name" v-model="name" placeholder="商品名称(选填)" placeholder-class="grey-color" />
             <view class="flower-open_box">
-                <view @tap="checkCurrent(2)">
+                <view @tap="checkCurrent(2)" style="position:relative;">
                     <view class="desc">
                         收现金
-                        <text v-if="Number(zl)>0" style="color:green;margin-left:3upx;">找零 {{zl}}</text>
-                        <text style="color:red;margin-left:3upx;" v-if="Number(zl)<0">还差 {{-zl}}</text>
+                    </view>
+                    <view style="position:absolute;top:20upx;left:95upx;width:300upx;text-align:left;font-size:13upx;">
+                        <text v-if="Number(zl)>0" style="color:green;">找零 {{zl}}</text>
+                        <text style="color:red;" v-if="Number(zl)<0">还差 {{-zl}}</text>
                     </view>
                     <div class="flower-unit_box">
                         <text :class="{selected:checkType == 2}">{{cash}}</text>