shish 4 anni fa
parent
commit
caf6f5594c
1 ha cambiato i file con 17 aggiunte e 1 eliminazioni
  1. 17 1
      hdPad/src/pages/home/components/console.vue

+ 17 - 1
hdPad/src/pages/home/components/console.vue

@@ -2,14 +2,15 @@
 <view class="button-area">
 <view class="button-area">
 	<view class="active" @click="calcFn">{{calc == 'add' ? '+' : '-'}}</view>
 	<view class="active" @click="calcFn">{{calc == 'add' ? '+' : '-'}}</view>
 	<!-- <view class="active" @click="resetCustomer">选客</view> -->
 	<!-- <view class="active" @click="resetCustomer">选客</view> -->
-	<view class="active" @click="gatheringFn()">收款</view>
 	<view class="active" @click="changeProperty">{{property==1 ? '花材' : '商品'}}</view>
 	<view class="active" @click="changeProperty">{{property==1 ? '花材' : '商品'}}</view>
 	 <view class="active" 
 	 <view class="active" 
  style="background-color:orange;color:white;border-color:orange;position:fixed;left:135upx;bottom:13upx;width:84upx;height:50upx;line-height:30upx;font-size:16upx;" 
  style="background-color:orange;color:white;border-color:orange;position:fixed;left:135upx;bottom:13upx;width:84upx;height:50upx;line-height:30upx;font-size:16upx;" 
  @click="goSettleCommit">结算 </view>
  @click="goSettleCommit">结算 </view>
     <view class="active" @click="toWastage">报损</view>
     <view class="active" @click="toWastage">报损</view>
+	<view class="active" style="background-color:orange;color:white;border-color:orange;height:50upx;line-height:30upx;font-size:14upx;" @click="gatheringFn()">收款</view>
     <view class="active" @click="clearItemFn">清空</view>
     <view class="active" @click="clearItemFn">清空</view>
 	<view class="active" @click="logoutFn">退出</view>
 	<view class="active" @click="logoutFn">退出</view>
+	<view class="active" @click="closeFn">关闭</view>
 
 
     <!-- 清空 -->
     <!-- 清空 -->
     <uni-popup ref="clearItemRef" type="dialog">
     <uni-popup ref="clearItemRef" type="dialog">
@@ -109,6 +110,21 @@ export default {
 		// #endif
 		// #endif
 	},
 	},
     methods:{
     methods:{
+		closeFn(){
+			// #ifdef APP-PLUS
+			let that = this
+			let type = uni.getSystemInfoSync().platform
+			switch(type){
+			case 'android':
+				plus.runtime.quit()
+				break;
+			case 'ios':
+				that.$msg('IOS暂不支持关闭')
+				break;
+			default:
+			}
+			// #endif
+		},
         addToClear(){
         addToClear(){
 			let params = {
 			let params = {
                 hasPay: 0,
                 hasPay: 0,