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

42 lines
1.3 KiB
Vue

<script>
export default {
inject: ['goMenuPage'],
props: {
menuData: {
type: Object,
default: () => {}
},
routineContact: {
type: Number,
default: 0
}
}
};
</script>
<template>
<view class="px-20 grid-column-3 grid-gap-24rpx mt-20">
<view v-show="item.is_show" v-for="(item, index) in menuData.list" :key="index">
<!-- #ifdef MP -->
<view class="flex-col flex-center bg--w111-fff h-220 rd-24rpx" v-if="item.url!='/pages/extension/customer_list/chat' || (item.url=='/pages/extension/customer_list/chat' && routineContact == 0)"
@tap="goMenuPage(item.url, item.name)">
<image :src="item.pic" class="w-64 h-64 block mb-16"></image>
<view class="fs-26 lh-36rpx">{{ item.name }}</view>
</view>
<button class="flex-col flex-center bg--w111-fff h-220 rd-24rpx" open-type='contact' v-if="item.url=='/pages/extension/customer_list/chat' && routineContact == 1">
<image :src="item.pic" class="w-64 h-64 block mb-16"></image>
<view class="fs-26 lh-36rpx">{{ item.name }}</view>
</button>
<!-- #endif -->
<!-- #ifndef MP -->
<view class="flex-col flex-center bg--w111-fff h-220 rd-24rpx"
@tap="goMenuPage(item.url, item.name)">
<image :src="item.pic" class="w-64 h-64 block mb-16"></image>
<view class="fs-26 lh-36rpx">{{ item.name }}</view>
</view>
<!-- #endif -->
</view>
</view>
</template>