|
@@ -13,7 +13,7 @@
|
|
|
<template v-else>
|
|
<template v-else>
|
|
|
<view class="app-casher-area">
|
|
<view class="app-casher-area">
|
|
|
<view class="nav-left">
|
|
<view class="nav-left">
|
|
|
- <casherNav></casherNav>
|
|
|
|
|
|
|
+ <navComponent></navComponent>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 已选花材列表 -->
|
|
<!-- 已选花材列表 -->
|
|
|
<view class="itemList-box">
|
|
<view class="itemList-box">
|
|
@@ -43,12 +43,12 @@ import consoleButton from './components/console.vue'
|
|
|
import customerList from './components/customerList.vue'
|
|
import customerList from './components/customerList.vue'
|
|
|
import leftArea from './components/leftArea.vue'
|
|
import leftArea from './components/leftArea.vue'
|
|
|
import leftGroup from './components/leftGroup.vue'
|
|
import leftGroup from './components/leftGroup.vue'
|
|
|
-import casherNav from './components/nav.vue'
|
|
|
|
|
|
|
+import navComponent from './components/nav.vue'
|
|
|
import loginComponent from './login.vue'
|
|
import loginComponent from './login.vue'
|
|
|
import productMins from "@/mixins/product";
|
|
import productMins from "@/mixins/product";
|
|
|
export default {
|
|
export default {
|
|
|
name: "cash",
|
|
name: "cash",
|
|
|
- components: { rightItem,consoleButton, loginComponent, leftArea,leftGroup, customerList, rightGoods,casherNav },
|
|
|
|
|
|
|
+ components: { rightItem,consoleButton, loginComponent, leftArea,leftGroup, customerList, rightGoods,navComponent},
|
|
|
mixins: [autoUpdateApp,productMins],
|
|
mixins: [autoUpdateApp,productMins],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -74,6 +74,15 @@ export default {
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
|
|
+ var _this = this
|
|
|
|
|
+ uni.$off('scancodedate') // 每次进来先 移除全局自定义事件监听器
|
|
|
|
|
+ uni.$on('scancodedate',function(data){
|
|
|
|
|
+ console.log('你想要的code:', data.code)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ onunload(){
|
|
|
|
|
+ // 移除监听事件
|
|
|
|
|
+ uni.$off('scancodedate')
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
if(this.$util.isEmpty(this.getLoginInfo.admin) || this.getLoginInfo.admin.currentShopId == 0){
|
|
if(this.$util.isEmpty(this.getLoginInfo.admin) || this.getLoginInfo.admin.currentShopId == 0){
|