|
|
@@ -40,19 +40,16 @@
|
|
|
<view class="select-cmd_bx">
|
|
|
<view class="kc"><text class="unit_price">库存 {{ customData.stock }}</text></view>
|
|
|
<view class="num_bx">
|
|
|
- <text style="font-size:35upx;font-weight:bold;color:#666666;margin-right:20upx;">单价</text>
|
|
|
- <!-- #ifdef APP-PLUS -->
|
|
|
- <input style="width: 430upx" v-model="customData.userPrice" type="digit" :focus="isAddInputFocus" @focus="customData.userPrice=''" />
|
|
|
- <!-- #endif -->
|
|
|
- <!-- #ifdef MP-WEIXIN -->
|
|
|
- <input style="width: 430upx" v-model="customData.userPrice" type="digit" @focus="customData.userPrice=''" />
|
|
|
- <!-- #endif -->
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="select-cmd_bx">
|
|
|
- <view class="num_bx">
|
|
|
- <text style="font-size:35upx;font-weight:bold;color:#666666;margin-right:20upx;">数量</text>
|
|
|
- <input style="width: 430upx" v-model="customData.bigCount" @focus="customData.bigCount=''" type="number" />
|
|
|
+ <!-- #ifdef APP-PLUS -->
|
|
|
+ <input v-model="customData.bigCount" type="number" @focus="customData.bigCount = null" placeholder="数量" />
|
|
|
+ <!-- #endif -->
|
|
|
+ <!-- #ifdef MP-WEIXIN -->
|
|
|
+ <input v-model="customData.bigCount" type="number" @focus="customData.bigCount = null" :focus="isAddInputFocus" placeholder="数量" />
|
|
|
+ <!-- #endif -->
|
|
|
+
|
|
|
+ <input v-model="customData.userPrice" @focus="customData.userPrice = null" type="digit" placeholder="单价" />
|
|
|
+
|
|
|
+ <text>¥{{customData.userPrice && customData.bigCount ? parseFloat((customData.userPrice*customData.bigCount).toFixed(2)):0}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -282,14 +279,18 @@ page {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
margin-bottom: 40upx;
|
|
|
+ & > text{
|
|
|
+ width:100upx;
|
|
|
+ font-size:30upx;
|
|
|
+ }
|
|
|
& > input {
|
|
|
- width: 212upx;
|
|
|
- height: 80upx;
|
|
|
- border: 1upx solid #dddddd;
|
|
|
- border-radius: 4upx;
|
|
|
- text-align: center;
|
|
|
- margin-right: 24upx;
|
|
|
- font-size: 40upx;
|
|
|
+ flex: 1;
|
|
|
+ height: 80upx;
|
|
|
+ border: 1upx solid #dddddd;
|
|
|
+ border-radius: 4upx;
|
|
|
+ text-align: center;
|
|
|
+ margin-right: 24upx;
|
|
|
+ font-size: 32upx;
|
|
|
}
|
|
|
}
|
|
|
}
|