From 8871e7afdd529807d181b679287778c29a02ed0b Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Tue, 12 May 2026 17:11:38 +0800
Subject: [PATCH] feat:购有趣 登录页,首页,我的页面
---
pages/index/index.vue | 41 ++++++++++++++---------------------------
1 files changed, 14 insertions(+), 27 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 4669c6d..4e6b00f 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -40,22 +40,22 @@
</view>
</view> -->
<view v-if="catesNavData" style="padding: 0 30rpx;background-color: #ffffff;margin-top: 422rpx;">
- <uv-scroll-list>
+ <uv-scroll-list indicatorColor="#fff0f0" indicatorActiveColor="#37AA25">
<view class="cates-v" v-for="(item, index) in catesNavData" :key="item.id" @tap="$util.goPages('/pages/catesList/catesList?catesId=' + item.id + '&title=' + item.title)">
<image class="cates-v-icon" :src="item.icon" mode="heightFix"></image>
<view class="">{{item.title}}</view>
</view>
</uv-scroll-list>
</view>
-
+
<!-- <view class="ad1" @tap="$util.goPages('/pages/catesList/catesList?catesId=11' + '&title=' + '服装鞋包')">
<image src="/static/imgs/ad1.png" mode=""></image>
</view> -->
-
+
<view class="ad2" @tap="$util.goPages('/pages/catesList/catesList?catesId=3' + '&title=' + '手机数码')">
<image src="/static/imgs/ad2.png" mode=""></image>
</view>
-
+
<view class="d3-wrap">
<view class="ad3" @tap="$util.goPages('/pages/catesList/catesList?catesId=2' + '&title=' + '家用电器')">
<image src="/static/imgs/ad3.png" mode=""></image>
@@ -64,7 +64,7 @@
<image src="/static/imgs/ad4.png" mode=""></image>
</view>
</view>
-
+
<!-- <view class="c-goods" v-if="hotCates" v-for="(item, index) in hotCates">
<view class="ca-ad" v-if="index % 2 == 0">
<image src="/static/imgs/c1.png" mode=""></image>
@@ -99,7 +99,7 @@
</scroll-view>
</view>
</view> -->
-
+
<view class="cateNav">
<view class="cateNav-item" :class="{active:actIndex===index}" v-for="(item, index) in cateNavList" :key="index" @click="navClick(item,index)">
<view class="cateNav-title">{{item.title}}</view>
@@ -118,8 +118,6 @@
<!-- <view class="hyj">
<image src="@/static/imgs/hyj.png" mode=""></image>
</view> -->
- <view>¥</view>
- <view class="red">{{itm.price}}</view>
</view>
</view>
</view>
@@ -131,7 +129,7 @@
<view class="login-btn">立即登录</view>
</view>
</view>
-
+
<uni-popup ref="popup2" type="center" :is-mask-click="false">
<view class="popup-content">
<view class="edu-view edu-view2">
@@ -169,23 +167,12 @@
},
data() {
return {
- list: [{
- image: "https://via.placeholder.com/200x200.png/3c9cff/fff"
- }, {
- image: "https://via.placeholder.com/200x200.png/f9ae3d/fff"
- }, {
- image: "https://via.placeholder.com/200x200.png/5ac725/fff"
- }, {
- image: "https://via.placeholder.com/200x200.png/f56c6c/fff"
- }, {
- image: "https://via.placeholder.com/200x200.png/909399/fff"
- }],
indicator: true,
contactsFlag: false,
staHeight: 0,
paddingHeight: 0,
indicatorDots: true,
- indicatorColor: '#e3b400',
+ indicatorColor: '#37AA25',
indicatorActiveColor: '#ffffff',
autoplay: true,
interval: 3000,
@@ -207,15 +194,15 @@
goodsData: [],
cateNavList: [
{
- title: '精选',
- desc: '猜你喜欢',
- skey: '服装鞋包',
- catesId: 11,
- },{
title: '人气',
desc: '好物精选',
skey: '家用电器',
catesId: 2,
+ },{
+ title: '精选',
+ desc: '猜你喜欢',
+ skey: '服装鞋包',
+ catesId: 15,
},{
title: '休闲',
desc: '天天低价',
@@ -240,7 +227,7 @@
// #endif
},
created() {
- this.catesId = 11
+ this.catesId = this.cateNavList[0]['catesId']
this.catesGoods()
},
onLoad() {
--
Gitblit v1.9.3