From af26ac5408cd59ef7ec3722ed62113504a69753f Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Tue, 10 Dec 2024 11:28:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/cart.vue | 1 + pages/index/center.vue | 17 ++-- pages_order/components/address/redactAddress.vue | 6 +- pages_order/mine/promotion.vue | 90 +++++++-------------- pages_order/order/orderDetail.vue | 8 +- static/image/center/c1.png | Bin 0 -> 1508 bytes static/image/center/c2.png | Bin 0 -> 1358 bytes static/image/center/c3.png | Bin 0 -> 1687 bytes static/image/center/icon1.png | Bin 0 -> 7285 bytes uni_modules/uv-cell/components/uv-cell/uv-cell.vue | 4 +- utils/position.js | 4 +- 11 files changed, 53 insertions(+), 77 deletions(-) create mode 100644 static/image/center/c1.png create mode 100644 static/image/center/c2.png create mode 100644 static/image/center/c3.png create mode 100644 static/image/center/icon1.png diff --git a/pages/index/cart.vue b/pages/index/cart.vue index 5d162a9..df2791e 100644 --- a/pages/index/cart.vue +++ b/pages/index/cart.vue @@ -238,6 +238,7 @@ justify-content: center; align-items: center; overflow: hidden; + z-index: 999; .icon{ position: relative; width: 80rpx; diff --git a/pages/index/center.vue b/pages/index/center.vue index 415ea89..360b61e 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -112,21 +112,26 @@ - - - - + + - diff --git a/pages_order/components/address/redactAddress.vue b/pages_order/components/address/redactAddress.vue index ef2d35d..319e766 100644 --- a/pages_order/components/address/redactAddress.vue +++ b/pages_order/components/address/redactAddress.vue @@ -114,11 +114,11 @@ //地图上选择地址 selectAddr() { - Position.getLocation(res => { - Position.selectAddress(res.longitude, res.latitude, success => { + // Position.getLocation(res => { + Position.selectAddress(0, 0, success => { this.setAddress(success) }) - }) + // }) }, //提取用户选择的地址信息复制给表单数据 diff --git a/pages_order/mine/promotion.vue b/pages_order/mine/promotion.vue index 53cf18a..d3fcfc5 100644 --- a/pages_order/mine/promotion.vue +++ b/pages_order/mine/promotion.vue @@ -19,16 +19,17 @@ style="width: 400rpx;" :src="imagePath" mode="widthFix"> --> + + - - - 保存 - + + 保存二维码 @@ -110,8 +111,14 @@ ctx.fillStyle = 'black' ctx.font = '22px PingFangSC-regular'; - let s = this.title || '加油站' + // 绘制用户姓名 + // let nickName = this.userInfo.nickName || '绘制用户姓名' + // ctx.fillText(nickName, canvas.width / Ratio - nickName.length * 11, 40); + // ctx.font = '18px PingFangSC-regular'; + + // 绘制欢迎语 + let s = this.title || '' ctx.fillText(s, canvas.width / Ratio - s.length * 11, 50); //二维码图片 @@ -202,67 +209,24 @@ background-color: $uni-color; .promotion-card { width: 90%; - margin: 100rpx auto 0rpx auto; + margin: 140rpx auto 0rpx auto; box-shadow: 0rpx 0rpx 15rpx rgba(0, 0, 0, .2); - border-radius: 15rpx; + border-radius: 40rpx; padding: 40rpx 30rpx; box-sizing: border-box; background-color: #fff; - - .user-info { - display: flex; - align-items: center; - - .image { - width: 80rpx; - height: 80rpx; - border-radius: 50%; - margin-right: 10rpx; - } - - .user-name { - font-size: 30rpx; - } - } - - .invitation-code-img { - display: flex; - align-items: center; - justify-content: center; - margin: 100rpx 0rpx; - - .image { - width: 30%; - border-radius: 50%; - } - } - - .invitation-code { - text-align: center; - color: #818181; - font-size: 28rpx; - } - } - - .btns { - position: fixed; - left: 0; - bottom: 0; - width: 100%; - height: 120rpx; - display: flex; - background: #fff; - font-size: 28rpx; - color: $uni-color; - .btn { - flex: 1; - display: flex; - align-items: center; - justify-content: center; - - &:nth-child(2) { - background: orange; - } + position: relative; + padding-top: 100rpx; + .headImage{ + position: absolute; + height: 180rpx; + width: 180rpx; + border-radius: 50%; + top: -80rpx; + left: 50%; + transform: translate(-50%); + border: 10rpx solid #fff; + box-shadow: 0 0 10rpx 10rpx #00000013; } } } diff --git a/pages_order/order/orderDetail.vue b/pages_order/order/orderDetail.vue index 0c0555a..6419ea9 100644 --- a/pages_order/order/orderDetail.vue +++ b/pages_order/order/orderDetail.vue @@ -179,19 +179,25 @@ {{msgShop.projectExplain}} --> - + 联系客服 + +