From 6b24ab0c9695324e62c77cfcb971a8e20ca58a7a Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 5 Mar 2024 10:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E5=95=86=E5=93=81=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E6=94=B9=E6=8D=A2goods=5Fprice=5Fmin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/activity/charts.vue | 5 +- pages/activity/intimate.vue | 4 + pages/activity/newGoods.vue | 3 + pages/activity/newPeople.vue | 20 +- pages/activity/newsshop.vue | 4 +- pages/activity/presale.vue | 3 + pages/activity/ranking.vue | 51 ++-- pages/cart/index.vue | 176 +++++++++++- pages/coupon/index.vue | 4 + pages/index/index.vue | 8 +- pages/login/index.vue | 538 +++++++++++++++++++---------------- pages/news/coupon/index.vue | 14 +- pages/news3/ManualEntry.vue | 1 - pages/user/index.vue | 3 + pages/user/vip/goods.vue | 2 +- 15 files changed, 539 insertions(+), 297 deletions(-) diff --git a/pages/activity/charts.vue b/pages/activity/charts.vue index 86db1be..09cc533 100644 --- a/pages/activity/charts.vue +++ b/pages/activity/charts.vue @@ -92,11 +92,14 @@ getListJingData(categoryId) { let app = this; let pamars = { - store_id: 10001, + // store_id: 10001, categoryId: categoryId, } Api.chartsGoodsList(pamars) .then(result => { + result.data.data.forEach(item => { + item.goods_price_min = Number(item.goods_price_min); + }); app.jingList = result.data.data; }) .finally(() => app.isLoading = false) diff --git a/pages/activity/intimate.vue b/pages/activity/intimate.vue index b2bf2e4..c0598be 100644 --- a/pages/activity/intimate.vue +++ b/pages/activity/intimate.vue @@ -106,6 +106,10 @@ order_sort: this.filterFlag?"desc":"asc" }); if(status == 200){ + data.list.map(a => { + a.server_price = Number(a.server_price); + a.line_price = Number(a.line_price) + }) this.list1 = data.list this.isShow = data.total == 0?true:false } diff --git a/pages/activity/newGoods.vue b/pages/activity/newGoods.vue index d7ce010..f78a149 100644 --- a/pages/activity/newGoods.vue +++ b/pages/activity/newGoods.vue @@ -84,6 +84,9 @@ } Api.brandList(pamars) .then(result => { + result.data.data.map(a => { + a.goods_price_min = Number(a.goods_price_min) + }) app.list = result.data.data; }) .finally(() => app.isLoading = false) diff --git a/pages/activity/newPeople.vue b/pages/activity/newPeople.vue index 6ef6f8d..9c05023 100644 --- a/pages/activity/newPeople.vue +++ b/pages/activity/newPeople.vue @@ -32,7 +32,7 @@ {{item.goods_price_min}}到手价 - ¥{{item.goods_price_min}} + ¥{{item.line_price_min}} - + @@ -22,7 +23,8 @@ - + {{item.name}}热销榜 @@ -31,9 +33,10 @@ - + - + @@ -50,8 +53,8 @@ - - + + @@ -90,7 +93,6 @@ }, category_id: "", chosed: 0, - jingListAll: [], menuList: [], backgroundImg: '', jingList: [], @@ -129,19 +131,26 @@ } Api.chartsGoodsJing(pamars) .then(result => { + result.data.forEach(item => { + item.goods_list.forEach(item1 => { + item1.goods_price_min = Number(item1.goods_price_min); + }) + }); app.jingList = result.data; - app.jingListAll = result.data; }) .finally(() => app.isLoading = false) }, getListgoodData(categoryId) { let app = this; let pamars = { - store_id: 10001, + // store_id: 10001, categoryId: categoryId, } Api.chartsGoodsList(pamars) .then(result => { + result.data.data.forEach(item => { + item.goods_price_min = Number(item.goods_price_min); + }); app.goodList = result.data.data; }) .finally(() => app.isLoading = false) @@ -149,19 +158,14 @@ onChosed(item, index) { let app = this; app.chosed = index; - if(index == 0){ - app.jingList = app.jingListAll; - }else{ - app.jingList = app.jingListAll.filter(a=>a.category_id == item.category_id); - } - + app.getListgoodData(item.category_id) }, // 分类 getListCharts() { let app = this app.menuList = [] let pamars = { - store_id: 10001 + // store_id: 10001 } Api.charts(pamars) .then(result => { @@ -196,6 +200,7 @@ padding-bottom: 30rpx; background: #F34A40 url(https://www.royaum.com.cn/static/rank/rank1.png) center top no-repeat; background-size: 100% auto; + .bgImg { width: 100%; height: 100%; @@ -270,9 +275,11 @@ width: 702rpx; border-radius: 18rpx; margin: 28rpx auto; + .firLine { display: flex; justify-content: space-between; + .hotTitle { height: 50rpx; font-size: 36rpx; @@ -284,6 +291,7 @@ .opera { display: flex; align-items: center; + text { height: 44rpx; font-size: 32rpx; @@ -304,9 +312,11 @@ display: flex; margin-top: 86rpx; margin-left: 18rpx; + .goodsItem { position: relative; width: 33.3%; + .topOne { width: 48rpx; height: 66rpx; @@ -339,7 +349,8 @@ font-size: 24rpx; color: #DE041C; line-height: 50rpx; - text{ + + text { font-size: 36rpx; font-weight: 600; } @@ -353,6 +364,7 @@ background: #FCE5C6; border-radius: 18rpx; margin-bottom: 42rpx; + .goodsDetail1 { width: 700rpx; height: 336rpx; @@ -360,6 +372,7 @@ background: #FFFFFF; border-radius: 18rpx; position: relative; + .topOne1 { width: 73rpx; height: 100rpx; @@ -370,11 +383,13 @@ .goodsInfo1 { display: flex; + .goodsImg1 { width: 224rpx; height: 224rpx; margin-right: 20rpx; } + .goodsName1 { .name1 { width: 396rpx; @@ -435,6 +450,7 @@ color: #301F14; line-height: 44rpx; margin-left: 30rpx; + text { font-size: 48rpx; font-weight: 600; @@ -456,6 +472,7 @@ display: flex; align-items: center; justify-content: center; + .right1 { width: 18rpx; height: 27rpx; diff --git a/pages/cart/index.vue b/pages/cart/index.vue index 1a89b4e..f58e929 100644 --- a/pages/cart/index.vue +++ b/pages/cart/index.vue @@ -43,8 +43,8 @@ {{ item.goods.skuInfo.goods_price }} - + + @@ -61,7 +61,35 @@ - + + 为您推荐 + + + + + + + + + {{item.selling_point}} + {{item.goods_name}} + + + 包邮 + + + + {{item.goods_price_min}} + 到手价 + ¥{{item.line_price_min}} + + + + + @@ -96,7 +124,7 @@ \ No newline at end of file + &-on { + background-color: #ff343c; + } + } +} + diff --git a/pages/news/coupon/index.vue b/pages/news/coupon/index.vue index b5f3ca5..795a7ab 100644 --- a/pages/news/coupon/index.vue +++ b/pages/news/coupon/index.vue @@ -21,7 +21,7 @@ - + 暂无已使用优惠券 @@ -49,6 +49,10 @@ if (index == 0) { CouponApi.list() .then(res => { + res.data.list.forEach(item => { + item.min_price = Number(item.min_price); + item.reduce_price = Number(item.reduce_price); + }); that.couponList = res.data.list }) .finally(() => that.isLoading = false) @@ -80,7 +84,7 @@ }) .finally(() => that.isLoading = false) }, - goMyCoupon(){ + goMyCoupon() { uni.navigateTo({ url: "/pages/news/coupon/list" }) @@ -149,6 +153,7 @@ &-bd { padding: 0 40rpx 180rpx; overflow: hidden; + .item { width: 662rpx; height: 366rpx; @@ -231,8 +236,9 @@ line-height: 148rpx; background: linear-gradient(180deg, #FFFFFF 0%, #FEEECA 100%); z-index: 999; - .fooIcon{ + + .fooIcon { margin-left: 36rpx; } } - \ No newline at end of file + diff --git a/pages/news3/ManualEntry.vue b/pages/news3/ManualEntry.vue index 39631d0..a137791 100644 --- a/pages/news3/ManualEntry.vue +++ b/pages/news3/ManualEntry.vue @@ -290,7 +290,6 @@ } }, regionChage(e) { - console.log(e) this.city = e.province.name + e.city.name + e.area.name; this.form.province_id = e.province.code; this.form.city_id = e.city.code diff --git a/pages/user/index.vue b/pages/user/index.vue index dc39f44..b607075 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -1116,6 +1116,9 @@ flex-direction: column; justify-content: space-between; margin: 2rpx 0 0 24rpx; + button:after{ + border: none !important; + } } .image-text_1 { diff --git a/pages/user/vip/goods.vue b/pages/user/vip/goods.vue index 9c165f5..2e0bf25 100644 --- a/pages/user/vip/goods.vue +++ b/pages/user/vip/goods.vue @@ -117,7 +117,7 @@ is_new: '', categoryId: categoryId, order: app.orderSort, - is_in_store:this.type==1?1:'' + is_in_store:this.type==1?1:0 } Api.brandList(pamars) .then(result => {