You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
55 lines
1.2 KiB
<template>
|
|
<view>
|
|
<template1 v-if="level == 3" :userId="userId" :touristId="touristId" ref="classOne"></template1>
|
|
<template2 v-if="level == 2" :userId="userId" :touristId="touristId" ref="classTwo"></template2>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters } from 'vuex';
|
|
import template1 from './template/template1.vue';
|
|
import template2 from './template/template2.vue';
|
|
export default {
|
|
name:'behalfGoodsList',
|
|
data() {
|
|
return {
|
|
userId:0,
|
|
touristId:0
|
|
}
|
|
},
|
|
components: {
|
|
template1,
|
|
template2
|
|
},
|
|
computed:{
|
|
...mapGetters(['isLogin', 'uid', 'diyCategory']),
|
|
level(){
|
|
return this.diyCategory.level
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
this.userId = e.uid || 0;
|
|
if(e.uid == 0 && !this.$Cache.get('touristId')){
|
|
let tid = Math.floor(Math.random() * 90000) + 10000;
|
|
this.$Cache.set('touristId', tid)
|
|
this.touristId = tid;
|
|
}else if(e.uid == 0 && this.$Cache.get('touristId')){
|
|
this.touristId = this.$Cache.get('touristId');
|
|
}else if(e.uid != 0){
|
|
this.touristId = 0;
|
|
}
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
/deep/.font-num{
|
|
color: #2A7EFB !important;
|
|
}
|
|
/deep/.bg-color{
|
|
background: #2A7EFB !important;
|
|
}
|
|
</style>
|
|
|