|
@@ -9,10 +9,10 @@
|
|
|
<div class="index-wrap">
|
|
|
<tabs class="tab-content" onchange="tabbarChange" index="{{current}}">
|
|
|
<tab-content>
|
|
|
- <home-page @change="pageSwitch"></home-page>
|
|
|
- <category-page></category-page>
|
|
|
+ <home-page @change="pageSwitch" tabindex="{{current}}"></home-page>
|
|
|
+ <category-page tabindex="{{current}}"></category-page>
|
|
|
<shelf-page @change="pageSwitch" tabindex='{{current}}'></shelf-page>
|
|
|
- <my-page @customer="openCustomer"></my-page>
|
|
|
+ <my-page @customer="openCustomer" tabindex="{{current}}"></my-page>
|
|
|
</tab-content>
|
|
|
</tabs>
|
|
|
<div class="fixed-tabbar">
|
|
@@ -46,6 +46,7 @@
|
|
|
<script>
|
|
|
import clipboard from '@system.clipboard';
|
|
|
import prompt from '@system.prompt';
|
|
|
+import it from "../../helper/interface.js";
|
|
|
import { getCustomQrcode } from '../../api/index.js';
|
|
|
import { downImg, getStore } from '../../api/utils.js';
|
|
|
export default {
|
|
@@ -95,6 +96,12 @@ export default {
|
|
|
}
|
|
|
this.getCoustom();
|
|
|
},
|
|
|
+ onShow(){
|
|
|
+ it.getShortCut(()=>{
|
|
|
+ this.showShortPop = true;
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
onBackPress() {
|
|
|
// 退出逻辑
|
|
|
if (this.$app.$def.data.backClickCount === 0) {
|