lin
2026-04-29 b6b181050a3831525007d2d1cd932e505494a48d
UI: 购有趣首页+我的页面调整
22 files modified
202 ■■■■■ changed files
pages/carts/carts.vue 6 ●●●● patch | view | raw | blame | history
pages/index/index.vue 95 ●●●●● patch | view | raw | blame | history
pages/login/login.vue 2 ●●● patch | view | raw | blame | history
pages/my/my.vue 67 ●●●●● patch | view | raw | blame | history
unpackage/res/icons/1024x1024.png patch | view | raw | blame | history
unpackage/res/icons/120x120.png patch | view | raw | blame | history
unpackage/res/icons/144x144.png patch | view | raw | blame | history
unpackage/res/icons/152x152.png patch | view | raw | blame | history
unpackage/res/icons/167x167.png patch | view | raw | blame | history
unpackage/res/icons/180x180.png patch | view | raw | blame | history
unpackage/res/icons/192x192.png patch | view | raw | blame | history
unpackage/res/icons/20x20.png patch | view | raw | blame | history
unpackage/res/icons/29x29.png patch | view | raw | blame | history
unpackage/res/icons/40x40.png patch | view | raw | blame | history
unpackage/res/icons/58x58.png patch | view | raw | blame | history
unpackage/res/icons/60x60.png patch | view | raw | blame | history
unpackage/res/icons/72x72.png patch | view | raw | blame | history
unpackage/res/icons/76x76.png patch | view | raw | blame | history
unpackage/res/icons/80x80.png patch | view | raw | blame | history
unpackage/res/icons/87x87.png patch | view | raw | blame | history
unpackage/res/icons/96x96.png patch | view | raw | blame | history
util.js 32 ●●●●● patch | view | raw | blame | history
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 () {
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() {
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="请输入密码" />
pages/my/my.vue
@@ -12,49 +12,6 @@
                        <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>
            
@@ -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: '联系客服'},
                ]
            }
        },
unpackage/res/icons/1024x1024.png

unpackage/res/icons/120x120.png

unpackage/res/icons/144x144.png

unpackage/res/icons/152x152.png

unpackage/res/icons/167x167.png

unpackage/res/icons/180x180.png

unpackage/res/icons/192x192.png

unpackage/res/icons/20x20.png

unpackage/res/icons/29x29.png

unpackage/res/icons/40x40.png

unpackage/res/icons/58x58.png

unpackage/res/icons/60x60.png

unpackage/res/icons/72x72.png

unpackage/res/icons/76x76.png

unpackage/res/icons/80x80.png

unpackage/res/icons/87x87.png

unpackage/res/icons/96x96.png

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
        }
    }