|
@@ -21,13 +21,13 @@ export default {
|
|
|
$util: this.$util,
|
|
$util: this.$util,
|
|
|
// 全局混入,插入全局跳转函数
|
|
// 全局混入,插入全局跳转函数
|
|
|
pageTo: pageTo,
|
|
pageTo: pageTo,
|
|
|
- no_shop_show_model: false,
|
|
|
|
|
shopAdminId: null,
|
|
shopAdminId: null,
|
|
|
- show_login_model:false,
|
|
|
|
|
//所有花材列表
|
|
//所有花材列表
|
|
|
allProduct:[],
|
|
allProduct:[],
|
|
|
//零售店对应的id
|
|
//零售店对应的id
|
|
|
- skCustomId:0
|
|
|
|
|
|
|
+ skCustomId:0,
|
|
|
|
|
+ //SUNMI 商米
|
|
|
|
|
+ globalDevice:''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -36,6 +36,10 @@ export default {
|
|
|
onLoad: function (option) {
|
|
onLoad: function (option) {
|
|
|
|
|
|
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
|
|
|
+ if(plus.device.vendor == 'SUNMI'){
|
|
|
|
|
+ this.globalDevice = 'SUNMI'
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//横屏锁定
|
|
//横屏锁定
|
|
|
plus.screen.lockOrientation('landscape')
|
|
plus.screen.lockOrientation('landscape')
|
|
|
// #endif
|
|
// #endif
|
|
@@ -118,7 +122,7 @@ export default {
|
|
|
listenScan(){
|
|
listenScan(){
|
|
|
let that = this
|
|
let that = this
|
|
|
//商米收银台
|
|
//商米收银台
|
|
|
- if(plus.device.vendor == 'SUNMI'){
|
|
|
|
|
|
|
+ if(globalDevice == 'SUNMI'){
|
|
|
//https://ext.dcloud.net.cn/plugin?id=3514
|
|
//https://ext.dcloud.net.cn/plugin?id=3514
|
|
|
//初始化
|
|
//初始化
|
|
|
shangMiPrint.init()
|
|
shangMiPrint.init()
|