new files
This commit is contained in:
32
pro_v3.5.1/view/uniapp/pages/user/components/menus/index.vue
Normal file
32
pro_v3.5.1/view/uniapp/pages/user/components/menus/index.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<script>
|
||||
import template1 from './template1.vue';
|
||||
import template2 from './template2.vue';
|
||||
import template3 from './template3.vue';
|
||||
export default {
|
||||
components: {
|
||||
template1,
|
||||
template2,
|
||||
template3
|
||||
},
|
||||
props: {
|
||||
menuData: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
routineContact: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view v-if="menuData.is_show">
|
||||
<template1 v-if="menuData.style == 1" :menuData="menuData" :routineContact='routineContact'></template1>
|
||||
<template2 v-if="menuData.style == 2" :menuData="menuData" :routineContact='routineContact'></template2>
|
||||
<template3 v-if="menuData.style == 3" :menuData="menuData" :routineContact='routineContact'></template3>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style></style>
|
||||
@@ -0,0 +1,53 @@
|
||||
<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>
|
||||
@@ -0,0 +1,76 @@
|
||||
<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>
|
||||
@@ -0,0 +1,41 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user