From dd6fdd9bcff3c2b3dcebdb0db3f80bc9dd469bc4 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 25 Dec 2025 10:00:15 +0800
Subject: [PATCH] 1.	添加滚动效果 2.	修复供应方无法开通权限

---
 mobile/components/diy/gxpp/gxpp.vue |   98 ++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 80 insertions(+), 18 deletions(-)

diff --git a/mobile/components/diy/gxpp/gxpp.vue b/mobile/components/diy/gxpp/gxpp.vue
index 2745749..0b4e24a 100644
--- a/mobile/components/diy/gxpp/gxpp.vue
+++ b/mobile/components/diy/gxpp/gxpp.vue
@@ -1,13 +1,54 @@
 <template>
 	<view class="diy-article">
-		<!--列表-->
-		<view class="article-item" v-for="(item, index) in listData" :class="'show-type__'+ itemData.style.display"
-			:key="index" @click="gotoPageFunc(item)">
-			<template>
-				<view class="f24 text-ellipsis-2 lh200">
-					{{ item.name }}
-				</view>
-			</template>
+		<view class="hdzq-icon">
+			<image :src="itemData.style.image" mode="aspectFill"></image>
+		</view>
+		<view class="diy-bg" :style="'background-image:url('+itemData.style.background+');'">
+			
+			<!---列表-->
+			<swiper class="swiper" :autoplay="autoplay" :interval="interval" :duration="duration" @change="changeSwiper">
+				<!---第一个-->
+			<swiper-item v-if="listData.length > 0">	
+			<view class="article-item" v-for="(item, index) in listData" :class="'show-type__'+ itemData.style.display"
+				:key="index" @click="gotoPageFunc(item)" v-if="index < 4">
+				<template>
+					<view class="f24 text-ellipsis-2 lh200" :style="'color:'+itemData.style.textColor+';'">
+						{{ item.name }}
+					</view>
+				</template>
+			</view>
+			</swiper-item>
+			<!---第一个-->
+			
+			<!---第二个-->
+			<swiper-item v-if="listData.length > 4">
+			<view class="article-item" v-for="(item, index) in listData" :class="'show-type__'+ itemData.style.display"
+				:key="index" @click="gotoPageFunc(item)"  v-if="index > 3">
+				<template>
+					<view class="f24 text-ellipsis-2 lh200" :style="'color:'+itemData.style.textColor+';'">
+						{{ item.name }}
+					</view>
+				</template>
+			</view>
+			</swiper-item>
+			<!---第二个-->
+			
+			<!---第三个-->
+			<swiper-item v-if="listData.length > 8">
+			<view class="article-item" v-for="(item, index) in listData" :class="'show-type__'+ itemData.style.display"
+				:key="index" @click="gotoPageFunc(item)"  v-if="index > 7">
+				<template>
+					<view class="f24 text-ellipsis-2 lh200" :style="'color:'+itemData.style.textColor+';'">
+						{{ item.name }}
+					</view>
+				</template>
+			</view>
+			</swiper-item>
+			<!---第三个-->
+			
+			<!--列表-->
+			</swiper>
+			
 		</view>
 	</view>
 </template>
@@ -17,7 +58,13 @@
 		data() {
 			return {
 				/*数据列表*/
-				listData: []
+				listData: [],
+				indicatorDots: true,
+				autoplay: true,
+				interval: 2000,
+				duration: 500,
+				indicatorActiveColor: '#ffffff',
+				current: 0
 			};
 		},
 		props: ['itemData'],
@@ -25,6 +72,10 @@
 			this.listData = this.itemData.data;
 		},
 		methods: {
+			
+			changeSwiper(e) {
+				this.current = e.detail.current;
+			},
 
 			/*跳转页面*/
 			gotoPageFunc(e) {
@@ -59,16 +110,24 @@
 	}
 	.diy-article {
 		background: #ffffff;
-		margin: 20rpx;
+		margin: 20rpx 0px;
+		padding:0px 10rpx;
 		border-radius: 6rpx;
-		padding: 0 30rpx;
 		box-shadow: 0px 8rpx 3rpx 0px rgba(6, 0, 1, 0.03);
+	}
+
+	.diy-bg{
+		width: 100%;
+		height: 350rpx;
+		background-repeat: no-repeat;
+		background-position: center;
+		background-size: cover;
 	}
 
 	.diy-article .show-type__10,
 	.diy-article .show-type__20 {
 		display: flex;
-		padding: 30rpx 0;
+		padding: 20rpx;
 		border-bottom: 1rpx solid #eeeeee;
 	}
 
@@ -92,14 +151,17 @@
 		height: 36rpx;
 	}
 
-	.diy-article image {
-		width: 100%;
-		height: 100%;
-		border-radius: 12rpx;
-	}
-
 	.diy-article .show-type__10 .icon.iconfont {
 		font-size: 18rpx;
 		color: #999999;
 	}
+	
+	.diy-article .hdzq-icon {
+		width: 100%;
+	}
+	
+	.diy-article .hdzq-icon image {
+		width: auto;
+		height: 80rpx;
+	}
 </style>

--
Gitblit v1.9.2