- 新增大量图片资源,包括图标、背景图、海报等,用于页面展示 - 添加字体文件及样式配置,支持自定义字体 - 引入 uni-ui 组件库,包括图标、弹窗、日期选择器等常用组件 - 添加网络状态监听、加密工具等基础工具函数 - 配置 Vuex 状态管理,包括购物车数量、热门搜索词等 - 增加页面组件,如用户协议、分销信息、提现状态等 - 配置项目构建和忽略文件,优化开发体验
54 lines
1.6 KiB
Vue
54 lines
1.6 KiB
Vue
<script>
|
|
export default {
|
|
inject: ['goMenuPage'],
|
|
props: {
|
|
menuData: {
|
|
type: Object,
|
|
default: () => {}
|
|
},
|
|
routineContact: {
|
|
type: Number,
|
|
default: 0
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<view class="">
|
|
<view class="pt-34 pr-30 pb-36 pl-32 bg--w111-fff rd-16rpx mt-20 service ml-20 mr-20">
|
|
<view class="fs-30 fw-500 lh-42rpx text--w111-333">{{ menuData.title }}</view>
|
|
<view class="grid-column-4 grid-gap-x-76rpx grid-gap-y-54rpx mt-38">
|
|
<view v-show="item.is_show" v-for="(item, index) in menuData.list" :key="index">
|
|
<!-- #ifdef MP -->
|
|
<view class="flex-col flex-center" v-if="item.url!='/pages/extension/customer_list/chat' || (item.url=='/pages/extension/customer_list/chat' && routineContact == 0)" @click="goMenuPage(item.url, item.name)">
|
|
<image :src="item.pic" class="image"></image>
|
|
<text class="fs-26 lh-36rpx text--w111-282828 pt-22">{{ item.name }}</text>
|
|
</view>
|
|
<button class="flex-col flex-center" open-type='contact' v-if="item.url=='/pages/extension/customer_list/chat' && routineContact == 1">
|
|
<image :src="item.pic" class="image"></image>
|
|
<text class="fs-26 lh-36rpx text--w111-282828 pt-22">{{ item.name }}</text>
|
|
</button>
|
|
<!-- #endif -->
|
|
<!-- #ifndef MP -->
|
|
<view class="flex-col flex-center" @click="goMenuPage(item.url, item.name)">
|
|
<image :src="item.pic" class="image"></image>
|
|
<text class="fs-26 lh-36rpx text--w111-282828 pt-22">{{ item.name }}</text>
|
|
</view>
|
|
<!-- #endif -->
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<style scoped lang="scss">
|
|
.service {
|
|
.image {
|
|
width: 48rpx;
|
|
height: 48rpx;
|
|
}
|
|
}
|
|
</style>
|