From 81222ae5c2e367c466d12909f29c08c103cf1e36 Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 28 May 2024 21:51:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=92=E6=9D=80=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 7 + pages/activity/seckill.vue | 51 +- pages/goods/city.vue | 6341 +++++++++++++++++++++++++++++++++ pages/goods/seckillDetail.vue | 2250 ++++++++++++ pages/news/consult/about.vue | 2 +- pages/news1/jinqun.vue | 2 +- 6 files changed, 8634 insertions(+), 19 deletions(-) create mode 100644 pages/goods/city.vue create mode 100644 pages/goods/seckillDetail.vue diff --git a/pages.json b/pages.json index 0b09ba3..2ae5b59 100644 --- a/pages.json +++ b/pages.json @@ -771,6 +771,13 @@ "navigationStyle": "custom" // "navigationBarTitleText": "商品详情页" } + }, + { + "path": "seckillDetail", + "style": { + "navigationStyle": "custom" + // "navigationBarTitleText": "商品详情页" + } } ] }, diff --git a/pages/activity/seckill.vue b/pages/activity/seckill.vue index 95e4eda..4f25a34 100644 --- a/pages/activity/seckill.vue +++ b/pages/activity/seckill.vue @@ -4,17 +4,17 @@ - + - + {{item.active_time}} - + {{item.status_text}} @@ -32,7 +32,7 @@ + @click="handleTargetGoods(item.sharp_goods_id)"> @@ -125,7 +125,7 @@ background: 'url(https://www.royaum.com.cn/static/rank/rank1.png) center top no-repeat', backgroundSize: '100% auto', }, - backgroundImg:'', + backgroundImg: '', } }, /** @@ -159,8 +159,8 @@ .then(result => { app.tabbar = result.data.tabbar; app.goodsList = result.data.goodsList.data - if(app.goodsList && app.goodsList.length > 0){ - app.goodsList.map(a=>{ + if (app.goodsList && app.goodsList.length > 0) { + app.goodsList.map(a => { a.original_price = Number(a.original_price) a.seckill_price_max = Number(a.seckill_price_max) a.seckill_price_min = Number(a.seckill_price_min) @@ -248,13 +248,17 @@ // 跳转到秒杀商品详情 handleTargetGoods(sharpGoodsId) { - let count_down_time = new Date(this.tabbar[this.curTabIndex].count_down_time.replace(/-/g, '/')).getTime()-new Date().getTime() + let count_down_time = new Date(this.tabbar[this.curTabIndex].count_down_time.replace(/-/g, '/')) + .getTime() - new Date().getTime() + uni.navigateTo({ - url: '/pages/goods/detail?goodsId=' + sharpGoodsId+"&isSeckill="+true+'&isBuy='+count_down_time+'&seckillText='+(this.tabbar[this.curTabIndex].status == this.ActiveStatusEnum.STATE_BEGIN.value ? '结束' : '开始' ) + url: '/pages/goods/seckillDetail?activeTimeId=' + this.getCurTabbarId() + '&sharpGoodsId=' + sharpGoodsId + + "&isSeckill=" + true + '&isBuy=' + count_down_time + '&seckillText=' + (this.tabbar[this + .curTabIndex].status == this.ActiveStatusEnum.STATE_BEGIN.value ? '结束' : '开始') }) }, - - + + // 设置微信公众号链接分享卡片内容 setWxofficialShareData() { this.updateShareCardData({ @@ -298,9 +302,11 @@ width: 100%; height: 100%; } - .active{ + + .active { background-color: #A9A9A9; } + .title { width: 100%; height: 500rpx; @@ -337,9 +343,11 @@ overflow: auto; bottom: 0; position: absolute; + .timeItem { margin-bottom: 25rpx; padding: 0 0 0 20rpx; + .num { width: 150rpx; font-size: 40rpx; @@ -350,9 +358,11 @@ text-align: center; margin-top: 10rpx; } - .numselected{ - color:#ffffff; + + .numselected { + color: #ffffff; } + .desc { width: 150rpx; height: 40rpx; @@ -367,8 +377,9 @@ margin-top: 10rpx; text-align: center; } - .descselected{ - color:#FB3D27; + + .descselected { + color: #FB3D27; background: #FFFFFF; } } @@ -428,6 +439,7 @@ .goodsList { overflow: hidden; + .goodItem { width: 686rpx; height: 342rpx; @@ -438,10 +450,12 @@ padding: 48rpx 32rpx 36rpx 0; margin: 0 auto; margin-top: 22rpx; + .itemImg { width: 258rpx; height: 258rpx; margin-right: 10rpx; + .goodsImg { width: 100%; height: 100%; @@ -472,6 +486,7 @@ .info { display: flex; + .price { height: 40rpx; font-size: 28rpx; @@ -490,6 +505,7 @@ background-image: url('https://www.royaum.com.cn/static/seckill/bottom.png'); background-size: 100% 100%; margin: 0 12rpx 0 14rpx; + .delText { width: 132rpx; text-align: center; @@ -536,7 +552,8 @@ font-weight: 500; color: #FF423D; margin-left: 26rpx; - text{ + + text { font-size: 34rpx; } } diff --git a/pages/goods/city.vue b/pages/goods/city.vue new file mode 100644 index 0000000..d818400 --- /dev/null +++ b/pages/goods/city.vue @@ -0,0 +1,6341 @@ + + + + + diff --git a/pages/goods/seckillDetail.vue b/pages/goods/seckillDetail.vue new file mode 100644 index 0000000..1c9f570 --- /dev/null +++ b/pages/goods/seckillDetail.vue @@ -0,0 +1,2250 @@ + + + diff --git a/pages/news/consult/about.vue b/pages/news/consult/about.vue index 8760a2d..71af81a 100644 --- a/pages/news/consult/about.vue +++ b/pages/news/consult/about.vue @@ -15,7 +15,7 @@ - + 长按识别二维码 添加我的微信 diff --git a/pages/news1/jinqun.vue b/pages/news1/jinqun.vue index 73cba61..917486c 100644 --- a/pages/news1/jinqun.vue +++ b/pages/news1/jinqun.vue @@ -3,7 +3,7 @@ style="background-size: 100% 100%;text-align: center;"> - +