From 9c776cf5e18488709446f8fc37a04a371bcfe6d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87?= Date: Wed, 12 Mar 2025 20:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.miniapp.json | 5 ++ app.wxss | 2 +- components/img-uploader/index.wxml | 1 - components/img-uploader/index.wxss | 8 +-- components/modalView/index.wxml | 8 +-- components/modalView/index.wxss | 4 +- components/number-box/index.wxss | 6 +-- i18n/base.json | 11 ++++ miniapp/android/i18nInfo.json | 1 + miniapp/ios/i18nInfo.json | 1 + pages/index/mark-up/index.js | 7 +++ pages/index/mark-up/index.wxml | 8 +-- pages/index/mark-up/index.wxss | 18 +++++-- project.config.json | 9 +++- project.miniapp.json | 82 ++++++++++++++++++++++++++++++ 15 files changed, 148 insertions(+), 23 deletions(-) create mode 100644 app.miniapp.json create mode 100644 i18n/base.json create mode 100644 miniapp/android/i18nInfo.json create mode 100644 miniapp/ios/i18nInfo.json create mode 100644 project.miniapp.json diff --git a/app.miniapp.json b/app.miniapp.json new file mode 100644 index 0000000..7199418 --- /dev/null +++ b/app.miniapp.json @@ -0,0 +1,5 @@ +{ + "adapteByMiniprogram": { + "userName": "gh_3b641cd1efec" + } +} diff --git a/app.wxss b/app.wxss index 5b81edd..47127aa 100644 --- a/app.wxss +++ b/app.wxss @@ -1,5 +1,5 @@ page{ - font-size:32rpx; + font-size:30rpx; line-height: 1; --main-font-color:#000000; --main-bgclolor:#F5F5F5; diff --git a/components/img-uploader/index.wxml b/components/img-uploader/index.wxml index ccff240..fd392bb 100644 --- a/components/img-uploader/index.wxml +++ b/components/img-uploader/index.wxml @@ -1,5 +1,4 @@ -{{uploadedImgs.length}} diff --git a/components/img-uploader/index.wxss b/components/img-uploader/index.wxss index 8c2be75..c639ea4 100644 --- a/components/img-uploader/index.wxss +++ b/components/img-uploader/index.wxss @@ -1,13 +1,15 @@ +img-uploader{ + display: block; +} .img-area{ - margin-top:60rpx; display: flex; flex-wrap: wrap; - gap: 20rpx; + gap: 16rpx; display: flex; justify-content: flex-end; } .img-area .item{ - width: 120rpx;height:120rpx; + width: 100rpx;height:100rpx; display: flex; align-items: center; justify-content: center; diff --git a/components/modalView/index.wxml b/components/modalView/index.wxml index f95bdcb..86d41c2 100644 --- a/components/modalView/index.wxml +++ b/components/modalView/index.wxml @@ -11,11 +11,11 @@ - - - {{content}} + {{content}} diff --git a/components/modalView/index.wxss b/components/modalView/index.wxss index 35ddb00..173948e 100644 --- a/components/modalView/index.wxss +++ b/components/modalView/index.wxss @@ -52,7 +52,7 @@ position: relative; z-index: 111; } -.custom-modal-view .textarea{ +.custom-modal-view .content-textarea{ border: 1.2px solid rgba(85, 85, 85, 0.3); border-radius: 18rpx; margin:30rpx 0; @@ -63,7 +63,7 @@ line-height:50rpx; height: 214rpx; } -.custom-modal-view .textarea.error{ +.custom-modal-view .content-textarea.error{ border-color:red; } diff --git a/components/number-box/index.wxss b/components/number-box/index.wxss index 8396771..3b3ed1d 100644 --- a/components/number-box/index.wxss +++ b/components/number-box/index.wxss @@ -7,7 +7,7 @@ padding:0 28rpx; } .number-box .button{ - width:48rpx;height:48rpx; + width:44rpx;height:44rpx; line-height: 1; padding:0; text-align: center; @@ -28,7 +28,7 @@ height:4rpx; background-color: #fff; position:absolute; - left:25%;top:22rpx; + left:25%;top:20rpx; } .number-box .reduce.disabled::before, .number-box .plus.disabled::before, @@ -38,7 +38,7 @@ .number-box .plus::after{ width:4rpx; height:50%; - left:22rpx;top:25%; + left:20rpx;top:25%; z-index: 100; } .number-box.disabled{ diff --git a/i18n/base.json b/i18n/base.json new file mode 100644 index 0000000..0d5e85b --- /dev/null +++ b/i18n/base.json @@ -0,0 +1,11 @@ +{ + "ios": { + "name": "蜂快小哥" + }, + "android": { + "name": "蜂快小哥" + }, + "common": { + "name": "蜂快小哥" + } +} diff --git a/miniapp/android/i18nInfo.json b/miniapp/android/i18nInfo.json new file mode 100644 index 0000000..d8f0e30 --- /dev/null +++ b/miniapp/android/i18nInfo.json @@ -0,0 +1 @@ +{"base":{"ios":{"name":"蜂快小哥"},"android":{"name":"蜂快小哥"}}} diff --git a/miniapp/ios/i18nInfo.json b/miniapp/ios/i18nInfo.json new file mode 100644 index 0000000..d8f0e30 --- /dev/null +++ b/miniapp/ios/i18nInfo.json @@ -0,0 +1 @@ +{"base":{"ios":{"name":"蜂快小哥"},"android":{"name":"蜂快小哥"}}} diff --git a/pages/index/mark-up/index.js b/pages/index/mark-up/index.js index eea72c2..63731c5 100644 --- a/pages/index/mark-up/index.js +++ b/pages/index/mark-up/index.js @@ -24,6 +24,7 @@ Component({ imgUploading:false, money:1, reason:'', + reasonFocus:false, requestId:'', isShowMarkup:false, }, @@ -99,6 +100,12 @@ Component({ money:0, }); this.imgUploader.setUploadedImgs([]); + }).finally(()=>{ + wx.nextTick(()=>{ + this.setData({ + reasonFocus:true + }) + }) }) } }, diff --git a/pages/index/mark-up/index.wxml b/pages/index/mark-up/index.wxml index a2c567f..5953c16 100644 --- a/pages/index/mark-up/index.wxml +++ b/pages/index/mark-up/index.wxml @@ -3,14 +3,14 @@ okButtonText="提交申请" model:show="{{isShowMarkup}}" show-close-button class="mark-up-view" titleTextCenter="{{false}}" overlay-close="{{false}}"> -