Files
huangjingfen/pro_v3.5.1/view/uniapp/pages/user/components/menus/template2.vue
panchengyong 7acbf45ff7 new files
2026-03-07 22:29:07 +08:00

77 lines
1.8 KiB
Vue

<script>
export default {
inject: ['goMenuPage'],
props: {
menuData: {
type: Object,
default: () => {}
},
routineContact: {
type: Number,
default: 0
}
}
};
</script>
<template>
<view class="">
<view class="service">
<view v-show="item.is_show" v-for="(item, index) in menuData.list" :key="index">
<!-- #ifdef MP -->
<view class="flex-y-center item" 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>
<view class="name">{{ item.name }}</view>
<text class="iconfont icon-ic_rightarrow"></text>
</view>
<button class="w-full flex-y-center item " open-type='contact' v-if="item.url=='/pages/extension/customer_list/chat' && routineContact == 1">
<image :src="item.pic" class="image"></image>
<view class="name text-left">{{ item.name }}</view>
<text class="iconfont icon-ic_rightarrow"></text>
</button>
<!-- #endif -->
<!-- #ifndef MP -->
<view class="flex-y-center item" @click="goMenuPage(item.url, item.name)">
<image :src="item.pic" class="image"></image>
<view class="name">{{ item.name }}</view>
<text class="iconfont icon-ic_rightarrow"></text>
</view>
<!-- #endif -->
</view>
</view>
</view>
</template>
<style lang="scss" scoped>
.service {
padding: 20rpx 0;
border-radius: 16rpx;
margin: 20rpx;
background-color: #ffffff;
.text-left{
text-align: left;
}
.item {
padding: 28rpx 20rpx 28rpx 32rpx;
}
.image {
width: 40rpx;
height: 40rpx;
margin-right: 24rpx;
}
.name {
flex: 1;
font-size: 28rpx;
color: #333333;
}
.iconfont {
font-size: 28rpx;
color: #999999;
}
}
</style>