Browse Source

app 优化

shish 4 years ago
parent
commit
88c316ad59
1 changed files with 8 additions and 2 deletions
  1. 8 2
      ghsApp/src/admin/billing/affirm.vue

+ 8 - 2
ghsApp/src/admin/billing/affirm.vue

@@ -35,7 +35,7 @@
               </view>
             </view>
             <view class="summary-bar">
-              <view class="operate-view" v-if="kdType == 'SCAN'" @click="removeMemory(option.customId)"> <text class="iconfont iconshanchu1"></text>清除花材 </view>
+              <view class="operate-view" v-if="isScanEnv" @click="removeMemory(option.customId)"> <text class="iconfont iconshanchu1"></text>清除花材 </view>
               <view class="operate-view" v-else @click="gobackEvent"><text class="iconfont icongouwuche"></text>重选花材</view>
               <view class="describe-view">共{{ selectList.length }}种,合计 ¥<text class="price">{{ allPrice }}</text></view>
             </view>
@@ -209,7 +209,8 @@ export default {
       checkStock:true,
 			xjData:{},
 			xjDataInfo:{},
-      modifyPrice:''
+      modifyPrice:'',
+      isScanEnv:false
     };
   },
   onLoad (option) {
@@ -242,6 +243,11 @@ export default {
     //   this.form.needPrint = 2
     // }
 
+    // #ifdef APP-PLUS
+    if(this.$util.isScanEnv()){
+      this.isScanEnv = true
+    }
+    // #endif
   },
 	onShow(){
 		if(!this.$util.isEmpty(uni.getStorageSync("newClient"))){