From b23c41dd8f3096eec2f94931d88f5be297cc9de1 Mon Sep 17 00:00:00 2001
From: 叶富雄 <yefuxiong@yeah.net>
Date: Sat, 14 Mar 2026 02:07:23 +0800
Subject: [PATCH] ui
---
/dev/null | 68 ----------------------
pages/bank/bank.vue | 8 +-
pages/catesList/catesList.vue | 4
pages/cates/cates.vue | 10 +-
pages/carts/carts.vue | 10 +-
App.vue | 20 +++---
pages/collect/collect.vue | 6 +-
7 files changed, 29 insertions(+), 97 deletions(-)
diff --git a/App.vue b/App.vue
index a0a2b17..df3e9ab 100644
--- a/App.vue
+++ b/App.vue
@@ -89,13 +89,13 @@
}
.noData{
width: 100%;
- font-size: 28rpx;
+ font-size: 28upx;
}
.noData image{
- width: 120rpx;
- height: 100rpx;
+ width: 120upx;
+ height: 100upx;
display: block;
- margin: 100rpx auto 30rpx;
+ margin: 100upx auto 30upx;
}
.noData view{
width: 100%;
@@ -103,13 +103,13 @@
color: #666666;
}
.noDataBtn{
- width: 240rpx !important;
- margin: 50rpx auto;
+ width: 240upx !important;
+ margin: 50upx auto;
background-color: #ff7945;
color: #ffffff !important;
- letter-spacing: 10rpx;
- height: 70rpx;
- line-height: 70rpx;
- border-radius: 50rpx;
+ letter-spacing: 10upx;
+ height: 70upx;
+ line-height: 70upx;
+ border-radius: 50upx;
}
</style>
diff --git a/components/picker/aliCredit.vue b/components/picker/aliCredit.vue
deleted file mode 100644
index 86316f0..0000000
--- a/components/picker/aliCredit.vue
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-<template>
- <view>
- <uv-picker :immediateChange="false" visibleItemCount="5" round="16" :defaultIndex="defaultIndex" ref="aliCreditPicker" keyName="text" :loading="loading" :columns="addressList" @confirm="confirm"></uv-picker>
- </view>
-</template>
-<script>
-import {ALI_CREDITS} from '@/common/constant'
-export default {
- data() {
- return {
- loading: false,
- addressList: [ALI_CREDITS],
- defaultIndex:[0]
-
- }
- },
- methods: {
-
- open() {
- this.$refs.aliCreditPicker.open();
-
- },
- confirm(e) {
- this.$emit('confirm',e)
- }
- },
-}
-</script>
-<style scoped lang="scss">
-
-</style>
\ No newline at end of file
diff --git a/components/picker/areas.vue b/components/picker/areas.vue
deleted file mode 100644
index b15f973..0000000
--- a/components/picker/areas.vue
+++ /dev/null
@@ -1,68 +0,0 @@
-<template>
- <view>
- <uv-picker :immediateChange="false" visibleItemCount="5" round="16" ref="areasDome" keyName="name" :loading="loading" :columns="addressList" @confirm="confirm"></uv-picker>
- </view>
-</template>
-
-<script>
-import { getAreaList } from "@/api/modules/user";
-
-export default {
- props: {
- cityCode: {
- type: String,
- default: ''
- }
- },
-
- data() {
- return {
- loading: true,
- addressList: [],
- codes: '',
- cachedCityCode: '' // 用于缓存 cityCode 或 codes
- };
- },
- created() {
- this.cachedCityCode = this.cityCode || this.codes;
- this.getAreaList();
- },
- watch: {
- cityCode(newVal) {
- if (newVal !== this.cachedCityCode) {
- this.cachedCityCode = newVal;
- this.getAreaList();
- }
- }
- },
- methods: {
- setCityCode(codes) {
- if (codes !== this.cachedCityCode) {
- this.cachedCityCode = codes;
- this.getAreaList();
- }
- },
- open() {
- this.$refs.areasDome.open();
- },
- getAreaList() {
- this.loading = true;
- getAreaList({ cityCode: this.cachedCityCode })
- .then(res => {
- if (Array.isArray(res) && res.length > 0) {
- this.addressList = [[...res]]
- } else {
- this.addressList = [];
- }
- this.loading = false;
- })
- .catch(error => {
- this.loading = false;
- });
- },
- confirm(e) {
- this.$emit('confirm', e);
- }
- }
-};
-</script>
diff --git a/pages/bank/bank.vue b/pages/bank/bank.vue
index b18866e..eb5db62 100644
--- a/pages/bank/bank.vue
+++ b/pages/bank/bank.vue
@@ -7,7 +7,7 @@
<text>{{item.phone}}</text>
</view>
<view class="bank-v">{{item.bankname}}({{item.bankno}})</view>
- <image class="rgt" src="/static/imgs/right.png" ></image>
+ <image class="rgt" src="/static/imgs/right.png" mode=""></image>
<view class="bank-c">
<view class="bank-df">
默认:
@@ -16,11 +16,11 @@
</view>
<view class="bank-c-main">
<view class="bank-c-c" @tap="$util.goPages('/pages/addBank/addBank?id=' + item.id)">
- <image src="/static/imgs/edit.png" ></image>
+ <image src="/static/imgs/edit.png" mode=""></image>
<text>编辑</text>
</view>
<view class="bank-c-c" @tap="delConfirm(item.id, index)">
- <image src="/static/imgs/del.png" ></image>
+ <image src="/static/imgs/del.png" mode=""></image>
<text>删除</text>
</view>
</view>
@@ -28,7 +28,7 @@
</view>
</view>
<view class="noData" v-else>
- <image src="/static/imgs/noData.png" ></image>
+ <image src="/static/imgs/noData.png" mode=""></image>
<view class="">没有银行卡信息</view>
</view>
<view class="bankBtn" @tap="goAdd">添加银行卡</view>
diff --git a/pages/carts/carts.vue b/pages/carts/carts.vue
index 227c57a..4185416 100644
--- a/pages/carts/carts.vue
+++ b/pages/carts/carts.vue
@@ -10,7 +10,7 @@
<view class="" v-if="cartsData.length > 0">
<view class="cartsItem" v-for="(item, index) in cartsData">
<view class="cartTitle" @tap="cartsClick(item, index)">
- <image class="cIcon" :src="item.check == 0 ? '/static/imgs/check.png' : '/static/imgs/checked.png'" ></image>
+ <image class="cIcon" :src="item.check == 0 ? '/static/imgs/check.png' : '/static/imgs/checked.png'" mode=""></image>
<text>{{item.addtime}}</text>
</view>
<view class="cartsGoods" @tap="$util.goPages('/pages/ginfo/ginfo?id=' + item.goodsid)">
@@ -33,26 +33,26 @@
</view>
<view class="carts-nums">
<view class="" @tap="setCartsNums(item, 1)">
- <image src="/static/imgs/minus.png" ></image>
+ <image src="/static/imgs/minus.png" mode=""></image>
</view>
<view class="">
<text>{{item.nums}}</text>
</view>
<view class="" @tap="setCartsNums(item, 2)">
- <image src="/static/imgs/add.png" ></image>
+ <image src="/static/imgs/add.png" mode=""></image>
</view>
</view>
</view>
</view>
<view class="noData" v-else>
- <image src="/static/imgs/noData.png" style="margin-top: 200rpx;"></image>
+ <image src="/static/imgs/noData.png" mode="" style="margin-top: 200upx;"></image>
<view class="">没有购物车信息</view>
<view class="noDataBtn" @tap="$util.goSwitch('/pages/cates/cates')">去看看</view>
</view>
</view>
<view class="cartsControll" v-if="cartsData.length > 0">
<view class="cartsControll-left" @tap="checkTapAll">
- <image class="chooseIcon" :src="checkIds.length == cartsTotal ? '/static/imgs/checked.png' : '/static/imgs/check.png'" ></image>
+ <image class="chooseIcon" :src="checkIds.length == cartsTotal ? '/static/imgs/checked.png' : '/static/imgs/check.png'" mode=""></image>
<text>全选</text>
</view>
<view class="cartsControll-right">
diff --git a/pages/cates/cates.vue b/pages/cates/cates.vue
index 284308f..592245e 100644
--- a/pages/cates/cates.vue
+++ b/pages/cates/cates.vue
@@ -2,7 +2,7 @@
<view>
<view class="search">
<view class="searchView">
- <image src="/static/imgs/search.png" ></image>
+ <image src="/static/imgs/search.png" mode=""></image>
<input type="text" v-model="keyword" placeholder="搜索您想要的商品" @confirm="searchGoods" />
<view class="searchBtn" @tap="searchGoods">搜索</view>
</view>
@@ -14,11 +14,11 @@
<view v-for="(item, index) in catesData" @click="catesClick(item)" :class="catesId == item.id ? 'active' : ''">{{item.title}}</view>
</scroll-view>
</view>
- <view class="cates-right" :style="'width:' + goodsWidth + 'px;height:' + (scrollHeight - 10) + 'px;margin-top: 20rpx'" v-if="goodsData.length > 0">
+ <view class="cates-right" :style="'width:' + goodsWidth + 'px;height:' + (scrollHeight - 10) + 'px;margin-top: 20upx'" v-if="goodsData.length > 0">
<scroll-view scroll-y="true" class="scroll-Y">
<view class="goods-list">
<view class="goods-item" v-for="(item, index) in goodsData" :style="'width:' + goodsItemWidth + 'px;'" @click="$util.goPages('/pages/ginfo/ginfo?id=' + item.id)">
- <image class="goods-icon" :src="item.icon" ></image>
+ <image class="goods-icon" :src="item.icon" mode=""></image>
<view class="goods-title">{{item.title}}</view>
<view class="goods-price">
<view>¥</view>
@@ -29,8 +29,8 @@
</scroll-view>
</view>
<view class="noData" v-else>
- <image src="/static/imgs/noData.png" style="margin-left: 50%;" ></image>
- <view class="" style="margin-left: 120rpx; width: auto;">没有商品信息</view>
+ <image src="/static/imgs/noData.png" style="margin-left: 50%;" mode=""></image>
+ <view class="" style="margin-left: 120upx; width: auto;">没有商品信息</view>
</view>
</view>
diff --git a/pages/catesList/catesList.vue b/pages/catesList/catesList.vue
index 8caa492..6e86750 100644
--- a/pages/catesList/catesList.vue
+++ b/pages/catesList/catesList.vue
@@ -1,6 +1,6 @@
<template>
<view>
- <view class="goodsData" style="margin-top: 30rpx;">
+ <view class="goodsData" style="margin-top: 30upx;">
<view class="goods-list" v-if="goodsData.length > 0">
<view class="goods-item" v-for="(itm, idx) in goodsData" @click="$util.goPages('/pages/ginfo/ginfo?id=' + itm.id)">
<image lazy-load class="goods-icon" :src="itm.icon" mode="widthFix"></image>
@@ -12,7 +12,7 @@
</view>
</view>
<view class="noData" v-else>
- <image src="/static/imgs/noData.png" style="margin-top: 200rpx;"></image>
+ <image src="/static/imgs/noData.png" mode="" style="margin-top: 200upx;"></image>
<view class="">没有商品信息</view>
</view>
</view>
diff --git a/pages/collect/collect.vue b/pages/collect/collect.vue
index 5f5a51d..d608c0a 100644
--- a/pages/collect/collect.vue
+++ b/pages/collect/collect.vue
@@ -11,7 +11,7 @@
<view class="goods-list" v-if="collectData.length > 0">
<view class="goods-item" v-for="(item, index) in collectData">
<view class="" @tap="collectClick(item, index)" v-if="delFlag">
- <image class="checkImg" :src="item.check == 1 ? '/static/imgs/checked.png' : '/static/imgs/check.png'" ></image>
+ <image class="checkImg" :src="item.check == 1 ? '/static/imgs/checked.png' : '/static/imgs/check.png'" mode=""></image>
<view class="msk"></view>
</view>
<view class="" @click="$util.goPages('/pages/ginfo/ginfo?id=' + item.goodsid)">
@@ -24,8 +24,8 @@
</view>
</view>
</view>
- <view class="noData" style="margin-top: 250rpx;" v-else>
- <image src="/static/imgs/noData.png" ></image>
+ <view class="noData" style="margin-top: 250upx;" v-else>
+ <image src="/static/imgs/noData.png" mode=""></image>
<view class="">没有收藏信息</view>
</view>
</view>
--
Gitblit v1.9.3