Files
crmeb-mp/pages/behalf/goods_list/index.vue
karlcarlo a5c5d753b6 feat: 添加静态资源文件及基础组件
- 新增大量图片资源,包括图标、背景图、海报等,用于页面展示
- 添加字体文件及样式配置,支持自定义字体
- 引入 uni-ui 组件库,包括图标、弹窗、日期选择器等常用组件
- 添加网络状态监听、加密工具等基础工具函数
- 配置 Vuex 状态管理,包括购物车数量、热门搜索词等
- 增加页面组件,如用户协议、分销信息、提现状态等
- 配置项目构建和忽略文件,优化开发体验
2026-02-26 17:59:51 +08:00

50 lines
1.2 KiB
Vue

<template>
<view>
<template1 v-if="level == 3" :userId="userId" :touristId="touristId" :is_channel="is_channel" ref="classOne"></template1>
<template2 v-if="level == 2" :userId="userId" :touristId="touristId" :is_channel="is_channel" 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,
is_channel: ''
}
},
components: {
template1,
template2
},
computed:{
...mapGetters(['isLogin', 'uid', 'diyCategory']),
level(){
return this.diyCategory.level
},
},
onLoad(e) {
this.userId = e.uid || 0;
this.is_channel = e.is_channel || '';
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;
}
},
}
</script>
<style>
</style>