From 872e59cea7794356af09c6036486f14ef9c49a75 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Tue, 1 Apr 2025 16:37:21 +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.json | 12 + pages/mine/addr/addr-detail.vue | 230 ++++ pages/mine/addr/addr-list.vue | 249 ++++ pages/mine/card/card-detail.vue | 217 ++- pages/mine/index.vue | 12 +- .../uni-data-checkbox/uni-data-checkbox.vue | 133 +- .../uni-data-select/uni-data-select.vue | 52 +- .../uni-easyinput/uni-easyinput.vue | 1164 ++++++++--------- 8 files changed, 1390 insertions(+), 679 deletions(-) create mode 100644 pages/mine/addr/addr-detail.vue create mode 100644 pages/mine/addr/addr-list.vue diff --git a/pages.json b/pages.json index dbeb55d..499cc96 100644 --- a/pages.json +++ b/pages.json @@ -109,6 +109,18 @@ "style": { "navigationBarTitleText": "编辑名片" } + }, + { + "path": "pages/mine/addr/addr-list", + "style": { + "navigationBarTitleText": "收货地址" + } + }, + { + "path": "pages/mine/addr/addr-detail", + "style": { + "navigationBarTitleText": "编辑地址" + } } ], "subPackages": [{ diff --git a/pages/mine/addr/addr-detail.vue b/pages/mine/addr/addr-detail.vue new file mode 100644 index 0000000..67132ec --- /dev/null +++ b/pages/mine/addr/addr-detail.vue @@ -0,0 +1,230 @@ + + + .is-textarea { + align-items: flex-start; + } + + .is-textarea-icon { + margin-top: 5px; + } + + .uni-easyinput__content-textarea { + position: relative; + overflow: hidden; + flex: 1; + line-height: 1.5; + font-size: 14px; + margin: 6px; + margin-left: 0; + height: 80px; + min-height: 80px; + /* #ifndef APP-NVUE */ + min-height: 80px; + width: auto; + /* #endif */ + } + + .input-padding { + padding-left: 10px; + } + + .content-clear-icon { + padding: 0 5px; + } + + .label-icon { + margin-right: 5px; + margin-top: -1px; + } + + // 显示边框 + .is-input-border { + /* #ifndef APP-NVUE */ + display: flex; + box-sizing: border-box; + /* #endif */ + flex-direction: row; + align-items: center; + border: 1px solid $uni-border-1; + border-radius: 4px; + /* #ifdef MP-ALIPAY */ + overflow: hidden; + /* #endif */ + } + + .uni-error-message { + position: absolute; + bottom: -17px; + left: 0; + line-height: 12px; + color: $uni-error; + font-size: 12px; + text-align: left; + } + + .uni-error-msg--boeder { + position: relative; + bottom: 0; + line-height: 22px; + } + + .is-input-error-border { + border-color: $uni-error; + + .uni-easyinput__placeholder-class { + color: mix(#fff, $uni-error, 50%); + } + } + + .uni-easyinput--border { + margin-bottom: 0; + padding: 10px 15px; + // padding-bottom: 0; + border-top: 1px #eee solid; + } + + .uni-easyinput-error { + padding-bottom: 0; + } + + .is-first-border { + /* #ifndef APP-NVUE */ + border: none; + /* #endif */ + /* #ifdef APP-NVUE */ + border-width: 0; + /* #endif */ + } + + .is-disabled { + background-color: #f7f6f6; + color: #d5d5d5; + + .uni-easyinput__placeholder-class { + color: #d5d5d5; + font-size: 12px; + } + } + \ No newline at end of file