From 15fcb75f60d01187cbd70f743ea77a8ee86f09f6 Mon Sep 17 00:00:00 2001 From: 18631081161 <2088094923@qq.com> Date: Tue, 22 Jul 2025 22:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=B4=A7=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/bags/bags-page.vue | 4 +- pages/home/home-page.vue | 372 +++++++++++++++++---------------- pages/home/product-details.vue | 30 ++- pages/me/address-page.vue | 162 +++++++++++++- pages/me/me-page.vue | 4 +- uni.scss | 2 +- 6 files changed, 369 insertions(+), 205 deletions(-) diff --git a/pages/bags/bags-page.vue b/pages/bags/bags-page.vue index f3435c1..675ac17 100644 --- a/pages/bags/bags-page.vue +++ b/pages/bags/bags-page.vue @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/pages/home/product-details.vue b/pages/home/product-details.vue index 3522b9b..12b3b52 100644 --- a/pages/home/product-details.vue +++ b/pages/home/product-details.vue @@ -5,7 +5,7 @@ - + 坂本日常 吧唧 @@ -28,7 +28,7 @@ - + 运费10元 满100包邮 3-5个工作日发货 @@ -39,7 +39,7 @@ - ¥20 + ¥20 @@ -52,7 +52,7 @@ - 商品详情 + 商品详情 @@ -61,15 +61,15 @@ - 品牌: - 尺寸:直径约56mm + 品牌: + 尺寸:直径约56mm - + @@ -81,7 +81,7 @@ - + @@ -125,6 +125,11 @@ 支付方式 微信支付 + + + 优惠券 + 无可用 › + @@ -214,6 +219,13 @@ }, + //地址 + toAddress() { + uni.navigateTo({ + url: '/pages/me/address-page' + }); + } + } } @@ -520,7 +532,7 @@ .conPay { width: 561.81rpx; height: 161.11rpx; - margin: 86.11rpx auto 0; + margin: 30.56rpx auto 0; } diff --git a/pages/me/address-page.vue b/pages/me/address-page.vue index 8183fd0..490e8d1 100644 --- a/pages/me/address-page.vue +++ b/pages/me/address-page.vue @@ -1,6 +1,44 @@ @@ -8,15 +46,127 @@ export default { data() { return { - + selectAddress: 0, + dataList: [{ + id: 1, + economize: "河南省 某某市 某某区 某某街道", + community: "某某小区某号楼", + phone: "某某 13333333333" + }, { + id: 1, + economize: "河南省 某某市 某某区 某某街道", + community: "某某小区某号楼", + phone: "某某 13333333333" + }, { + id: 1, + economize: "河南省 某某市 某某区 某某街道", + community: "某某小区某号楼", + phone: "某某 13333333333" + }, { + id: 1, + economize: "河南省 某某市 某某区 某某街道", + community: "某某小区某号楼", + phone: "某某 13333333333" + }, { + id: 1, + economize: "河南省 某某市 某某区 某某街道", + community: "某某小区某号楼", + phone: "某某 13333333333" + }, { + id: 1, + economize: "河南省 某某市 某某区 某某街道", + community: "某某小区某号楼", + phone: "某某 13333333333" + }, { + id: 1, + economize: "河南省 某某市 某某区 某某街道", + community: "某某小区某号楼", + phone: "某某 13333333333" + }, { + id: 1, + economize: "河南省 某某市 某某区 某某街道", + community: "某某小区某号楼", + phone: "某某 13333333333" + }, { + id: 1, + economize: "河南省 某某市 某某区 某某街道", + community: "某某小区某号楼", + phone: "某某 13333333333" + }, { + id: 1, + economize: "河南省 某某市 某某区 某某街道", + community: "某某小区某号楼", + phone: "某某 13333333333" + }, + + ] + } }, methods: { - + toBack() { + uni.navigateBack(); + }, + + selectAdd(index) { + this.selectAddress = index; + }, + + setBorder(index) { + if (this.selectAddress == index) { + return { + border: '1rpx solid #FEA4AC' + } + } else { + return { + border: '1rpx solid transparent' + } + } + }, + + addressPopOpen() { + this.$refs.addressPop.open() + }, + + addressPopClose() { + this.$refs.addressPop.cloes() + }, + + + } } - + .title { + width: 688.88rpx; + display: flex; + flex-direction: row; + justify-content: space-between; + margin-top: 119.44rpx; + + text { + font-size: 29.17rpx; + color: #6E5B51; + } + } + + .back { + width: 40rpx; + height: 40rpx; + + image { + width: 14.58rpx; + height: 27.08rpx; + } + } + \ No newline at end of file diff --git a/pages/me/me-page.vue b/pages/me/me-page.vue index 589a910..fe868f4 100644 --- a/pages/me/me-page.vue +++ b/pages/me/me-page.vue @@ -11,12 +11,12 @@ - 坂本日常 + 坂本日常 - ID:3232321323 diff --git a/uni.scss b/uni.scss index 50b886f..26017a6 100644 --- a/uni.scss +++ b/uni.scss @@ -1,7 +1,7 @@ /** 全局css */ -$baseurl: "@@:static/"; +$baseurl: "https://guyu-1308826010.cos.ap-shanghai.myqcloud.com/static/"; @font-face { font-family: "JiangChengYuanTi-300W";