From b6b181050a3831525007d2d1cd932e505494a48d Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Wed, 29 Apr 2026 15:49:18 +0800
Subject: [PATCH] UI: 购有趣首页+我的页面调整
---
unpackage/res/icons/80x80.png | 0
unpackage/res/icons/76x76.png | 0
pages/login/login.vue | 2
unpackage/res/icons/120x120.png | 0
unpackage/res/icons/192x192.png | 0
unpackage/res/icons/152x152.png | 0
unpackage/res/icons/40x40.png | 0
pages/carts/carts.vue | 6 +
unpackage/res/icons/96x96.png | 0
unpackage/res/icons/1024x1024.png | 0
util.js | 34 --------
unpackage/res/icons/29x29.png | 0
unpackage/res/icons/58x58.png | 0
unpackage/res/icons/60x60.png | 0
pages/my/my.vue | 67 ----------------
unpackage/res/icons/167x167.png | 0
unpackage/res/icons/20x20.png | 0
unpackage/res/icons/144x144.png | 0
unpackage/res/icons/87x87.png | 0
unpackage/res/icons/180x180.png | 0
pages/index/index.vue | 95 +----------------------
unpackage/res/icons/72x72.png | 0
22 files changed, 12 insertions(+), 192 deletions(-)
diff --git a/pages/carts/carts.vue b/pages/carts/carts.vue
index 5674ad3..d42ee37 100644
--- a/pages/carts/carts.vue
+++ b/pages/carts/carts.vue
@@ -1,6 +1,6 @@
<template>
<view class="carts">
- <view class="c-title">
+ <view class="c-title" :style="{top:statusBarHeight+ 'px'}">
<text>共{{cartsTotal}}件商品</text>
<view class="" @tap="delCarts">
<text>删除</text>
@@ -78,6 +78,7 @@
checkAll: false,
checkIds: [],
checkIdx: [1],
+ statusBarHeight: 0,
}
},
onShow() {
@@ -90,6 +91,9 @@
setTimeout(() => {
}, 2000)
+ const windowInfo = uni.getWindowInfo();
+ this.statusBarHeight = windowInfo.windowTop || windowInfo.safeAreaInsets.top;
+
},
methods: {
getCarts () {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 71ff032..c1ceeb2 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -2,20 +2,6 @@
<view class="page-container index">
<image class="page-bg" src="@/static/imgs/index-top.png" mode="scaleToFill"></image>
<view class="content" style="padding-bottom: 200rpx;">
- <!-- #ifdef APP-PLUS -->
- <view class="uni-popup" :style="{top:isNativeHead?'':StatusBar}" v-if="contactsFlag">
- <view class="ani uni-custom uni-popup__wrapper">
- <view class="uni-popup__wrapper-box">
- <view class="title">通讯权限</view>
- <view class="content">便于实现好友推荐、联系人同步等功能</view>
- <view class="btn-group">
- <button class="cancel-btn" @click="handleReject">拒绝</button>
- <button class="allow-btn" @click="handleAuthorize">允许</button>
- </view>
- </view>
- </view>
- </view>
- <!-- #endif -->
<view class="hLogo">
<view class="hLogoView">
<view class="hLogo-1">
@@ -29,68 +15,14 @@
</view>
</view>
- <view class="cates" v-if="catesNavData">
+ <view class="cates" v-if="catesNavData" style="margin-top: 0;">
<view class="cates-v" v-for="(item, index) in catesNavData" @tap="$util.goPages('/pages/catesList/catesList?catesId=' + item.id + '&title=' + item.title)">
<image class="cates-v-icon" :src="item.icon" mode=""></image>
<view class="">{{item.title}}</view>
</view>
- <!-- <view class="cates-v" @tap="$util.goSwitch('/pages/cates/cates')">
- <image class="cates-v-icon" src="/static/imgs/more.png" mode=""></image>
- <view class="">更多</view>
- </view> -->
</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>
- </view>
- <view class="ad4" @tap="$util.goPages('/pages/catesList/catesList?catesId=4' + '&title=' + '美妆个护')">
- <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>
- </view>
- <view class="ca-ad" v-else>
- <image src="/static/imgs/c2.png" mode=""></image>
- </view>
- <view class="cGoods">
- <scroll-view class="scroll-view_H" scroll-x="true">
- <view class="scroll-view-item_H" v-for="(itm, index) in item.goods" @tap="$util.goPages('/pages/ginfo/ginfo?id=' + itm.id)">
- <image lazy-load class="goods-icon" :src="itm.icon" mode=""></image>
- <view class="goods-title">{{itm.title}}</view>
- <view class="goods-price">
- <view>¥</view>
- <view class="red">{{itm.price}}</view>
- </view>
- </view>
- </scroll-view>
- </view>
- </view> -->
- <!-- <view class="c-goods" v-if="hotGoods">
- <view class="cGoods">
- <scroll-view class="scroll-view_H" scroll-x="true">
- <view class="scroll-view-item_H" v-for="(itm, index) in hotGoods" @tap="$util.goPages('/pages/ginfo/ginfo?id=' + itm.id)">
- <image lazy-load class="goods-icon" :src="itm.icon" mode=""></image>
- <view class="goods-title">{{itm.title}}</view>
- <view class="goods-price">
- <view>¥</view>
- <view class="red">{{itm.price}}</view>
- </view>
- </view>
- </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)">
@@ -110,33 +42,12 @@
<!-- <view class="hyj">
<image src="@/static/imgs/hyj.png" mode=""></image>
</view> -->
- <view>¥</view>
- <view class="red">{{itm.price}}</view>
</view>
</view>
</view>
</view>
</view>
- <view class="login-desc" v-if="!userInfo" @tap="$util.goPages('../login/login')">
- <image class="login-icon" src="/static/imgs/logo-icon.png" mode=""></image>
- <view class="login-font">登录购有趣,打开美好生活</view>
- <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">
- <view class="edu-view-desc2">认证领取额度</view>
- <image class="edu-icon-succ" src="/static/imgs/auths.png" mode=""></image>
- <view class="edu-view-desc3">
- 请您先认证个人信息,然后立即领取额度
- </view>
- <view class="edu-btns" @tap="go_auth">立即领取</view>
- <!-- <view class="edu-btns" @tap="$util.goPages('/pages/idcard/idcard')">立即领取</view> -->
- </view>
- </view>
- </uni-popup>
</view>
</template>
@@ -190,7 +101,7 @@
title: '精选',
desc: '猜你喜欢',
skey: '手机数码',
- catesId: 3,
+ catesId: 11,
},{
title: '人气',
desc: '好物精选',
@@ -220,6 +131,8 @@
// #endif
},
created() {
+ this.actIndex = 0;
+ this.catesId = 11;
this.catesGoods()
},
onLoad() {
diff --git a/pages/login/login.vue b/pages/login/login.vue
index b80678a..e5c9f38 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -12,7 +12,7 @@
</view>
<view class="login-list">
<view class="login-item">
- <input type="tel" v-model="formData.phone" placeholder="请输入手机号" />
+ <input type="tel" maxlength="11" v-model="formData.phone" placeholder="请输入手机号" />
</view>
<view class="login-item" v-if="formData.loginType == 1">
<input type="password" v-model="formData.pass" placeholder="请输入密码" />
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 8262063..ec7041f 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -12,50 +12,7 @@
<view v-if="userInfo == null" @tap="$util.goPages('/pages/login/login')">未登录</view>
<view v-else>{{userInfo.phone}}</view>
</template>
- <template v-if="userInfo != null && Config">
- <template v-if="userInfo.status == 1">
- <view class="edu" v-if="userInfo != null && userInfo.edu_auth == 0 && Config.put_open == 2 && userInfo.over_auth == 0">额度:未认证</view>
- <view class="edu" v-else-if="userInfo != null && userInfo.edu_auth == 0 && Config.put_open == 2 && userInfo.over_auth == 1">额度:授信中</view>
- <view class="edu" v-else-if="userInfo != null && userInfo.edu_auth == 1 && Config.put_open == 2">额度:{{userInfo.const}}</view>
- </template>
- <template v-else>
- <view class="edu">额度:授信失败</view>
- </template>
- </template>
- <template v-if="userInfo != null && userInfo.face_auth == 0">
- <view class="edu" @tap="$util.checkGoPages('/pages/my/my')">未认证</view>
- </template>
</view>
- </view>
-
- <view class="auth" v-if="userInfo && userInfo.over_auth != 1" @tap="$util.checkGoPages('/pages/my/my')">
- <image src="@/static/imgs/notice.png" mode=""></image>
- <text>您还未进行实名认证,点击前往实名认证</text>
- <view class="">去认证</view>
- </view>
-
- <view class="num-wrapper tui-skeleton-rect">
- <view class="num-item" style="display: flex;background: white;border-radius: 24rpx;padding: 22rpx;width: 48%;" @tap="$util.checkLogin('/pages/collect/collect')">
- <view style="padding-right: 32rpx;">
- <image style="width: 48rpx;height: 48rpx;margin-top: 30rpx;" src="/static/imgs/Star.png"></image>
- </view>
- <view style="flex: 1">
- <view class="txt" style="color: #666;text-align:left">我的收藏</view>
- <view class="num" style="color: #333;text-align:left;margin-top: 8rpx;">0</view>
-
- </view>
- </view>
- <view style="display: flex;background: white;border-radius: 24rpx;padding: 22rpx;width: 48%;" class="num-item" @tap="$util.checkLogin('/pages/address/address')">
- <view style="padding-right: 32rpx;">
- <image style="width: 48rpx;height: 48rpx;margin-top: 30rpx;" src="/static/imgs/History.png"></image>
- </view>
- <view style="flex: 1">
- <view class="txt" style="color: #666;text-align:left">我的地址</view>
- <view class="num" style="color: #333;text-align:left;margin-top: 5rpx;">0</view>
-
- </view>
-
- </view>
</view>
<view class="navs">
@@ -73,23 +30,7 @@
</view>
</view>
</view>
-
- <view class="mySer">
- <view class="title">我的服务</view>
- <view class="mySerCon">
- <template v-for="(item, index) in mySerData">
- <view class="mySerCon-v" @tap="$util.checkLogin(item.url)" v-if="item.index != 6">
- <image :src="'../../static/imgs/mf' + item.index + '.png'" mode=""></image>
- <view>{{item.text}}</view>
- </view>
- <!-- <view class="mySerCon-v" @tap="goKefu" v-else>
- <image :src="'../../static/imgs/mf' + item.index + '.png'" mode=""></image>
- <view>{{item.text}}</view>
- </view> -->
- </template>
- </view>
- </view>
- <view style="text-align: center;font-size: 24rpx;color: #666666;margin: 80rpx 0;">
+ <view style="text-align: center;font-size: 24rpx;color: #666666;margin-top: 280rpx;">
客服电话:400-6052-330(8:00-20:00)
</view>
<view class="myBeiAn">
@@ -125,16 +66,10 @@
{index: 1, text: '待支付', url: '/pages/order/order?status=1'},
{index: 3, text: '待发货', url: '/pages/order/order?status=4'},
{index: 4, text: '待收货', url: '/pages/order/order?status=5'},
- {index: 2, text: '待签约', url: '/pages/order/order?status=3'},
{index: 5, text: '退款/售后', url: '/pages/order/order?status=-3'}
],
mySerData: [
{index: 1, text: '个人信息', url: '/pages/profile/profile'},
- {index: 2, text: '账单信息', url: '/pages/logs/logs'},
- // {index: 3, text: '银行卡', url: '/pages/bank/bank'},
- // {index: 4, text: '我的地址', url: '/pages/address/address'},
- // {index: 5, text: '我的收藏', url: '/pages/collect/collect'},
- // {index: 6, text: '联系客服'},
]
}
},
diff --git a/unpackage/res/icons/1024x1024.png b/unpackage/res/icons/1024x1024.png
index 792b82f..1219fd6 100644
--- a/unpackage/res/icons/1024x1024.png
+++ b/unpackage/res/icons/1024x1024.png
Binary files differ
diff --git a/unpackage/res/icons/120x120.png b/unpackage/res/icons/120x120.png
index 212cb86..716ca56 100644
--- a/unpackage/res/icons/120x120.png
+++ b/unpackage/res/icons/120x120.png
Binary files differ
diff --git a/unpackage/res/icons/144x144.png b/unpackage/res/icons/144x144.png
index 1c3c7ab..c92e3be 100644
--- a/unpackage/res/icons/144x144.png
+++ b/unpackage/res/icons/144x144.png
Binary files differ
diff --git a/unpackage/res/icons/152x152.png b/unpackage/res/icons/152x152.png
index 64d2878..b4ead22 100644
--- a/unpackage/res/icons/152x152.png
+++ b/unpackage/res/icons/152x152.png
Binary files differ
diff --git a/unpackage/res/icons/167x167.png b/unpackage/res/icons/167x167.png
index 25cc92a..13e54ec 100644
--- a/unpackage/res/icons/167x167.png
+++ b/unpackage/res/icons/167x167.png
Binary files differ
diff --git a/unpackage/res/icons/180x180.png b/unpackage/res/icons/180x180.png
index 593c255..73e3e2e 100644
--- a/unpackage/res/icons/180x180.png
+++ b/unpackage/res/icons/180x180.png
Binary files differ
diff --git a/unpackage/res/icons/192x192.png b/unpackage/res/icons/192x192.png
index 550d313..d9c7c32 100644
--- a/unpackage/res/icons/192x192.png
+++ b/unpackage/res/icons/192x192.png
Binary files differ
diff --git a/unpackage/res/icons/20x20.png b/unpackage/res/icons/20x20.png
index 02e707f..27fabfa 100644
--- a/unpackage/res/icons/20x20.png
+++ b/unpackage/res/icons/20x20.png
Binary files differ
diff --git a/unpackage/res/icons/29x29.png b/unpackage/res/icons/29x29.png
index a142092..f93fc2d 100644
--- a/unpackage/res/icons/29x29.png
+++ b/unpackage/res/icons/29x29.png
Binary files differ
diff --git a/unpackage/res/icons/40x40.png b/unpackage/res/icons/40x40.png
index 0709d15..673f56b 100644
--- a/unpackage/res/icons/40x40.png
+++ b/unpackage/res/icons/40x40.png
Binary files differ
diff --git a/unpackage/res/icons/58x58.png b/unpackage/res/icons/58x58.png
index 78fac9e..afa4681 100644
--- a/unpackage/res/icons/58x58.png
+++ b/unpackage/res/icons/58x58.png
Binary files differ
diff --git a/unpackage/res/icons/60x60.png b/unpackage/res/icons/60x60.png
index dbaac1e..90f32e6 100644
--- a/unpackage/res/icons/60x60.png
+++ b/unpackage/res/icons/60x60.png
Binary files differ
diff --git a/unpackage/res/icons/72x72.png b/unpackage/res/icons/72x72.png
index 38edb6f..af19b42 100644
--- a/unpackage/res/icons/72x72.png
+++ b/unpackage/res/icons/72x72.png
Binary files differ
diff --git a/unpackage/res/icons/76x76.png b/unpackage/res/icons/76x76.png
index 25aaab1..e9b5078 100644
--- a/unpackage/res/icons/76x76.png
+++ b/unpackage/res/icons/76x76.png
Binary files differ
diff --git a/unpackage/res/icons/80x80.png b/unpackage/res/icons/80x80.png
index 3dd654b..a5bb0b8 100644
--- a/unpackage/res/icons/80x80.png
+++ b/unpackage/res/icons/80x80.png
Binary files differ
diff --git a/unpackage/res/icons/87x87.png b/unpackage/res/icons/87x87.png
index 216022e..4ca1d5b 100644
--- a/unpackage/res/icons/87x87.png
+++ b/unpackage/res/icons/87x87.png
Binary files differ
diff --git a/unpackage/res/icons/96x96.png b/unpackage/res/icons/96x96.png
index 7097957..3e32189 100644
--- a/unpackage/res/icons/96x96.png
+++ b/unpackage/res/icons/96x96.png
Binary files differ
diff --git a/util.js b/util.js
index cfd92e3..abc4e12 100644
--- a/util.js
+++ b/util.js
@@ -261,39 +261,7 @@
})
return false
} else {
- let userInfo = getUserInfo()
- let goUrl = ''
- if(userInfo.idcard_auth == 0){
- goUrl = '/pages/idcard/idcard'
- } else if(userInfo.face_auth == 0){
- goUrl = '/pages/face/face'
- } else if(userInfo.job_auth == 0){
- goUrl = '/pages/job/job'
- } else if(userInfo.bank_auth == 0){
- goUrl = '/pages/addBank/addBank?backUrl=/pages/face/face'
- }
- console.log('goUrl', goUrl)
- if(goUrl != ''){
- uni.showModal({
- title: '温馨提示',
- content: '根据国家法律法规规定,使用本服务需要完成实名认证,是否前往认证?',
- success: function (res) {
- if (res.confirm) {
- uni.navigateTo({
- url: goUrl
- })
- }
- }
- })
- return false
- }
- if(url != '' && isgo == 1){
- uni.navigateTo({
- url: url
- })
- } else {
- return true
- }
+ return true
}
}
--
Gitblit v1.9.3