|
@@ -50,6 +50,9 @@ import it from "../../helper/interface.js";
|
|
|
import { getCustomQrcode } from '../../api/index.js';
|
|
|
import { downImg, getStore } from '../../api/utils.js';
|
|
|
export default {
|
|
|
+ protected: {
|
|
|
+ current: 0
|
|
|
+ },
|
|
|
private: {
|
|
|
tabbar: [
|
|
|
{
|
|
@@ -81,7 +84,7 @@ export default {
|
|
|
index: 3
|
|
|
}
|
|
|
],
|
|
|
- current: 0,
|
|
|
+ // current: 0,
|
|
|
showPopup: false,
|
|
|
showSignPop: false,
|
|
|
showShortPop: false,
|
|
@@ -90,6 +93,7 @@ export default {
|
|
|
},
|
|
|
onInit() {
|
|
|
this.$on('dispathEvt', this.changeSignPop);
|
|
|
+ this.$watch('current', 'watchCurrent');
|
|
|
//今日已签到过不在弹框签到
|
|
|
this.getCoustom();
|
|
|
},
|
|
@@ -104,6 +108,10 @@ export default {
|
|
|
}
|
|
|
this.showShortPop = !value.detail.installed;
|
|
|
},
|
|
|
+ watchCurrent(i) {
|
|
|
+ console.log("watching", i);
|
|
|
+ this.current = i;
|
|
|
+ },
|
|
|
onBackPress() {
|
|
|
// 退出逻辑
|
|
|
if (this.$app.$def.data.backClickCount === 0) {
|