|
@@ -5,9 +5,9 @@
|
|
<view class="serve-title client-title" v-if="userType == 2">注册专区</view>
|
|
<view class="serve-title client-title" v-if="userType == 2">注册专区</view>
|
|
<swiper :indicator-dots="true" class="swiper" v-if="serveiceList && serveiceList.length > 0">
|
|
<swiper :indicator-dots="true" class="swiper" v-if="serveiceList && serveiceList.length > 0">
|
|
<swiper-item>
|
|
<swiper-item>
|
|
- <up-grid :border="false" col="5" @click="handleGridClick">
|
|
|
|
|
|
+ <up-grid :border="false" col="5" >
|
|
<up-grid-item v-for="(item, index) in serveiceList.slice(0,10)" :key="index"
|
|
<up-grid-item v-for="(item, index) in serveiceList.slice(0,10)" :key="index"
|
|
- :custom-style="custmoStyle">
|
|
|
|
|
|
+ :custom-style="custmoStyle" @click="handleGridClick(item)">
|
|
<view class="grid-box">
|
|
<view class="grid-box">
|
|
<view class="grid-icon">
|
|
<view class="grid-icon">
|
|
<image :src="item.icon" class="service-img" mode="aspectFit" />
|
|
<image :src="item.icon" class="service-img" mode="aspectFit" />
|
|
@@ -19,9 +19,9 @@
|
|
</up-grid>
|
|
</up-grid>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
<swiper-item>
|
|
<swiper-item>
|
|
- <up-grid :border="false" col="5" @click="handleGridClick">
|
|
|
|
|
|
+ <up-grid :border="false" col="5" >
|
|
<up-grid-item v-for="(item, index) in serveiceList.slice(10,serveiceList.length)" :key="index"
|
|
<up-grid-item v-for="(item, index) in serveiceList.slice(10,serveiceList.length)" :key="index"
|
|
- :custom-style="custmoStyle">
|
|
|
|
|
|
+ :custom-style="custmoStyle" @click="handleGridClick(item)">
|
|
<view class="grid-box">
|
|
<view class="grid-box">
|
|
<view class="grid-icon">
|
|
<view class="grid-icon">
|
|
<image :src="item.icon" class="service-img" mode="aspectFit" />
|
|
<image :src="item.icon" class="service-img" mode="aspectFit" />
|
|
@@ -228,8 +228,11 @@
|
|
|
|
|
|
|
|
|
|
// 宫格点击事件
|
|
// 宫格点击事件
|
|
- const handleGridClick = async (index) => {
|
|
|
|
- const service = serveiceList.value[index]; // 获取点击的服务条目
|
|
|
|
|
|
+ const handleGridClick = async (service) => {
|
|
|
|
+
|
|
|
|
+ // const service = serveiceList.value[index]; // 获取点击的服务条目
|
|
|
|
+ console.log('index',service);
|
|
|
|
+
|
|
// 用户
|
|
// 用户
|
|
if (userType == 1) {
|
|
if (userType == 1) {
|
|
|
|
|