|
|
@@ -2,7 +2,7 @@
|
|
|
<div class="hid">
|
|
|
<div class="navBarTOP">
|
|
|
<van-nav-bar class="navBar" left-arrow title="门店拜访" @click-left="onClickLeft" />
|
|
|
- <van-tabs class="myTab" type="card" v-model="tabVal" color="#0057ba">
|
|
|
+ <van-tabs class="myTab" type="card" v-model="tabVal" color="#0057ba" @click="onClickTabs">
|
|
|
<van-tab title="提示类" name="-1"></van-tab>
|
|
|
<van-tab title="A类指标" name="0"></van-tab>
|
|
|
<van-tab title="B类指标" name="1"></van-tab>
|
|
|
@@ -1295,7 +1295,7 @@
|
|
|
/></a>
|
|
|
</template>
|
|
|
<br /><br /><br /><br />
|
|
|
- <van-dialog v-model="shows" @confirm="titleconfirm">
|
|
|
+ <!-- <van-dialog v-model="shows" @confirm="titleconfirm">
|
|
|
<div class="tipTitleBox" style="padding: 10px">
|
|
|
<p class="p">系统提示</p>
|
|
|
<p>各位好,因五一假期,汇报提交时间有调整。</p>
|
|
|
@@ -1309,7 +1309,7 @@
|
|
|
<br />
|
|
|
<p style="text-align: right">祝大家假期愉快!</p>
|
|
|
</div>
|
|
|
- </van-dialog>
|
|
|
+ </van-dialog> -->
|
|
|
<br />
|
|
|
<br />
|
|
|
<br />
|
|
|
@@ -1325,7 +1325,7 @@ import times from '@/assets/Icon/times.png';
|
|
|
import bfindex from '@/assets/bfindex.png';
|
|
|
import storeindex from '@/assets/storeindex.png';
|
|
|
import oderindex from '@/assets/oderindex.png';
|
|
|
-import hintTabPage from './hintTabPage.vue';
|
|
|
+import hintTabPage from './hintTabPage/index.vue';
|
|
|
import {
|
|
|
userTodayPlanNum,
|
|
|
loginLog,
|
|
|
@@ -1343,7 +1343,7 @@ export default {
|
|
|
components: { tabBar, hintTabPage },
|
|
|
data() {
|
|
|
return {
|
|
|
- shows: true,
|
|
|
+ // shows: true,
|
|
|
show: true,
|
|
|
num: 0,
|
|
|
timeimg: times,
|
|
|
@@ -1417,34 +1417,31 @@ export default {
|
|
|
JZQuota: false,
|
|
|
GZdata: false,
|
|
|
tabVal: '-1',
|
|
|
+ isGetABFlag: false, //切换tab不重复请求A/B类
|
|
|
};
|
|
|
},
|
|
|
- created() {
|
|
|
+ activated() {
|
|
|
+ this.isGetABFlag = false;
|
|
|
this.num = 0;
|
|
|
- this.loginLogFn();
|
|
|
- this.getReportInfo();
|
|
|
+ this.tabVal = '-1';
|
|
|
+ this.onClickTabs(this.tabVal);
|
|
|
this.timeFn();
|
|
|
- this.userTodayPlanNum();
|
|
|
- if (
|
|
|
- localStorage.getItem('shows') == 'false' ||
|
|
|
- new Date('2023/05/04 23:59:59').getTime() < new Date().getTime()
|
|
|
- ) {
|
|
|
- this.shows = false;
|
|
|
- } else {
|
|
|
- this.shows = true;
|
|
|
- }
|
|
|
},
|
|
|
- watch: {
|
|
|
- $route(to, from) {
|
|
|
- if (to.path == '/home') {
|
|
|
- this.num = 0;
|
|
|
- this.userTodayPlanNum();
|
|
|
- this.loginLogFn();
|
|
|
- this.getReportInfo();
|
|
|
+ methods: {
|
|
|
+ // tabChange
|
|
|
+ onClickTabs(val) {
|
|
|
+ // 提示类
|
|
|
+ if (val == '-1') {
|
|
|
+ } else {
|
|
|
+ // 切换tab不重复请求A/B类
|
|
|
+ if (!this.isGetABFlag) {
|
|
|
+ // A/B类
|
|
|
+ this.userTodayPlanNum();
|
|
|
+ this.getReportInfo();
|
|
|
+ this.isGetABFlag = true;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
- },
|
|
|
- methods: {
|
|
|
storeJoinVisit(val) {
|
|
|
joinInPlan({ storeId: val.storeId }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
@@ -1459,10 +1456,6 @@ export default {
|
|
|
this.applyNumber = res.data;
|
|
|
});
|
|
|
},
|
|
|
- titleconfirm() {
|
|
|
- this.shows = false;
|
|
|
- localStorage.setItem('shows', false);
|
|
|
- },
|
|
|
timeFn() {
|
|
|
var t = 5;
|
|
|
var that = this;
|
|
|
@@ -1570,27 +1563,6 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- loginLogFn() {
|
|
|
- var appVersion = navigator.appVersion;
|
|
|
- var Logapp = appVersion.split('(')[1].split(';');
|
|
|
- var arrLog = '';
|
|
|
- if (Logapp[0] == 'Linux') {
|
|
|
- arrLog = {
|
|
|
- browser: navigator.appCodeName,
|
|
|
- os: Logapp[1],
|
|
|
- phoneBrand: Logapp[2].split('/')[1],
|
|
|
- phoneModel: Logapp[2].split('/')[0],
|
|
|
- };
|
|
|
- } else {
|
|
|
- arrLog = {
|
|
|
- browser: navigator.appCodeName,
|
|
|
- os: Logapp[0],
|
|
|
- phoneBrand: '',
|
|
|
- phoneModel: '',
|
|
|
- };
|
|
|
- }
|
|
|
- loginLog(arrLog);
|
|
|
- },
|
|
|
onClickLeft() {
|
|
|
this.$router.go(-1);
|
|
|
// window.location.href = process.env.VUE_APP_SSB_LINK + "/homeIndex"
|