From 08e9a67dd679f311e79a27b04cd0c53a30b4bccf Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 04 六月 2026 18:33:22 +0800
Subject: [PATCH] aaa

---
 h5/pages/index_2/index.vue |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/h5/pages/index_2/index.vue b/h5/pages/index_2/index.vue
index 13ca13c..9e1ca04 100644
--- a/h5/pages/index_2/index.vue
+++ b/h5/pages/index_2/index.vue
@@ -115,7 +115,7 @@
 					:key="index"
 					@click="clickItem(index, item.id, item.name,1)">
 						<image :src="item.imgurl ? item.prefixUrl + item.imgurl : ''" mode="widthFix"></image>
-						<text :style="{'font-size': !configuration&&!configuration.listname ?'16px':((configuration.listname.fontSize||16)   +'px'),color: !configuration &&!configuration.listname? '#ffffff' : configuration.listname.selType === 1 ? percentage(configuration.listname.selColor, configuration.listname.selAlpha) : '#ffffff'}">{{item.name}}</text>
+						<text :style="{'font-size': !configuration ||  !configuration.listname?'16px':((configuration.listname.fontSize||16)   +'px'),color: !configuration || !configuration.listname? '#ffffff' : configuration.listname.selType === 1 ? percentage(configuration.listname.selColor, configuration.listname.selAlpha) : '#ffffff'}">{{item.name}}</text>
 					</view>
 					<view class="productCategory_list_zw"></view>
 					<view class="productCategory_list_zw"></view>
@@ -216,7 +216,7 @@
 							<view class="productPage_shop_item_img">
 								<image :src="item.imgurl ? item.prefixUrl + item.imgurl : ''" mode="widthFix"></image>
 							</view>
-							<text :style="{'font-size': !configuration &&!configuration.listproname?'16px':((configuration.listproname.fontSize||16)   +'px'),color: !configuration&&!configuration.listproname ? '#ffffff' : configuration.listproname.selType === 1 ? percentage(configuration.listproname.selColor, configuration.listproname.selAlpha) : '#ffffff',color: !configuration ? '#ffffff' : configuration.listproname.selType === 1 ? percentage(configuration.listproname.selColor, configuration.listproname.selAlpha) : '#ffffff'}">{{item.name}}</text>
+							<text :style="{'font-size': !configuration || !configuration.listproname  ?'16px':((configuration.listproname.fontSize||16)   +'px'),color: !configuration || !configuration.listproname ? '#ffffff' : configuration.listproname.selType === 1 ? percentage(configuration.listproname.selColor, configuration.listproname.selAlpha) : '#ffffff',color: !configuration ||!configuration.listproname ? '#ffffff' : configuration.listproname.selType === 1 ? percentage(configuration.listproname.selColor, configuration.listproname.selAlpha) : '#ffffff'}">{{item.name}}</text>
 						</view>
 						<view class="productPage_shop_zw"></view>
 						<view class="productPage_shop_zw"></view>
@@ -288,6 +288,7 @@
 	import search from '@/components/search.vue'
 	import searchShopList from '@/components/searchShopList.vue'
 	import { categoryList, goodsList, brandList, h5Image, logout, getByLoginNew, listForH5 } from '@/apis/index.js'
+	import { ANCHOR_PAGE_V3, getAnchorHomePath, normalizeAnchorPageVersion } from '@/utils/anchorHome.js'
 	import { mapState } from 'vuex'
 	export default {
 		data() {
@@ -351,7 +352,6 @@
 				zdj: 0,
 				
 				select: [],	// 宸查��
-				configuration: null,
 				bgImg: '',
 				topImg: '',
 				pkImg: '',
@@ -365,10 +365,20 @@
 		onLoad() {
 			getByLoginNew({})
 				.then(res => {
-					if (!res.data) {
+					const data = (res && res.data) || res
+					if (!data) {
 						return
 					}
-					this.configuration = JSON.parse(res.data.newParam)
+					const version = normalizeAnchorPageVersion(data.anchorPageVersion)
+					if (version === ANCHOR_PAGE_V3) {
+						uni.redirectTo({ url: getAnchorHomePath(version) })
+						return
+					}
+					const paramStr = data.newParam
+					if (!paramStr) {
+						return
+					}
+					this.configuration = JSON.parse(paramStr)
 					this.fontColor = this.configuration.pull.selType === 1 ? this.percentage(this.configuration.pull.selColor, this.configuration.pull.selAlpha) : 'rgba(255, 220, 108, 1)'
 					if (this.configuration.bgImg.type === 0) {
 						this.bgImg = require('@/static/mb.png')
@@ -385,6 +395,7 @@
 					} else {
 						this.pkImg = this.configuration.pkImg.imgurl
 					}
+					console.log(this.configuration.listname)
 				})
 			var that = this
 			// 鐩戝惉閿洏缁勫悎閿�

--
Gitblit v1.9.3