Sfoglia il codice sorgente

去掉商米相关

shish 4 anni fa
parent
commit
b991d14ec1

+ 0 - 28
ghsApp/src/admin/billing/result.vue

@@ -34,34 +34,6 @@ export default {
     },
     async init() {
       if (this.option.title != "报损成功") {
-
-          // #ifdef APP-PLUS
-          //商米收银台
-          //if(plus.device.vendor == 'SUNMI'){
-            // getPayVoice({id:this.option.orderId}).then(res=>{
-            //     let url = res.data.url
-            //     //没有库存声音提醒
-            //     const innerAudioContext = uni.createInnerAudioContext();
-            //     innerAudioContext.autoplay = true;
-            //     innerAudioContext.src = url;
-            //     innerAudioContext.volume = 0.5
-            //     innerAudioContext.onPlay(() => {
-            //       //console.log('开始播放');
-            //     });
-            //     innerAudioContext.onError((res) => {
-            //       //console.log(res.errMsg);
-            //       //console.log(res.errCode);
-            //     });
-            //     innerAudioContext.onPause(function() {
-            //       //console.log('end');
-            //       innerAudioContext.destroy();
-            //     })
-
-            //   })
-          //}
-          // #endif
-
-
         const res = await getDetail({
           id: this.option.orderId,
         });

+ 0 - 5
ghsApp/src/admin/billing/toPay.vue

@@ -84,11 +84,6 @@ export default {
     // #ifdef MP-WEIXIN
     this.isCashier = false
     // #endif
-    // #ifdef APP-PLUS
-    if(plus.device.vendor != 'SUNMI'){
-      this.isCashier = false
-    }
-    // #endif
     if(this.isCashier == false){
       this.toScanPay()
       this.checkPayInfo()

+ 0 - 10
ghsApp/src/admin/book/index.vue

@@ -26,16 +26,6 @@ export default {
             showBanner:true
 		};
 	},
-	onShow() {
-
-	},
-    onload(){
-        // #ifdef APP-PLUS
-        if(plus.device.vendor == 'SUNMI'){
-            this.showBanner = false
-        }
-        // #endif
-    },
   	onShareAppMessage(res) {
 		return {
 			title: '销花宝使用教程',

+ 0 - 3
ghsApp/src/admin/custom/selectCustom.vue

@@ -79,9 +79,6 @@ export default {
   },
   onLoad(option) {
     // #ifdef APP-PLUS
-    if(plus.device.vendor == 'SUNMI'){
-      this.couldScan = true
-    }
     if(plus.device.vendor == 'Newland'){
       this.couldScan = true
     }

+ 0 - 3
ghsApp/src/utils/util.js

@@ -422,9 +422,6 @@ export const confirmModal = (item,okCallback=null,cancelCallback=null) => {
 export const isScanEnv = () =>{
 	let isScanEnv = false
 	//#ifdef APP-PLUS
-	if(plus.device.vendor == 'SUNMI'){
-		isScanEnv = true
-	}
 	if(plus.device.vendor == 'Newland'){
 		isScanEnv = true
 	}

+ 0 - 3
hdApp/src/utils/util.js

@@ -401,9 +401,6 @@ export const confirmModal = (item,okCallback=null,cancelCallback=null) => {
 export const isScanEnv = () =>{
 	let isScanEnv = false
 	//#ifdef APP-PLUS
-	if(plus.device.vendor == 'SUNMI'){
-		isScanEnv = true
-	}
 	if(plus.device.vendor == 'Newland'){
 		isScanEnv = true
 	}